Hi guys,
I have been doing some custom development around Hikashop's API's and I came to a point where I need to know exactly which product's removal (or subtraction of quantity) has triggered an
onBeforeCartUpdate
-- or --
onAfterCartUpdate
event.
Unfortunately the product_id that is passed in the parameters, doesn't hold this info. I don't know if this is by design or a bug.
I have found that there is an array ($cartClass->new_quantities) which holds the product_id as the key and the quantity that was modified as the value, but I am not sure how reliable this is, in order to use it. Could you comment on that?
Thanks,
Frank