Jump to content

Different invoice header for different invoices address


techbsol

Recommended Posts

Hi,
I'm trying to set up my Prestashop with this rule:

if your invoice address is in a certain country > the invoice header change accordingly.

 

For example, if someone's ordering something in the US I want my invoice to have "Prestashop USA, US address, US VAT number".
If someone's ordering something in France, I want my invoice to have "Prestashop FR, FR address, FR VAT number".

 

Is there a way to easily achieve this?

Thanks a lot, have a nice day.

Link to comment
Share on other sites

In fact I'd go as follows:

 

Check if id_country is available in the header.tpl from pdf directory. I guess it's not. So you might add a new smarty variable (array) in the pdf invoice controller at first.

 

Then open header.tpl, check for the id_country you have added as new array index and print addresses accordingly.

Edited by Scully (see edit history)
Link to comment
Share on other sites

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