Just wondering if there's a way to determine whether a voucher code was added successfully or not there's the xslt extension CommerceLibrary:AddVoucher('yourvouchercodehere');
but how would I then display a message to the user as to whether or not the code was accepted or not?
The voucher is validated when the basket pipeline is run. You can check for discounts when you do a GetBasket() call or by checkingpurchaseOrder.Discounts.
AddVoucher Callback?
Just wondering if there's a way to determine whether a voucher code was added successfully or not
there's the xslt extension CommerceLibrary:AddVoucher('yourvouchercodehere');
but how would I then display a message to the user as to whether or not the code was accepted or not?
- Tim
The voucher is validated when the basket pipeline is run. You can check for discounts when you do a GetBasket() call or by checkingpurchaseOrder.Discounts.
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.