Jump to content

Edit History

Kaper

Kaper

I don´t think that this topic should be considered as SOLVED. Because there is missing the solution....

You should at least share one line of code for the others...

 

Here is the SOLUTION for v1.6: To add name of the country based on ID_COUNTRY you should add following code into -> classes/pdf/HTMLTemplateInvoice.php

In  public function getContent ...
...
$data = array(
...

'country' => State::getNameById($invoiceAddress->id_country),  // added for Country name 

);

Don't forget to add comma before last line, where you are inserting that code.

 

 If i helped you, say thanks, or you can give me a BEER 🍻

Kaper

Kaper

I don´t think that this topic should be considered as SOLVED. Because there is missing the solution....

You should at least share one line of code for the others...

 

Here is the SOLUTION: To add name of the country based on ID_COUNTRY you should add following code into -> classes/pdf/HTMLTemplateInvoice.php

In  public function getContent ...
...
$data = array(
...

'country' => State::getNameById($invoiceAddress->id_country),  // added for Country name 

);

Don't forget to add comma before last line, where you are inserting that code.

 

 If i helped you, say thanks, or you can give me a BEER 🍻

Kaper

Kaper

I don´t think that this topic should be considered as SOLVED. Because there is missing the solution....

You should at least share one line of code for the others...

 

Here is the SOLUTION: To add name of the country based on ID_COUNTRY you should add following code into -> classes/pdf/HTMLTemplateInvoice.php

In  public function getContent ...
...
$data = array(
...

'country' => State::getNameById($invoiceAddress->id_country),  // added for Country name 

);

Don't forget to add comma before last line, where you are inserting that code.

×
×
  • Create New...