Which hook can be used when updating a product attribut/combination in the products-v2 page ? #36114
Unanswered
lucasvavon
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm developing a module to create specific product prices.
I want to make a specific price update when the purchase price of a product attribute changes with this code :
I'm looking for a hook that is compatible with the product-v1 page and the product-v2 page.
I've tested different hooks and each one causes different problems:
actionProductAttributeUpdate
: This hook only works for the productv1 page, it is not triggered in the productv2 page.actionObjectCombinationUpdateAfter
: It is triggered in the productv2 page but the behavior is broken. If I update a product attribute (combination), the change operates in the target table. However, if I update a second product attribute, it will have a new specific price, but the first will have a specific price corresponding to the purchase price of the global product.I hope my explanations are clear.
Thanks in advance !
Beta Was this translation helpful? Give feedback.
All reactions