Jump to content

Edit History

Crezco

Crezco

For anyone who may interest.

For Prestashop 1.6 & 1.7

To print invoice from BO with customer language, go to /classes/pdf/HTMLTemplateInvoice.php

 

Under public function __construct, serach for :

 // header informations
$this->date = Tools::displayDate($order_invoice->date_add);

Just insert below:

Context::getContext()->language = new Language($this->order->id_lang);

 

That's all

Crezco

Crezco

For anyone who may interest.

For Prestashop 1.6 & 1.7

To print invoice from BO with customer language, go to /classes/pdf/PDF.php

 

Under public function __construct, serach for :

 // header informations
$this->date = Tools::displayDate($order_invoice->date_add);

Just insert below:

Context::getContext()->language = new Language($this->order->id_lang);

 

That's all

×
×
  • Create New...