This object is in archive!
Hook for adding discount code
atDev shared this idea 7 years ago
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.