[-] BO: You can now disable the email sent after account creation
This commit is contained in:
@@ -72,6 +72,14 @@ class AdminCustomerPreferencesControllerCore extends AdminController
|
||||
'cast' => 'intval',
|
||||
'type' => 'bool'
|
||||
),
|
||||
'PS_CUSTOMER_CREATION_EMAIL' => array(
|
||||
'title' => $this->l('Send an email after registration'),
|
||||
'desc' => $this->l('Send an email with summary account (email, password) after registration.'),
|
||||
'validation' => 'isUnsignedInt',
|
||||
'validation' => 'isBool',
|
||||
'cast' => 'intval',
|
||||
'type' => 'bool'
|
||||
),
|
||||
'PS_PASSWD_TIME_FRONT' => array(
|
||||
'title' => $this->l('Regenerate password'),
|
||||
'desc' => $this->l('Minimum time required to regenerate a password.'),
|
||||
|
||||
@@ -688,6 +688,9 @@ class AuthControllerCore extends FrontController
|
||||
*/
|
||||
protected function sendConfirmationMail(Customer $customer)
|
||||
{
|
||||
if (!Configuration::get('PS_CUSTOMER_CREATION_EMAIL'))
|
||||
return true;
|
||||
|
||||
return Mail::Send(
|
||||
$this->context->language->id,
|
||||
'account',
|
||||
|
||||
@@ -769,5 +769,8 @@ Country</value>
|
||||
<configuration id="PS_ALLOW_MOBILE_DEVICE" name="PS_ALLOW_MOBILE_DEVICE">
|
||||
<value>1</value>
|
||||
</configuration>
|
||||
<configuration id="PS_CUSTOMER_CREATION_EMAIL" name="PS_CUSTOMER_CREATION_EMAIL">
|
||||
<value>1</value>
|
||||
</configuration>
|
||||
</entities>
|
||||
</entity_configuration>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
SET NAMES 'utf8';
|
||||
|
||||
ALTER TABLE `PREFIX_store` CHANGE `latitude` `latitude` DECIMAL( 13, 8 ) NULL DEFAULT NULL , CHANGE `longitude` `longitude` DECIMAL( 13, 8 ) NULL DEFAULT NULL ;
|
||||
ALTER TABLE `PREFIX_store` CHANGE `latitude` `latitude` DECIMAL( 13, 8 ) NULL DEFAULT NULL , CHANGE `longitude` `longitude` DECIMAL( 13, 8 ) NULL DEFAULT NULL ;
|
||||
|
||||
INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES('PS_CUSTOMER_CREATION_EMAIL', 1, NOW(), NOW());
|
||||
Reference in New Issue
Block a user