Quantcast
Channel: Using Optimizely Platforms
Viewing all articles
Browse latest Browse all 8020

Retrieve the reason when a discount code cannot be applied

$
0
0

Hi all,

We have some promotions on our website to which i am going to add some redemption limits (1 per customer).

That is all working fine, just one thing that i feel is missing (maybe it is just me not able to find it).

When a discount code is applied to the cart, it eventually fails because it is not applicable, that can be for many reasons (redemption limits, invalid code, no entries in the cart related to that discount code, etc...)

I use : ICart.ApplyDiscounts()

Is there any way to get the reason why the code could not be applied ?

This way i could display a meaningful message to the customer.


Viewing all articles
Browse latest Browse all 8020

Trending Articles