I'm trying to implement voucher codes on a uCommerce. So I've created some voucher codes in the back office of Umbraco for the users to use. The discount code should give you a discound of 100 DKK of the order total.
So I've created a input field on the first step in the checkout, the basket. When a user submits this small form I run the following piece of code:
I believe it's a caching issue. The vouchers are probably not picked up until after the order is reloaded from the database. I'll test it and include a fix in 2.5 if it turns out to be the case.
How to use vouchers i uCommerce
Hi folks
I'm trying to implement voucher codes on a uCommerce. So I've created some voucher codes in the back office of Umbraco for the users to use. The discount code should give you a discound of 100 DKK of the order total.
So I've created a input field on the first step in the checkout, the basket. When a user submits this small form I run the following piece of code:
After this I call the GetBasket() to see that the voucher code have been added correctly. And in my basket I can see the following:
The only problem I have now is that the order total is still the same as before I added a voucher code.
What do I miss?
/Kim A
By the way, the following screenshot is how my voucher campaign is set up:
My Default campaign is set to "Enabled" as well.
/Kim A
I believe it's a caching issue. The vouchers are probably not picked up until after the order is reloaded from the database. I'll test it and include a fix in 2.5 if it turns out to be the case.
Ohh......so there's not some kind of fix to this, without upgrading to 2.5?
/Kim A
Well there is. Basically you need to reload the order from the database to do it. But it's easier just upgrading to 2.5 now that it's out.
Just to follow up on this issue: An upgrade of uCommerce did work and solved the problem :)
Upgraded to v2.6.0.0 and the basket picks up the voucher codes perfectly.
/Kim A
Thanks for reporting back, Kim. Appreciate it!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.