get order by OrderPresenter
$order = new Order($id_order);
$this->order_to_display = (new OrderPresenter())->present($ order);
$this->context->smarty-> assign([
'order' => $this->order_to_display,
'HOOK_DISPLAYORDERDETAIL' => Hook::exec(' displayOrderDetail', ['order' => $order]),
]);
TO DISPLAY IN TPL FILE
{$order}
and to get the order detail add in tpl as
{$HOOK_DISPLAYORDERDETAIL nofilter}
the you can get the detail of order product.
like {$order.details}
Comments
Post a Comment