webhosting-hotel Posted August 11, 2015 Share Posted August 11, 2015 Hi there, On my pdf invoice I would like to have the customers phone number and emaildirectly under billing address, how do I do that?I think it must be in pdf template, but where, and how?Hope someone can help Link to comment Share on other sites More sharing options...
eleazar Posted August 11, 2015 Share Posted August 11, 2015 In Back Office choose Localisaton --> Country --> <Country_you_wish_to_change> --> Section: Address format Add from tab Customer the variable email. Add from tab Address the variable phone. Save and enjoy. Link to comment Share on other sites More sharing options...
webhosting-hotel Posted August 11, 2015 Author Share Posted August 11, 2015 (edited) Hi there, I already have done that but it still doesn't show on the pdf invoice.I have read elsewhere that I needed to adjust the tpl but not how.I'm running Prestashop 1.6.1 btw Edited August 11, 2015 by webhosting-hotel (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted August 12, 2015 Share Posted August 12, 2015 It is a cleaver new feature in v1.6.1.0. Change this configuration value - PS_INVCE_INVOICE_ADDR_RULES - to get the phone number back. Link to comment Share on other sites More sharing options...
webhosting-hotel Posted August 12, 2015 Author Share Posted August 12, 2015 It is a cleaver new feature in v1.6.1.0. Change this configuration value - PS_INVCE_INVOICE_ADDR_RULES - to get the phone number back. Where do I do that, and how to get the email as well ? Link to comment Share on other sites More sharing options...
tuk66 Posted August 12, 2015 Share Posted August 12, 2015 It is the new configuration option so search for this option directly in the ps_configuration table. Link to comment Share on other sites More sharing options...
eleazar Posted August 12, 2015 Share Posted August 12, 2015 (edited) It is a cleaver new feature in v1.6.1.0. Change this configuration value - PS_INVCE_INVOICE_ADDR_RULES - to get the phone number back. Thanks for this hint. I didn't know this. However, if the invoice was already generated one time, this modification of the configuration table does not effect the address display! The reason for this is another - not so clever - feature: From 1.6.1 on the full html formatted invoice and delivery addresses are stored in the database table order_invoice as new fields invoice_address and delivery_address. Although the invoice is generated every time you push the button you have no longer any chance to change the invoice or delivery address, once the invoice was generated for the first time. Because all the information needed for the invoice generation now comes from this table and not from the possibly meantime updated customer's address table. I wonder if this really is an advantage! Edited August 12, 2015 by eleazar (see edit history) Link to comment Share on other sites More sharing options...
webhosting-hotel Posted August 12, 2015 Author Share Posted August 12, 2015 Ok worked out to get the phone number on, but how do I get the customers email address in as well? Link to comment Share on other sites More sharing options...
v4vibes Posted November 24, 2015 Share Posted November 24, 2015 Same issue cant get the phone numbers on the invoice tried from the back end by adding phone and phone_mobile prints on delivery slips but not on invoice Hi there, On my pdf invoice I would like to have the customers phone number and emaildirectly under billing address, how do I do that?I think it must be in pdf template, but where, and how?Hope someone can help Link to comment Share on other sites More sharing options...
tuk66 Posted November 24, 2015 Share Posted November 24, 2015 It works exactly like this. https://www.prestashop.com/forums/topic/484926-klant-btw-nummer-niet-op-factuur/?do=findComment&comment=2195889 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