Hey there . I'm just started to use Merchello plugin . Can someone explain me how to implement coupon redemption ? Is there any service or method to call something like GetCouponByName and check if offer code exist or available , if yes then add to my order review page and apply to total price . Please share snippet or give some hints . Thanks for attention .
Redeeming a coupon can be done through the CheckoutManger. The CheckoutManager tries to apply (checks the constraints) and then stores the offer until the invoice is generated.
You can see how it is done in the Fast Track starter kit here:
Thank you Rusty , it works fine . By the way , when i'm generating invoice from basket then go back to basket and add couple items and then trying to generate new one , my invoice does not change . It still show me the previous invoice . Should i use ItemCacheService to manually delete stored data ?
Merchello coupon code redeem
Hey there . I'm just started to use Merchello plugin . Can someone explain me how to implement coupon redemption ? Is there any service or method to call something like GetCouponByName and check if offer code exist or available , if yes then add to my order review page and apply to total price . Please share snippet or give some hints . Thanks for attention .
Redeeming a coupon can be done through the CheckoutManger. The CheckoutManager tries to apply (checks the constraints) and then stores the offer until the invoice is generated.
You can see how it is done in the Fast Track starter kit here:
https://github.com/Merchello/Merchello/blob/merchello-dev/src/Merchello.Web/Controllers/CheckoutDiscountControllerBase%7BT%7D.cs#L106
Thank you Rusty , it works fine . By the way , when i'm generating invoice from basket then go back to basket and add couple items and then trying to generate new one , my invoice does not change . It still show me the previous invoice . Should i use
ItemCacheService
to manually delete stored data ?Hey Ruben,
Are you using the
method?
Hi Rusty . I solved the problem . That was my fault . Anyway , thank you for help .
is working on a reply...