Feature Requests
Share ideas, discuss and vote on requests from other users in community
This object is in archive! 

Hook for adding discount code

atDev shared this idea 8 years ago
Under Consideration

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.

Comments (3)


Also perhaps run when the code is removed as well.


WHMCS Team, this is very important, please reconsider. There could be 2 hooks:

- PreAddPromotionCode

- PreRemovePromotionCode

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