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

TOPIC: Problem with Quick Look and Continue Shopping

Problem with Quick Look and Continue Shopping 11 years 3 months ago #2088

Hi,

From the Quick Look modal box,

1. I press add to cart button
2. Modal box for 'Contunue Shopping' and 'Show Cart' selection is displayed
3. If I press any of them, It will open website within modal box.

I think, after press 'Contunue Shopping' or 'Show Cart', customer should be automatically redirected to the original web browser..

Please advise me about this problem. Thanks.

David
Attachments:
The administrator has disabled public write access.

Problem with Quick Look and Continue Shopping 11 years 3 months ago #2099

Hi,

This issue requires a little coding change in CORE Virtuemart files.
Since it requires coding change in CORE file, it doesn't come with our VM Template. But the solution is extremely simple and you can do it.

Open this PHP file:

ROOT/components/com_virtuemart/controllers/cart.php

and look at this line (117th and 118th lines):
$this->json->msg = '<a class="continue" href="' . $continue_link . '" >' . JText::_('COM_VIRTUEMART_CONTINUE_SHOPPING') . '</a>';
$this->json->msg .= '<a class="showcart floatright" href="' . JRoute::_("index.php?option=com_virtuemart&view=cart") . '">' . JText::_('COM_VIRTUEMART_CART_SHOW_MODAL') . '</a>';


change these 2 lines with this:
$this->json->msg = '<a class="continue" target="_parent" href="' . $continue_link . '" >' . JText::_('COM_VIRTUEMART_CONTINUE_SHOPPING') . '</a>';
$this->json->msg .= '<a class="showcart floatright" target="_parent" href="' . JRoute::_("index.php?option=com_virtuemart&view=cart") . '">' . JText::_('COM_VIRTUEMART_CART_SHOW_MODAL') . '</a>';

Did you notice the difference?
Just target="_parent" TAG needs to be added those <a href=""> lines.
Once you add this, once those links are clicked; the next page will be open in the parent page, not inside the popup.

Regards.
Forum Support.
Last Edit: 11 years 3 months ago by Support.
The administrator has disabled public write access.
Time to create page: 0.117 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