News:

Looking for documentation? Take a look on our wiki

Main Menu

The value of a coupon is not shown until I refresh the page?

Started by alexzien, November 25, 2013, 09:09:47 AM

Previous topic - Next topic

alexzien

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]

jenkinhill

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.
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

alexzien

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.

jenkinhill

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
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