Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
When I add a voucher code to my cart, how do I tell if it has been successful so that I can provide feedback to my users:
MarketingLibrary.AddVoucher("12345")
Cheers,
Marc
Hi Marc,
You can check if you got an additional discount on your order.
Like this:
bool discountAdded = order.Discount.Count() > previousCount;
We have a work item scheduled so MarketingLibrary will report back the status directly from the call, which makes the scenario easier to deal with.
Hope this helps.
Thanks Soren, would also be good to know if you re-enter a voucher code, if it has already been applied.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Determine if adding voucher code has been successful
When I add a voucher code to my cart, how do I tell if it has been successful so that I can provide feedback to my users:
MarketingLibrary.AddVoucher("12345")
Cheers,
Marc
Hi Marc,
You can check if you got an additional discount on your order.
Like this:
We have a work item scheduled so MarketingLibrary will report back the status directly from the call, which makes the scenario easier to deal with.
Hope this helps.
Thanks Soren, would also be good to know if you re-enter a voucher code, if it has already been applied.
Cheers,
Marc
is working on a reply...