Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - FashionMart (SKU# FLEX-00008)

TOPIC: 'Notify Me' Button Popup Completely Empty

'Notify Me' Button Popup Completely Empty 11 years 3 months ago #1482

Just realized that when someone clicks the "Notify Me" button when a product is out of stock there is some malfunction. A popup opens, but it is completely empty. It seems this may be an VM SEO issue and not the templates fault but I figure its worth asking about.

I would rather not upgrade to a newer version of the template if at all possible. I fear having to rewrite various template changes etc.

Could you perhaps tell me what is causing this problem.

Until the stock is updated you can check this link www.vaporgenie.com/products/metal-vg-vaporizers/aluminum-pipe-vg-details.

the notify link is www.vaporgenie.com/vg-shop/aluminum-pipe-vg-details/notify&tmpl=component which is why I think it may be a VM SEO issue.


product_details_display.png


popup_display.png
Last Edit: 11 years 3 months ago by JasonYohon.
The administrator has disabled public write access.

'Notify Me' Button Popup Completely Empty 11 years 3 months ago #1497

I found part of the problem, though there may be an issue with VM in general. I changed the line in flexv2 product details
a href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=productdetails&layout=notify&virtuemart_product_id='.$this->product->virtuemart_product_id); ?>&tmpl=component" class="FlexibleAskforPrice" <?php  if (!($parameter == "quickbuy")) { ?
changed to
a href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=productdetails&layout=notify&virtuemart_product_id='.$this->product->virtuemart_product_id); ?>" class="FlexibleAskforPrice" <?php  if (!($parameter == "quickbuy")) { ?

removing the &tmpl

Now the notify button popup works but it display the entire site in the popup. How can I make it display the popup like the "ask a question" popup. There are some threads in the VM forum relating to router.php and some problems with the notify button that seem to still be unsolved.

This is the notify popup where it display the website.
notify_popup.jpg


This is the ask a question popup that displays correctly.

ask_question_popup.jpg


I would be ok with it opening a new tab instead of the popup.

Any ideas?
Last Edit: 11 years 3 months ago by JasonYohon.
The administrator has disabled public write access.

'Notify Me' Button Popup Completely Empty 11 years 3 months ago #1549

Hi,

Open this PHP file:

www.vaporgenie.com/templates/rt_quantive/html/com_virtuemart/productdetails/default_addtocart.php
Or if you are using the old version of our VM Template, then open this PHP file:
www.vaporgenie.com/templates/rt_quantive/html/com_virtuemart/productdetails/flexv2.php

and find this line:
<span><a href="<?php echo JRoute::_('index.php?option=com_virtuemart&tmpl=component&view=productdetails&layout=notify&virtuemart_product_id='.$this->product->virtuemart_product_id); ?>" class="FlexibleProductDetailsNotify" <?php  if (!($parameter == "quickbuy")) { ?>rel="facebox" rev="iframe|550|550"<?php } ?>><?php echo JText::_('COM_VIRTUEMART_CART_NOTIFY') ?></a></span>

And change it to this:
<span><a href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=productdetails&layout=notify&virtuemart_product_id='.$this->product->virtuemart_product_id); ?>" class="FlexibleProductDetailsNotify"><?php echo JText::_('COM_VIRTUEMART_CART_NOTIFY') ?></a></span>
<span class="ProductDetailsoutofstock">	
 <?php echo JText::_('COM_VIRTUEMART_CART_PRODUCT_OUT_OF_STOCK'); ?>
 </span>


Basically you are deleting the &tmpl=component parameter which lets this page to be opened in a standalone page and also you are deleting <?php if (!($parameter == "quickbuy")) { ?>rel="facebox" rev="iframe|550|550"<?php } ?> which lets this link to be opened in the "facebox" popup. So the targeting "notify" page will be standalone page and it won't be opened in a "facebox" popup page. And its URL will be something like: www.vaporgenie.com/vg-shop/aluminum-pipe-vg-details/notify

Regards.
Forum Support.
Last Edit: 11 years 3 months ago by Support.
The administrator has disabled public write access.
Time to create page: 0.274 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo