Jump to content

How to display total_discount in order-confirmation.tpl


Recommended Posts

Hi Maria,

 

You can add the following line somewhere in OrderConfirmationController::initContent():

$this->context->smarty->assign(array('order' => (array)new Order($this->id_order)));

Then you can use any data from order in order-confirmation.tpl, e.g.:

<p>Total discount is {convertPrice price=$order.total_discounts_tax_incl}</p>

Regards

--

Eric

Link to comment
Share on other sites

×
×
  • Create New...