Author Topic: continue shopping button redirect  (Read 2862 times)

Aneu

  • Beginner
  • *
  • Posts: 8
continue shopping button redirect
« 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.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27897
  • Always on vacation
    • Jenkin Hill Internet
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VM 3.8.5 10338 on Joomla 3.9.22 PHP 7.4.9

Aneu

  • Beginner
  • *
  • Posts: 8
Re: continue shopping button redirect
« Reply #2 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

ingmardevos

  • Beginner
  • *
  • Posts: 7
Re: continue shopping button redirect
« Reply #3 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.