Hello!
As I'am new here and I can't write in "devs corner" I'll just ask here.
I have custom addon with additional table.
I collect some data from cookie and when new order is created I need to put those data my new table.
Look like fn_create_order would be the best choice BUT seems that hooks work before order is created and not after.
Is there any workaround?
SDAD
#2
Hello!
As I'am new here and I can't write in "devs corner" I'll just ask here.
I have custom addon with additional table.
I collect some data from cookie and when new order is created I need to put those data my new table.
Look like fn_create_order would be the best choice BUT seems that hooks work before order is created and not after.
Is there any workaround?
Hello!
Try to use the
fn_set_hook('place_order', $order_id, $action, $order_status, $cart, $auth);
hook from fn_place_order function in fn.cart.php file.