I did some updates (eg: product quantity) from a 3-rd party with PS via PS_WS
.
My issue is that I cannot trigger the event using any default hooks.
Eg: hookActionUpdateQuantity
: working fine only when updates come directly from PS:front#sales
orbackOffice#increase_stock
)
Assume that PS_WS
can be altered, but this is the only option ?
Shouldn't PS have a trigger(hook) for WS ?
(at least from my point of view is good to know from where the changes are comming)
Thank you !
You can use:
actionObjectclass_nameAddBefore
actionObjectclass_nameAddAfter
actionObjectclass_nameUpdateBefore
actionObjectclass_nameUpdateAfter
actionObjectclass_nameDeleteBefore
actionObjectclass_nameDeleteAfter
For quantity change it will be actionObjectStockAvailableAddAfter and actionObjectStockAvailableUpdateAfter