News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

continue shopping button redirect

Started by Aneu, March 10, 2013, 11:13:12 AM

Previous topic - Next topic

Aneu

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.

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Aneu

I have the version of VM 2.0.18a
And joomla 2.5.8
Thanks a lot

ingmardevos

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.