VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Aneu on March 10, 2013, 11:13:12 AM

Title: continue shopping button redirect
Post by: Aneu on March 10, 2013, 11:13:12 AM
Hi, I have a problem with my VM.
I have the website www.keloniamenus.com and when I try to do an order here http://keloniamenus.com/index.php/pedido.html, I select the option and have the pop up with "Continue shopping"(Continuar comprando) and "Go to cart" (Mostrar Carro)
Well, when I SELECT "Continue shopping" (Continuar comprando) I'm redirected to another page and I want to stay at the same page.

How cao I do that??

THANKS A LOT.
Title: Re: continue shopping button redirect
Post by: jenkinhill on March 10, 2013, 12:45:36 PM
http://forum.virtuemart.net/index.php?topic=79799.0

From a quick forum search:
http://forum.virtuemart.net/index.php?topic=104568.0
http://forum.virtuemart.net/index.php?topic=113386.msg381427#msg381427
Title: Re: continue shopping button redirect
Post by: Aneu on March 10, 2013, 14:17:04 PM
I have the version of VM 2.0.18a
And joomla 2.5.8
Thanks a lot
Title: Re: continue shopping button redirect
Post by: ingmardevos on May 02, 2013, 20:40:16 PM
Have been looking for a solution for this for a client, and suddendly thought of this, based on this original post: http://forum.virtuemart.net/index.php?topic=113386.msg381427#msg381427


file: root/components/com_virtuemart/controllers/cart.php

Replace line 117: $this->json->msg = '<a class="continue" href="' . $continue_link . '" >' . JText::_('COM_VIRTUEMART_CONTINUE_SHOPPING') . '</a>';

With: $this->json->msg = '<a class="continue" href="javascript:document.location.reload(true)" >' . JText::_('COM_VIRTUEMART_CONTINUE_SHOPPING') . '</a>';

This will refresh the page so the shopping cart will be updated, but will keep you at the same page.