Jump to content

How to hide firstname and city field?

Recommended Posts

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.

Share this post

Link to post
Share on other sites

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.



Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More