diff --git a/install-dev/classes/controllerHttp.php b/install-dev/classes/controllerHttp.php index fea1b6d12..8063ab9af 100644 --- a/install-dev/classes/controllerHttp.php +++ b/install-dev/classes/controllerHttp.php @@ -29,7 +29,7 @@ abstract class InstallControllerHttp /** * @var array List of installer steps */ - protected static $steps = array('welcome', 'system', 'database', 'configure', 'process'); + protected static $steps = array('welcome', 'license', 'system', 'database', 'configure', 'process'); protected static $instances = array(); diff --git a/install-dev/controllers/http/system.php b/install-dev/controllers/http/system.php index bebad9fca..38dc09762 100644 --- a/install-dev/controllers/http/system.php +++ b/install-dev/controllers/http/system.php @@ -71,7 +71,6 @@ class InstallControllerHttpSystem extends InstallControllerHttp { if (!isset($this->tests['required'])) $this->tests['required'] = $this->model_system->checkRequiredTests(); - if (!isset($this->tests['optional'])) $this->tests['optional'] = $this->model_system->checkOptionalTests(); @@ -80,16 +79,18 @@ class InstallControllerHttpSystem extends InstallControllerHttp 'required' => array( array( 'title' => $this->l('PHP parameters:'), + 'success' => 1, 'checks' => array( - 'phpversion' => $this->l('Is PHP 5.1.2 or later installed ?'), - 'upload' => $this->l('Can upload files ?'), - 'system' => $this->l('Can create new files and folders ?'), - 'gd' => $this->l('Is GD Library installed ?'), - 'mysql_support' => $this->l('Is MySQL support is on ?'), + 'phpversion' => $this->l('PHP 5.1.2 or later is not enabled'), + 'upload' => $this->l('Cannot upload files'), + 'system' => $this->l('Cannot create new files and folders'), + 'gd' => $this->l('GD Library is not installed'), + 'mysql_support' => $this->l('MySQL support is not activated'), ) ), array( 'title' => $this->l('Recursive write permissions on files and folders:'), + 'success' => 1, 'checks' => array( 'config_dir' => '~/config/', 'cache_dir' => '~/cache/', @@ -110,19 +111,25 @@ class InstallControllerHttpSystem extends InstallControllerHttp 'optional' => array( array( 'title' => $this->l('PHP parameters:'), + 'success' => $this->tests['optional']['success'], 'checks' => array( - 'fopen' => $this->l('Can open external URLs ?'), - 'register_globals' => $this->l('Is PHP register global option off (recommended) ?'), - 'gz' => $this->l('Is GZIP compression activated (recommended) ?'), - 'mcrypt' => $this->l('Is Mcrypt extension available (recommended) ?'), - 'magicquotes' => $this->l('Is PHP magic quotes option deactivated (recommended) ?'), - 'dom' => $this->l('Is Dom extension loaded ?'), - 'pdo_mysql' => $this->l('Is PDO MySQL extension loaded ?'), + 'fopen' => $this->l('Cannot open external URLs'), + 'register_globals' => $this->l('PHP register global option is on'), + 'gz' => $this->l('GZIP compression is not activated'), + 'mcrypt' => $this->l('Mcrypt extension is not enabled'), + 'magicquotes' => $this->l('PHP magic quotes option is enabled'), + 'dom' => $this->l('Dom extension is not loaded'), + 'pdo_mysql' => $this->l('PDO MySQL extension is not loaded'), ) ), ), ); + foreach ($this->tests_render['required'] as &$category) + foreach ($category['checks'] as $id => $check) + if ($this->tests['required']['checks'][$id] != 'ok') + $category['success'] = 0; + // If required tests failed, disable next button if (!$this->tests['required']['success']) $this->next_button = false; diff --git a/install-dev/controllers/http/welcome.php b/install-dev/controllers/http/welcome.php index dba71d9b4..0fae26c09 100644 --- a/install-dev/controllers/http/welcome.php +++ b/install-dev/controllers/http/welcome.php @@ -25,31 +25,20 @@ */ /** - * Step 1 : display agrement form + * Step 1 : display language form */ class InstallControllerHttpWelcome extends InstallControllerHttp { - /** - * Process welcome form - * - * @see InstallAbstractModel::process() - */ public function processNextStep() { - $this->session->licence_agrement = Tools::getValue('licence_agrement'); - $this->session->configuration_agrement = Tools::getValue('configuration_agrement'); + } - /** - * Licence agrement must be checked to validate this step - * - * @see InstallAbstractModel::validate() - */ public function validate() { - return $this->session->licence_agrement; + return true; } - + /** * Change language */ diff --git a/install-dev/langs/en/install.php b/install-dev/langs/en/install.php index e3af62e82..ee296298a 100644 --- a/install-dev/langs/en/install.php +++ b/install-dev/langs/en/install.php @@ -9,10 +9,11 @@ return array( 'support' => 'http://support.prestashop.com/en/', ), 'translations' => array( - 'menu_welcome' => 'Welcome!', + 'menu_welcome' => 'Choose your language', + 'menu_license' => 'License agreements', 'menu_system' => 'System Compatibility', 'menu_database' => 'System Configuration', - 'menu_configure' => 'Shop Configuration', - 'menu_process' => 'Installation process', + 'menu_configure' => 'Store information', + 'menu_process' => 'Store installation', ), ); \ No newline at end of file diff --git a/install-dev/langs/fr/install.php b/install-dev/langs/fr/install.php index 080c09701..abdba8686 100644 --- a/install-dev/langs/fr/install.php +++ b/install-dev/langs/fr/install.php @@ -5,11 +5,12 @@ return array( 'support' => 'http://support.prestashop.com/fr/', ), 'translations' => array( - 'menu_welcome' => 'Bienvenue !', + 'menu_welcome' => 'Choix de la langue', + 'menu_license' => 'Acceptation des licences', 'menu_system' => 'Compatibilité système', 'menu_database' => 'Configuration système', - 'menu_configure' => 'Configuration de la boutique', - 'menu_process' => 'Installation', + 'menu_configure' => 'Informations de la boutique', + 'menu_process' => 'Installation de la boutique', 'Choose the installer language:' => 'Choisissez votre langue pour l\'installation', 'Field required' => 'Champ requis', 'Invalid shop name' => 'Nom de la boutique non valide', diff --git a/install-dev/models/system.php b/install-dev/models/system.php index 29fd664e6..665cb3f2f 100644 --- a/install-dev/models/system.php +++ b/install-dev/models/system.php @@ -39,6 +39,7 @@ class InstallModelSystem extends InstallAbstractModel public function checkTests($list, $type) { $tests = ConfigurationTest::check($list); + $success = true; foreach ($tests as $result) $success &= ($result == 'ok') ? true : false; diff --git a/install-dev/theme/js/welcome.js b/install-dev/theme/js/welcome.js index 69b8fd351..b9a987c49 100644 --- a/install-dev/theme/js/welcome.js +++ b/install-dev/theme/js/welcome.js @@ -7,24 +7,4 @@ $(document).ready(function() form.attr('action', form.attr('action')+'#licenses-agreement'); form.submit(); }); - - // Desactivate next button if licence checkbox is not checked - if (!$('#set_license').prop('checked')) - { - $('#btNext').addClass('disabled').attr('disabled', true); - } - - // Activate / desactivate next button when licence checkbox is clicked - $('#set_license').click(function() - { - if ($(this).prop('checked')) - $('#btNext').removeClass('disabled').attr('disabled', false); - else - $('#btNext').addClass('disabled').attr('disabled', true); - }); - - if ($('#set_license').prop('checked')) - $('#btNext').removeClass('disabled').attr('disabled', false); - else - $('#btNext').addClass('disabled').attr('disabled', true); }); \ No newline at end of file diff --git a/install-dev/theme/view.css b/install-dev/theme/view.css index decf3011a..578819661 100644 --- a/install-dev/theme/view.css +++ b/install-dev/theme/view.css @@ -477,7 +477,8 @@ ul#optional { } ul#required li.ok, ul#optional li.ok{ - background:#f8f8f8 url(img/pict_ok.png) no-repeat 99% 10px + display:none + /*background:#f8f8f8 url(img/pict_ok.png) no-repeat 99% 10px*/ } ul#required li.fail, ul#optional li.fail { diff --git a/install-dev/theme/views/configure.phtml b/install-dev/theme/views/configure.phtml index 93d4a8dfa..595690ee5 100644 --- a/install-dev/theme/views/configure.phtml +++ b/install-dev/theme/views/configure.phtml @@ -8,7 +8,7 @@ var default_iso = 'session->shop_country ?>';
l('This information is not required, it will only be used for statistical purposes. This information does not change anything in your store.') ?>
+l('Help us learn more about your store so we can offer you optimal guidance and the best features for your business!') ?>
 ?>)
l('Recommended dimensions:') ?>
209px x 52px
l('Optional - You can add you logo at a later time.') ?>
l('This email address will be your username to access your store\'s back office.') ?>
displayError('admin_email') ?> diff --git a/install-dev/theme/views/database.phtml b/install-dev/theme/views/database.phtml index 67c6435e7..798fc0bda 100644 --- a/install-dev/theme/views/database.phtml +++ b/install-dev/theme/views/database.phtml @@ -4,14 +4,16 @@
- l('You have to create a database, help available in our online documentation.') ?>
+ l('To use PrestaShop, you must create a database to collect all of your store’s data-related activities.') ?>
+
+ l('Please complete the fields below in order for PrestaShop to connect to your database. ') ?>
- l('If you want to use a different port, add :XX after your server address where XX is your port number.') ?> + l('The default port is 3306. To use a different port, add the port number at the end of your server’s address i.e ":4242".') ?>
@@ -43,7 +45,7 @@
- +
errors): ?> @@ -55,6 +57,7 @@l('If you have any questions, please visit our documentation and community forum.', $this->getDocumentationLink(), $this->getForumLink()); ?>
+tests['required']['success']): ?> +l('The installation process should take only few minutes!') ?>
+l('The installation of PrestaShop is quick and easy. In just a few moments, you will become part of a community consisting of more than 130,000 merchants. You are on the way to creating your own unique online store that you can manage easily every day.') ?>
l('If you need help, do not hesitate to check our documentation or to contact our support team: %2$s', $this->getDocumentationLink(), $this->getPhone()) ?>
language->getIsoList()) > 1): ?> -l('PrestaShop and its community offers over %d different languages for free, directly accessible from your Back Office on the Localization tab.', 56); ?>
- - -l('PrestaShop core is released under the OSL 3.0 while PrestaShop modules and themes are released under the AFL 3.0.') ?>
- - -l('The language selection above only applies to the Installation Assistant. Once your store is installed, you can choose the language of your store from over %d translations, all for free!', 55); ?>
displayTemplate('footer') ?> \ No newline at end of file