Jump to content

How to Hook Discount to a custom actionHook


Martin

Recommended Posts

Hey im trying to get my discount/voucher to react on my costum hook.

 

f.ex. i made a custom action hook on my productcomments that is executed when a comment is accepted, now i want my voucher/discount system to listen to this hook and generate a voucher to the costumer when this happends.

 

the problem is that the discount isent a module and so the $this->registerHook('nameOfhook'); will not work

 

Best regards Martin

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...