Jump to content
anis_r

Make email not required for guest checkout

Recommended Posts

Hello everyone,

After a long time of searching, I can't seem to find exactly what I want.

I am looking for a way to make the email field not required when checking out as a guest. That is, I don't want to remove the email field entirely, just make it optional, when the customer is a guest.

How can I do that from either the back office or PHP? Thanks in advance!

PS: I am using Prestashop version 1.7.4.2, if that is of any relevance.

Share this post


Link to post
Share on other sites

I had same issue, needed email to be optional, so edit the file:

prestashop/classes/form/CustomerFormatter.php

Line 164: Validation for email ->setRequired(false);

Share this post


Link to post
Share on other sites

Don't forget to mark as Solved, if no thanks to reply or contact a developper.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

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