There should be a hook that executes when a user tries to add a discount code to their cart. This is useful to do some internal checking. The hook should allow an error message to be set if needed.
Also perhaps run when the code is removed as well.
WHMCS Team, this is very important, please reconsider. There could be 2 hooks:
That would be essential for critical stuff like Affiliate Coupons that give discount and also link to an affiliate.
It shouldn't be hard to implement at all...
Yes, that is what really need to be implemented. I think that will allow make more flexible promocodes with hooks
Comments have been locked on this page!