VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: alexzien on November 25, 2013, 09:09:47 AM

Title: The value of a coupon is not shown until I refresh the page?
Post by: alexzien on November 25, 2013, 09:09:47 AM
When I add a coupon code at checkout the name of the coupon shows upp next to the input field and also the price of the products is deducted as they should. But the value of the coupon is now shown until i manually update/refresh the page. I have attached an image that shows how it looks. It's important for me that the coupon value is shown right away when the coupon is added.

Anyone who know what could be wrong here?

[attachment cleanup by admin]
Title: Re: The value of a coupon is not shown until I refresh the page?
Post by: jenkinhill on November 25, 2013, 11:32:47 AM
Looks like you are using an override there but nobody can tell without a url. You will need to add some JavaScript (AJAX) to update the data.
Title: Re: The value of a coupon is not shown until I refresh the page?
Post by: alexzien on November 25, 2013, 11:42:37 AM
Here is a link to the shop: http://goo.gl/QyVMEO.

It's in Swedish, but if you use Google Translate you probably can manage to get to the cart.
Title: Re: The value of a coupon is not shown until I refresh the page?
Post by: jenkinhill on November 25, 2013, 15:19:08 PM
On your page as soon as I hit the save (spara) button the megavip discount was applied but the rate not shown until refreshed. When I use the defeault VM2.0.24c template the discount name & value displays immediately and works as intended, no refresh needed.

Compare your template code with the default to see what is different. http://forum.virtuemart.net/index.php?topic=108212.0