Jump to content

hooks actionproductsave VS actionproductupdate


Mr S

Recommended Posts

  • 2 months later...

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.

  • Like 1
Link to comment
Share on other sites

  • 3 years later...

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.

  • Like 2
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...