Jump to content

Remove required e-mail when register


Zenny_

Recommended Posts

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 by Zenny_ (see edit history)
Link to comment
Share on other sites

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

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...