anis_r Posted January 7, 2020 Share Posted January 7, 2020 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. Link to comment Share on other sites More sharing options...
Edcast Posted May 8, 2020 Share Posted May 8, 2020 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); Link to comment Share on other sites More sharing options...
Solver Posted May 9, 2020 Share Posted May 9, 2020 Don't forget to mark as Solved, if no thanks to reply or contact a developper. Link to comment Share on other sites More sharing options...
SoniaBnd Posted August 21, 2020 Share Posted August 21, 2020 Hi @anis_r , did you find a solution for this problem please!!! I still searching for solution. For the solution of @Edcast,yes it makes the email optional but it give me an error server 500 when I pass th order. Any other help please!! Link to comment Share on other sites More sharing options...
Catarina123 Posted February 24, 2022 Share Posted February 24, 2022 Em 21/08/2020 às 8h52, SoniaBnd disse: Oi @anis_r , você encontrou uma solução para este problema, por favor!!! Ainda estou procurando solução. Para a solução de @EdcastSim, ele torna o e-mail opcional, mas ele me dá um servidor de erro 500 quando eu passar o pedido. Qualquer outra ajuda, por favor!! Olá, eu consegui editar o arquivo, e ele está lá como um escrito opcional, mas ele não deixa prosseguir sem o e-mail, o que eu posso fazer, tem solução? Versão.1.7.8.2 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