What is the difference between
I have an observer that updates some attributes when a product is saved. It works great when I save a product from admin, however it doesn't work when saving from a script I wrote.
Through my research in writing the observer, I was using
catalog_product_save_before. Someone on here told me I should be using
catalog_product_prepare_save. Although it didn't solve the problem at the time, I kept with it as eventually I got everything working.
My new research is telling me when I call
$product->save(), it doesn't trigger
catalog_product_prepare_save, but it does trigger
catalog_product_save_before, so I'm considering switching my observer to
catalog_product_save_before but can't find much documentation between the two. Wondering if I'm going to experience any adverse behavior by switching since I'm not sure why several people told me to use
catalog_product_prepare_save in the first place.