PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

 

Changing Required Field is not required to be.

6 replies to this topic
#1
cokry

    PrestaShop Newbie

  • Members
  • Pip
  • 5 posts
I want to ask, how to change the required field on the registration form is not mandatory. Please enlightenment of the Senior gentlemen.

Thank you in advance.

#2
rocky

    PrestaShop Superstar

  • US Moderators
  • 9988 posts
What field are you trying to make not required?
Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

#3
cokry

    PrestaShop Newbie

  • Members
  • Pip
  • 5 posts
I want to remove the last name field is not required.

#4
rocky

    PrestaShop Superstar

  • US Moderators
  • 9988 posts
It is not possible to make that field not required. I tried before, and it caused many "Hack attempts", since Prestashop uses it a lot. To do this for a client, I ended up setting the default last name to 'Xxx' and then used style="display:none" to hide the last name from the user's view. I had to modify the many references to the last name in the Back Office and emails so that it checked for 'Xxx' and converted it to ''.

In short, there is no simple solution.
Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

#5
superisc

    PrestaShop Newbie

  • Members
  • Pip
  • 6 posts
And it's possible to made the phone field mandatory?

I would like all my clients put it.

#6
rocky

    PrestaShop Superstar

  • US Moderators
  • 9988 posts
Yes, it is easy to make the phone field mandatory. See here.
Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

#7
rizham

    PrestaShop Newbie

  • Members
  • Pip
  • 13 posts
It is not possible to make that field not required