Cornel_M Posted May 28, 2016 Share Posted May 28, 2016 Hello! I want to have descriptipn for customer address fields, not just values, like: Name: Jon Doe Address: 12 Avenue st. Postal Code: 087877 City: Paris State: new York Country: USA Phone: 874623646 is possible? Many thx! Link to comment Share on other sites More sharing options...
NemoPS Posted May 28, 2016 Share Posted May 28, 2016 If you mean physically adding a label, if you use the OPC, then edit order-opc-new-account.tpl in the theme folderThere should be labels in the default theme, so I take it as you use a custom oneunless you mean some other place Link to comment Share on other sites More sharing options...
Cornel_M Posted May 28, 2016 Author Share Posted May 28, 2016 maybe i'm not very clear I want a field description on each line who automaticaly appear in orders, invoices, delivery slip, etc., not like in print screen attached Link to comment Share on other sites More sharing options...
NemoPS Posted May 30, 2016 Share Posted May 30, 2016 There was no screenshot attached.There is no automated way to do this, I think you need to edit the generateAddress() belonging to the AddressFormat class, and add the labels there Link to comment Share on other sites More sharing options...
Cornel_M Posted May 31, 2016 Author Share Posted May 31, 2016 sorry! Link to comment Share on other sites More sharing options...
NemoPS Posted June 1, 2016 Share Posted June 1, 2016 I confirm what I said, you need to modify/override the core method Link to comment Share on other sites More sharing options...
Cornel_M Posted June 8, 2016 Author Share Posted June 8, 2016 can you help me with more details, witch to be modified and where? ...i'm not an experienced programmer. thx! Link to comment Share on other sites More sharing options...
NemoPS Posted June 10, 2016 Share Posted June 10, 2016 Line 372 in prestashop 1.6.1.5, AddressFormat.php, classes folder. You will have to play a bit with variable names, as well as this $addressText .= (!empty($tmpText)) ? $tmpText.$newLine: ''; You do need to know a bit of php though Link to comment Share on other sites More sharing options...
Marik Posted January 29, 2019 Share Posted January 29, 2019 You have to override the AddressFormat.php class and add what you need. Check this 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