// Add PS_CONFIGURATION_AGREMENT to store if user is agree to send us some informations about its server stats
This commit is contained in:
@@ -159,6 +159,7 @@ class InstallControllerHttpProcess extends InstallControllerHttp
|
|||||||
'admin_lastname' => $this->session->admin_lastname,
|
'admin_lastname' => $this->session->admin_lastname,
|
||||||
'admin_password' => $this->session->admin_password,
|
'admin_password' => $this->session->admin_password,
|
||||||
'admin_email' => $this->session->admin_email,
|
'admin_email' => $this->session->admin_email,
|
||||||
|
'configuration_agrement' => $this->session->configuration_agrement,
|
||||||
));
|
));
|
||||||
|
|
||||||
if (!$success || $this->model_install->getErrors())
|
if (!$success || $this->model_install->getErrors())
|
||||||
|
|||||||
@@ -357,6 +357,7 @@ class InstallModelInstall extends InstallAbstractModel
|
|||||||
Configuration::updateGlobalValue('PS_COUNTRY_DEFAULT', Country::getByIso($data['shop_country']));
|
Configuration::updateGlobalValue('PS_COUNTRY_DEFAULT', Country::getByIso($data['shop_country']));
|
||||||
Configuration::updateGlobalValue('PS_LOCALE_COUNTRY', $data['shop_country']);
|
Configuration::updateGlobalValue('PS_LOCALE_COUNTRY', $data['shop_country']);
|
||||||
Configuration::updateGlobalValue('PS_TIMEZONE', $data['shop_timezone']);
|
Configuration::updateGlobalValue('PS_TIMEZONE', $data['shop_timezone']);
|
||||||
|
Configuration::updateGlobalValue('PS_CONFIGURATION_AGREMENT', (int)$data['configuration_agrement']);
|
||||||
|
|
||||||
// Set mails configuration
|
// Set mails configuration
|
||||||
Configuration::updateGlobalValue('PS_MAIL_METHOD', ($data['use_smtp']) ? 2 : 1);
|
Configuration::updateGlobalValue('PS_MAIL_METHOD', ($data['use_smtp']) ? 2 : 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user