Jump to content

[Solved] Hook To Order Confirmation After (And Without) Payment


jave.web

Recommended Posts

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 by jave.web (see edit history)
  • Like 1
Link to comment
Share on other sites

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 by jave.web (see edit history)
  • Like 3
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...