Jump to content

how to update order table after checkout


Tje123

Recommended Posts

i'm developing carrier module for my project.i have to update a new column after checkout.

inside my module ,i want to call some hook immediately after order placed to get `order id` .

i have used below hooks.but no luck. 

  public function hookActionOrderStatusUpdate($params){
    $order_id=$params['newOrderStatus']->id;
    }
    
    public function hookActionOrderStatusPostUpdate($params){
    $order_id=$params['newOrderStatus']->id;
    }
    
    public function hookDisplayOrderConfirmation($params){
    $order_id=$params['newOrderStatus']->id;
    }

how to get order id into my module,when user on order confirmation page?

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...