techbsol Posted July 31, 2017 Share Posted July 31, 2017 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 More sharing options...
Scully Posted July 31, 2017 Share Posted July 31, 2017 It is changeable but there is not default functionality to achieve your setup. To give you a rough information, we'd need the prestashop version you currently use. Link to comment Share on other sites More sharing options...
techbsol Posted August 1, 2017 Author Share Posted August 1, 2017 I'm running Prestashop 1.6.1.6.Do I need to edit the invoice tpl adding some kind of smarty condition? Thanks a lot, have a nice day. Link to comment Share on other sites More sharing options...
Scully Posted August 1, 2017 Share Posted August 1, 2017 (edited) 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 August 1, 2017 by Scully (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now