Jump to content

Action hook, do I need to create a module to use it?


Recommended Posts

Hi there,

 

newbie in PS here. I wanted to create an action hook that is executed when I save a product in the store. I found this article http://doc.prestashop.com/display/PS14/Understanding+and+using+hooks and it seems that for executing a hook I need to create a module? Or am I wrong?

 

I dont know if I have to create a module to execute the actionProductAdd hook or I can place that hook in some PS file that's always loaded when using the website , such as I used to do in a classified php software. Any code example specifically to this is appreciated

 

PS: I'm not sure if this topic goes here, if it doesnt please move it to the right section

 

Greetings

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