Mr S Posted March 10, 2013 Share Posted March 10, 2013 I am adding tab to my back office (PS 1.5) product page with a module,. Should i use hookActionProductSave or hookActionProductUpdate to update the users input for the item. Link to comment Share on other sites More sharing options...
Mr S Posted March 16, 2013 Author Share Posted March 16, 2013 Hello, Is there anybody in there? Just nod if you can hear me Is there anyone at this prestashop form? Link to comment Share on other sites More sharing options...
keutche Posted May 27, 2013 Share Posted May 27, 2013 Hi, I don't know if you find any answer somewhere else, but I recently encountered the same problem. Both hook seem to be called when you save a product: first hookActionProductSave, then hookActionProductUpdate. I did not find any documentation on how to use them, so I use both. 1 Link to comment Share on other sites More sharing options...
Mr S Posted May 27, 2013 Author Share Posted May 27, 2013 Thanks @keutche, I just used hookActionProductUpdate in my case I only need to hook once the product has been created. so my code runs only if there is a update. Link to comment Share on other sites More sharing options...
Juhas0 Posted February 5, 2017 Share Posted February 5, 2017 Hi, it's probably dead question, but I've got the answer, so maybe someone would use it. actionProductSave is called when product has been saved For example when user changes some values of product, like price, name, quantity etc. actionProductUpdate is also called in this case just after actionProductSave. But actionProductUpdate is also called when you change the position of product in a list. You don't change any product value, so actionProductSave is not called. 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now