smiledog Posted December 7, 2016 Share Posted December 7, 2016 Hello, I am not very familiar with coding, it's just I am going to use my Prestashop site mainly for customers in Taiwan, and we normally use just one field for customer name instead of firstname and lastname 2 separate fields, the same problem with address format, I only need one line of address field, don't need the field city. Just wondering can anyone tell me how to hide fristname field of customer name and city field of address completely, thank you so much. Link to comment Share on other sites More sharing options...
Martin Uker K Posted December 7, 2016 Share Posted December 7, 2016 you are talknig about something more complexe that is looks. There's validation to take in account here. Firstname and lastname are required* in customer entity, they need to be filled. So is city in address. If you don't have a lot of coding / programmation skills, it could turn really wrong. Validation is not something to take lightly. Here's a quick way to hid them : Put them in input type="hidden" instead of type="text". The "value" will need to be set to a stub value to work (Something clear). you will need to change every TPL that has "Lastname" in it...Which is a lot (blackcart, addresses, order, order pdf, etc...) I repeat, this is not an easy task. Be sure to thoroughly test the application after. Martin. Link to comment Share on other sites More sharing options...
smiledog Posted December 9, 2016 Author Share Posted December 9, 2016 Thank you, I will give it a try. Link to comment Share on other sites More sharing options...
imaran786 Posted August 19, 2019 Share Posted August 19, 2019 thank you its working Link to comment Share on other sites More sharing options...
AfricasBest1 Posted October 18, 2019 Share Posted October 18, 2019 (edited) Thank you It took some playing around to figure Out but happy with the overall result Hopefully it remains this way Edited October 18, 2019 by AfricasBest1 (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