Jump to content

accessing id_order in hookDisplayOrderPreview


Recommended Posts

How to access id_order in hook  hookDisplayOrderPreview (order preview on orders list in BO)

I see that it is not available from $params

public function hookDisplayOrderPreview(array $params) {

        $id_cart = $params['id_cart'];
        $orderID = (int)$params['id_order'];
      /*  $orderID = Tools::getValue('id_order'); */


        $this->context->smarty->assign([
            'order_ID' => $orderID,
            'cartID' => $id_cart
        ]);

        return $this->display(__FILE__, 'displayOrderPreview.tpl');
    }

and in .tpl file the $orderID is empty...

Would appreciate any tips. I quess I am missing something..

I am working with Presta 8

 

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