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

Redirect after save "Coupon code" in cart

Started by seweryn, September 17, 2012, 12:56:36 PM

Previous topic - Next topic

seweryn

Hi,

when custom enter code and use "Save" it makes redirect to Checkout. I think that it should only reload site and display message like: "Cart value was calculated".
Now it don't give any information to custom about changes in "Cart total".

In file .../components/com_virtuemart/controllers/cart.php at line 201:
if ($cart->getInCheckOut()) {
$mainframe = JFactory::getApplication();
        $mainframe->redirect(JRoute::_('index.php?option=com_virtuemart&view=cart&task=checkout'));
}


I change to this code:

if ($cart->getInCheckOut()) {
          $msg = JText::_('Cart value was calculated');
  $mainframe = JFactory::getApplication();
  $mainframe->redirect(JRoute::_('index.php?option=com_virtuemart&view=cart'), $msg);
}


Unfortunately the message display until I open other position of menu or refresh the site, the same situation is with operation delete/update product in cart when coupon code is used.

Please, can you help me?
I use VirtueMart 2.0.22c & Joomla 2.5.14

CMYKreative

Yes, anyone got a solution so that it simply alters the pricing and stays on the same page?

johk

Hi,
i am wondering the same thing - ie rather that the customer is redircted to checkout after entering the coupon code he should be able to review the cart prior to proceding to checkout.

Thanks,

johk

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

johk

Sorry haven't checked my signature - I use joomla 2.5. and VM 2.0.14

thanks
johk

CMYKreative

So, is there a solution for this that works?