jave.web Posted November 25, 2015 Share Posted November 25, 2015 (edited) I want to execute some PHP after order is confirmed, also I need order id in that place. I tried to override OrderConfirmationController - init(), but that only applied for bankwire payment, which has page "order-confirmation" for order confirmation. However it didn't work for PayPal (which is returning to /module/paypal/submit page and for "free" (price 0 / free) products. Where should I hook this so EVERY order confirmation/successful submition would call it and provided order id? And how? I really need to do this ASAP, thanks for quickness... :-) Edited November 27, 2015 by jave.web (see edit history) 1 Link to comment Share on other sites More sharing options...
jave.web Posted November 26, 2015 Author Share Posted November 26, 2015 (edited) It seems like it is solved with using displayOrderConfirmation hook (e.g. in some module) and this hook function as this hook's callback: public function hookDisplayOrderConfirmation($params){ $order = $params['objOrder']; $id_order = $order->id; //...some othe code } Edited November 26, 2015 by jave.web (see edit history) 3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now