Is it possible to add a custom discount code validator, which would check to see if a discount code is valid for item(s) currently in the basket and return a validation message to the checkout view when not?
We should fire a ValidateOrderDiscountCodeRedeem when a discount code is being added so you should be able to add your own validation code and fail the validation if it doesn't pass.
Discount code validation.
Is it possible to add a custom discount code validator, which would check to see if a discount code is valid for item(s) currently in the basket and return a validation message to the checkout view when not?
Hey Andrew,
We should fire a
ValidateOrderDiscountCodeRedeem
when a discount code is being added so you should be able to add your own validation code and fail the validation if it doesn't pass.See here for more info https://vendr.net/docs/core/3.0.0/key-concepts/events/#validation-events
Hope this helps
Matt
Perfect.
Thanks Matt.
is working on a reply...