Reputation: 1
I have to dispatch event catalog_product_save_before or catalog_product_save_after event, while update a lot of products programmatically. I run a script that call updateAttributes() method that dispatch event catalog_product_attribute_update_before, but m2epro module does not update amazon's price if I don't call catalog_product_save_after ord catalog_product_save_before
what do you think is the best solution for this need? Thanks
Upvotes: 0
Views: 1456
Reputation: 1
I assume you are also trying to update price for the product along with amazon price when using your script. If you have any functionality/dependencies to customize the price before updating regular price, then catalog_product_save_after is better approach to fetch the calculated price and update amazon price attribute. If you don't have such dependencies, you can use either of them and there won't be any difference at all.
Upvotes: 0