Feature Requests
Share ideas, discuss and vote on requests from other users in community
 

Hook for adding discount code

atDev shared this idea 6 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)

photo
1

Also perhaps run when the code is removed as well.

photo
1

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...

photo
1

Yes, that is what really need to be implemented. I think that will allow make more flexible promocodes with hooks