Zenny_ Posted August 21, 2015 Share Posted August 21, 2015 (edited) Hey forum, I want to remove the requirement to enter e-mail address when i create a new customer in the backend. I tried changing required from true to false in classes/customer.php, but didn't work for me. I am new to Prestashop, but have basic php knowledge. All suggestions are highly appreciated! //Anders Edited August 21, 2015 by Zenny_ (see edit history) Link to comment Share on other sites More sharing options...
Zenny_ Posted August 24, 2015 Author Share Posted August 24, 2015 Hey guys, i could really use some assistance on this issue :-) Any ideas are very welcome. Link to comment Share on other sites More sharing options...
bellini13 Posted August 24, 2015 Share Posted August 24, 2015 The email address is the username the customer will use when they return to log into the store. You cannot simply remove the requirement. Link to comment Share on other sites More sharing options...
Zenny_ Posted August 24, 2015 Author Share Posted August 24, 2015 Arh okay, thank you. Is it possible to not send any e-mails whatsoever, to the customer mail? So i make a workaround :-) Link to comment Share on other sites More sharing options...
bellini13 Posted August 24, 2015 Share Posted August 24, 2015 depending on your version of Prestashop, you can disable emails in your back office, it is a config setting otherwise you can edit the Mail class and prevent mails from being sent. Link to comment Share on other sites More sharing options...
Zenny_ Posted August 25, 2015 Author Share Posted August 25, 2015 Thank you so much for your input. It is greatly appreciated!I disabled all e-mails in backend as you suggested. In Orders -> Statuses. But i couldn't disable the order confirmation, so i went to classes/PaymentModule.php and commented these lines out: if (Validate::isEmail($this->context->customer->email)) Mail::Send( (int)$order->id_lang, 'order_conf', Mail::l('Order confirmation', (int)$order->id_lang), $data, $this->context->customer->email, $this->context->customer->firstname.' '.$this->context->customer->lastname, null, null, $file_attachement, null, _PS_MAIL_DIR_, false, (int)$order->id_shop ); Now it doesn't send any mails out to the customer, so i can send my own invoice. 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