Jump to content

Add new variable at invoice.tpl


builders

Recommended Posts

How can i import Message text at invoice.tpl that is written from client during order ?

(If you would like to add a comment about your order, please write it below.)

 

What variable shall i use ... i tried everything but i could not find it

 

Thanks

Link to comment
Share on other sites

  • 2 weeks later...

For the solution, see my post #80 in the thread

[Guide] Modifying Prestashop 1.5 Invoice Template.

 

Thanks that worked

 

 

How can i add also the filed that is inside "Address" called "Other informations" ?

 

I tried to add it at above the following at invoice.tpl but with no luck.

 

<td style="width: 50%">
<span style="font-weight: bold; font-size: 10pt; color: #9E9F9E">{l s='Billing & Delivery Address.' pdf='true'}</span><br />
{$invoice_address}

 

Thanks

Link to comment
Share on other sites

How can i add also the filed that is inside "Address" called "Other informations" ?

 

In BO menu Localization, Countries, select the country you want this info and edit. In the Address format block, put other where you want this to display. It will display any place that the formatted address is called in the shop.

Link to comment
Share on other sites

In BO menu Localization, Countries, select the country you want this info and edit. In the Address format block, put other where you want this to display. It will display any place that the formatted address is called in the shop.

 

I am adding "other" under this but after save the other is missing. What i am doing wrong ?

 

firstname lastname
company
vat_number
address1
address2
postcode city
Country:name
phone
[b]other[/b]

 

I can not find it as an option at the right side and i added like that address:other and it was saved but i still can not see the information at the invoice i generate.

Link to comment
Share on other sites

I am adding "other" under this but after save the other is missing. What i am doing wrong ?

 

firstname lastname
company
vat_number
address1
address2
postcode city
Country:name
phone
[b]other[/b]

 

I can not find it as an option at the right side and i added like that address:other and it was saved but i still can not see the information at the invoice i generate.

 

Try this - remove the bold tag attributes and it should work. I tried it on my 1.5.4.1 shop and it worked just fine.

 

firstname lastname
company
vat_number
address1
address2
postcode city
Country:name
phone
other

Link to comment
Share on other sites

Try this - remove the bold tag attributes and it should work. I tried it on my 1.5.4.1 shop and it worked just fine.

 

firstname lastname
company
vat_number
address1
address2
postcode city
Country:name
phone
other

 

I added "other" without the bold tag but at invoice pdf that is generated i saw no change. Shall i add anything else at pdf file ?

 

Thanks

Link to comment
Share on other sites

  • 2 years later...

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