VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: seweryn on September 17, 2012, 12:56:36 PM

Title: Redirect after save "Coupon code" in cart
Post by: seweryn on September 17, 2012, 12:56:36 PM
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?
Title: Re: Redirect after save "Coupon code" in cart
Post by: CMYKreative on October 19, 2012, 11:27:40 AM
Yes, anyone got a solution so that it simply alters the pricing and stays on the same page?
Title: Re: Redirect after save "Coupon code" in cart
Post by: johk on November 17, 2012, 12:55:18 PM
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
Title: Re: Redirect after save "Coupon code" in cart
Post by: jenkinhill on November 17, 2012, 22:06:54 PM
Quote from: johk on November 17, 2012, 12:55:18 PM
I use Joomla 1.5.9 and VM 1.1.3

Really?
Title: Re: Redirect after save "Coupon code" in cart
Post by: johk on November 17, 2012, 23:11:51 PM
Sorry haven't checked my signature - I use joomla 2.5. and VM 2.0.14

thanks
johk
Title: Re: Redirect after save "Coupon code" in cart
Post by: CMYKreative on November 18, 2012, 06:17:52 AM
So, is there a solution for this that works?