Hello. I am working on an addon. I have a table and different column that holds product amounts.(Seperatly from default column) I am trying to decrease product amounts only when placing a new order, but not when updating the same order.
I use place_order in func.php. But I think I also shloud $mode.
What is the correct method?
I recommend you to use the create_order hook in the fn_update_order function (app/functions/fn.cart.php)
[quote name='eComLabs' timestamp='1435916969' post='221481']
I recommend you to use the create_order hook in the fn_update_order function (app/functions/fn.cart.php)
[/quote]
Thanks.