diff --git a/install-dev/classes/AddConfToFile.php b/install-dev/classes/AddConfToFile.php deleted file mode 100644 index c3205de4b..000000000 --- a/install-dev/classes/AddConfToFile.php +++ /dev/null @@ -1,91 +0,0 @@ - -* @copyright 2007-2011 PrestaShop SA -* @version Release: $Revision: 6844 $ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -class AddConfToFile -{ - public $fd; - public $file; - public $mode; - public $error = false; - - public function __construct($file, $mode = 'r+') - { - $this->file = $file; - $this->mode = $mode; - $this->checkFile($file); - if ($mode == 'w' AND !$this->error) - if (!$res = @fwrite($this->fd, 'error = 6; - } - - public function __destruct() - { - if (!$this->error) - @fclose($this->fd); - } - - private function checkFile($file) - { - if (!$fd = @fopen($this->file, $this->mode)) - $this->error = 5; - elseif (!is_writable($this->file)) - $this->error = 6; - $this->fd = $fd; - } - - public function writeInFile($name, $data) - { - if (!$res = @fwrite($this->fd, - 'define(\''.$name.'\', \''.$this->checkString($data).'\');'."\n")) - { - $this->error = 6; - return false; - } - return true; - } - - public function writeEndTagPhp() - { - if (!$res = @fwrite($this->fd, '?>'."\n")) { - $this->error = 6; - return false; - } - return true; - } - - public function checkString($string) - { - if (get_magic_quotes_gpc()) - $string = stripslashes($string); - if (!is_numeric($string)) - { - $string = addslashes($string); - $string = strip_tags(nl2br($string)); - } - return $string; - } -} diff --git a/install-dev/classes/GetVersionFromDb.php b/install-dev/classes/GetVersionFromDb.php deleted file mode 100644 index a5d106065..000000000 --- a/install-dev/classes/GetVersionFromDb.php +++ /dev/null @@ -1,667 +0,0 @@ - -* @copyright 2007-2011 PrestaShop SA -* @version Release: $Revision: 6844 $ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -/** - * This class search Prestashop version from current database structure - * - * @since 1.4.2.3 - * @todo (priority low) compare index keys updates ; compare types range ; add custom methods to search versions with no SQL updates - */ -class GetVersionFromDb -{ - /** - * @var array Because of some errors and differences between some upgrades files and some db.sql files, we need to ignore some fields. - */ - private $ignore = array( - 'blocklink' => array( - 'fields' => array('id_link', 'id_blocklink'), - ), - 'blocklink_lang' => array( - 'fields' => array('id_link', 'id_blocklink'), - 'keys' => array('primary'), - ), - 'cms_block' => array( - 'fields' => array('id_block_cms', 'id_cms_block', 'display_store'), - ), - 'cms_block_lang' => array( - 'fields' => array('id_block_cms', 'id_cms_block'), - ), - 'cms_block_page' => array( - 'fields' => array('id_block_cms_page', 'id_cms_block_page'), - ), - 'cms_lang' => array( - 'types' => array('content'), - ), - 'log_email' => array( - 'keys' => array('date_add', 'id_cart'), - ), - 'newsletter' => array( - 'fields' => array('http_referer'), - ), - 'order_detail' => array( - 'fields' => array('group_reduction', 'ecotax_tax_rate', 'id_currency', 'reduction_percent', 'reduction_amount'), - ), - 'webservice_account' => array( - 'fields' => array('is_module', 'module_name'), - ), - ); - - /** - * @var string Path to install directory - */ - private $installPath; - - /** - * @var array Store schemas of all upgrades - */ - private $schemas = array(); - - /** - * @var array Store db.sql schema - */ - private $generalSchema = null; - - /** - * @var array Store current database schema - */ - private $currentSchema = null; - - /** - * @var bool If set to false, will compare all data of each table to get full error log - */ - private $fastExecution = false; - - /** - * @var bool If true, fields type will be compared too - */ - private $compareTypes = true; - - /** - * @var int Store microtime of the script execution - */ - private $totalTime = 0; - - /** - * @var array Error log - */ - private $errors = array(); - - /** - * @var array Prefix for current database - */ - private $prefix; - - /** - * @var string Found versions - */ - private $versions = array(); - - /** - * Constructor, launch the compare algorithm - * - * @param bool $compareTypes If true, will compare field types - * @param bool $fastExecution If false, will loose some performance but log all errors - */ - public function __construct($compareTypes = true, $fastExecution = false) - { - // added for compatibility prestashop version < 1.3.7 - if(!defined('_PS_CACHE_ENABLED_')) - define('_PS_CACHE_ENABLED_', '0'); - - $this->installPath = INSTALL_PATH . '/'; - $this->prefix = _DB_PREFIX_; - $this->compareTypes = $compareTypes; - $this->fastExecution = $fastExecution; - - $start = microtime(true); - $this->generateSchemasFromUpdates(); - $this->getDatabaseSchema(); - $this->versions = $this->searchCurrentVersion(); - $this->totalTime = microtime(true) - $start; - } - - /** - * @return int Get total execution time of class - */ - public function getTotalTime() - { - return $this->totalTime; - } - - /** - * @return array Get list of differences between current database and all upgrades - */ - public function getErrors($version = null) - { - if (!is_null($version)) - { - return isset($this->errors[$version]) ? $this->errors[$version] : array(); - } - return $this->errors; - } - - /** - * @return string Get found versions - */ - public function getVersions() - { - return $this->versions; - } - - /** - * Add more informations in database schema property in order to fix some troubles with missing data between db.sql and upgrades - */ - private function completeDatabaseSchema() - { - // Add key "discount" in "discount_category" table, because the name is different between the 1.2.2 upgrade and db.sql - if (isset($this->currentSchema['discount_category']['@keys']['id_discount'])) - $this->currentSchema['discount_category']['@keys']['discount'] = $this->currentSchema['discount_category']['@keys']['id_discount']; - } - - /** - * Get the schema of all updates - */ - private function generateSchemasFromUpdates() - { - // Get list of sorted upgrades - $fd = opendir($this->installPath . 'sql/upgrade'); - while ($file = readdir($fd)) - { - if (substr($file, -3, 3) == 'sql' && version_compare(substr($file, 0, -4), INSTALL_VERSION) <= 0) - { - $list[] = $file; - } - } - closedir($fd); - usort($list, 'version_compare'); - $list = array_reverse($list); - - for ($i = 0, $total = count($list); $i < $total - 1; $i++) - { - $file = $list[$i]; - $next = $list[$i + 1]; - - $this->generateSchema(substr($file, 0, -4), substr($next, 0, -4)); - } - } - - /** - * Generate the schema of the given version - * - * @param string $currentVersion Version name - * @param string $nextVersion Next version - */ - private function generateSchema($currentVersion, $nextVersion) - { - static $storeTypes = array(); - - // Load db.sql once - if (is_null($this->generalSchema)) - { - $this->loadGeneralSchema(); - } - - $this->schemas[] = array( - 'name' => $nextVersion, - 'struct' => array(), - ); - - // Read queries in upgrade files, and reverse structure from db.sql - if (!file_exists($this->installPath . 'sql/upgrade/' . $currentVersion . '.sql')) - { - throw new Exception('File sql/upgrade/' . $currentVersion . '.sql not found'); - } - - $struct = (count($this->schemas) >= 2) ? $this->schemas[count($this->schemas) - 2]['struct'] : $this->generalSchema; - $content = file_get_contents($this->installPath . 'sql/upgrade/' . $currentVersion . '.sql'); - $queries = array_reverse(preg_split("/;\s*[\r\n]+/", $content)); - foreach ($queries as $query) - { - $query = trim($query); - - // ALTER TABLE -> add, delete or update fields - if (preg_match('#^alter\s+table\s+`?prefix_([a-z0-9_]+)`?\s+#si', $query, $m)) - { - $table = $m[1]; - - // Alter drop index - preg_match_all('#\s*drop\s+(index|primary key)(\s+`?([a-z0-9_]+)`?)?#si', $query, $m); - for ($i = 0, $total = count($m[0]); $i < $total; $i++) - { - $name = $m[3][$i]; - if (strtolower($m[1][$i]) == 'primary key') - { - $name = 'primary'; - } - - $struct[$table]['@keys'][$name] = '?'; - $query = str_replace($m[0][$i], '', $query); - } - - // Alter add index - preg_match_all('#\s*add\s+(index|primary key|key|unique key|unique)\s*\(?([a-z0-9_,`\s]+)\)?(\s+\(([a-z0-9_,` ]+)\))?\s*(,|;|$)#si', $query, $m); - for ($i = 0, $total = count($m[0]); $i < $total; $i++) - { - $name = str_replace(array('`', ' '), array('', ''), $m[2][$i]); - $tmpName = explode(',', $name); - $name = $tmpName[0]; - - if (strtolower($m[1][$i] == 'primary key')) - { - $name = 'primary'; - } - - if (isset($struct[$table]['@keys']) && !isset($struct[$table]['@keys'][$name])) - { - // If key name doesn't exist, we try to match with list of fields and type - $type = strtolower($m[1][$i]); - if ($type == 'primary key') - { - $type = 'primary'; - } - else if ($type == 'key') - { - $type = 'index'; - } - else if ($type == 'unique key') - { - $type = 'unique'; - } - - $fields = ($m[4][$i]) ? $m[4][$i] : $m[2][$i]; - $fields = explode(',', preg_replace('#[\s`]#si', '', $fields)); - - foreach ($struct[$table]['@keys'] as $key => $data) - { - if ($data['type'] == $type && !array_diff($data['fields'], $fields)) - { - // Found it ! - unset($struct[$table]['@keys'][$key]); - break; - } - } - } - else - { - unset($struct[$table]['@keys'][$name]); - } - $query = str_replace($m[0][$i], '', $query); - } - - // Alter add - preg_match_all('#\s*add\s+`?([a-z0-9_]+)`?\s+(([a-z]+)(\([ 0-9,]+\))?(\s+unsigned)?)(\s+not)?(\s+null)?(\s+auto_increment)?(\s+primary)?#si', $query, $m); - for ($i = 0, $total = count($m[0]); $i < $total; $i++) - { - unset($struct[$table][$m[1][$i]]); - if (strtolower(trim($m[9][$i])) == 'primary') - { - unset($struct[$table]['@keys']['primary']); - } - } - - // Alter drop - preg_match_all('#\s*drop\s+`?([a-z0-9_]+)`?#si', $query, $m); - for ($i = 0, $total = count($m[0]); $i < $total; $i++) - { - $struct[$table][$m[1][$i]] = '?'; - } - - // Alter change - preg_match_all('#\s*change\s+`([a-z0-9_]+)`\s+`?([a-z0-9_]+)`?\s+([a-z]+)(\s*\([ 0-9,]+\))?(\s+unsigned)?#si', $query, $m); - for ($i = 0, $total = count($m[0]); $i < $total; $i++) - { - if ($m[1][$i] != $m[2][$i]) - { - unset($struct[$table][$m[1][$i]]); - } - $struct[$table][$m[2][$i]] = '?'; - } - } - // CREATE TABLE -> delete this table from structure - else if (preg_match('#^create\s+table\s+(if\s+not\s+exists\s+)?`?prefix_([a-z0-9_]+)`?#si', $query, $m) && !preg_match('#_tmp[0-9]?$#i', $m[2])) - { - unset($struct[$m[2]]); - } - // DROP TABLE -> add this table in structure - else if (preg_match('#^drop\s*table\s+(if\s+exists\s+)?`?prefix_([a-z0-9_]+)`?#si', $query, $m) && !preg_match('#_tmp[0-9]?$#i', $m[2])) - { - $struct[$m[2]] = array(); - } - } - - $this->schemas[count($this->schemas) - 1]['struct'] = $struct; - } - - /** - * Read db.sql file and load tables structure - */ - private function loadGeneralSchema() - { - $this->generalSchema = array(); - if (!file_exists($this->installPath . 'sql/db.sql')) - { - throw new Exception('File sql/db.sql not found'); - } - - // Get create queries from db.sql file - $content = file_get_contents($this->installPath . 'sql/db.sql'); - $queries = preg_split("/;\s*[\r\n]+/", $content); - foreach ($queries as $query) - { - $query = trim($query); - if (!preg_match('#^create table `?prefix_([a-z0-9_]+)`?\s#i', $query, $m)) - { - continue; - } - - $table = $m[1]; - $this->generalSchema[$table] = array(); - - // Get fields list - preg_match_all('#(\(|,)\s*`?([a-z0-9_]+)`?\s+(([a-z]+)(\([ 0-9,]+\))?(\s+unsigned)?)\s*[^,]*#si', $query, $m); - for ($i = 0, $total = count($m[0]); $i < $total; $i++) - { - if (in_array(strtolower($m[2][$i]), array('primary', 'key', 'unique', 'index'))) - { - continue; - } - $this->generalSchema[$table][$m[2][$i]] = $this->parseType($m[4][$i]); - } - - // Get index - $this->generalSchema[$table]['@keys'] = array(); - preg_match_all('#(primary\s+key|unique\s+key|key|index)\s+\(?`?([a-z0-9_,` ]+)`?\)?(\s+\(([a-z0-9_,` ]+)\))?\s*(,|\))#si', $query, $m); - for ($i = 0, $total = count($m[0]); $i < $total; $i++) - { - $type = strtolower($m[1][$i]); - if ($type == 'primary key') - { - $type = 'primary'; - } - else if ($type == 'key') - { - $type = 'index'; - } - else if ($type == 'unique key') - { - $type = 'unique'; - } - - $name = str_replace(array('`', ' '), array('', ''), $m[2][$i]); - $tmpName = explode(',', $name); - $name = $tmpName[0]; - if ($type == 'primary') - { - $name = 'primary'; - } - - $fields = ($m[4][$i]) ? $m[4][$i] : $m[2][$i]; - $fields = explode(',', preg_replace('#[\s`]#si', '', $fields)); - - $this->generalSchema[$table]['@keys'][$name] = array( - 'type' => $type, - 'fields' => $fields, - ); - } - } - - $this->schemas[] = array( - 'name' => INSTALL_VERSION, - 'struct' => $this->generalSchema, - ); - } - - /** - * Get the schema of current database - */ - private function getDatabaseSchema() - { - $struct = array(); - $sql = 'SHOW TABLES'; - foreach (Db::getInstance()->executeS($sql) as $row) - { - $table = current($row); - if (substr($table, 0, strlen($this->prefix)) != $this->prefix) - { - continue; - } - - $virtualTable = substr($table, strlen($this->prefix)); - $struct[$virtualTable] = array(); - - // List fields - $sql = 'SHOW FIELDS FROM ' . $table; - foreach (Db::getInstance()->executeS($sql) as $rowField) - { - $struct[$virtualTable][$rowField['Field']] = $this->parseType($rowField['Type']); - } - - // List keys - $struct[$virtualTable]['@keys'] = array(); - $sql = 'SHOW INDEX FROM ' . $table; - $results = Db::getInstance()->executeS($sql); - if($results) - foreach ($results as $rowIndex) - { - $keyName = strtolower($rowIndex['Key_name']); - $type = 'index'; - if ($keyName == 'primary') - { - $type = 'primary'; - } - else if (!$rowIndex['Non_unique']) - { - $type = 'unique'; - } - - if (!isset($struct[$virtualTable]['@keys'][$keyName])) - { - $struct[$virtualTable]['@keys'][$keyName] = array( - 'type' => $type, - 'fields' => array(), - ); - } - $struct[$virtualTable]['@keys'][$keyName]['fields'][] = $rowIndex['Column_name']; - } - } - - $this->currentSchema = $struct; - $this->completeDatabaseSchema(); - } - - /** - * Launch comparison and search current version - */ - private function searchCurrentVersion() - { - $this->errors = array(); - $version = null; - $versions = array(); - $state = 0; - - // Browse all schema, we will compare all data of listed schema to current database structure, evertytime something is different - // we break and go to next schema - foreach ($this->schemas as $schema) - { - $struct = $schema['struct']; - $this->errors[$schema['name']] = array(); - $isThisVersion = true; - - // Browse all table for schema - foreach ($struct as $table => $fields) - { - // Is this table ignored ? - if (isset($this->ignore[$table]) && !$this->ignore[$table]) - { - continue; - } - - // Check if table exists - if (!isset($this->currentSchema[$table])) - { - $this->errors[$schema['name']][] = "Table '$table' not found"; - $isThisVersion = false; - - if ($this->fastExecution) - { - break; - } - continue; - } - - // Browse all fields for this table - foreach ($fields as $field => $type) - { - if ($field == '@keys') - { - continue; - } - - // Is this field ignored ? - if (isset($this->ignore[$table], $this->ignore[$table]['fields']) && in_array($field, $this->ignore[$table]['fields'])) - { - continue; - } - - // Check if field exists - if (!isset($this->currentSchema[$table][$field])) - { - $this->errors[$schema['name']][] = "Field '$field' in table '$table' not found"; - $isThisVersion = false; - - if ($this->fastExecution) - { - break 2; - } - continue; - } - - // Is this type ignored ? - if (isset($this->ignore[$table], $this->ignore[$table]['types']) && in_array($field, $this->ignore[$table]['types'])) - { - continue; - } - - // Compare the field type, ignore comparaison if we don't know the field type (? char) - if ($this->compareTypes && $type != '?' && $this->currentSchema[$table][$field] != $type) - { - $this->errors[$schema['name']][] = "The field '$field' in table '$table' has a different type ('$type' :: '{$this->currentSchema[$table][$field]}')"; - $isThisVersion = false; - - if ($this->fastExecution) - { - break 2; - } - } - } - - // Compare index - if (isset($fields['@keys'])) - { - foreach ($fields['@keys'] as $name => $data) - { - if ($data == '?') - { - continue; - } - - // Is this index ignored ? - if (isset($this->ignore[$table], $this->ignore[$table]['keys']) && in_array($name, $this->ignore[$table]['keys'])) - { - continue; - } - - // Test if index exists - if (!isset($this->currentSchema[$table]['@keys'][$name])) - { - $this->errors[$schema['name']][] = "Key '$name' in table '$table' not found"; - $isThisVersion = false; - - if ($this->fastExecution) - { - break 2; - } - continue; - } - - // Compare index type - if ($this->currentSchema[$table]['@keys'][$name]['type'] != $data['type']) - { - $this->errors[$schema['name']][] = "Key '$name' in table '$table' has different type ('{$this->currentSchema[$table]['@keys'][$name]['type']}', '{$data['type']}')"; - $isThisVersion = false; - - if ($this->fastExecution) - { - break 2; - } - } - - // Compare list of fields - $diff = array_diff($this->currentSchema[$table]['@keys'][$name]['fields'], $data['fields']); - if ($diff) - { - $this->errors[$schema['name']][] = "Key '$name' in table '$table' has different fields ('" . implode("', '", $diff) . "')"; - $isThisVersion = false; - - if ($this->fastExecution) - { - break 2; - } - } - } - } - } - - if ($isThisVersion) - { - $versions[] = $schema['name']; - $state = 1; - } - - if (!$isThisVersion && $state == 1) - { - break; - } - } - - return ($versions); - } - - /** - * Format correctly a field type name - * - * @param string $type Type name - * @return Parsed type name - */ - private function parseType($type) - { - $type = strtolower(preg_replace('#^([a-z]+).*$#i', '\\1', $type)); - $type = str_replace('boolean', 'tinyint', $type); - - return $type; - } -} diff --git a/install-dev/classes/Language.php b/install-dev/classes/Language.php deleted file mode 100644 index 9b46d326f..000000000 --- a/install-dev/classes/Language.php +++ /dev/null @@ -1,652 +0,0 @@ - -* @copyright 2007-2011 PrestaShop SA -* @version Release: $Revision: 7442 $ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -class Language extends ObjectModel -{ - public $id; - - /** @var string Name */ - public $name; - - /** @var string 2-letter iso code */ - public $iso_code; - - /** @var string 5-letter iso code */ - public $language_code; - - /** @var bool true if this language is right to left language */ - public $is_rtl = false; - - /** @var boolean Status */ - public $active = true; - - protected $fieldsRequired = array('name', 'iso_code'); - protected $fieldsSize = array('name' => 32, 'iso_code' => 2, 'language_code' => 5); - protected $fieldsValidate = array('name' => 'isGenericName', 'iso_code' => 'isLanguageIsoCode', 'language_code' => 'isLanguageCode', 'active' => 'isBool', 'is_rtl' => 'isBool'); - - protected $table = 'lang'; - protected $identifier = 'id_lang'; - - /** @var array Languages cache */ - protected static $_checkedLangs; - protected static $_LANGUAGES; - protected static $countActiveLanguages; - - protected $webserviceParameters = array( - 'objectNodeName' => 'language', - 'objectsNodeName' => 'languages', - ); - - public function __construct($id = NULL, $id_lang = NULL) - { - parent::__construct($id); - } - - public function getFields() - { - parent::validateFields(); - $fields['name'] = pSQL($this->name); - $fields['iso_code'] = pSQL(strtolower($this->iso_code)); - $fields['language_code'] = pSQL(strtolower($this->language_code)); - $fields['is_rtl'] = (int)$this->is_rtl; - if (empty($fields['language_code'])) - $fields['language_code'] = $fields['iso_code']; - $fields['active'] = (int)$this->active; - return $fields; - } - - public function add($autodate = true, $nullValues = false) - { - if (!parent::add($autodate)) - return false; - - $translationsFiles = array( - 'fields' => '_FIELDS', - 'errors' => '_ERRORS', - 'admin' => '_LANGADM', - 'pdf' => '_LANGPDF', - ); - if (!file_exists(_PS_TRANSLATIONS_DIR_.$this->iso_code)) - mkdir(_PS_TRANSLATIONS_DIR_.$this->iso_code); - foreach ($translationsFiles as $file => $var) - if (!file_exists(_PS_TRANSLATIONS_DIR_.$this->iso_code.'/'.$file.'.php')) - file_put_contents(_PS_TRANSLATIONS_DIR_.$this->iso_code.'/'.$file.'.php', ''); - - $resUpdateSQL = $this->loadUpdateSQL(); - // If url_rewrite is not enabled, we don't need to regenerate .htaccess - if(!Configuration::get('PS_REWRITING_SETTINGS')) - return $resUpdateSQL; - - return ($resUpdateSQL AND Tools::generateHtaccess(dirname(__FILE__).'/../.htaccess', - (int)(Configuration::get('PS_REWRITING_SETTINGS')), - (int)(Configuration::get('PS_HTACCESS_CACHE_CONTROL')), - '' - )); - } - - public function toggleStatus() - { - if (!parent::toggleStatus()) - return false; - - // If url_rewrite is not enabled, we don't need to regenerate .htaccess - if(!Configuration::get('PS_REWRITING_SETTINGS')) - return true; - return (Tools::generateHtaccess(dirname(__FILE__).'/../.htaccess', - (int)(Configuration::get('PS_REWRITING_SETTINGS')), - (int)(Configuration::get('PS_HTACCESS_CACHE_CONTROL')), - '' - )); - } - - public function checkFiles() - { - return self::checkFilesWithIsoCode($this->iso_code); - } - - - /** - * This functions checks if every files exists for the language $iso_code. - * Concerned files are those located in translations/$iso_code/ - * and translations/mails/$iso_code . - * - * @param mixed $iso_code - * @returntrue if all files exists - */ - public static function checkFilesWithIsoCode($iso_code) - { - if (isset(self::$_checkedLangs[$iso_code]) AND self::$_checkedLangs[$iso_code]) - return true; - foreach (array_keys(self::getFilesList($iso_code, _THEME_NAME_, false, false, false, true)) as $key) - if (!file_exists($key)) - return false; - self::$_checkedLangs[$iso_code] = true; - return true; - } - - public static function getFilesList($iso_from, $theme_from, $iso_to = false, $theme_to = false, $select = false, $check = false, $modules = false) - { - if (empty($iso_from)) - die(Tools::displayError()); - - $copy = ($iso_to AND $theme_to) ? true : false; - - $lPath_from = _PS_TRANSLATIONS_DIR_.(string)$iso_from.'/'; - $tPath_from = _PS_ROOT_DIR_.'/themes/'.(string)$theme_from.'/'; - $mPath_from = _PS_MAIL_DIR_.(string)$iso_from.'/'; - - if ($copy) - { - $lPath_to = _PS_TRANSLATIONS_DIR_.(string)$iso_to.'/'; - $tPath_to = _PS_ROOT_DIR_.'/themes/'.(string)$theme_to.'/'; - $mPath_to = _PS_MAIL_DIR_.(string)$iso_to.'/'; - } - - $lFiles = array('admin'.'.php', 'errors'.'.php', 'fields'.'.php', 'pdf'.'.php'); - $mFiles = array( - 'account.html', 'account.txt', - 'bankwire.html', 'bankwire.txt', - 'cheque.html', 'cheque.txt', - 'contact.html', 'contact.txt', - 'contact_form.html', 'contact_form.txt', - 'credit_slip.html', 'credit_slip.txt', - 'download_product.html', 'download_product.txt', - 'download-product.tpl', - 'employee_password.html', 'employee_password.txt', - 'forward_msg.html', 'forward_msg.txt', - 'guest_to_customer.html', 'guest_to_customer.txt', - 'in_transit.html', 'in_transit.txt', - 'newsletter.html', 'newsletter.txt', - 'order_canceled.html', 'order_canceled.txt', - 'order_conf.html', 'order_conf.txt', - 'order_customer_comment.html', 'order_customer_comment.txt', - 'order_merchant_comment.html', 'order_merchant_comment.txt', - 'order_return_state.html', 'order_return_state.txt', - 'outofstock.html', 'outofstock.txt', - 'password.html', 'password.txt', - 'password_query.html', 'password_query.txt', - 'payment.html', 'payment.txt', - 'payment_error.html', 'payment_error.txt', - 'preparation.html', 'preparation.txt', - 'refund.html', 'refund.txt', - 'reply_msg.html', 'reply_msg.txt', - 'shipped.html', 'shipped.txt', - 'test.html', 'test.txt', - 'voucher.html', 'voucher.txt', - ); - - $number = -1; - - $files = array(); - $files_tr = array(); - $files_theme = array(); - $files_mail = array(); - $files_modules = array(); - - - // When a copy is made from a theme in specific language - // to an other theme for the same language, - // it's avoid to copy Translations, Mails files - // and modules files which are not override by theme. - if (!$copy OR $iso_from != $iso_to) - { - // Translations files - if (!$check OR ($check AND (string)$iso_from != 'en')) - foreach ($lFiles as $file) - $files_tr[$lPath_from.$file] = ($copy ? $lPath_to.$file : ++$number); - if ($select == 'tr') - return $files_tr; - $files = array_merge($files, $files_tr); - - // Mail files - if (!$check OR ($check AND (string)$iso_from != 'en')) - $files_mail[$mPath_from.'lang.php'] = ($copy ? $mPath_to.'lang.php' : ++$number); - foreach ($mFiles as $file) - $files_mail[$mPath_from.$file] = ($copy ? $mPath_to.$file : ++$number); - if ($select == 'mail') - return $files_mail; - $files = array_merge($files, $files_mail); - - // Modules - if ($modules) - { - $modList = Module::getModulesDirOnDisk(); - foreach ($modList as $mod) - { - $modDir = _PS_MODULE_DIR_.$mod; - // Lang file - if (file_exists($modDir.'/'.(string)$iso_from.'.php')) - $files_modules[$modDir.'/'.(string)$iso_from.'.php'] = ($copy ? $modDir.'/'.(string)$iso_to.'.php' : ++$number); - // Mails files - $modMailDirFrom = $modDir.'/mails/'.(string)$iso_from; - $modMailDirTo = $modDir.'/mails/'.(string)$iso_to; - if (file_exists($modMailDirFrom)) - { - $dirFiles = scandir($modMailDirFrom); - foreach ($dirFiles as $file) - if (file_exists($modMailDirFrom.'/'.$file) AND $file != '.' AND $file != '..' AND $file != '.svn') - $files_modules[$modMailDirFrom.'/'.$file] = ($copy ? $modMailDirTo.'/'.$file : ++$number); - } - } - if ($select == 'modules') - return $files_modules; - $files = array_merge($files, $files_modules); - } - } - else if ($select == 'mail' OR $select == 'tr') - { - return $files; - } - - // Theme files - if (!$check OR ($check AND (string)$iso_from != 'en')) - { - $files_theme[$tPath_from.'lang/'.(string)$iso_from.'.php'] = ($copy ? $tPath_to.'lang/'.(string)$iso_to.'.php' : ++$number); - $module_theme_files = (file_exists($tPath_from.'modules/') ? scandir($tPath_from.'modules/') : array()); - foreach ($module_theme_files as $module) - if ($module !== '.' AND $module != '..' AND $module !== '.svn' AND file_exists($tPath_from.'modules/'.$module.'/'.(string)$iso_from.'.php')) - $files_theme[$tPath_from.'modules/'.$module.'/'.(string)$iso_from.'.php'] = ($copy ? $tPath_to.'modules/'.$module.'/'.(string)$iso_to.'.php' : ++$number); - } - if ($select == 'theme') - return $files_theme; - $files = array_merge($files, $files_theme); - - // Return - return $files; - } - - /** - * loadUpdateSQL will create default lang values when you create a new lang, based on default id lang - * - * @return boolean true if succeed - */ - public function loadUpdateSQL() - { - $tables = Db::getInstance()->executeS('SHOW TABLES LIKE \''._DB_PREFIX_.'%_lang\' '); - $langTables = array(); - - foreach($tables as $table) - foreach($table as $t) - $langTables[] = $t; - - Db::getInstance()->execute('SET @id_lang_default = (SELECT c.`value` FROM `'._DB_PREFIX_.'configuration` c WHERE c.`name` = \'PS_LANG_DEFAULT\' LIMIT 1)'); - $return = true; - foreach($langTables as $name) - { - $fields = ''; - $columns = Db::getInstance()->executeS('SHOW COLUMNS FROM `'.$name.'`'); - foreach($columns as $column) - $fields .= $column['Field'].', '; - $fields = rtrim($fields, ', '); - $identifier = 'id_'.str_replace('_lang', '', str_replace(_DB_PREFIX_, '', $name)); - - $sql = 'INSERT IGNORE INTO `'.$name.'` ('.$fields.') (SELECT '; - foreach($columns as $column) { - if ($identifier != $column['Field'] and $column['Field'] != 'id_lang') - $sql .= '(SELECT `'.$column['Field'].'` FROM `'.$name.'` tl WHERE tl.`id_lang` = @id_lang_default AND tl.`'.$identifier.'` = `'.str_replace('_lang', '', $name).'`.`'.$identifier.'`), '; - else - $sql.= '`'.$column['Field'].'`, '; - } - $sql = rtrim($sql, ', '); - $sql .= ' FROM `'._DB_PREFIX_.'lang` CROSS JOIN `'.str_replace('_lang', '', $name).'`) ;'; - $return &= Db::getInstance()->execute(pSQL($sql)); - } - return $return; - } - - public static function recurseDeleteDir($dir) - { - if (!is_dir($dir)) - return false; - if ($handle = @opendir($dir)) - { - while (false !== ($file = readdir($handle))) - if ($file != '.' && $file != '..') - { - if (is_dir($dir.'/'.$file)) - self::recurseDeleteDir($dir.'/'.$file); - elseif (file_exists($dir.'/'.$file)) - @unlink($dir.'/'.$file); - } - closedir($handle); - } - rmdir($dir); - } - - public function delete() - { - if (empty($this->iso_code)) - $this->iso_code = self::getIsoById($this->id); - - // Database translations deletion - $result = Db::getInstance()->executeS('SHOW TABLES FROM `'._DB_NAME_.'`'); - foreach ($result AS $row) - if (preg_match('/_lang/', $row['Tables_in_'._DB_NAME_])) - if (!Db::getInstance()->execute('DELETE FROM `'.$row['Tables_in_'._DB_NAME_].'` WHERE `id_lang` = '.(int)($this->id))) - return false; - - // Delete tags - Db::getInstance()->execute('DELETE FROM '._DB_PREFIX_.'tag WHERE id_lang = '.(int)($this->id)); - - // Delete search words - Db::getInstance()->execute('DELETE FROM '._DB_PREFIX_.'search_word WHERE id_lang = '.(int)($this->id)); - - // Files deletion - foreach (self::getFilesList($this->iso_code, _THEME_NAME_, false, false, false, true, true) as $key => $file) - if (file_exists($key)) - unlink($key); - $modList = scandir(_PS_MODULE_DIR_); - foreach ($modList as $mod) - { - self::recurseDeleteDir(_PS_MODULE_DIR_.$mod.'/mails/'.$this->iso_code); - $files = @scandir(_PS_MODULE_DIR_.$mod.'/mails/'); - if (count($files) <= 2) - self::recurseDeleteDir(_PS_MODULE_DIR_.$mod.'/mails/'); - - if(file_exists(_PS_MODULE_DIR_.$mod.'/'.$this->iso_code.'.php')) - { - unlink(_PS_MODULE_DIR_.$mod.'/'.$this->iso_code.'.php'); - $files = @scandir(_PS_MODULE_DIR_.$mod); - if (count($files) <= 2) - self::recurseDeleteDir(_PS_MODULE_DIR_.$mod); - } - } - - if (file_exists(_PS_MAIL_DIR_.$this->iso_code)) - self::recurseDeleteDir(_PS_MAIL_DIR_.$this->iso_code); - if (file_exists(_PS_TRANSLATIONS_DIR_.$this->iso_code)) - self::recurseDeleteDir(_PS_TRANSLATIONS_DIR_.$this->iso_code); - if (!parent::delete()) - return false; - - // delete images - $files_copy = array('/en.jpg', '/en-default-thickbox.jpg', '/en-default-home.jpg', '/en-default-large.jpg', '/en-default-medium.jpg', '/en-default-small.jpg', '/en-default-large_scene.jpg'); - $tos = array(_PS_CAT_IMG_DIR_, _PS_MANU_IMG_DIR_, _PS_PROD_IMG_DIR_, _PS_SUPP_IMG_DIR_); - foreach($tos AS $to) - foreach($files_copy AS $file) - { - $name = str_replace('/en', ''.$this->iso_code, $file); - - if (file_exists($to.$name)) - unlink($to.$name); - if (file_exists(dirname(__FILE__).'/../img/l/'.$this->id.'.jpg')) - unlink(dirname(__FILE__).'/../img/l/'.$this->id.'.jpg'); - } - - // If url_rewrite is not enabled, we don't need to regenerate .htaccess - if(!Configuration::get('PS_REWRITING_SETTINGS')) - return true; - - return Tools::generateHtaccess(dirname(__FILE__).'/../.htaccess', - (int)(Configuration::get('PS_REWRITING_SETTINGS')), - (int)(Configuration::get('PS_HTACCESS_CACHE_CONTROL')), - '' - ); - } - - - public function deleteSelection($selection) - { - if (!is_array($selection) OR !Validate::isTableOrIdentifier($this->identifier) OR !Validate::isTableOrIdentifier($this->table)) - die(Tools::displayError()); - $result = true; - foreach ($selection AS $id) - { - $this->id = (int)($id); - $result = $result AND $this->delete(); - } - - // If url_rewrite is not enabled, we don't need to regenerate .htaccess - if(!Configuration::get('PS_REWRITING_SETTINGS')) - return true; - - Tools::generateHtaccess(dirname(__FILE__).'/../.htaccess', - (int)(Configuration::get('PS_REWRITING_SETTINGS')), - (int)(Configuration::get('PS_HTACCESS_CACHE_CONTROL')), - '' - ); - - return $result; - } - - /** - * Return available languages - * - * @param boolean $active Select only active languages - * @return array Languages - */ - public static function getLanguages($active = true) - { - if(!self::$_LANGUAGES) - self::loadLanguages(); - - $languages = array(); - foreach (self::$_LANGUAGES AS $language) - { - if ($active AND !$language['active']) - continue; - $languages[] = $language; - } - return $languages; - } - - public static function getLanguage($id_lang) - { - if (!array_key_exists((int)($id_lang), self::$_LANGUAGES)) - return false; - return self::$_LANGUAGES[(int)($id_lang)]; - } - - /** - * Return iso code from id - * - * @param integer $id_lang Language ID - * @return string Iso code - */ - public static function getIsoById($id_lang) - { - if (isset(self::$_LANGUAGES[(int)$id_lang]['iso_code'])) - return self::$_LANGUAGES[(int)$id_lang]['iso_code']; - return false; - } - - /** - * Return id from iso code - * - * @param string $iso_code Iso code - * @return integer Language ID - */ - public static function getIdByIso($iso_code) - { - if (!Validate::isLanguageIsoCode($iso_code)) - die(Tools::displayError('Fatal error : iso code is not correct : ').$iso_code); - - return Db::getInstance()->getValue('SELECT `id_lang` FROM `'._DB_PREFIX_.'lang` WHERE `iso_code` = \''.pSQL(strtolower($iso_code)).'\''); - } - - public static function getLanguageCodeByIso($iso_code) - { - if (!Validate::isLanguageIsoCode($iso_code)) - die(Tools::displayError('Fatal error : iso code is not correct : ').$iso_code); - - return Db::getInstance()->getValue('SELECT `language_code` FROM `'._DB_PREFIX_.'lang` WHERE `iso_code` = \''.pSQL(strtolower($iso_code)).'\''); - } - - /** - * Return array (id_lang, iso_code) - * - * @param string $iso_code Iso code - * @return array Language (id_lang, iso_code) - */ - public static function getIsoIds($active = true) - { - return Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('SELECT `id_lang`, `iso_code` FROM `'._DB_PREFIX_.'lang` '.($active ? 'WHERE active = 1' : '')); - } - - public static function copyLanguageData($from, $to) - { - $result = Db::getInstance()->executeS('SHOW TABLES FROM `'._DB_NAME_.'`'); - foreach ($result AS $row) - if (preg_match('/_lang/', $row['Tables_in_'._DB_NAME_]) AND $row['Tables_in_'._DB_NAME_] != _DB_PREFIX_.'lang') - { - $result2 = Db::getInstance()->executeS('SELECT * FROM `'.$row['Tables_in_'._DB_NAME_].'` WHERE `id_lang` = '.(int)($from)); - if (!sizeof($result2)) - continue; - Db::getInstance()->execute('DELETE FROM `'.$row['Tables_in_'._DB_NAME_].'` WHERE `id_lang` = '.(int)($to)); - $query = 'INSERT INTO `'.$row['Tables_in_'._DB_NAME_].'` VALUES '; - foreach ($result2 AS $row2) - { - $query .= '('; - $row2['id_lang'] = $to; - foreach ($row2 AS $field) - $query .= '\''.pSQL($field, true).'\','; - $query = rtrim($query, ',').'),'; - } - $query = rtrim($query, ','); - Db::getInstance()->execute($query); - } - return true; - } - - /** - * Load all languages in memory for caching - */ - public static function loadLanguages() - { - self::$_LANGUAGES = array(); - - $result = Db::getInstance()->executeS(' - SELECT `id_lang`, `name`, `iso_code`, `active` - FROM `'._DB_PREFIX_.'lang`'); - - foreach ($result AS $row) - self::$_LANGUAGES[(int)$row['id_lang']] = array('id_lang' => (int)$row['id_lang'], 'name' => $row['name'], 'iso_code' => $row['iso_code'], 'active' => (int)$row['active']); - } - - public function update($nullValues = false) - { - if (!parent::update($nullValues)) - return false; - - // If url_rewrite is not enabled, we don't need to regenerate .htaccess - if(!Configuration::get('PS_REWRITING_SETTINGS')) - return true; - - return Tools::generateHtaccess(dirname(__FILE__).'/../.htaccess', - (int)(Configuration::get('PS_REWRITING_SETTINGS')), - (int)(Configuration::get('PS_HTACCESS_CACHE_CONTROL')), - '' - ); - } - - public static function checkAndAddLanguage($iso_code) - { - if (Language::getIdByIso($iso_code)) - return true; - else - { - if(@fsockopen('api.prestashop.com', 80)) - { - $lang = new Language(); - $lang->iso_code = $iso_code; - $lang->active = true; - - if ($lang_pack = Tools::jsonDecode(Tools::file_get_contents('http://api.prestashop.com/download/lang_packs/get_language_pack.php?version='._PS_VERSION_.'&iso_lang='.$iso_code))) - { - if (isset($lang_pack->name) - && isset($lang_pack->version) - && isset($lang_pack->iso_code)) - $lang->name = $lang_pack->name; - } - if (!$lang->name OR !$lang->add()) - return false; - $insert_id = (int)($lang->id); - - if ($lang_pack) - { - $flag = Tools::file_get_contents('http://api.prestashop.com/download/lang_packs/flags/jpeg/'.$iso_code.'.jpg'); - if ($flag != NULL && !preg_match('/
/', $flag)) - { - $file = fopen(dirname(__FILE__).'/../img/l/'.$insert_id.'.jpg', 'w'); - if ($file) - { - fwrite($file, $flag); - fclose($file); - } - else - self::_copyNoneFlag($insert_id); - } - else - self::_copyNoneFlag($insert_id); - } - else - self::_copyNoneFlag($insert_id); - - $files_copy = array('/en.jpg', '/en-default-thickbox.jpg', '/en-default-home.jpg', '/en-default-large.jpg', '/en-default-medium.jpg', '/en-default-small.jpg', '/en-default-large_scene.jpg'); - $tos = array(_PS_CAT_IMG_DIR_, _PS_MANU_IMG_DIR_, _PS_PROD_IMG_DIR_, _PS_SUPP_IMG_DIR_); - foreach($tos AS $to) - foreach($files_copy AS $file) - { - $name = str_replace('/en', '/'.$iso_code, $file); - copy(dirname(__FILE__).'/../img/l'.$file, $to.$name); - } - return true; - } - else - return false; - } - } - - protected static function _copyNoneFlag($id) - { - return copy(dirname(__FILE__).'/../img/l/none.jpg', dirname(__FILE__).'/../img/l/'.$id.'.jpg'); - } - - private static $_cache_language_installation = null; - public static function isInstalled($iso_code) - { - if (self::$_cache_language_installation === null) - { - self::$_cache_language_installation = array(); - $result = Db::getInstance()->executeS('SELECT `id_lang`, `iso_code` FROM `'._DB_PREFIX_.'lang`'); - foreach ($result as $row) - self::$_cache_language_installation[$row['iso_code']] = $row['id_lang']; - } - return (isset(self::$_cache_language_installation[$iso_code]) ? self::$_cache_language_installation[$iso_code] : false); - } - - public static function countActiveLanguages() - { - if (!self::$countActiveLanguages) - self::$countActiveLanguages = Db::getInstance()->getValue('SELECT COUNT(*) FROM `'._DB_PREFIX_.'lang` WHERE `active` = 1'); - return self::$countActiveLanguages; - } -} - diff --git a/install-dev/classes/LanguagesManager.php b/install-dev/classes/LanguagesManager.php deleted file mode 100644 index 4beda9429..000000000 --- a/install-dev/classes/LanguagesManager.php +++ /dev/null @@ -1,110 +0,0 @@ - -* @copyright 2007-2011 PrestaShop SA -* @version Release: $Revision: 6844 $ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -class LanguageManager -{ - private $url_xml; - private $lang; - private $xml_file; - - function __construct ($url_xml) - { - $this->loadXML($url_xml); - $this->setLanguage(); - $this->getIncludeTradFilename(); - } - - private function loadXML($url_xml) - { - global $errors; - if (!$this->xml_file = simplexml_load_file($url_xml)) - $errors = 'Error when loading XML language file : '.$url_xml; - } - - public function getIdSelectedLang() - { - return $this->lang['id']; - } - - public function getIsoCodeSelectedLang() - { - return $this->lang->idLangPS; - } - - public function countLangs() - { - return sizeof($this->xml_file); - } - - public function getAvailableLangs() - { - return $this->xml_file; - } - - public function getSelectedLang() - { - return $this->lang; - } - - /** get the http_accept_language isocode (if exists), - * and use it to find the corresponding prestashop id_lang - * otherwise, return 0. - * @return int id_lang to use - */ - private function getIdByHAL(){ - if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) - { - $FirstHAL = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']); - $iso = $FirstHAL[0]; - if ($iso != "en-us") - foreach ($this->xml_file as $lang) - foreach ($lang->isos->iso as $anIso) - if ($anIso == $iso) - return $lang['id']; - } - else - return 0; - } - - /** set lang property with param $_GET['language'] if present, - * or by $_SERVER['HTTP_ACCEPT_LANGUAGE'] otherwise - */ - private function setLanguage() - { - if (isset($_GET['language'])) - $id_lang = (int)($_GET['language'])>0 ? $_GET['language'] : 0; - if (!isset($id_lang)) - $id_lang = ($this->getIdByHAL()); - $this->lang = $this->xml_file->lang[(int)($id_lang)]; - } - - public function getIncludeTradFilename() - { - return ($this->lang == NULL) ? false : dirname(__FILE__).$this->lang['trad_file']; - } -} - diff --git a/install-dev/classes/Module.php b/install-dev/classes/Module.php deleted file mode 100644 index 3a313b170..000000000 --- a/install-dev/classes/Module.php +++ /dev/null @@ -1,1057 +0,0 @@ - -* @copyright 2007-2011 PrestaShop SA -* @version Release: $Revision: 7441 $ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -abstract class Module -{ - /** @var integer Module ID */ - public $id = NULL; - - /** @var float Version */ - public $version; - - /** @var string Unique name */ - public $name; - - /** @var string Human name */ - public $displayName; - - /** @var string A little description of the module */ - public $description; - - /** @var string author of the module */ - public $author; - - /** @var int need_instance */ - public $need_instance = 1; - - /** @var string Admin tab correponding to the module */ - public $tab = NULL; - - /** @var boolean Status */ - public $active = false; - - /** @var array current language translations */ - protected $_lang = array(); - - /** @var string Module web path (eg. '/shop/modules/modulename/') */ - protected $_path = NULL; - - /** @var string Fill it if the module is installed but not yet set up */ - public $warning; - - /** @var string Message display before uninstall a module */ - public $beforeUninstall = NULL; - - public $_errors = false; - - protected $table = 'module'; - - protected $identifier = 'id_module'; - - static public $_db; - - /** @var array to store the limited country */ - public $limited_countries = array(); - - /** - * Constructor - * - * @param string $name Module unique name - */ - protected static $modulesCache; - protected static $_hookModulesCache; - - protected static $_INSTANCE = array(); - - protected static $_generateConfigXmlMode = false; - - protected static $l_cache = array(); - - /** - * @var array used by AdminTab to determine which lang file to use (admin.php or module lang file) - */ - public static $classInModule = array(); - - public function __construct($name = NULL) - { - if ($this->name == NULL) - $this->name = $this->id; - if ($this->name != NULL) - { - if (self::$modulesCache == NULL AND !is_array(self::$modulesCache)) - { - self::$modulesCache = array(); - $result = Db::getInstance()->executeS('SELECT * FROM `'.pSQL(_DB_PREFIX_.$this->table).'`'); - foreach ($result as $row) - self::$modulesCache[$row['name']] = $row; - } - if (isset(self::$modulesCache[$this->name])) - { - $this->active = true; - $this->id = self::$modulesCache[$this->name]['id_module']; - foreach (self::$modulesCache[$this->name] AS $key => $value) - if (key_exists($key, $this)) - $this->{$key} = $value; - $this->_path = __PS_BASE_URI__.'modules/'.$this->name.'/'; - } - } - } - - /** - * Insert module into datable - */ - public function install() - { - if (!Validate::isModuleName($this->name)) - die(Tools::displayError()); - $result = Db::getInstance()->getRow(' - SELECT `id_module` - FROM `'._DB_PREFIX_.'module` - WHERE `name` = \''.pSQL($this->name).'\''); - if ($result) - return false; - $result = Db::getInstance()->AutoExecute(_DB_PREFIX_.$this->table, array('name' => $this->name, 'active' => 1), 'INSERT'); - if (!$result) - return false; - $this->id = Db::getInstance()->Insert_ID(); - return true; - } - - /** - * Delete module from datable - * - * @return boolean result - */ - public function uninstall() - { - if (!Validate::isUnsignedId($this->id)) - return false; - $result = Db::getInstance()->executeS(' - SELECT `id_hook` - FROM `'._DB_PREFIX_.'hook_module` hm - WHERE `id_module` = '.(int)($this->id)); - foreach ($result AS $row) - { - Db::getInstance()->execute(' - DELETE FROM `'._DB_PREFIX_.'hook_module` - WHERE `id_module` = '.(int)($this->id).' - AND `id_hook` = '.(int)($row['id_hook'])); - $this->cleanPositions($row['id_hook']); - } - return Db::getInstance()->execute(' - DELETE FROM `'._DB_PREFIX_.'module` - WHERE `id_module` = '.(int)($this->id)); - } - - /** - * This function enable module $name. If an $name is an array, - * this will enable all of them - * - * @param array|string $name - * @return true if succeed - * @since 1.4.1 - */ - public static function enableByName($name) - { - if (!is_array($name)) - $name = array($name); - - foreach ($name as $k=>$v) - $name[$k] = '"'.pSQL($v).'"'; - - return Db::getInstance()->execute(' - UPDATE `'._DB_PREFIX_.'module` - SET `active`= 1 - WHERE `name` IN ('.implode(',',$name).')'); - } - /** - * Called when module is set to active - */ - public function enable() - { - return Db::getInstance()->execute(' - UPDATE `'._DB_PREFIX_.'module` - SET `active`= 1 - WHERE `name` = \''.pSQL($this->name).'\''); - } - - /** - * This function disable module $name. If an $name is an array, - * this will disable all of them - * - * @param array|string $name - * @return true if succeed - * @since 1.4.1 - */ - public static function disableByName($name) - { - if (!is_array($name)) - $name = array($name); - - foreach ($name as $k=>$v) - $name[$k] = '"'.pSQL($v).'"'; - - return Db::getInstance()->execute(' - UPDATE `'._DB_PREFIX_.'module` - SET `active`= 0 - WHERE `name` IN ('.implode(',',$name).')'); - } - - /** - * Called when module is set to deactive - */ - public function disable() - { - return Module::disableByName($this->name); - } - - /** - * Connect module to a hook - * - * @param string $hook_name Hook name - * @return boolean result - */ - public function registerHook($hook_name) - { - if (!Validate::isHookName($hook_name)) - die(Tools::displayError()); - if (!isset($this->id) OR !is_numeric($this->id)) - return false; - - // Check if already register - $result = Db::getInstance()->getRow(' - SELECT hm.`id_module` FROM `'._DB_PREFIX_.'hook_module` hm, `'._DB_PREFIX_.'hook` h - WHERE hm.`id_module` = '.(int)($this->id).' - AND h.`name` = \''.pSQL($hook_name).'\' - AND h.`id_hook` = hm.`id_hook`'); - if ($result) - return true; - - // Get hook id - $result = Db::getInstance()->getRow(' - SELECT `id_hook` - FROM `'._DB_PREFIX_.'hook` - WHERE `name` = \''.pSQL($hook_name).'\''); - if (!isset($result['id_hook'])) - return false; - - // Get module position in hook - $result2 = Db::getInstance()->getRow(' - SELECT MAX(`position`) AS position - FROM `'._DB_PREFIX_.'hook_module` - WHERE `id_hook` = '.(int)($result['id_hook'])); - if (!$result2) - return false; - - // Register module in hook - $return = Db::getInstance()->execute(' - INSERT INTO `'._DB_PREFIX_.'hook_module` (`id_module`, `id_hook`, `position`) - VALUES ('.(int)($this->id).', '.(int)($result['id_hook']).', '.(int)($result2['position'] + 1).')'); - - $this->cleanPositions((int)($result['id_hook'])); - - return $return; - } - - /** - * Display flags in forms for translations - * - * @param array $languages All languages available - * @param integer $defaultLanguage Default language id - * @param string $ids Multilingual div ids in form - * @param string $id Current div id] - * #param boolean $return define the return way : false for a display, true for a return - */ - public function displayFlags($languages, $defaultLanguage, $ids, $id, $return = false) - { - if (sizeof($languages) == 1) - return false; - $output = ' -
-
';
- $output .= '
'.$error.'
-
'.$string.'
- Error during install/upgrade: '+data.responseText.replace(/<\/?[^>]+>/gi, '')+'
You may have to:
PrestaShop requires PHP5 or later, you are currently running: '.phpversion().'
- '.lang('If you do not know how to enable it, use our turnkey solution PrestaBox at').' http://www.prestabox.com.
-
-
-
- getIsoCodeSelectedLang(), array('fr', 'it', 'de', 'en', 'es')) ? $lm->getIsoCodeSelectedLang() : 'en');
- echo lang('Prestashop and its community offers over 40 different languages for free download at');
-
- ?>
http://www.prestashop.com//downloads/#lang_pack
-
-
-
-
-
-
- - -
- -Curved ahead of the curve.
\r\nFor those about to rock, we give you nine amazing colors. But that''s only part of the story. Feel the curved, all-aluminum and glass design and you won''t want to put iPod nano down.
\r\nGreat looks. And brains, too.
\r\nThe new Genius feature turns iPod nano into your own highly intelligent, personal DJ. It creates playlists by finding songs in your library that go great together.
\r\nMade to move with your moves.
\r\nThe accelerometer comes to iPod nano. Give it a shake to shuffle your music. Turn it sideways to view Cover Flow. And play games designed with your moves in mind.
', 'New design. New features. Now in 8GB and 16GB. iPod nano rocks like never before.
', 'ipod-nano', '', '', '', 'iPod Nano', 'In stock', ''), -(1, 2, 'Des courbes avantageuses.
\r\nPour les amateurs de sensations, voici neuf nouveaux coloris. Et ce n''est pas tout ! Faites l''expérience du design elliptique en aluminum et verre. Vous ne voudrez plus le lâcher.
\r\nBeau et intelligent.
\r\nLa nouvelle fonctionnalité Genius fait d''iPod nano votre DJ personnel. Genius crée des listes de lecture en recherchant dans votre bibliothèque les chansons qui vont bien ensemble.
\r\nFait pour bouger avec vous.
\r\niPod nano est équipé de l''accéléromètre. Secouez-le pour mélanger votre musique. Basculez-le pour afficher Cover Flow. Et découvrez des jeux adaptés à vos mouvements.
', 'Nouveau design. Nouvelles fonctionnalités. Désormais en 8 et 16 Go. iPod nano, plus rock que jamais.
', 'ipod-nano', '', '', '', 'iPod Nano', 'En stock', ''), -(2, 1, 'Instant attachment.
\r\nWear up to 500 songs on your sleeve. Or your belt. Or your gym shorts. iPod shuffle is a badge of musical devotion. Now in new, more brilliant colors.
\r\nFeed your iPod shuffle.
\r\niTunes is your entertainment superstore. It’s your ultra-organized music collection and jukebox. And it’s how you load up your iPod shuffle in one click.
\r\nBeauty and the beat.
\r\nIntensely colorful anodized aluminum complements the simple design of iPod shuffle. Now in blue, green, pink, red, and original silver.
', 'iPod shuffle, the world’s most wearable music player, now clips on in more vibrant blue, green, pink, and red.
', 'ipod-shuffle', '', '', '', 'iPod shuffle', 'In stock', ''), -(2, 2, 'Un lien immédiat.
\r\nPortez jusqu''à 500 chansons accrochées à votre manche, à votre ceinture ou à votre short. Arborez votre iPod shuffle comme signe extérieur de votre passion pour la musique. Existe désormais en quatre nouveaux coloris encore plus éclatants.
\r\nEmplissez votre iPod shuffle.
\r\niTunes est un immense magasin dédié au divertissement, une collection musicale parfaitement organisée et un jukebox. Vous pouvez en un seul clic remplir votre iPod shuffle de chansons.
\r\nLa musique en technicolor.
\r\niPod shuffle s''affiche désormais dans de nouveaux coloris intenses qui rehaussent le design épuré du boîtier en aluminium anodisé. Choisissez parmi le bleu, le vert, le rose, le rouge et l''argenté d''origine.
', 'iPod shuffle, le baladeur le plus portable du monde, se clippe maintenant en bleu, vert, rose et rouge.
', 'ipod-shuffle', '', '', '', 'iPod shuffle', 'En stock', ''), -(5, 1, 'MacBook Air is nearly as thin as your index finger. Practically every detail that could be streamlined has been. Yet it still has a 13.3-inch widescreen LED display, full-size keyboard, and large multi-touch trackpad. It’s incomparably portable without the usual ultraportable screen and keyboard compromises.
The incredible thinness of MacBook Air is the result of numerous size- and weight-shaving innovations. From a slimmer hard drive to strategically hidden I/O ports to a lower-profile battery, everything has been considered and reconsidered with thinness in mind.
MacBook Air is designed and engineered to take full advantage of the wireless world. A world in which 802.11n Wi-Fi is now so fast and so available, people are truly living untethered — buying and renting movies online, downloading software, and sharing and storing files on the web.
', 'MacBook Air is ultrathin, ultraportable, and ultra unlike anything else. But you don’t lose inches and pounds overnight. It’s the result of rethinking conventions. Of multiple wireless innovations. And of breakthrough design. With MacBook Air, mobile computing suddenly has a new standard.', 'macbook-air', '', '', '', 'MacBook Air', '', NULL), -(5, 2, 'MacBook Air est presque aussi fin que votre index. Pratiquement tout ce qui pouvait être simplifié l''a été. Il n''en dispose pas moins d''un écran panoramique de 13,3 pouces, d''un clavier complet et d''un vaste trackpad multi-touch. Incomparablement portable il vous évite les compromis habituels en matière d''écran et de clavier ultra-portables.
L''incroyable finesse de MacBook Air est le résultat d''un grand nombre d''innovations en termes de réduction de la taille et du poids. D''un disque dur plus fin à des ports d''E/S habilement dissimulés en passant par une batterie plus plate, chaque détail a été considéré et reconsidéré avec la finesse à l''esprit.
MacBook Air a été conçu et élaboré pour profiter pleinement du monde sans fil. Un monde dans lequel la norme Wi-Fi 802.11n est désormais si rapide et si accessible qu''elle permet véritablement de se libérer de toute attache pour acheter des vidéos en ligne, télécharger des logicééééiels, stocker et partager des fichiers sur le Web.
', 'MacBook Air est ultra fin, ultra portable et ultra différent de tout le reste. Mais on ne perd pas des kilos et des centimètres en une nuit. C''est le résultat d''une réinvention des normes. D''une multitude d''innovations sans fil. Et d''une révolution dans le design. Avec MacBook Air, l''informatique mobile prend soudain une nouvelle dimension.', 'macbook-air', '', '', '', 'MacBook Air', '', NULL), -(6, 1, 'Every MacBook has a larger hard drive, up to 250GB, to store growing media collections and valuable data.View rich HTML email with photos as well as PDF, Word, and Excel attachments. Get maps, directions, and real-time traffic information. Take notes and read stock and weather reports.
\r\nThe revolutionary Multi-Touch technology built into the gorgeous 3.5-inch display lets you pinch, zoom, scroll, and flick with your fingers.
\r\nWith the Safari web browser, see websites the way they were designed to be seen and zoom in and out with a tap.2 And add Web Clips to your Home screen for quick access to favorite sites.
\r\nparagraphe...
\r\nparagraphe...
\r\nparagraphe...
\r\n| th | th | th | \r\n
|---|---|---|
| td | \r\ntd | \r\ntd | \r\n
| td | \r\ntd | \r\ntd | \r\n
Consultez vos e-mails au format HTML enrichi, avec photos et pieces jointes au format PDF, Word et Excel. Obtenez des cartes, des itinéraires et des informations sur l''état de la circulation en temps réel. Rédigez des notes et consultez les cours de la Bourse et les bulletins météo.
\r\nLa technologie multi-touch révolutionnaire intégrée au superbe écran de 3,5 pouces vous permet d''effectuer des zooms avant et arrière, de faire défiler et de feuilleter des pages à l''aide de vos seuls doigts.
\r\nAvec le navigateur Safari, vous pouvez consulter des sites web dans leur mise en page d''origine et effectuer un zoom avant et arrière d''une simple pression sur l''écran.
\r\n', '
Interface multi-touch révolutionnaire
Écran panoramique couleur de 3,5 pouces
Wi-Fi (802.11b/g)
8 mm d''épaisseur
Safari, YouTube, iTunes Wi-Fi Music Store, Courrier, Cartes, Bourse, Météo, Notes
Lorem ipsum
', 'Lorem ipsum
', 'belkin-leather-folio-for-ipod-nano-black-chocolate', '', '', '', 'Belkin Leather Folio for iPod nano - Black / Chocolate', '', NULL), -(8, 2, 'Caractéristiques
\r\nCet étui en cuir tendance assure une protection complète contre les éraflures et les petits aléas de la vie quotidienne. Sa conception élégante et compacte vous permet de glisser votre iPod directement dans votre poche ou votre sac à main.
', 'housse-portefeuille-en-cuir-ipod-nano-noir-chocolat', '', '', '', 'Housse portefeuille en cuir (iPod nano) - Noir/Chocolat', '', NULL), -(9, 1, 'Evolved from personal monitor technology road-tested by pro musicians and perfected by Shure engineers, the lightweight and stylish SE210 delivers full-range audio that''s free from outside noise.
', 'ecouteurs-a-isolation-sonore-shure-se210-blanc', '', '', '', 'Shure SE210 Sound-Isolating Earphones for iPod and iPhone', '', NULL), -(9, 2, 'Basés sur la technologie des moniteurs personnels testée sur la route par des musiciens professionnels et perfectionnée par les ingénieurs Shure, les écouteurs SE210, légers et élégants, fournissent une sortie audio à gamme étendue exempte de tout bruit externe.
Conception à isolation sonore
Les embouts à isolation sonore fournis bloquent plus de 90 % du bruit ambiant. Combinés à un design ergonomique séduisant et un câble modulaire, ils minimisent les intrusions du monde extérieur, vous permettant de vous concentrer sur votre musique. Conçus pour les amoureux de la musique qui souhaitent faire évoluer leur appareil audio portable, les écouteurs SE210 vous permettent d''emmener la performance avec vous.
Micro-transducteur haute définition
Développés pour une écoute de qualité supérieure en déplacement, les écouteurs SE210 utilisent un seul transducteur à armature équilibrée pour bénéficier d''une gamme audio étendue. Le résultat ? Un confort d''écoute époustouflant qui restitue tous les détails d''un spectacle live.
Le kit universel Deluxe comprend les éléments suivants :
- Embouts à isolation sonore
Les embouts à isolation sonore inclus ont un double rôle : bloquer les bruits ambiants et garantir un maintien et un confort personnalisés. Comme chaque oreille est différente, le kit universel Deluxe comprend trois tailles (S, M, L) d''embouts mousse et flexibles. Choisissez la taille et le style d''embout qui vous conviennent le mieux : une bonne étanchéité est un facteur clé pour optimiser l''isolation sonore et la réponse des basses, ainsi que pour accroître le confort en écoute prolongée.
- Câble modulaire
En se basant sur les commentaires de nombreux utilisateurs, les ingénieurs de Shure ont développé une solution de câble détachable pour permettre un degré de personnalisation sans précédent. Le câble de 1 mètre fourni vous permet d''adapter votre confort en fonction de l''activité et de l''application.
- Étui de transport
Outre les embouts à isolation sonore et le câble modulaire, un étui de transport compact et résistant est fourni avec les écouteurs SE210 pour vous permettre de ranger vos écouteurs de manière pratique et sans encombres.
- Garantie limitée de deux ans
Chaque solution SE210 achetée est couverte par une garantie pièces et main-d''œuvre de deux ans.
Caractéristiques techniques
Contenu du coffret
Les écouteurs à isolation sonore ergonomiques et légers offrent la reproduction audio la plus fidèle en provenance de sources audio stéréo portables ou de salon.
', 'ecouteurs-a-isolation-sonore-shure-se210', '', '', '', 'Écouteurs à isolation sonore Shure SE210', '', NULL), -(7, 3, 'Cinco nuevas aplicaciones a mano
\r\n
Consulta tu correo en formato HTML enriquecido, con fotos y ficheros adjuntos en formato PDF, Word y Excel. Consigue mapas, itinerarios e información sobre el estado de la carreteras en tiempo real. Escribe notas y consulta la bolsa y el tiempo.
Alcanza con un dedo tu música y tus videos, entre otras cosas.
La tecnología multi-touch revolucionaria integrada a la magnífica pantalla de 3,5 pulgadas te permitirá efectuar zoom hacia adelante y hacia atrás, y pasar y ojear las páginas solo con la ayuda de tus dedos.
Internet en tu bolsillo
\r\nCon el navegador Safari, podrás consultar sitios web en su compaginación de origen y efectuar un zoom hacia adelante y hacia atrás con la simple presión de un dedo en la pantalla.
\r\nContenido del estuche
* iPod touch
* Auriculares
* Cable USB 2.0
* Adaptador Dock
* Paño de limpieza
* Base
* Guía de inicio rápido
Título
Párrafo
Interfaz multi-touch revolucionaria
Pantalla panorámica color de 3,5 pulgadas
Wi-Fi (802.11b/g)
8 mm de espesor
Safari, YouTube, iTunes Wi-Fi Music Store, Correo, Mapas, Bolsa, El tiempo, Notas
Curvas aerodinámicas.
\r\nPara los aficionados a las sensaciones fuertes, os presentamos nueve nuevos colores. ¡ Y eso no es todo ! Experimenta el diseño elíptico de aluminio y vidrio. ¡ No querrás separarte de él nunca más !
\r\n
Estético e inteligente.
La nueva aplicación Genius hace de iPod nano tu discjockey personal. Genuis crea listas de lectura buscando en tu biblioteca las canciones que combinan entre si.
\r\n
Hecho para moverse contigo.
iPod nano está equipado de un acelerómetro. Muévelo para mezclar tu música. Voltéalo para mostrar Cover Flow. Y descubre juegos adaptados a tus movimientos.
Nuevo diseño. Nuevas aplicaciones. Ahora disponible en 8 y 16 Go. iPod nano, más rock que nunca.
', 'ipod-nano', '', '', '', 'iPod Nano', 'Disponible', ''), -(2, 3, 'Un enlace inmediato.
Lleva hasta 500 canciones colgadas de tu manga, de tu cinturón o de tu pantalón. Presume con tu iPod shuffle como signo exterior de tu pasión por la música. Ahora ya existen cuatro nuevos colores más llamativos.
Llena tu iPod shuffle.
iTunes es una enorme tienda dedicada a la diversión, una colección de música organizada perfectamente y un jukebox. Con tan solo un clic puedes llenar tu iPod shuffle con canciones.
La música en tecnicolor.
iPod shuffle presenta nuevos colores vivos que realzan su diseño estilizado en aluminio anodizado. Elige entre azul, verde, rosa, rojo y el plateado de origen.
iPod shuffle, el walkman más portátil del mundo, ahora en azul, verde, rosa y rojo.
', 'ipod-shuffle', '', '', '', 'iPod shuffle', 'Disponible', ''), -(6, 3, 'Cada MacBook está equipado de un disco duro más espacioso, de una capacidad de hasta 250 Go, para almacenar tus colecciones multimedia en expansión y tus datos más preciados.
El modelo MacBook de 2,4 GHz integra 2 Go de memoria en estándar. Lo ideal para realizar sin dificultad tus aplicaciones preferidas.
MacBook te ofrece una gran libertad de movimientos gracias a su exterior resistente en policarbonato, a su tecnología sin cable y a su adaptador cargador sector innovador que se desconecta automáticamente si alguien se engancha en el cable.
', 'macbook', '', '', '', 'MacBook', 'Disponible', ''), -(5, 3, 'MacBook Air es casi tan fino como tu dedo. Se ha simplificado al máximo y a pesar de ello dispone de una pantalla panorámica de 13,3 pulgadas, de un teclado completo y de un amplio trackpad multi-touch. Portátil al 100%, te evitará tener que hacer un compromiso en lo que concierne a la pantalla y al teclado.
La increíble sutileza de MacBook Air es el resultado de un gran número de innovaciones en materia de reducción de tamaño y peso. Desde un disco duro más fino hasta puertos E/S disimulados hábilmente pasando por una batería más plana, cada detalle se consideró para que el resultado fuera lo más fino posible.
MacBook Air fue creado y elaborado para disfrutar plenamente del mundo inalámbrico. Un mundo en el que la norma Wi-Fi 802.11n es tan rápida y accesible que permite liberarse completamente de cualquier atadura para comprar videos en línea, descargar programas, almacenar y compartir archivos en la Red.
MacBook Air es ultra fino, ultra portátil y ultra diferente de todo el resto. Pero no se pierden kilos y centímetros en tan solo una noche. Todo esto es el resultado de un nuevo invento de normas. De un sinfín de novedades sin cable. Y de una revolución en el diseño. Con MacBook Air, la informática móvil adquiere una nueva dimensión.
', 'macbook-air', '', '', '', 'MacBook Air', 'Disponible', ''), -(8, 3, 'Características
\r\nEste estuche de cuero de última moda garantiza una completa protección contra los arañazos y los pequeños contratiempos de la vida diaria. Su diseño elegante y compacto te permite meter tu Ipod directamente en tu bolsillo o en tu bolso.
', 'funda-cuero-ipod-nano-negro-chocolate', '', '', '', 'Leather Case (iPod nano) - Negro / Chocolate', 'Disponible', ''), -(9, 3, 'Los auriculares SE210, ligeros y elegantes, están basados en la tecnología de los monitores personales que los músicos profesionales utilizan en carretera y que los ingenieros de Shure han perfeccionado. También están provistos de una salida audio de gama extendida exenta de todo ruido exterior.
Creado para un aislamiento sonoro
Las almohadillas provistas de un aislamiento sonoro bloquean más del 90% del ruido ambiente. Combinadas con un diseño ergonómico atractivo y un cable modular, minimizan las intrusiones del mundo exterior y te permiten concentrarte en tu música. Creados para los apasionados por la música que quieren que su aparato audio móvil evolucione, los auriculares SE210 te permitirán llevar la tecnología allí donde tú vayas.
Micro-transductor alta definición
Desarrollados para poder tener una audición de calidad durante los desplazamientos, los auriculares SE210 utilizan un único transductor con un armazón equilibrado para poder disfrutar de una gama audio extendida. ¿El resultado ? Un confort audio increíble que restituye cada detalle de un espectáculo en directo.
El kit universal Deluxe incluye los siguientes elementos :
- Almohadillas para aislamiento sonoro
Las almohadillas para el aislamiento sonoro tienen una doble función : bloquear el ruido ambiente y garantizar una estabilidad y un confort personalizados. Como cada oreja es diferente el kit universal Deluxe incluye tres tallas (S, M, L) de almohadillas de espuma y flexibles. Elige la talla y el estilo de almohadilla que mejor te convenga : un buen aislamiento es un factor clave tanto para optimizar el aislamiento sonoro y la respuesta de los bajos como para aumentar el confort durante una audición prolongada.
- Cable modular
Basándose en los comentarios de los numerosos usuarios, los ingenieros de Shure han creado una solución de cable separable para permitir un grado de personalización sin precedentes. El cable de 1 metro te permite adaptar el confort en función de la actividad del momento y de la aplicación.
- Estuche para el transporte
Además de las almohadillas de aislamiento sonoro y del cable modular, los auriculares SE210 están provistos de un estuche de transporte compacto y resistente para guardar los auriculares de manera práctica y sin dificultad.
- Garantía límite de dos años
Cada solución SE210 tiene una garantía piezas y mano de obra de dos años.
Características técnicas
Contenido de la caja
Los auriculares con aislamiento ergonómicos y ligeros ofrecen la reproducción más fiel proveniente de fuentes audio estéreo móviles o de salón.
', 'auriculares-aislantes-del-sonido-shure-se210', '', '', '', 'Auriculares aislantes del sonido Shure SE210', 'Disponible', ''), -(1, 4, 'Immer eine Kurve voraus.
\r\nFür all die, die gleich losrocken wollen, gibt es jetzt neun tolle Farben zur Auswahl. Aber das ist nur ein Teil der Geschichte. Mit seinem runden Design, das komplett aus Aluminium und Glas besteht, werden Sie den iPod nano nicht mehr weglegen wollen.
\r\nTolles Design. Und viel Köpfchen.
\r\nDie neue Genius-Funktion verwandelt den iPod nano in Ihren hoch intelligenten, persönlichen DJ. Es erstellt Abspiellisten aus den Songs in Ihrer Sammlung, die gut zusammenpassen.
\r\nPasst sich Ihren Bewegungen an.
\r\nDer iPod nano jetzt mit Beschleunigungsmesser. Einmal schütteln, und Ihre Musik wird neu sortiert. Kippen Sie es zur Seite für die Cover Flow-Ansicht. Und spielen Sie mit den Bewegungen, an die Sie denken.
', 'New design. New features. Now in 8GB and 16GB. iPod nano rocks like never before.
', 'ipod-nano', '', '', '', 'iPod Nano', 'In stock', ''), -(2, 4, 'style="font-size: small;">Gleich festmachen.
\r\nTragen Sie bis zu 500 Songs am Ärmel. Oder an Ihrem Gürtel. Oder an Ihrer Sporthose. iPod shuffle ist ein Erkennungszeichen echter Musikfans. Jetzt in neuen, noch leuchtenderen Farben.
\r\nstyle="font-size: small;">Füttern Sie Ihren iPod shuffle.
\r\niTunes ist Ihr Super-Store für Unterhaltung. Es ist Ihre optimal organisierte Musik-Sammlung und Jukebox. Und Sie können Ihren iPod shuffle mit einem Klick laden.
\r\nstyle="font-size: small;">Die Schöne und der Beat.
\r\nDas farbintensive eloxierte Aluminium ergänzt das schlichte Design des iPod shuffle. Jetzt in Blau, Grün, Rosa, Rot und klassischem Silber.
', 'iPod shuffle, the worldâs most wearable music player, now clips on in more vibrant blue, green, pink, and red.
', 'ipod-shuffle', '', '', '', 'iPod shuffle', 'In stock', ''), -(5, 4, 'MacBook Air ist kaum dicker als Ihr Zeigefinger. Nahezu jedes Detail wurde abgeflacht. Und dabei hat es immer noch einen 13,3-Zoll-Widescreen-LED-Display, eine Tastatur in voller Größe und einen großen Multi-Touch-Trackpad. Es besitzt eine unvergleichliche Tragbarkeit, ohne die üblichen Kompromisse für ultraportable Bildschirme und Tastaturen.
Der unglaublich dünne MacBook Air ist das Ergebnis zahlreicher Innovationen zur Größen- und Gewichtsoptimierung. Die flachere Festplatte, die strategisch versteckten I/O-Ports und eine noch flachere Batterie: Alles wurde immer wieder überdacht, immer mit dem Ziel, es noch dünner zu gestalten.Das Design und Konzept von MacBook Air ist voll auf die Vorteile der Kabelfreiheit ausgerichtet. Eine Welt, in der 802.11n WLAN heutzutage so schnell und so leicht verfügbar ist, dass die Menschen heute grenzenlos Filme online kaufen oder mieten, Software downloaden und Dateien über das Internet teilen oder speichern können. ', 'MacBook Air is ultrathin, ultraportable, and ultra unlike anything else. But you donât lose inches and pounds overnight. Itâs the result of rethinking conventions. Of multiple wireless innovations. And of breakthrough design. With MacBook Air, mobile computing suddenly has a new standard.', 'macbook-Air', '', '', '', 'MacBook Air', '', NULL), -(6, 4, 'Jedes MacBook verfügt über eine größere Festplatte, bis zu 250GB, zum Speichern immer größer werdender Mediensammlungen und wertvoller Daten.Rich-HTML-E-Mails mit Fotos anzeigen sowie PDF-, Word-und Excel-Anhänge. Holen Sie sich Karten, Wegbeschreibungen und Echtzeit-Verkehrsinformationen. Sie können sich Notizen machen und Börsen- und Wetterberichte lesen.
\r\nMit der revolutionären, in den wunderschönen 3,5-Zoll-Display integrierten Multi-Touch-Technologie können Sie zuziehen, zoomen, scrollen und streichen.
\r\nMit dem Safari-Webbrowser sehen Sie Webseiten so, wie sie gesehen werden sollten und vergrößern und verkleinern sie mit einer Berührung.2Fügen Sie Web-Clips zu Ihrer Startseite hinzu für den Schnellzugriff auf Ihre bevorzugten Webseiten.
\r\nLorem ipsum
', 'Lorem ipsum
', 'lederhulle-belkin-fur-ipod-nano-schwarz-schokolade', '', '', '', 'Lederhülle Belkin für ipod nano - Schwarz/Schokolade', '', NULL), -(9, 4, 'Evolved from personal monitor technology road-tested by pro musicians and perfected by Shure engineers, the lightweight and stylish SE210 delivers full-range audio that''s free from outside noise.
', 'klangisolierte-ohrhorer-shure-se210-weib', '', '', '', 'Shure SE210 Klangisolierte Ohrhörer für iPod und iPhone', '', NULL), -(1, 5, 'Curve mozzafiato.
\r\nPer te che ami le sensazioni forti, ecco nove fantastici colori. Ma non è finito qui. Accarezza il design sinuoso fatto di vetro e alluminio dell\'iPod nano, e non lo lascerai più.
\r\nBello e intelligente.
\r\nLa nuova funzione Genius trasforma l\'iPod nano nel tuo DJ personale. Sa creare delle playlist andando a cercare nella libreria musicale le canzoni che stanno bene insieme.
\r\nFatto per muoversi con te.
\r\nL\'accelerometro è integrato all\'iPod nano. Scuotilo per dare uno shuffle alla tua musica. Ruotalo di lato per vedere il Cover Flow. E divertiti con i giochi adattati alle tue movenze.
', 'Nuovo design. Nuove funzioni. Adesso in 8GB e 16GB. iPod nano, forte come non mai.
', 'ipod-nano', '', '', '', 'iPod Nano', 'In magazzino', ''), -(2, 5, 'Sempre attaccato.
\r\nMetti 500 canzoni in tasca. O nella cintura. O nei pantaloncini. iPod shuffle ti fa avere le canzoni sempre addosso. Adesso in colori più nuovi e brillanti.
\r\nRicarica il tuo iPod shuffle.
\r\niTunes è il tuo superstore del divertimento. La tua raccolta musicale super organizzata, il tuo juke-box. E puoi ricaricare il tuo iPod shuffle con un click.
\r\nMusica coloratissima.
\r\nComplementi dai colori intensi in alluminio anodizzato: questo è il design semplice di iPod shuffle. Adesso in blu, verde rosa, rosso, e argento originale.
', 'iPod shuffle, il lettore musicale più indossabile del mondo, adesso anche nelle tonalità più vibranti di blu, verde, rosa e rosso.
', 'ipod-shuffle', '', '', '', 'iPod shuffle', 'In magazzino', ''), -(5, 5, 'MacBook Air è sottile quasi come il tuo indice. Praticamente ogni dettaglio è stato semplificato al massimo. Eppure riesce ad avere uno schermo LED di 13,3 pollici, tastiera completa, e un ampio track-pad multi-touch. Incredibilmente portatile, non soffre dei compromessi tra schermo e tastiera.
La sottigliezza incredibile di MacBook Air è il risultato di moltissime innovazioni nel campo della riduzione di dimensioni e peso. Un hard drive più sottile, porte I/O strategicamente nascoste, batteria più piatta: tutto è stato ben calibrato pensando sempre alla sottigliezza.
MacBook Air è stato progettato e realizzato per godere a pieno dell\'universo del wireless. In un mondo in cui la norma 802.11n Wi-Fi è ormai rapida e disponibile, le persone vivono connesse - acquistano e noleggiano film online, scaricano programmi, condividono e conservano file nel web.
', 'MacBook Air è ultra-piatto, ultra-portatile, e ultra come nient\'altro al mondo. Ma non si perdono chili e centimetri in una notte. E\' il risultato di una rielaborazione degli standard. Di moltissime innovazioni sul wireless. E di un design rivoluzionario. Con MacBook Air, l\'informatica mobile acquista una nuova dimensione.', 'macbook-air', '', '', '', 'MacBook Air', '', NULL), -(6, 5, 'Tutti i MacBook hanno un hard drive più ampio, fino a 250GB, per conservare le tue raccolte multimediali e i dati importanti.Consulta le tue e-mail in formato rich HTML con foto e allegati PDF, Word, e Excel. Ottieni mappe, indicazioni stradali e sul traffico in tempo reale. Prendi appunti e consulta la Borsa e le previsioni meteo.
\r\nLa rivoluzionaria tecnologia Multi-Touch integrata al bellissimo schermo da 3,5 pollici ti permette di zoomare avanti e indietro, sfogliare e far scorrere le pagine con le dita.
\r\nCon il web browser Safari, consulta i siti web nella loro impaginazione originale e usa lo zoom avanti e indietro con la sola pressione delle dita.2 Aggiungi Web Clips al tuo schermo per accedere subito ai siti preferiti.
\r\nLorem ipsum
', 'Lorem ipsum
', 'custodia-portafoglio-in-pelle-belkin-per-ipod-nano-nero-cioccolato', '', '', '', 'Custodia portafoglio in pelle Belkin per iPod nano - Nero/Cioccolato', '', NULL), -(9, 5, 'Basati sulla tecnologia all\'avanguardia, testati da musicisti professionisti, e messi a punto da ingegneri Shure, i leggeri ed eleganti SE210 offrono un suono nitido e privo di rumori di fondo.
', 'ecouteurs-a-isolation-sonore-shure-se210-blanc', '', '', '', 'auricolari-sound-isolating-shure-se210-per-ipod-e-iphone', '', NULL); - -INSERT INTO `PREFIX_specific_price` (`id_product`, `id_shop`, `id_group_shop`, `id_currency`, `id_country`, `id_group`, `id_product_attribute`, `price`, `from_quantity`, `reduction`, `reduction_type`, `from`, `to`) VALUES -(1, 0, 0, 0, 0, 0, 0, 0, 1, 0.05, 'percentage', '0000-00-00 00:00:00', '0000-00-00 00:00:00'); - -INSERT INTO `PREFIX_category` (`id_category`, `id_parent`, `level_depth`, `nleft`, `nright`, `active`, `date_add`, `date_upd`, `position`) VALUES -(2, 1, 1, 2, 3, 1, NOW(), NOW(), 0),(3, 1, 1, 3, 4, 1, NOW(), NOW(), 1),(4, 1, 1, 4, 5, 1, NOW(), NOW(), 2); - -INSERT INTO `PREFIX_category_lang` (`id_category`, `id_lang`, `name`, `description`, `link_rewrite`, `meta_title`, `meta_keywords`, `meta_description`) VALUES -(2, 1, 'iPods', 'Now that you can buy movies from the iTunes Store and sync them to your iPod, the whole world is your theater.', 'music-ipods', '', '', ''), -(2, 2, 'iPods', 'Il est temps, pour le meilleur lecteur de musique, de remonter sur scène pour un rappel. Avec le nouvel iPod, le monde est votre scène.', 'musique-ipods', '', '', ''), -(3, 1, 'Accessories', 'Wonderful accessories for your iPod', 'accessories-ipod', '', '', ''), -(3, 2, 'Accessoires', 'Tous les accessoires à la mode pour votre iPod', 'accessoires-ipod', '', '', ''), -(4, 1, 'Laptops', 'The latest Intel processor, a bigger hard drive, plenty of memory, and even more new features all fit inside just one liberating inch. The new Mac laptops have the performance, power, and connectivity of a desktop computer. Without the desk part.', 'laptops', 'Apple laptops', 'Apple laptops MacBook Air', 'Powerful and chic Apple laptops'), -(4, 2, 'Portables', 'Le tout dernier processeur Intel, un disque dur plus spacieux, de la mémoire à profusion et d''autres nouveautés. Le tout, dans à peine 2,59 cm qui vous libèrent de toute entrave. Les nouveaux portables Mac réunissent les performances, la puissance et la connectivité d''un ordinateur de bureau. Sans la partie bureau.', 'portables-apple', 'Portables Apple', 'portables apple macbook air', 'portables apple puissants et design'), -(4, 3, 'Portátiles', 'El último procesador Intel, un disco duro más grande, con profusión de memoria y otras novedades. Todo en sólo 2,59 cm libres de cualquier obstrucción. Las nuevas portátiles Mac cumplir rendimiento, potencia y conectividad de una computadora de escritorio. Sin la parte del escritorio.', 'portatiles-apple', 'Portátiles Apple', 'portátiles apple macbook air', 'portátiles apple poderoso y el diseño'), -(3, 3, 'Accesorios', 'Todos los accesorios de moda para tu iPod', 'ipod-accesorios', '', '', ''), -(2, 3, 'iPods', 'Es hora de que el mejor jugador de la música, al escenario para hacer un bis. Con el nuevo iPod, el mundo es tu escenario.', 'musica-ipods', '', '', ''), -(2, 4, 'iPods', 'Now that you can buy movies from the iTunes Store and sync them to your iPod, the whole world is your theater.', 'musik-iPods', '', '', ''), -(3, 4, 'Zubehör', 'Wonderful accessories for your iPod', 'zubehor-ipod', '', '', ''), -(4, 4, 'Laptops', 'The latest Intel processor, a bigger hard drive, plenty of memory, and even more new features all fit inside just one liberating inch. The new Mac laptops have the performance, power, and connectivity of a desktop computer. Without the desk part.', 'laptops', 'Apple laptops', 'Apple MacBook Air-Laptops', 'Powerful and chic Apple laptops'), -(2, 5, 'iPods', 'Adesso che puoi acquistare film dall\'iTunes Store e inserirli nel tuo iPod, il tuo mondo è un palcoscenico.', 'musica-ipods', '', '', ''), -(3, 5, 'Accessori', 'Fantastici accessori per il tuo iPod', 'accessori-ipod', '', '', ''), -(4, 5, 'Laptop', 'L\'ultimissimo processore Intel, hard drive più ampio, moltissima memoria, e ancora più funzioni tutte inserite in 2,54 centimetri. I nuovi laptop Mac offrono le prestazioni, la potenza e la connettività di un computer da tavolo. Senza bisogno del tavolo.', 'laptop', 'laptop Apple', 'laptot Apple MacBook Air', 'Laptop Apple potenti ed eleganti'); - -INSERT INTO `PREFIX_category_product` (`id_category`, `id_product`, `position`) VALUES -(1, 1, 0),(1, 2, 1),(1, 6, 2),(1, 7, 3),(2, 1, 0),(2, 2, 1),(2, 7, 2),(3, 8, 0),(3, 9, 1),(4, 5, 0),(4, 6, 1); - -INSERT INTO `PREFIX_attribute_group` (`id_attribute_group`, `is_color_group`, `group_type`, `position`) VALUES (1, 0, 'select', 0),(2, 1, 'color', 1),(3, 0, 'select', 2); -INSERT INTO `PREFIX_attribute_group_group_shop` (`id_attribute_group`, `id_group_shop`) (SELECT `id_attribute_group`, 1 FROM `PREFIX_attribute_group`); -INSERT INTO `PREFIX_attribute_group_lang` (`id_attribute_group`, `id_lang`, `name`, `public_name`) VALUES -(1, 1, 'Disk space', 'Disk space'),(1, 2, 'Capacité', 'Capacité'),(2, 1, 'Color', 'Color'),(2, 2, 'Couleur', 'Couleur'),(3, 1, 'ICU', 'Processor'), -(3, 2, 'ICU', 'Processeur'),(1, 3, 'Capacidad', 'Capacidad'),(2, 3, 'Color', 'Color'),(3, 3, 'ICU', 'Procesador'),(1, 4, 'Speicherplatz', 'Disk space'),(2, 4, 'Farbe', 'Color'),(3, 4, 'ICU', 'Processor'),(1, 5, 'Spazio disco', 'Spazio disco'),(2, 5, 'Colore', 'Colore'),(3, 5, 'ICU', 'Processore'); - -INSERT INTO `PREFIX_attribute_impact` (`id_attribute_impact`, `id_product`, `id_attribute`, `weight`, `price`) VALUES -(1, 1, 2, 0, 60.00),(2, 1, 5, 0, 0.00),(3, 1, 16, 0, 50.00),(4, 1, 15, 0, 0.00),(5, 1, 4, 0, 0.00),(6, 1, 19, 0, 0.00),(7, 1, 3, 0, 0.00),(8, 1, 14, 0, 0.00), -(9, 1, 7, 0, 0.00),(10, 1, 20, 0, 0.00),(11, 1, 6, 0, 0.00),(12, 1, 18, 0, 0.00); - -INSERT INTO `PREFIX_scene` (`id_scene`, `active`) VALUES (1, 1),(2, 1),(3, 1); -INSERT INTO `PREFIX_scene_category` (`id_scene`, `id_category`) VALUES (1, 2),(2, 2),(3, 4); -INSERT INTO `PREFIX_scene_shop` (`id_scene`, `id_shop`) VALUES (1, 1),(2, 1),(3, 1); - -INSERT INTO `PREFIX_scene_lang` (`id_scene`, `id_lang`, `name`) VALUES -(1, 1, 'The iPods Nano'),(1, 2, 'Les iPods Nano'),(1, 3, 'El iPod Nano'),(1, 4, 'Die iPods Nano'),(1, 5, 'Gli iPod Nano'), -(2, 1, 'The iPods'),(2, 2, 'Les iPods'),(2, 3, 'El iPod'),(2, 4, 'Die iPods'),(2, 5, 'Gli iPod'), -(3, 1, 'The MacBooks'),(3, 2, 'Les MacBooks'),(3, 3, 'El MacBook'),(3, 4, 'Die MacBooks'),(3, 5, 'I MacBook'); - -INSERT INTO `PREFIX_scene_products` (`id_scene`, `id_product`, `x_axis`, `y_axis`, `zone_width`, `zone_height`) VALUES -(1, 1, 474, 15, 72, 166),(2, 2, 389, 137, 51, 46),(2, 7, 111, 83, 161, 108),(2, 1, 340, 31, 46, 151),(3, 6, 355, 37, 151, 103),(3, 6, 50, 47, 128, 84), -(3, 5, 198, 47, 137, 92),(1, 1, 394, 14, 73, 168),(1, 1, 318, 14, 69, 168),(1, 1, 244, 14, 66, 169),(1, 1, 180, 13, 59, 168),(1, 1, 6, 12, 30, 175), -(1, 1, 38, 12, 30, 170),(1, 1, 76, 14, 41, 169),(1, 1, 123, 13, 49, 169); - -INSERT INTO `PREFIX_attribute` (`id_attribute`, `id_attribute_group`, `position`) VALUES (1, 1, 0),(2, 1, 1),(8, 1, 2),(9, 1, 3),(10, 3, 0),(11, 3, 1),(12, 1, 4),(13, 1, 5); -INSERT INTO `PREFIX_attribute` (`id_attribute`, `id_attribute_group`, `color`, `position`) VALUES (3, 2, '#D2D6D5', 0),(4, 2, '#008CB7', 1),(5, 2, '#F3349E', 2),(6, 2, '#93D52D', 3), -(7, 2, '#FD9812', 4),(15, 1, '', 6),(16, 1, '', 7),(17, 1, '', 8),(18, 2, '#7800F0', 5),(19, 2, '#F6EF04', 6),(20, 2, '#F60409', 7),(14, 2, '#000000', 8); - -INSERT INTO `PREFIX_attribute_group_shop` (`id_attribute`, `id_group_shop`) (SELECT `id_attribute`, 1 FROM `PREFIX_attribute`); - -INSERT INTO `PREFIX_attribute_lang` VALUES (1, 1, '2GB'),(1, 2, '2Go'),(1, 3, '2Go'),(2, 1, '4GB'),(2, 2, '4Go'),(2, 3, '4Go'),(3, 1, 'Metal'),(3, 2, 'Metal'),(3, 3, 'Metal'), -(4, 1, 'Blue'),(4, 2, 'Bleu'),(4, 3, 'Azul'),(5, 1, 'Pink'),(5, 2, 'Rose'),(5, 3, 'Rosa'),(6, 1, 'Green'),(6, 2, 'Vert'),(6, 3, 'Verde'),(7, 1, 'Orange'),(7, 2, 'Orange'), -(7, 3, 'Naranja'),(8, 1, 'Optional 64GB solid-state drive'),(8, 2, 'Disque dur SSD (solid-state drive) de 64 Go '),(8, 3, 'SSD (solid-state drive) 64 Go '), -(9, 1, '80GB Parallel ATA Drive @ 4200 rpm'),(9, 2, 'Disque dur PATA de 80 Go à 4 200 tr/min'),(9, 3, 'Disco duro PATA 80 Go 4 200 tr/min'),(10, 1, '1.60GHz Intel Core 2 Duo'), -(10, 2, 'Intel Core 2 Duo à 1,6 GHz'),(10, 3, 'Intel Core 2 Duo para 1,6 GHz'),(11, 1, '1.80GHz Intel Core 2 Duo'),(11, 2, 'Intel Core 2 Duo à 1,8 GHz'), -(11, 3, 'Intel Core 2 Duo para 1,8 GHz'),(12, 1, '80GB: 20,000 Songs'),(12, 2, '80 Go : 20 000 chansons'),(12, 3, '80 Go : 20 000 canciones'),(13, 1, '160GB: 40,000 Songs'), -(13, 2, '160 Go : 40 000 chansons'),(13, 3, '160 Go : 40 000 canciones'),(14, 2, 'Noir'),(14, 3, 'Negro'),(14, 1, 'Black'),(15, 1, '8Go'),(15, 2, '8Go'),(15, 3, '8Go'), -(16, 1, '16Go'),(16, 2, '16Go'),(16, 3, '16Go'),(17, 1, '32Go'),(17, 2, '32Go'),(17, 3, '32Go'),(1, 4, '2GB'),(2, 4, '4GB'),(3, 4, 'Metallic'), -(4, 4, 'Blau'),(5, 4, 'Pink'),(6, 4, 'Grün'),(7, 4, 'Orange'),(8, 4, 'Optionale 64 GB Solid-State-Drive'), -(9, 4, 'Parallele ATA 80GB Drive @ 4200 rpm'),(10, 4, '1.60GHz Intel Core 2 Duo'), -(11, 4, '1.80GHz Intel Core 2 Duo'),(12, 4, '80GB: 20.000 Songs'),(13, 4, '160GB: 40.000 Songs'),(14, 4, 'Schwarz'),(15, 4, '8Go'), -(16, 4, '16Go'),(17, 4, '32Go'),(1, 5, '2GB'),(2, 5, '4GB'),(3, 5, 'Metallico'), -(4, 5, 'Blu'),(5, 5, 'Rosa'),(6, 5, 'Verde'),(7, 5, 'Arancio'),(8, 5, 'Opzionale solid-state drive 64GB'), -(9, 5, '80GB Parallel ATA Drive @ 4200 rpm'),(10, 5, '1.60GHz Intel Core 2 Duo'), -(11, 5, '1.80GHz Intel Core 2 Duo'),(12, 5, '80GB: 20.000 canzoni'),(13, 5, '160GB: 40,000 canzoni'),(14, 5, 'Nero'),(15, 5, '8Go'), -(16, 5, '16Go'),(17, 5, '32Go'); - -INSERT INTO `PREFIX_attribute_lang` (`id_attribute`, `id_lang`, `name`) VALUES -(18, 1, 'Purple'),(18, 2, 'Violet'),(18, 3, 'Violeta'),(19, 1, 'Yellow'),(19, 2, 'Jaune'),(19, 3, 'Amarillo'),(20, 1, 'Red'),(20, 2, 'Rouge'),(20, 3, 'Rojo'),(18, 4, 'Violett'),(19, 4, 'Gelb'),(20, 4, 'Rot'),(18, 5, 'Viola'),(19, 5, 'Giallo'),(20, 5, 'Rosso'); - -INSERT INTO `PREFIX_product_attribute` (`id_product_attribute`, `id_product`, `reference`, `supplier_reference`, `ean13`, `wholesale_price`, `price`, `ecotax`, `quantity`, `weight`, `default_on`, `minimal_quantity`, `available_date`) VALUES -(30, 1, '', '', '', 0.000000, 0.00, 0.00, 0, 0, 0, 1, '0000-00-00'), -(29, 1, '', '', '', 0.000000, 41.806020, 0.00, 0, 0, 0, 1, '0000-00-00'), -(28, 1, '', '', '', 0.000000, 0.00, 0.00, 0, 0, 0, 1, '0000-00-00'), -(27, 1, '', '', '', 0.000000, 41.806020, 0.00, 0, 0, 0, 1, '0000-00-00'), -(26, 1, '', '', '', 0.000000, 0.00, 0.00, 0, 0, 0, 1, '0000-00-00'), -(25, 1, '', '', '', 0.000000, 41.806020, 0.00, 0, 0, 0, 4, '0000-00-00'), -(7, 2, '', '', '', 0.000000, 0.00, 0.00, 10, 0, 0, 1, '0000-00-00'), -(8, 2, '', '', '', 0.000000, 0.00, 0.00, 20, 0, 1, 1, '0000-00-00'), -(9, 2, '', '', '', 0.000000, 0.00, 0.00, 30, 0, 0, 1, '0000-00-00'), -(10, 2, '', '', '', 0.000000, 0.00, 0.00, 40, 0, 0, 1, '0000-00-00'), -(12, 5, '', NULL, '', 0.000000, 751.672241, 0.00, 0, 0, 0, 1, '0000-00-00'), -(13, 5, '', NULL, '', 0.000000, 0.00, 0.00, 0, 0, 1, 1, '0000-00-00'), -(14, 5, '', NULL, '', 0.000000, 225.752508, 0.00, 0, 0, 0, 1, '0000-00-00'), -(15, 5, '', NULL, '', 0.000000, 977.424749, 0.00, 0, 0, 0, 1, '0000-00-00'), -(23, 7, '', NULL, '', 0.000000, 150.501672, 0.00, 0, 0, 0, 1, '0000-00-00'), -(22, 7, '', NULL, '', 0.000000, 75.250836, 0.00, 0, 0, 0, 1, '0000-00-00'), -(19, 7, '', NULL, '', 0.000000, 0.00, 0.00, 0, 0, 1, 1, '0000-00-00'), -(31, 1, '', '', '', 0.000000, 41.806020, 0.00, 0, 0, 1, 1, '0000-00-00'), -(32, 1, '', '', '', 0.000000, 0.00, 0.00, 0, 0, 0, 1, '0000-00-00'), -(33, 1, '', '', '', 0.000000, 41.806020, 0.00, 0, 0, 0, 1, '0000-00-00'), -(34, 1, '', '', '', 0.000000, 0.00, 0.00, 0, 0, 0, 1, '0000-00-00'), -(35, 1, '', '', '', 0.000000, 41.806020, 0.00, 0, 0, 0, 1, '0000-00-00'), -(36, 1, '', '', '', 0.000000, 0.00, 0.00, 0, 0, 0, 1, '0000-00-00'), -(39, 1, '', '', '', 0.000000, 41.806020, 0.00, 0, 0, 0, 1, '0000-00-00'), -(40, 1, '', '', '', 0.000000, 0.00, 0.00, 0, 0, 0, 1, '0000-00-00'), -(41, 1, '', '', '', 0.000000, 41.806020, 0.00, 0, 0, 0, 1, '0000-00-00'), -(42, 1, '', '', '', 0.000000, 0.00, 0.00, 0, 0, 0, 1, '0000-00-00'); - -INSERT INTO `PREFIX_product_attribute_image` (`id_product_attribute`, `id_image`) VALUES (30, 44),(29, 44),(28, 45),(27, 45),(26, 38),(25, 38),(7, 46),(8, 47),(9, 49), -(10, 48),(12, 0),(13, 0),(14, 0),(15, 0),(23, 0),(22, 0),(19, 0),(31, 37),(32, 37),(33, 40),(34, 40),(35, 41),(36, 41),(39, 39),(40, 39),(41, 42),(42, 42); - -INSERT INTO `PREFIX_product_attribute_combination` (`id_attribute`, `id_product_attribute`) VALUES (3, 9),(3, 12),(3, 13),(3, 14),(3, 15),(3, 29),(3, 30),(4, 7),(4, 25), -(4, 26),(5, 10),(5, 35),(5, 36),(6, 8),(6, 39),(6, 40),(7, 33),(7, 34),(8, 13),(8, 15),(9, 12),(9, 14),(10, 12),(10, 13),(11, 14),(11, 15),(14, 31),(14, 32),(15, 19), -(15, 26),(15, 28),(15, 30),(15, 32),(15, 34),(15, 36),(15, 40),(15, 42),(16, 22),(16, 25),(16, 27),(16, 29),(16, 31),(16, 33),(16, 35),(16, 39),(16, 41),(17, 23),(18, 41),(18, 42),(19, 27),(19, 28); - -INSERT INTO `PREFIX_feature` (`id_feature`, `position`) VALUES (1, 0), (2, 1), (3, 2), (4, 3), (5, 4); - -INSERT INTO `PREFIX_feature_group_shop` (`id_feature`, `id_group_shop`) (SELECT `id_feature`, 1 FROM PREFIX_feature); - -INSERT INTO `PREFIX_feature_lang` (`id_feature`, `id_lang`, `name`) VALUES -(1, 1, 'Height'), (1, 2, 'Hauteur'),(2, 1, 'Width'), (2, 2, 'Largeur'),(3, 1, 'Depth'), (3, 2, 'Profondeur'),(4, 1, 'Weight'), (4, 2, 'Poids'),(5, 1, 'Headphone'), (5, 2, 'Prise casque'), -(1, 3, 'Alto'),(2, 3, 'Ancho'),(3, 3, 'Profundo'),(4, 3, 'Peso'),(5, 3, 'Toma auriculares'), -(1, 4, 'Höhe'),(2, 4, 'Breite'),(3, 4, 'Tiefe'),(4, 4, 'Gewicht'),(5, 4, 'Kopfhörer'), -(1, 5, 'Altezza'),(2, 5, 'Larghezza'),(3, 5, 'Profondità'),(4, 5, 'Peso'),(5, 5, 'Auricolare'); - -INSERT INTO `PREFIX_feature_product` (`id_feature`, `id_product`, `id_feature_value`) VALUES -(1, 1, 11),(1, 2, 15),(2, 1, 12),(2, 2, 16),(3, 1, 14),(3, 2, 18),(4, 1, 13),(4, 2, 17),(5, 1, 10),(5, 2, 10),(3, 7, 26),(5, 7, 9),(4, 7, 25),(2, 7, 24),(1, 7, 23); - -INSERT INTO `PREFIX_feature_value` (`id_feature_value`, `id_feature`, `custom`) VALUES -(11, 1, 1),(15, 1, 1),(12, 2, 1),(16, 2, 1),(14, 3, 1),(18, 3, 1),(13, 4, 1),(17, 4, 1),(26, 3, 1),(25, 4, 1),(24, 2, 1),(23, 1, 1),(9, 5, 0),(10, 5, 0); - -INSERT INTO `PREFIX_feature_value_lang` (`id_feature_value`, `id_lang`, `value`) VALUES -(13, 1, '49.2 g'),(13, 2, '49,2 g'),(13, 3, '49,2 g'),(13, 4, '49.2 g'),(13, 5, '49.2 g'),(12, 2, '52,3 mm'),(12, 1, '2.06 in'),(12, 3, '52.3 mm'),(12, 4, '52.3 mm'),(12, 5, '52.3 mm'),(11, 2, '69,8 mm'),(11, 1, '2.75 in'),(11, 3, '69.8 mm'),(11, 4, '69.8 mm'),(11, 5, '69.8 mm'), -(17, 2, '15,5 g'),(17, 1, '15.5 g'),(17, 3, '15.5 g'),(17, 4, '15.5 g'),(17, 5, '15.5 g'),(16, 2, '41,2 mm'),(16, 1, '1.62 in'),(16, 3, '41.2 mm'),(16, 4, '41.2 mm'),(16, 5, '41.2 mm'),(15, 2, '27,3 mm'),(15, 1, '1.07 in'),(15, 3, '27.3 mm'),(15, 4, '27.3 mm'),(15, 5, '27.3 mm'),(9, 1, 'Jack stereo'),(9, 4, 'Jack stereo'),(9, 5, 'Jack stereo'), -(9, 2, 'Jack stéréo'),(9, 3, 'Jack stereo'),(10, 1, 'Mini-jack stereo'),(10, 2, 'Mini-jack stéréo'),(10, 3, 'Mini-jack stéréo'),(10, 4, 'Mini-jack stéréo'),(10, 5, 'Mini-jack stéréo'),(14, 1, '0.26 in'),(14, 2, '6,5 mm'),(14, 3, '6,5 mm'),(14, 4, '6,5 mm'),(14, 5, '6,5 mm'),(18, 4, '10,5 mm'),(18, 5, '10,5 mm)'), -(18, 1, '0.41 in (clip included)'),(18, 2, '10,5 mm (clip compris)'),(18, 3, '10,5 mm (clip incluyendo)'),(26, 2, '8 mm'),(26, 1, '0.31 in'),(26, 3, '8 mm'),(26, 4, '8 mm'),(26, 5, '8 mm'),(25, 2, '120g'),(25, 3, '120g'),(25, 4, '120g'),(25, 5, '120g'),(25, 1, '120g'),(24, 2, '70 mm'),(24, 1, '2.76 in'),(24, 3, '70 mm'),(24, 4, '70 mm'),(24, 5, '70 mm'), -(23, 2, '110 mm'),(23, 3, '110 mm'),(23, 1, '4.33 in'),(23, 4, '4.33 in'),(23, 5, '4.33 in'); - -INSERT INTO `PREFIX_image` (`id_image`, `id_product`, `position`, `cover`) VALUES -(40, 1, 4, 0),(39, 1, 3, 0),(38, 1, 2, 0),(37, 1, 1, 1),(48, 2, 3, 0),(47, 2, 2, 0),(49, 2, 4, 0),(46, 2, 1, 1),(15, 5, 1, 1),(16, 5, 2, 0),(17, 5, 3, 0),(18, 6, 4, 0),(19, 6, 5, 0), -(20, 6, 1, 1),(24, 7, 1, 1),(33, 8, 1, 1),(27, 7, 3, 0),(26, 7, 2, 0),(29, 7, 4, 0),(30, 7, 5, 0),(32, 7, 6, 0),(36, 9, 1, 1),(41, 1, 5, 0),(42, 1, 6, 0),(44, 1, 7, 0),(45, 1, 8, 0); - -INSERT INTO `PREFIX_image_shop` (`id_image`, `id_shop`) (SELECT `id_image`, 1 FROM `PREFIX_image`); - -INSERT INTO `PREFIX_image_lang` (`id_image`, `id_lang`, `legend`) VALUES -(40, 2, 'iPod Nano'),(40, 3, 'iPod Nano'),(40, 4, 'iPod Nano'),(40, 5, 'iPod Nano'),(40, 1, 'iPod Nano'),(39, 2, 'iPod Nano'),(39, 3, 'iPod Nano'),(39, 1, 'iPod Nano'),(39, 4, 'iPod Nano'),(39, 5, 'iPod Nano'), -(38, 2, 'iPod Nano'),(38, 3, 'iPod Nano'),(38, 1, 'iPod Nano'),(38, 4, 'iPod Nano'),(38, 5, 'iPod Nano'), -(37, 2, 'iPod Nano'),(37, 3, 'iPod Nano'),(37, 1, 'iPod Nano'),(37, 4, 'iPod Nano'),(37, 5, 'iPod Nano'),(48, 2, 'iPod shuffle'),(48, 3, 'iPod shuffle'),(48, 1, 'iPod shuffle'),(48, 4, 'iPod shuffle'),(48, 5, 'iPod shuffle'),(47, 2, 'iPod shuffle'),(47, 3, 'iPod shuffle'),(47, 4, 'iPod shuffle'),(47, 5, 'iPod shuffle'), -(47, 1, 'iPod shuffle'),(49, 2, 'iPod shuffle'),(49, 3, 'iPod shuffle'),(49, 1, 'iPod shuffle'),(49, 4, 'iPod shuffle'),(49, 5, 'iPod shuffle'),(46, 2, 'iPod shuffle'),(46, 3, 'iPod shuffle'),(46, 1, 'iPod shuffle'),(46, 4, 'iPod shuffle'),(46, 5, 'iPod shuffle'), -(10, 1, 'luxury-cover-for-ipod-video'),(10, 3, 'luxury-cover-for-ipod-video'),(10, 4, 'luxury-cover-for-ipod-video'),(10, 5, 'luxury-cover-for-ipod-video'),(10, 2, 'housse-luxe-pour-ipod-video'),(11, 1, 'cover'),(11, 2, 'housse'),(11, 3, 'cubrir'),(11, 4, 'cover'),(11, 5, 'cover'), -(12, 1, 'myglove-ipod-nano'),(12, 2, 'myglove-ipod-nano'),(12, 3, 'myglove-ipod-nano'),(12, 4, 'myglove-ipod-nano'),(12, 5, 'myglove-ipod-nano'),(13, 1, 'myglove-ipod-nano'),(13, 2, 'myglove-ipod-nano'),(13, 3, 'myglove-ipod-nano'),(13, 4, 'myglove-ipod-nano'),(13, 5, 'myglove-ipod-nano'), -(14, 1, 'myglove-ipod-nano'),(14, 2, 'myglove-ipod-nano'),(14, 3, 'myglove-ipod-nano'),(14, 4, 'myglove-ipod-nano'),(14, 5, 'myglove-ipod-nano'),(15, 1, 'MacBook Air'),(15, 2, 'macbook-air-1'),(15, 3, 'macbook-air-1'),(15, 4, 'macbook-air-1'),(15, 5, 'macbook-air-1'),(16, 1, 'MacBook Air'),(16, 2, 'macbook-air-2'),(16, 3, 'macbook-air-2'),(16, 4, 'macbook-air-2'),(16, 5, 'macbook-air-2'),(17, 1, 'MacBook Air'),(17, 2, 'macbook-air-3'),(17, 3, 'macbook-air-3'),(17, 4, 'macbook-air-3'),(17, 5, 'macbook-air-3'),(18, 1, 'MacBook Air'),(18, 2, 'macbook-air-4'), -(18, 3, 'macbook-air-4'),(18, 4, 'macbook-air-4'),(18, 5, 'macbook-air-4'),(19, 1, 'MacBook Air'),(19, 2, 'macbook-air-5'),(19, 3, 'macbook-air-5'),(19, 4, 'macbook-air-5'),(19, 5, 'macbook-air-5'),(20, 1, ' MacBook Air SuperDrive'),(20, 2, 'superdrive-pour-macbook-air-1'), -(20, 3, 'superdrive-pour-macbook-air-1'),(20, 4, 'superdrive-pour-macbook-air-1'),(20, 5, 'superdrive-pour-macbook-air-1'),(24, 2, 'iPod touch'),(24, 1, 'iPod touch'),(24, 3, 'iPod touch'),(24, 4, 'iPod touch'),(24, 5, 'iPod touch'),(33, 1, 'housse-portefeuille-en-cuir'),(33, 3, 'housse-portefeuille-en-cuir'),(33, 4, 'housse-portefeuille-en-cuir'),(33, 5, 'housse-portefeuille-en-cuir'), -(26, 1, 'iPod touch'),(26, 2, 'iPod touch'),(26, 3, 'iPod touch'),(26, 4, 'iPod touch'),(26, 5, 'iPod touch'),(27, 1, 'iPod touch'),(27, 2, 'iPod touch'),(27, 3, 'iPod touch'),(27, 4, 'iPod touch'),(27, 5, 'iPod touch'),(29, 1, 'iPod touch'),(29, 2, 'iPod touch'),(29, 3, 'iPod touch'),(29, 4, 'iPod touch'),(29, 5, 'iPod touch'),(30, 1, 'iPod touch'),(30, 2, 'iPod touch'),(30, 3, 'iPod touch'),(30, 4, 'iPod touch'),(30, 5, 'iPod touch'),(32, 1, 'iPod touch'),(32, 2, 'iPod touch'),(32, 3, 'iPod touch'),(32, 4, 'iPod touch'),(32, 5, 'iPod touch'), -(33, 2, 'housse-portefeuille-en-cuir-ipod-nano'),(36, 2, 'Écouteurs à isolation sonore Shure SE210'),(36, 3, 'Auriculares aislantes del sonido Shure SE210'), -(36, 1, 'Shure SE210 Sound-Isolating Earphones for iPod and iPhone'),(36, 4, 'Shure SE210 Sound-Isolating Earphones for iPod and iPhone'),(36, 5, 'Shure SE210 Sound-Isolating Earphones for iPod and iPhone'),(41, 1, 'iPod Nano'),(41, 2, 'iPod Nano'),(41, 3, 'iPod Nano'),(41, 4, 'iPod Nano'),(41, 5, 'iPod Nano'),(42, 1, 'iPod Nano'),(42, 2, 'iPod Nano'), -(42, 3, 'iPod Nano'),(42, 4, 'iPod Nano'),(42, 5, 'iPod Nano'),(44, 1, 'iPod Nano'),(44, 2, 'iPod Nano'),(44, 3, 'iPod Nano'),(44, 4, 'iPod Nano'),(44, 5, 'iPod Nano'),(45, 1, 'iPod Nano'),(45, 2, 'iPod Nano'),(45, 3, 'iPod Nano'),(45, 4, 'iPod Nano'),(45, 5, 'iPod Nano'); - -INSERT INTO `PREFIX_tag` (`id_tag`, `id_lang`, `name`) VALUES (5, 1, 'apple'),(6, 2, 'ipod'),(7, 2, 'nano'),(8, 2, 'apple'),(18, 2, 'shuffle'), -(19, 2, 'macbook'),(20, 2, 'macbookair'),(21, 2, 'air'),(22, 1, 'superdrive'),(27, 2, 'marche'),(26, 2, 'casque'),(25, 2, 'écouteurs'), -(24, 2, 'ipod touch tactile'),(23, 1, 'Ipod touch'),(28, 1, 'ipod'),(29, 1, 'nano'),(30, 3, 'ipod'),(31, 3, 'nano'),(32, 3, 'apple'),(33, 1, 'shuffle'), -(34, 3, 'shuffle'),(35, 2, 'superdrive'),(36, 3, 'superdrive'),(37, 3, 'Ipod touch'); - -INSERT INTO `PREFIX_product_tag` (`id_product`, `id_tag`) VALUES (1, 5),(1, 6),(1, 7),(1, 8),(1, 28),(1, 29),(1, 30),(1, 31),(1, 32),(2, 6),(2, 18),(2, 28), -(2, 30),(2, 33),(2, 34),(5, 8),(5, 19),(5, 20),(5, 21),(6, 5),(6, 8),(6, 22),(6, 32),(6, 35),(6, 36),(7, 23),(7, 24),(7, 37),(9, 25),(9, 26),(9, 27); - -INSERT INTO `PREFIX_alias` (`alias`, `search`, `active`, `id_alias`) VALUES ('piod', 'ipod', 1, 4),('ipdo', 'ipod', 1, 3); -INSERT INTO `PREFIX_order_message` (`id_order_message`, `date_add`) VALUES (1, NOW()); -INSERT INTO `PREFIX_order_message_lang` (`id_order_message`, `id_lang`, `name`, `message`) VALUES -(1, 1, 'Delay', 'Hi, - -Unfortunately, an item on your order is currently out of stock. This may cause a slight delay in delivery. -Please accept our apologies and rest assured that we are working hard to rectify this. - -Best regards,'); - -INSERT INTO `PREFIX_order_message_lang` (`id_order_message`, `id_lang`, `name`, `message`) VALUES -(1, 2, 'Délai', 'Bonjour, - -Un des éléments de votre commande est actuellement en réapprovisionnement, ce qui peut légèrement retarder son envoi. - -Merci de votre compréhension. - -Cordialement,'); - -INSERT INTO `PREFIX_order_message_lang` (`id_order_message`, `id_lang`, `name`, `message`) VALUES -(1, 3, 'Plazo', 'Hola, - -Uno de los elementos de su solicitud se encuentra actualmente la reposición, el cual poco puede retrasar el envío. - -Gracias por su comprensión. - -Saludos cordiales,'); - -INSERT INTO `PREFIX_order_message_lang` (`id_order_message`, `id_lang`, `name`, `message`) VALUES -(1, 4, 'Frist', 'Hi, - -Leider ist einer der Artikel aus Ihrer Bestellung momentan nicht auf Lager. Dies kann zu einer leichten Lieferverzögerung führen. Wir entschuldigen uns hierfür und bemühen uns schnellstens um Abhilfe. - -Mit freundlichen Grüßen,'); - -INSERT INTO `PREFIX_order_message_lang` (`id_order_message`, `id_lang`, `name`, `message`) VALUES -(1, 5, 'Ritardo', 'Salve, - -purtroppo un articolo che hai ordinato non è al momento in magazzino. Questo potrebbe provocare un leggero ritardo nella consegna. -Ti preghiamo di scusarci; ci stiamo organizzando per ovviare a questo inconveniente. - -Cordialmente,'); - -/* Block CMS module*/ - -INSERT INTO `PREFIX_cms_block` (`id_cms_block`, `id_cms_category`, `name`, `location`, `position`) VALUES(1, 1, '', 0, 0); -INSERT INTO `PREFIX_cms_block_page` (`id_cms_block_page`, `id_cms_block`, `id_cms`, `is_category`) VALUES(1, 1, 1, 0), (2, 1, 2, 0), (3, 1, 3, 0), (4, 1, 4, 0), (5, 1, 5, 0); -INSERT INTO `PREFIX_cms_block_lang` (`id_cms_block`, `id_lang`, `name`) VALUES (1, 1, 'Information'),(1, 2, 'Informations'),(1, 3, 'Informaciónes'),(1, 4, 'Information'),(1, 5, 'Informazioni'); -INSERT INTO `PREFIX_cms_block_shop` (`id_cms_block`, `id_shop`) VALUES(1, 1); -/* Currency/Country module */ -INSERT INTO `PREFIX_module_currency` (`id_module`, `id_currency`) VALUES (3, 1),(3, 2),(3, 3),(4, 1),(4, 2),(4, 3),(6, 1),(6, 2),(6, 3); - -INSERT INTO `PREFIX_module_country` (`id_module`, `id_country`) VALUES (3, 1),(3, 2),(3, 3),(3, 4),(3, 5),(3, 6),(3, 7),(3, 8), -(3, 9),(3, 10),(3, 11),(3, 12),(3, 13),(3, 14),(3, 15),(3, 16),(3, 17),(3, 18),(3, 19),(3, 20),(3, 21),(3, 22),(3, 23),(3, 24), -(3, 25),(3, 26),(3, 27),(3, 28),(3, 29),(3, 30),(3, 31),(3, 32),(3, 33),(3, 34),(4, 1),(4, 2),(4, 3),(4, 4),(4, 5),(4, 6),(4, 7), -(4, 8),(4, 9),(4, 10),(4, 11),(4, 12),(4, 13),(4, 14),(4, 15),(4, 16),(4, 17),(4, 18),(4, 19),(4, 20),(4, 21),(4, 22),(4, 23), -(4, 24),(4, 25),(4, 26),(4, 27),(4, 28),(4, 29),(4, 30),(4, 31),(4, 32),(4, 33),(4, 34),(6, 1),(6, 2),(6, 3),(6, 4),(6, 5),(6, 6), -(6, 7),(6, 8),(6, 9),(6, 10),(6, 11),(6, 12),(6, 13),(6, 14),(6, 15),(6, 16),(6, 17),(6, 18),(6, 19),(6, 20),(6, 21),(6, 22),(6, 23), -(6, 24),(6, 25),(6, 26),(6, 27),(6, 28),(6, 29),(6, 30),(6, 31),(6, 32),(6, 33),(6, 34); - -INSERT INTO `PREFIX_search_index` (`id_product`, `id_word`, `weight`) VALUES (1, 1, 10),(1, 2, 10),(1, 3, 2),(1, 4, 1),(1, 5, 1),(1, 6, 1), -(1, 7, 1),(1, 8, 1),(1, 9, 1),(1, 10, 1),(1, 11, 1),(1, 12, 1),(1, 13, 1),(1, 14, 1),(1, 15, 1),(1, 16, 2),(1, 17, 1),(1, 18, 1),(1, 19, 1), -(1, 20, 1),(1, 21, 1),(1, 22, 1),(1, 23, 1),(1, 24, 1),(1, 25, 1),(1, 26, 1),(1, 27, 1),(1, 28, 1),(1, 29, 1),(1, 30, 1),(1, 31, 2), -(1, 32, 1),(1, 33, 1),(1, 34, 1),(1, 35, 1),(1, 36, 1),(1, 37, 1),(1, 38, 5),(1, 39, 1),(1, 40, 1),(1, 41, 1),(1, 42, 1),(1, 43, 1), -(1, 44, 1),(1, 45, 1),(1, 46, 1),(1, 47, 1),(1, 48, 1),(1, 49, 1),(1, 50, 1),(1, 51, 2),(1, 52, 2),(1, 53, 1),(1, 54, 1),(1, 55, 1), -(1, 56, 1),(1, 57, 1),(1, 58, 1),(1, 59, 1),(1, 60, 1),(1, 61, 1),(1, 62, 1),(1, 63, 1),(1, 64, 1),(1, 65, 1),(1, 66, 1),(1, 67, 3), -(1, 68, 3),(1, 69, 3),(1, 70, 4),(1, 71, 16),(1, 72, 4),(1, 73, 4),(1, 74, 4),(1, 75, 4),(1, 76, 4),(1, 77, 4),(1, 78, 4),(1, 79, 2), -(1, 80, 2),(1, 81, 2),(1, 82, 12),(1, 83, 12),(1, 84, 1),(1, 85, 2),(1, 86, 1),(1, 87, 2),(1, 88, 1),(1, 89, 1),(1, 90, 2),(1, 91, 1), -(1, 92, 1),(1, 93, 1),(1, 94, 1),(1, 95, 4),(1, 96, 1),(1, 97, 1),(1, 98, 1),(1, 99, 1),(1, 100, 1),(1, 101, 1),(1, 102, 1), -(1, 103, 1),(1, 104, 1),(1, 105, 1),(1, 106, 1),(1, 107, 1),(1, 108, 1),(1, 109, 2),(1, 110, 1),(1, 111, 1),(1, 112, 1),(1, 113, 1), -(1, 114, 1),(1, 115, 2),(1, 116, 2),(1, 117, 1),(1, 118, 3),(1, 119, 1),(1, 120, 1),(1, 121, 1),(1, 122, 1),(1, 123, 1),(1, 124, 1), -(1, 125, 1),(1, 126, 1),(1, 127, 1),(1, 128, 1),(1, 129, 1),(1, 130, 1),(1, 131, 1),(1, 132, 1),(1, 133, 1),(1, 134, 1),(1, 135, 1), -(1, 136, 1),(1, 137, 1),(1, 138, 1),(1, 139, 1),(1, 140, 1),(1, 141, 1),(1, 142, 1),(1, 143, 1),(1, 144, 1),(1, 145, 3),(1, 146, 7), -(1, 147, 3),(1, 148, 4),(1, 149, 16),(1, 150, 4),(1, 151, 4),(1, 152, 4),(1, 153, 4),(1, 154, 4),(1, 155, 4),(1, 156, 4),(1, 157, 2), -(1, 158, 2),(1, 159, 2),(1, 160, 9),(1, 161, 8),(1, 162, 1),(1, 163, 2),(1, 164, 1),(1, 165, 1),(1, 166, 1),(1, 167, 1),(1, 168, 1), -(1, 169, 1),(1, 170, 2),(1, 171, 1),(1, 172, 1),(1, 173, 4),(1, 174, 1),(1, 175, 1),(1, 176, 1),(1, 177, 1),(1, 178, 1),(1, 179, 1), -(1, 180, 1),(1, 181, 1),(1, 182, 1),(1, 183, 1),(1, 184, 1),(1, 185, 1),(1, 186, 1),(1, 187, 1),(1, 188, 1),(1, 189, 1),(1, 190, 1), -(1, 191, 1),(1, 192, 1),(1, 193, 1),(1, 194, 1),(1, 195, 1),(1, 196, 1),(1, 197, 1),(1, 198, 1),(1, 199, 1),(1, 200, 1),(1, 201, 1), -(1, 202, 1),(1, 203, 1),(1, 204, 1),(1, 205, 1),(1, 206, 1),(1, 207, 1),(1, 208, 1),(1, 209, 1),(1, 210, 1),(1, 211, 1),(1, 212, 1), -(1, 213, 1),(1, 214, 1),(1, 215, 1),(1, 216, 1),(1, 217, 1),(1, 218, 1),(1, 219, 1),(1, 220, 1),(1, 221, 1),(1, 222, 3),(1, 223, 3), -(1, 224, 3),(1, 225, 4),(1, 226, 16),(1, 227, 4),(1, 228, 4),(1, 229, 4),(1, 230, 4),(1, 231, 4),(1, 232, 4),(1, 233, 4),(1, 234, 2), -(1, 235, 2),(2, 1, 11),(2, 56, 10),(2, 236, 1),(2, 237, 1),(2, 238, 1),(2, 239, 1),(2, 57, 2),(2, 240, 1),(2, 241, 1),(2, 242, 2), -(2, 243, 1),(2, 244, 2),(2, 245, 2),(2, 246, 2),(2, 247, 1),(2, 248, 1),(2, 249, 1),(2, 45, 1),(2, 38, 7),(2, 250, 1),(2, 251, 1),(2, 252, 1), -(2, 253, 1),(2, 254, 1),(2, 255, 1),(2, 256, 1),(2, 257, 1),(2, 19, 1),(2, 258, 1),(2, 259, 1),(2, 260, 1),(2, 261, 1),(2, 262, 1),(2, 263, 1), -(2, 264, 1),(2, 265, 1),(2, 266, 1),(2, 267, 1),(2, 268, 1),(2, 269, 1),(2, 270, 1),(2, 271, 1),(2, 272, 1),(2, 273, 1),(2, 274, 1),(2, 3, 1), -(2, 275, 1),(2, 276, 1),(2, 277, 1),(2, 67, 3),(2, 68, 3),(2, 69, 3),(2, 73, 2),(2, 77, 2),(2, 70, 2),(2, 76, 2),(2, 278, 2),(2, 279, 2), -(2, 80, 2),(2, 81, 2),(2, 82, 15),(2, 280, 14),(2, 281, 1),(2, 282, 1),(2, 90, 2),(2, 283, 1),(2, 284, 1),(2, 285, 1),(2, 286, 1),(2, 287, 2), -(2, 288, 2),(2, 154, 3),(2, 289, 2),(2, 290, 1),(2, 291, 1),(2, 292, 1),(2, 0, 1),(2, 126, 2),(2, 294, 1),(2, 118, 7),(2, 295, 1),(2, 296, 1), -(2, 297, 1),(2, 298, 1),(2, 299, 1),(2, 300, 1),(2, 301, 1),(2, 302, 1),(2, 95, 1),(2, 136, 2),(2, 303, 1),(2, 88, 2),(2, 304, 1),(2, 100, 2), -(2, 101, 2),(2, 305, 1),(2, 306, 1),(2, 307, 1),(2, 308, 1),(2, 309, 1),(2, 310, 1),(2, 311, 1),(2, 312, 1),(2, 313, 1),(2, 314, 1),(2, 315, 1), -(2, 316, 1),(2, 317, 1),(2, 109, 1),(2, 318, 1),(2, 319, 1),(2, 320, 1),(2, 321, 1),(2, 322, 1),(2, 323, 1),(2, 124, 1),(2, 324, 1),(2, 325, 1), -(2, 85, 1),(2, 326, 1),(2, 327, 1),(2, 328, 1),(2, 329, 1),(2, 330, 1),(2, 331, 1),(2, 332, 1),(2, 333, 1),(2, 334, 1),(2, 145, 3),(2, 146, 3), -(2, 147, 3),(2, 151, 2),(2, 155, 2),(2, 148, 2),(2, 335, 2),(2, 336, 2),(2, 158, 2),(2, 159, 2),(2, 160, 11),(2, 337, 10),(2, 338, 1),(2, 339, 1), -(2, 340, 1),(2, 341, 1),(2, 166, 2),(2, 342, 2),(2, 343, 2),(2, 231, 3),(2, 344, 2),(2, 345, 1),(2, 346, 1),(2, 347, 1),(2, 348, 1),(2, 202, 2), -(2, 349, 1),(2, 350, 1),(2, 351, 1),(2, 352, 1),(2, 353, 1),(2, 354, 1),(2, 355, 1),(2, 356, 1),(2, 357, 1),(2, 213, 3),(2, 358, 1),(2, 359, 1), -(2, 179, 2),(2, 180, 2),(2, 360, 1),(2, 361, 1),(2, 362, 1),(2, 363, 1),(2, 364, 1),(2, 365, 1),(2, 366, 1),(2, 367, 1),(2, 368, 1),(2, 369, 1), -(2, 370, 1),(2, 371, 1),(2, 372, 1),(2, 373, 1),(2, 374, 1),(2, 375, 1),(2, 376, 1),(2, 377, 1),(2, 378, 1),(2, 163, 1),(2, 379, 1),(2, 184, 1), -(2, 380, 1),(2, 381, 1),(2, 204, 1),(2, 382, 1),(2, 383, 1),(2, 384, 1),(2, 222, 3),(2, 223, 3),(2, 224, 3),(2, 228, 2),(2, 232, 2),(2, 225, 2), -(2, 385, 2),(2, 386, 2),(2, 234, 2),(2, 235, 2),(5, 387, 10),(5, 388, 1),(5, 389, 1),(5, 390, 1),(5, 391, 1),(5, 392, 1),(5, 393, 1),(5, 394, 1), -(5, 395, 1),(5, 396, 1),(5, 397, 1),(5, 398, 2),(5, 399, 1),(5, 400, 1),(5, 401, 1),(5, 402, 2),(5, 403, 2),(5, 404, 1),(5, 3, 1),(5, 51, 2), -(5, 405, 1),(5, 406, 1),(5, 407, 1),(5, 408, 1),(5, 409, 1),(5, 410, 1),(5, 411, 1),(5, 38, 1),(5, 412, 1),(5, 413, 1),(5, 414, 1),(5, 415, 1), -(5, 416, 1),(5, 47, 1),(5, 417, 1),(5, 418, 1),(5, 419, 2),(5, 420, 1),(5, 421, 1),(5, 422, 1),(5, 423, 1),(5, 424, 1),(5, 425, 1),(5, 426, 1), -(5, 427, 1),(5, 428, 1),(5, 429, 1),(5, 430, 1),(5, 431, 1),(5, 432, 1),(5, 433, 1),(5, 434, 1),(5, 435, 1),(5, 436, 1),(5, 437, 1),(5, 438, 2), -(5, 439, 1),(5, 440, 1),(5, 441, 1),(5, 442, 1),(5, 443, 1),(5, 444, 1),(5, 445, 9),(5, 446, 1),(5, 447, 1),(5, 448, 1),(5, 449, 1),(5, 450, 1), -(5, 451, 1),(5, 452, 1),(5, 453, 1),(5, 454, 1),(5, 65, 1),(5, 455, 1),(5, 456, 1),(5, 457, 1),(5, 458, 1),(5, 237, 2),(5, 459, 1),(5, 460, 1), -(5, 461, 1),(5, 462, 1),(5, 463, 1),(5, 464, 1),(5, 465, 1),(5, 466, 1),(5, 467, 1),(5, 468, 1),(5, 469, 1),(5, 470, 1),(5, 471, 1),(5, 472, 1), -(5, 473, 1),(5, 474, 1),(5, 475, 1),(5, 476, 1),(5, 477, 3),(5, 68, 3),(5, 69, 3),(5, 70, 8),(5, 478, 4),(5, 479, 4),(5, 480, 4),(5, 481, 4), -(5, 482, 8),(5, 483, 8),(5, 484, 4),(5, 485, 4),(5, 486, 4),(5, 487, 4),(5, 488, 14),(5, 489, 3),(5, 490, 1),(5, 283, 2),(5, 491, 1),(5, 103, 2), -(5, 492, 1),(5, 493, 1),(5, 494, 1),(5, 495, 1),(5, 496, 1),(5, 497, 1),(5, 498, 1),(5, 499, 2),(5, 500, 3),(5, 501, 1),(5, 502, 1),(5, 503, 1), -(5, 504, 2),(5, 505, 2),(5, 506, 1),(5, 124, 2),(5, 85, 1),(5, 131, 2),(5, 507, 1),(5, 508, 1),(5, 509, 1),(5, 510, 1),(5, 511, 1),(5, 114, 1), -(5, 512, 1),(5, 513, 1),(5, 514, 1),(5, 118, 1),(5, 515, 1),(5, 516, 1),(5, 517, 1),(5, 518, 1),(5, 519, 1),(5, 520, 1),(5, 521, 1),(5, 522, 1), -(5, 523, 5),(5, 524, 1),(5, 525, 1),(5, 526, 1),(5, 527, 2),(5, 528, 1),(5, 529, 1),(5, 530, 1),(5, 531, 1),(5, 532, 1),(5, 109, 1),(5, 533, 1), -(5, 534, 1),(5, 535, 1),(5, 536, 1),(5, 537, 1),(5, 538, 1),(5, 539, 2),(5, 540, 1),(5, 541, 1),(5, 542, 1),(5, 543, 1),(5, 544, 1),(5, 545, 1), -(5, 546, 9),(5, 90, 2),(5, 547, 1),(5, 548, 1),(5, 549, 1),(5, 550, 1),(5, 551, 1),(5, 552, 1),(5, 553, 1),(5, 554, 1),(5, 555, 1),(5, 556, 1), -(5, 557, 1),(5, 558, 1),(5, 559, 1),(5, 95, 2),(5, 560, 1),(5, 561, 1),(5, 562, 2),(5, 563, 1),(5, 564, 1),(5, 565, 1),(5, 566, 1),(5, 88, 1), -(5, 567, 1),(5, 568, 1),(5, 569, 1),(5, 570, 1),(5, 571, 1),(5, 572, 1),(5, 573, 1),(5, 574, 1),(5, 575, 1),(5, 576, 1),(5, 577, 1),(5, 578, 1), -(5, 579, 1),(5, 580, 1),(5, 581, 1),(5, 582, 1),(5, 583, 3),(5, 146, 7),(5, 147, 3),(5, 584, 4),(5, 148, 8),(5, 585, 4),(5, 586, 8),(5, 587, 8), -(5, 588, 4),(5, 589, 4),(5, 590, 11),(5, 591, 3),(5, 592, 1),(5, 340, 2),(5, 593, 1),(5, 181, 2),(5, 594, 1),(5, 595, 1),(5, 596, 1),(5, 597, 1), -(5, 598, 1),(5, 371, 1),(5, 599, 1),(5, 600, 1),(5, 601, 3),(5, 162, 1),(5, 602, 1),(5, 603, 1),(5, 604, 1),(5, 605, 1),(5, 606, 1),(5, 607, 1), -(5, 163, 1),(5, 608, 1),(5, 609, 1),(5, 610, 1),(5, 611, 1),(5, 190, 1),(5, 612, 1),(5, 613, 1),(5, 614, 3),(5, 354, 1),(5, 615, 1),(5, 616, 1), -(5, 617, 1),(5, 618, 1),(5, 619, 1),(5, 620, 1),(5, 621, 2),(5, 622, 1),(5, 623, 1),(5, 624, 2),(5, 625, 1),(5, 626, 1),(5, 627, 1),(5, 628, 1), -(5, 629, 1),(5, 630, 1),(5, 631, 1),(5, 632, 1),(5, 633, 1),(5, 634, 1),(5, 635, 1),(5, 636, 1),(5, 637, 1),(5, 638, 1),(5, 639, 1),(5, 640, 1), -(5, 641, 1),(5, 642, 1),(5, 643, 1),(5, 644, 1),(5, 645, 5),(5, 646, 5),(5, 348, 1),(5, 647, 1),(5, 648, 1),(5, 649, 1),(5, 650, 1),(5, 651, 1), -(5, 652, 1),(5, 653, 1),(5, 654, 1),(5, 655, 1),(5, 173, 11),(5, 656, 1),(5, 657, 1),(5, 658, 1),(5, 659, 1),(5, 660, 1),(5, 661, 1),(5, 662, 2), -(5, 663, 1),(5, 664, 1),(5, 665, 1),(5, 666, 1),(5, 667, 1),(5, 668, 1),(5, 669, 1),(5, 670, 1),(5, 671, 1),(5, 672, 1),(5, 673, 1),(5, 674, 1), -(5, 675, 1),(5, 676, 1),(5, 677, 1),(5, 678, 1),(5, 679, 1),(5, 680, 1),(5, 681, 1),(5, 682, 3),(5, 223, 3),(5, 224, 3),(5, 225, 8),(5, 683, 4), -(5, 684, 8),(5, 685, 8),(5, 686, 4),(5, 687, 4),(6, 387, 9),(6, 688, 1),(6, 689, 1),(6, 690, 1),(6, 691, 1),(6, 692, 1),(6, 693, 1),(6, 694, 1), -(6, 695, 1),(6, 402, 1),(6, 696, 1),(6, 697, 1),(6, 698, 1),(6, 699, 1),(6, 700, 1),(6, 47, 1),(6, 701, 1),(6, 702, 1),(6, 703, 1),(6, 704, 1), -(6, 705, 1),(6, 706, 1),(6, 415, 1),(6, 707, 1),(6, 444, 1),(6, 708, 1),(6, 709, 1),(6, 710, 1),(6, 711, 1),(6, 712, 1),(6, 713, 1),(6, 714, 1), -(6, 715, 1),(6, 716, 1),(6, 717, 1),(6, 718, 1),(6, 719, 1),(6, 409, 1),(6, 720, 1),(6, 721, 1),(6, 242, 1),(6, 38, 1),(6, 722, 1),(6, 723, 1), -(6, 724, 1),(6, 477, 3),(6, 68, 7),(6, 69, 3),(6, 725, 4),(6, 488, 9),(6, 109, 1),(6, 726, 1),(6, 727, 1),(6, 728, 1),(6, 729, 1),(6, 327, 1),(6, 730, 1), -(6, 731, 1),(6, 732, 1),(6, 505, 1),(6, 733, 1),(6, 734, 1),(6, 735, 1),(6, 736, 1),(6, 737, 1),(6, 738, 1),(6, 739, 1),(6, 740, 1),(6, 510, 1),(6, 741, 1), -(6, 124, 1),(6, 553, 1),(6, 132, 1),(6, 523, 1),(6, 546, 1),(6, 90, 1),(6, 742, 1),(6, 500, 1),(6, 743, 1),(6, 744, 1),(6, 95, 2),(6, 580, 1), -(6, 745, 1),(6, 746, 1),(6, 747, 1),(6, 748, 1),(6, 749, 1),(6, 750, 1),(6, 751, 1),(6, 88, 1),(6, 752, 1),(6, 753, 1),(6, 754, 1),(6, 755, 1), -(6, 756, 1),(6, 757, 1),(6, 758, 1),(6, 583, 3),(6, 146, 3),(6, 147, 3),(6, 590, 9),(6, 759, 1),(6, 637, 1),(6, 760, 1),(6, 221, 1),(6, 761, 1), -(6, 356, 1),(6, 762, 1),(6, 763, 1),(6, 764, 1),(6, 606, 2),(6, 765, 1),(6, 766, 1),(6, 767, 1),(6, 768, 1),(6, 769, 1),(6, 770, 1),(6, 771, 1), -(6, 772, 1),(6, 653, 1),(6, 208, 1),(6, 209, 1),(6, 645, 1),(6, 646, 1),(6, 773, 1),(6, 774, 1),(6, 348, 1),(6, 173, 2),(6, 679, 1),(6, 775, 1), -(6, 776, 1),(6, 777, 1),(6, 778, 1),(6, 779, 1),(6, 780, 1),(6, 781, 1),(6, 782, 1),(6, 783, 1),(6, 784, 1),(6, 785, 1),(6, 786, 1),(6, 165, 1), -(6, 787, 1),(6, 682, 3),(6, 223, 3),(6, 224, 3),(7, 1, 11),(7, 788, 12),(7, 789, 2),(7, 427, 2),(7, 790, 1),(7, 791, 2),(7, 422, 1),(7, 792, 1), -(7, 793, 2),(7, 461, 2),(7, 794, 1),(7, 411, 1),(7, 795, 1),(7, 796, 1),(7, 797, 1),(7, 798, 1),(7, 799, 1),(7, 800, 1),(7, 259, 1),(7, 57, 1), -(7, 801, 1),(7, 802, 1),(7, 803, 1),(7, 804, 1),(7, 723, 1),(7, 60, 1),(7, 805, 1),(7, 806, 1),(7, 807, 1),(7, 51, 4),(7, 808, 1),(7, 809, 1), -(7, 810, 1),(7, 811, 1),(7, 812, 1),(7, 813, 1),(7, 814, 1),(7, 815, 1),(7, 816, 1),(7, 817, 1),(7, 818, 1),(7, 456, 1),(7, 819, 1),(7, 820, 1), -(7, 821, 1),(7, 822, 1),(7, 823, 1),(7, 38, 4),(7, 824, 1),(7, 825, 1),(7, 242, 1),(7, 826, 1),(7, 827, 1),(7, 37, 1),(7, 828, 1),(7, 829, 1), -(7, 830, 1),(7, 831, 1),(7, 832, 1),(7, 833, 1),(7, 834, 1),(7, 835, 1),(7, 836, 1),(7, 837, 1),(7, 838, 1),(7, 839, 1),(7, 840, 1),(7, 841, 1), -(7, 65, 1),(7, 842, 1),(7, 843, 1),(7, 844, 1),(7, 241, 1),(7, 845, 1),(7, 434, 1),(7, 846, 2),(7, 847, 1),(7, 722, 1),(7, 848, 1),(7, 849, 1), -(7, 850, 1),(7, 851, 1),(7, 852, 1),(7, 700, 1),(7, 853, 1),(7, 854, 1),(7, 855, 1),(7, 856, 1),(7, 857, 1),(7, 67, 3),(7, 858, 2),(7, 71, 2), -(7, 859, 2),(7, 81, 2),(7, 860, 2),(7, 861, 2),(7, 862, 2),(7, 82, 11),(7, 863, 11),(7, 864, 1),(7, 531, 2),(7, 865, 2),(7, 525, 1),(7, 866, 1), -(7, 867, 1),(7, 868, 1),(7, 869, 1),(7, 870, 1),(7, 308, 1),(7, 565, 1),(7, 871, 1),(7, 872, 1),(7, 873, 1),(7, 874, 2),(7, 875, 1),(7, 876, 1), -(7, 877, 2),(7, 878, 6),(7, 879, 3),(7, 880, 1),(7, 86, 1),(7, 757, 1),(7, 881, 1),(7, 882, 1),(7, 883, 2),(7, 884, 1),(7, 885, 2),(7, 886, 1), -(7, 887, 1),(7, 131, 2),(7, 888, 1),(7, 889, 1),(7, 890, 1),(7, 891, 1),(7, 892, 1),(7, 893, 1),(7, 894, 1),(7, 895, 1),(7, 896, 1),(7, 897, 1), -(7, 898, 1),(7, 899, 1),(7, 900, 1),(7, 901, 1),(7, 902, 1),(7, 903, 1),(7, 904, 1),(7, 905, 1),(7, 906, 1),(7, 907, 1),(7, 118, 2),(7, 136, 1), -(7, 576, 1),(7, 908, 1),(7, 909, 1),(7, 910, 1),(7, 911, 1),(7, 912, 1),(7, 524, 1),(7, 913, 1),(7, 109, 2),(7, 570, 1),(7, 914, 1),(7, 915, 1), -(7, 916, 2),(7, 917, 1),(7, 918, 1),(7, 919, 1),(7, 920, 1),(7, 921, 1),(7, 922, 1),(7, 923, 1),(7, 924, 1),(7, 925, 1),(7, 124, 2),(7, 926, 1), -(7, 927, 1),(7, 928, 1),(7, 318, 1),(7, 929, 1),(7, 930, 1),(7, 931, 1),(7, 932, 1),(7, 933, 1),(7, 334, 1),(7, 934, 1),(7, 935, 1),(7, 936, 1), -(7, 500, 1),(7, 937, 1),(7, 938, 1),(7, 939, 1),(7, 940, 1),(7, 941, 1),(7, 942, 1),(7, 943, 1),(7, 734, 1),(7, 944, 1),(7, 945, 1),(7, 946, 1), -(7, 947, 1),(7, 948, 1),(7, 949, 1),(7, 567, 1),(7, 145, 3),(7, 950, 4),(7, 951, 2),(7, 149, 2),(7, 952, 2),(7, 159, 2),(7, 953, 2),(7, 954, 2), -(7, 955, 2),(7, 160, 7),(7, 956, 7),(7, 957, 1),(7, 628, 2),(7, 958, 2),(7, 621, 3),(7, 622, 1),(7, 959, 1),(7, 960, 2),(7, 665, 2),(7, 961, 1), -(7, 962, 1),(7, 963, 2),(7, 964, 1),(7, 362, 1),(7, 965, 1),(7, 966, 1),(7, 967, 1),(7, 968, 2),(7, 969, 1),(7, 970, 1),(7, 971, 2),(7, 972, 1), -(7, 164, 1),(7, 165, 1),(7, 973, 1),(7, 974, 2),(7, 975, 1),(7, 976, 2),(7, 977, 1),(7, 978, 1),(7, 979, 1),(7, 980, 1),(7, 981, 1),(7, 982, 1), -(7, 983, 1),(7, 984, 1),(7, 985, 1),(7, 986, 1),(7, 987, 1),(7, 988, 1),(7, 989, 1),(7, 990, 1),(7, 991, 2),(7, 992, 1),(7, 993, 1),(7, 994, 1), -(7, 995, 1),(7, 615, 2),(7, 213, 1),(7, 996, 1),(7, 204, 1),(7, 997, 1),(7, 998, 1),(7, 764, 1),(7, 999, 1),(7, 1000, 1),(7, 1001, 1), -(7, 1002, 2),(7, 1003, 2),(7, 1004, 4),(7, 1005, 2),(7, 1006, 1),(7, 1007, 1),(7, 1008, 1),(7, 1009, 1),(7, 371, 1),(7, 1010, 1),(7, 1011, 1), -(7, 1012, 1),(7, 1013, 1),(7, 1014, 1),(7, 1015, 1),(7, 1016, 1),(7, 1017, 1),(7, 1018, 1),(7, 384, 1),(7, 1019, 1),(7, 1020, 1),(7, 1021, 1), -(7, 1022, 1),(7, 1023, 1),(7, 1024, 1),(7, 606, 1),(7, 765, 1),(7, 1025, 1),(7, 1026, 1),(7, 1027, 1),(7, 1028, 1),(7, 1029, 1),(7, 1030, 1), -(7, 1031, 1),(7, 1032, 1),(7, 1033, 1),(7, 222, 3),(7, 1034, 2),(7, 226, 2),(7, 1035, 2),(7, 235, 2),(7, 1036, 2),(7, 1037, 2),(7, 1038, 2), -(8, 1039, 6),(8, 1040, 6),(8, 1041, 6),(8, 1042, 6),(8, 1043, 6),(8, 1, 6),(8, 2, 6),(8, 1044, 6),(8, 1045, 6),(8, 1046, 2),(8, 1047, 2), -(8, 1048, 3),(8, 1049, 6),(8, 1050, 6),(8, 1051, 8),(8, 1052, 6),(8, 1053, 6),(8, 152, 6),(8, 1054, 6),(8, 1055, 1),(8, 1056, 1),(8, 1057, 1), -(8, 1058, 1),(8, 1059, 1),(8, 1060, 1),(8, 1061, 1),(8, 1062, 1),(8, 1063, 1),(8, 1064, 1),(8, 1065, 1),(8, 1066, 1),(8, 1067, 1),(8, 109, 1), -(8, 570, 1),(8, 1068, 1),(8, 118, 3),(8, 82, 1),(8, 1069, 1),(8, 124, 1),(8, 926, 1),(8, 882, 1),(8, 1070, 1),(8, 1071, 1),(8, 730, 1),(8, 1072, 2), -(8, 1073, 1),(8, 1074, 1),(8, 1075, 1),(8, 1076, 1),(8, 944, 1),(8, 1077, 1),(8, 1078, 1),(8, 1079, 3),(8, 1080, 6),(8, 1081, 6),(8, 1082, 6), -(8, 1083, 6),(8, 229, 6),(8, 1084, 6),(8, 1085, 1),(8, 1023, 1),(8, 1086, 2),(8, 1087, 1),(8, 1088, 1),(8, 1089, 1),(8, 1090, 1),(8, 1091, 1), -(8, 1092, 1),(8, 1093, 1),(8, 1094, 1),(8, 1095, 1),(8, 1096, 1),(8, 1097, 1),(8, 163, 1),(8, 1098, 1),(8, 1099, 1),(8, 669, 1),(8, 1100, 1), -(8, 160, 1),(8, 1101, 1),(8, 1013, 1),(8, 1102, 1),(8, 1103, 1),(8, 1104, 1),(8, 762, 1),(8, 1105, 2),(8, 1106, 1),(8, 1107, 1),(8, 1108, 1), -(8, 1109, 1),(8, 1025, 1),(8, 1110, 1),(8, 1111, 1),(8, 1112, 1),(8, 1113, 3),(9, 1114, 11),(9, 1115, 9),(9, 1116, 7),(9, 850, 8),(9, 1, 8), -(9, 1117, 8),(9, 1118, 1),(9, 442, 4),(9, 41, 1),(9, 1119, 1),(9, 826, 1),(9, 1120, 1),(9, 1121, 1),(9, 1122, 1),(9, 1123, 1),(9, 1124, 2),(9, 1125, 1), -(9, 1126, 1),(9, 1127, 2),(9, 1128, 3),(9, 20, 1),(9, 1129, 1),(9, 1130, 1),(9, 1131, 1),(9, 1132, 1),(9, 1133, 3),(9, 1134, 1),(9, 1135, 1), -(9, 1136, 1),(9, 1137, 1),(9, 3, 3),(9, 1138, 1),(9, 1139, 1),(9, 1140, 1),(9, 1141, 1),(9, 38, 2),(9, 840, 1),(9, 1142, 1),(9, 238, 2),(9, 1143, 1), -(9, 1144, 1),(9, 1145, 2),(9, 430, 1),(9, 845, 1),(9, 81, 1),(9, 1146, 1),(9, 1147, 1),(9, 1148, 1),(9, 1149, 1),(9, 805, 1),(9, 1150, 1),(9, 1151, 1), -(9, 1152, 1),(9, 1153, 1),(9, 1154, 1),(9, 1155, 1),(9, 1156, 1),(9, 1157, 1),(9, 4, 1),(9, 1158, 2),(9, 51, 5),(9, 1159, 1),(9, 1160, 1),(9, 1161, 1), -(9, 1162, 1),(9, 1163, 1),(9, 1164, 1),(9, 851, 4),(9, 1165, 1),(9, 1166, 1),(9, 1167, 1),(9, 1168, 1),(9, 1169, 1),(9, 1170, 1),(9, 1171, 1),(9, 1172, 1), -(9, 448, 1),(9, 1173, 1),(9, 1174, 1),(9, 1175, 1),(9, 1176, 1),(9, 1177, 1),(9, 1178, 1),(9, 1179, 1),(9, 1180, 1),(9, 1181, 1),(9, 1182, 1),(9, 1183, 1), -(9, 1184, 1),(9, 1185, 1),(9, 1186, 1),(9, 1187, 1),(9, 1188, 1),(9, 1189, 1),(9, 1190, 1),(9, 1191, 2),(9, 1192, 2),(9, 1193, 1),(9, 1194, 3), -(9, 1195, 3),(9, 1196, 2),(9, 1197, 2),(9, 1198, 2),(9, 1199, 1),(9, 1200, 1),(9, 1201, 1),(9, 1202, 1),(9, 1203, 1),(9, 1204, 1),(9, 1205, 2), -(9, 1206, 1),(9, 1207, 2),(9, 1208, 1),(9, 1209, 1),(9, 1210, 2),(9, 1211, 1),(9, 1212, 1),(9, 1213, 1),(9, 1214, 1),(9, 1215, 1),(9, 1216, 1), -(9, 22, 1),(9, 1217, 1),(9, 1218, 1),(9, 1219, 4),(9, 1220, 2),(9, 1221, 1),(9, 1222, 1),(9, 1223, 1),(9, 47, 2),(9, 1224, 1),(9, 68, 2), -(9, 1225, 1),(9, 1226, 1),(9, 1227, 1),(9, 1228, 1),(9, 1229, 1),(9, 1230, 1),(9, 1231, 1),(9, 1232, 1),(9, 1233, 1),(9, 1234, 1),(9, 1235, 2), -(9, 1236, 1),(9, 1237, 1),(9, 1238, 1),(9, 1239, 1),(9, 1240, 1),(9, 1241, 1),(9, 1242, 1),(9, 1243, 1),(9, 1244, 1),(9, 1245, 1),(9, 1246, 1), -(9, 1247, 1),(9, 1048, 3),(9, 1248, 3),(9, 942, 17),(9, 1249, 13),(9, 1250, 13),(9, 1251, 11),(9, 1252, 11),(9, 1253, 1),(9, 1254, 2),(9, 1255, 1), -(9, 1256, 1),(9, 1257, 5),(9, 90, 2),(9, 1258, 1),(9, 1259, 1),(9, 1260, 1),(9, 159, 1),(9, 583, 1),(9, 1261, 1),(9, 1262, 1),(9, 910, 1), -(9, 1263, 1),(9, 1264, 1),(9, 1265, 1),(9, 1266, 1),(9, 1267, 1),(9, 1268, 1),(9, 1269, 1),(9, 1270, 2),(9, 1271, 1),(9, 1272, 1),(9, 1273, 1), -(9, 1274, 1),(9, 1275, 1),(9, 1276, 3),(9, 1277, 2),(9, 1278, 1),(9, 103, 1),(9, 1279, 2),(9, 1280, 1),(9, 1065, 1),(9, 1281, 4),(9, 1282, 1), -(9, 1283, 1),(9, 1284, 1),(9, 1285, 1),(9, 85, 1),(9, 1286, 1),(9, 1287, 1),(9, 943, 7),(9, 1288, 3),(9, 1289, 1),(9, 1290, 1),(9, 562, 1), -(9, 1291, 1),(9, 109, 7),(9, 1292, 1),(9, 1293, 1),(9, 118, 2),(9, 136, 2),(9, 1294, 1),(9, 95, 7),(9, 1295, 1),(9, 1296, 1),(9, 918, 1), -(9, 1297, 1),(9, 931, 1),(9, 1298, 1),(9, 1299, 1),(9, 1300, 1),(9, 1301, 1),(9, 1302, 1),(9, 131, 3),(9, 1303, 2),(9, 1304, 2),(9, 1305, 2), -(9, 1306, 1),(9, 1307, 2),(9, 1308, 1),(9, 1309, 1),(9, 1310, 1),(9, 1311, 1),(9, 319, 1),(9, 1312, 2),(9, 1313, 1),(9, 1314, 1),(9, 1315, 1), -(9, 500, 1),(9, 499, 1),(9, 1316, 4),(9, 1317, 1),(9, 1318, 1),(9, 1319, 1),(9, 1320, 1),(9, 1321, 1),(9, 523, 1),(9, 1322, 1),(9, 1323, 1), -(9, 1324, 3),(9, 1325, 3),(9, 1326, 2),(9, 1327, 1),(9, 1328, 1),(9, 1329, 1),(9, 1330, 1),(9, 1331, 1),(9, 1332, 1),(9, 1333, 1),(9, 1334, 1), -(9, 1335, 1),(9, 1336, 1),(9, 1337, 1),(9, 299, 1),(9, 553, 2),(9, 1338, 1),(9, 1339, 1),(9, 1340, 1),(9, 1341, 1),(9, 1342, 1),(9, 1343, 1), -(9, 1344, 1),(9, 330, 1),(9, 544, 1),(9, 1345, 1),(9, 1346, 1),(9, 1347, 1),(9, 1348, 1),(9, 1349, 1),(9, 1350, 1),(9, 1351, 1),(9, 1352, 1), -(9, 1353, 1),(9, 1354, 1),(9, 1355, 1),(9, 1356, 1),(9, 1357, 1),(9, 1358, 1),(9, 1359, 1),(9, 1360, 1),(9, 1361, 1),(9, 1362, 1),(9, 1363, 1), -(9, 1364, 1),(9, 1365, 2),(9, 1366, 1),(9, 1367, 2),(9, 1368, 1),(9, 1369, 1),(9, 505, 2),(9, 1370, 1),(9, 1371, 1),(9, 1372, 2),(9, 570, 1), -(9, 1373, 1),(9, 1374, 1),(9, 1375, 1),(9, 1376, 1),(9, 1055, 3),(9, 1377, 2),(9, 1378, 1),(9, 1379, 1),(9, 730, 1),(9, 1380, 1),(9, 1381, 1), -(9, 1382, 1),(9, 1383, 1),(9, 1384, 2),(9, 1385, 1),(9, 1386, 2),(9, 1387, 1),(9, 1388, 1),(9, 889, 1),(9, 1389, 1),(9, 1390, 1),(9, 1391, 1), -(9, 1392, 1),(9, 1393, 1),(9, 938, 1),(9, 1394, 1),(9, 1395, 1),(9, 1396, 1),(9, 1397, 1),(9, 1398, 1),(9, 1399, 1),(9, 940, 1),(9, 941, 1), -(9, 1400, 1),(9, 1401, 1),(9, 1402, 1),(9, 1079, 3),(9, 1403, 3),(9, 1404, 4),(9, 1405, 4),(9, 1024, 12),(9, 1406, 6),(9, 1407, 6),(9, 1408, 12), -(9, 1409, 11),(9, 1410, 9),(9, 1411, 1),(9, 1412, 2),(9, 1413, 1),(9, 1414, 1),(9, 1415, 1),(9, 1416, 1),(9, 1417, 1),(9, 1418, 5),(9, 1419, 1), -(9, 1420, 1),(9, 1421, 1),(9, 1422, 1),(9, 1423, 1),(9, 1424, 3),(9, 1425, 1),(9, 764, 2),(9, 1426, 1),(9, 1427, 1),(9, 1428, 1),(9, 1429, 1), -(9, 1430, 2),(9, 1431, 1),(9, 1432, 2),(9, 1433, 1),(9, 1434, 1),(9, 1435, 2),(9, 1436, 1),(9, 1437, 3),(9, 1438, 2),(9, 1439, 1),(9, 181, 1), -(9, 1440, 3),(9, 356, 2),(9, 658, 2),(9, 173, 11),(9, 1441, 6),(9, 1442, 5),(9, 1443, 1),(9, 1444, 1),(9, 1445, 2),(9, 1446, 1),(9, 163, 1), -(9, 1447, 1),(9, 1448, 1),(9, 606, 7),(9, 1449, 3),(9, 1450, 1),(9, 1451, 1),(9, 662, 1),(9, 1452, 1),(9, 1453, 1),(9, 213, 2),(9, 1454, 1), -(9, 1455, 1),(9, 1456, 1),(9, 1457, 1),(9, 610, 1),(9, 1458, 1),(9, 1459, 1),(9, 1460, 1),(9, 1461, 1),(9, 1462, 1),(9, 1463, 1),(9, 1464, 2), -(9, 1465, 2),(9, 1466, 2),(9, 1467, 1),(9, 1468, 2),(9, 631, 1),(9, 1469, 2),(9, 1470, 1),(9, 1471, 2),(9, 1472, 1),(9, 1473, 1),(9, 1474, 2), -(9, 1475, 1),(9, 1476, 1),(9, 660, 1),(9, 601, 1),(9, 1477, 4),(9, 635, 1),(9, 1478, 1),(9, 653, 3),(9, 654, 1),(9, 1479, 1),(9, 1480, 1), -(9, 1481, 3),(9, 1482, 3),(9, 1483, 2),(9, 1484, 1),(9, 1485, 1),(9, 1486, 1),(9, 1487, 1),(9, 1488, 2),(9, 1489, 1),(9, 1490, 1),(9, 1491, 1), -(9, 1492, 1),(9, 354, 2),(9, 1493, 1),(9, 593, 1),(9, 1494, 1),(9, 1495, 1),(9, 1496, 1),(9, 1497, 1),(9, 381, 1),(9, 1498, 1),(9, 1499, 1), -(9, 1500, 1),(9, 1501, 1),(9, 1502, 1),(9, 1503, 1),(9, 1504, 1),(9, 1505, 1),(9, 1506, 1),(9, 1507, 1),(9, 1508, 1),(9, 1509, 1),(9, 1510, 1), -(9, 1511, 1),(9, 1512, 1),(9, 1513, 1),(9, 1514, 1),(9, 1515, 1),(9, 1516, 1),(9, 1517, 2),(9, 1518, 1),(9, 1519, 1),(9, 1520, 1),(9, 1521, 1), -(9, 1522, 1),(9, 1523, 1),(9, 669, 1),(9, 1524, 1),(9, 1525, 1),(9, 1526, 1),(9, 191, 1),(9, 1023, 3),(9, 1527, 2),(9, 1528, 1),(9, 1099, 1), -(9, 762, 1),(9, 1529, 1),(9, 1530, 1),(9, 1531, 1),(9, 786, 1),(9, 1532, 2),(9, 1533, 1),(9, 1534, 2),(9, 1535, 1),(9, 1536, 1),(9, 973, 1), -(9, 1537, 1),(9, 1103, 1),(9, 1538, 1),(9, 1539, 1),(9, 1540, 1),(9, 1021, 1),(9, 1541, 1),(9, 1542, 1),(9, 1543, 1),(9, 1544, 1),(9, 1545, 1), -(9, 1546, 1),(9, 1022, 1),(9, 1547, 1),(9, 1548, 1),(9, 1549, 1),(9, 1550, 1),(9, 1551, 1),(9, 1113, 3),(9, 1552, 3); - -INSERT INTO `PREFIX_search_word` (`id_word`, `id_lang`, `word`) VALUES (1, 1, 'ipod'),(2, 1, 'nano'),(3, 1, 'design'),(4, 1, 'features'),(5, 1, '16gb'), -(6, 1, 'rocks'),(7, 1, 'like'),(8, 1, 'never'),(9, 1, 'before'),(10, 1, 'curved'),(11, 1, 'ahead'),(12, 1, 'curve'),(13, 1, 'those'),(14, 1, 'about'), -(15, 1, 'rock,'),(16, 1, 'give'),(17, 1, 'nine'),(18, 1, 'amazing'),(19, 1, 'colors'),(20, 1, 'that''s'),(21, 1, 'only'),(22, 1, 'part'), -(23, 1, 'story'),(24, 1, 'feel'),(25, 1, 'curved,'),(26, 1, 'allaluminum'),(27, 1, 'glass'),(28, 1, 'won''t'),(29, 1, 'want'),(30, 1, 'down'), -(31, 1, 'great'),(32, 1, 'looks'),(33, 1, 'brains,'),(34, 1, 'genius'),(35, 1, 'feature'),(36, 1, 'turns'),(37, 1, 'into'),(38, 1, 'your'), -(39, 1, 'highly'),(40, 1, 'intelligent,'),(41, 1, 'personal'),(42, 1, 'creates'),(43, 1, 'playlists'),(44, 1, 'finding'),(45, 1, 'songs'), -(46, 1, 'library'),(47, 1, 'that'),(48, 1, 'together'),(49, 1, 'made'),(50, 1, 'move'),(51, 1, 'with'),(52, 1, 'moves'),(53, 1, 'accelerometer'), -(54, 1, 'comes'),(55, 1, 'shake'),(56, 1, 'shuffle'),(57, 1, 'music'),(58, 1, 'turn'),(59, 1, 'sideways'),(60, 1, 'view'),(61, 1, 'cover'),(62, 1, 'flow'), -(63, 1, 'play'),(64, 1, 'games'),(65, 1, 'designed'),(66, 1, 'mind'),(67, 1, 'ipods'),(68, 1, 'apple'),(69, 1, 'computer,'),(70, 1, 'metal'), -(71, 1, '16go'),(72, 1, 'yellow'),(73, 1, 'blue'),(74, 1, 'black'),(75, 1, 'orange'),(76, 1, 'pink'),(77, 1, 'green'),(78, 1, 'purple'),(79, 1, 'g'), -(80, 1, 'minijack'),(81, 1, 'stereo'),(82, 2, 'ipod'),(83, 2, 'nano'),(84, 2, 'nouveau'),(85, 2, 'design'),(86, 2, 'nouvelles'),(87, 2, 'fonctionnalité'), -(88, 2, 'désormais'),(89, 2, 'nano,'),(90, 2, 'plus'),(91, 2, 'rock'),(92, 2, 'jamais'),(93, 2, 'courbes'),(94, 2, 'avantageuses'),(95, 2, 'pour'), -(96, 2, 'amateurs'),(97, 2, 'sensations,'),(98, 2, 'voici'),(99, 2, 'neuf'),(100, 2, 'nouveaux'),(101, 2, 'coloris'),(102, 2, 'n''est'),(103, 2, 'tout'), -(104, 2, 'faites'),(105, 2, 'l''expérience'),(106, 2, 'elliptique'),(107, 2, 'aluminum'),(108, 2, 'verre'),(109, 2, 'vous'),(110, 2, 'voudrez'), -(111, 2, 'lâcher'),(112, 2, 'beau'),(113, 2, 'intelligent'),(114, 2, 'nouvelle'),(115, 2, 'genius'),(116, 2, 'fait'),(117, 2, 'd''ipod'),(118, 2, 'votre'), -(119, 2, 'personnel'),(120, 2, 'crée'),(121, 2, 'listes'),(122, 2, 'lecture'),(123, 2, 'recherchant'),(124, 2, 'dans'),(125, 2, 'bibliothèque'), -(126, 2, 'chansons'),(127, 2, 'vont'),(128, 2, 'bien'),(129, 2, 'ensemble'),(130, 2, 'bouger'),(131, 2, 'avec'),(132, 2, 'équipé'),(133, 2, 'l''accéléromè'), -(134, 2, 'secouezle'),(135, 2, 'mélanger'),(136, 2, 'musique'),(137, 2, 'basculezle'),(138, 2, 'afficher'),(139, 2, 'cover'),(140, 2, 'flow'), -(141, 2, 'découvrez'),(142, 2, 'jeux'),(143, 2, 'adaptés'),(144, 2, 'mouvements'),(145, 2, 'ipods'),(146, 2, 'apple'),(147, 2, 'computer,'),(148, 2, 'metal'), -(149, 2, '16go'),(150, 2, 'jaune'),(151, 2, 'bleu'),(152, 2, 'noir'),(153, 2, 'orange'),(154, 2, 'rose'),(155, 2, 'vert'),(156, 2, 'violet'), -(157, 2, 'g'),(158, 2, 'minijack'),(159, 2, 'stéréo'),(160, 3, 'ipod'),(161, 3, 'nano'),(162, 3, 'nuevo'),(163, 3, 'diseño'),(164, 3, 'nuevas'), -(165, 3, 'aplicaciones'),(166, 3, 'ahora'),(167, 3, 'disponible'),(168, 3, 'nano,'),(169, 3, 'rock'),(170, 3, 'nunca'),(171, 3, 'curvas'), -(172, 3, 'aerodinámicas'),(173, 3, 'para'),(174, 3, 'aficionados'),(175, 3, 'sensaciones'),(176, 3, 'fuertes,'),(177, 3, 'presentamos'),(178, 3, 'nueve'), -(179, 3, 'nuevos'),(180, 3, 'colores'),(181, 3, 'todo'),(182, 3, 'experimenta'),(183, 3, 'elíptico'),(184, 3, 'aluminio'),(185, 3, 'vidrio'), -(186, 3, 'querrás'),(187, 3, 'separarte'),(188, 3, 'estético'),(189, 3, 'inteligente'),(190, 3, 'nueva'),(191, 3, 'aplicación'),(192, 3, 'genius'), -(193, 3, 'hace'),(194, 3, 'discjockey'),(195, 3, 'personal'),(196, 3, 'genuis'),(197, 3, 'crea'),(198, 3, 'listas'),(199, 3, 'lectura'),(200, 3, 'buscando'), -(201, 3, 'biblioteca'),(202, 3, 'canciones'),(203, 3, 'combinan'),(204, 3, 'entre'),(205, 3, 'hecho'),(206, 3, 'moverse'),(207, 3, 'contigo'),(208, 3, 'está'), -(209, 3, 'equipado'),(210, 3, 'acelerómetro'),(211, 3, 'muévelo'),(212, 3, 'mezclar'),(213, 3, 'música'),(214, 3, 'voltéalo'),(215, 3, 'mostrar'), -(216, 3, 'cover'),(217, 3, 'flow'),(218, 3, 'descubre'),(219, 3, 'juegos'),(220, 3, 'adaptados'),(221, 3, 'movimientos'),(222, 3, 'ipods'),(223, 3, 'apple'), -(224, 3, 'computer,'),(225, 3, 'metal'),(226, 3, '16go'),(227, 3, 'amarillo'),(228, 3, 'azul'),(229, 3, 'negro'),(230, 3, 'naranja'),(231, 3, 'rosa'), -(232, 3, 'verde'),(233, 3, 'violeta'),(234, 3, 'minijack'),(235, 3, 'stéréo'),(236, 1, 'shuffle,'),(237, 1, 'world'),(238, 1, 'most'),(239, 1, 'wearable'), -(240, 1, 'player,'),(241, 1, 'clips'),(242, 1, 'more'),(243, 1, 'vibrant'),(244, 1, 'blue,'),(245, 1, 'green,'),(246, 1, 'pink,'),(247, 1, 'instant'), -(248, 1, 'attachment'),(249, 1, 'wear'),(250, 1, 'sleeve'),(251, 1, 'belt'),(252, 1, 'shorts'),(253, 1, 'badge'),(254, 1, 'musical'),(255, 1, 'devotion'), -(256, 1, 'new,'),(257, 1, 'brilliant'),(258, 1, 'feed'),(259, 1, 'itunes'),(260, 1, 'entertainment'),(261, 1, 'superstore'),(262, 1, 'ultraorganized'), -(263, 1, 'collection'),(264, 1, 'jukebox'),(265, 1, 'load'),(266, 1, 'click'),(267, 1, 'beauty'),(268, 1, 'beat'),(269, 1, 'intensely'),(270, 1, 'colorful'), -(271, 1, 'anodized'),(272, 1, 'aluminum'),(273, 1, 'complements'),(274, 1, 'simple'),(275, 1, 'red,'),(276, 1, 'original'),(277, 1, 'silver'),(278, 1, '(clip'), -(279, 1, 'compris)'),(280, 2, 'shuffle'),(281, 2, 'shuffle,'),(282, 2, 'baladeur'),(283, 2, 'portable'),(284, 2, 'monde,'),(285, 2, 'clippe'),(286, 2, 'maintenant'), -(287, 2, 'bleu,'),(288, 2, 'vert,'),(289, 2, 'rouge'),(290, 2, 'lien'),(291, 2, 'immédiat'),(292, 2, 'portez'),(294, 2, 'accrochées'),(295, 2, 'manche,'), -(296, 2, 'ceinture'),(297, 2, 'short'),(298, 2, 'arborez'),(299, 2, 'comme'),(300, 2, 'signe'),(301, 2, 'extérieur'),(302, 2, 'passion'),(303, 2, 'existe'), -(304, 2, 'quatre'),(305, 2, 'encore'),(306, 2, 'éclatants'),(307, 2, 'emplissez'),(308, 2, 'itunes'),(309, 2, 'immense'),(310, 2, 'magasin'),(311, 2, 'dédié'), -(312, 2, 'divertissement,'),(313, 2, 'collection'),(314, 2, 'musicale'),(315, 2, 'parfaitement'),(316, 2, 'organisée'),(317, 2, 'jukebox'),(318, 2, 'pouvez'), -(319, 2, 'seul'),(320, 2, 'clic'),(321, 2, 'remplir'),(322, 2, 'technicolor'),(323, 2, 's''affiche'),(324, 2, 'intenses'),(325, 2, 'rehaussent'),(326, 2, 'épuré'), -(327, 2, 'boîtier'),(328, 2, 'aluminium'),(329, 2, 'anodisé'),(330, 2, 'choisissez'),(331, 2, 'parmi'),(332, 2, 'rose,'),(333, 2, 'l''argenté'),(334, 2, 'd''origine'), -(335, 2, '(clip'),(336, 2, 'compris)'),(337, 3, 'shuffle'),(338, 3, 'shuffle,'),(339, 3, 'walkman'),(340, 3, 'portátil'),(341, 3, 'mundo,'),(342, 3, 'azul,'), -(343, 3, 'verde,'),(344, 3, 'rojo'),(345, 3, 'enlace'),(346, 3, 'inmediato'),(347, 3, 'lleva'),(348, 3, 'hasta'),(349, 3, 'colgadas'),(350, 3, 'manga,'), -(351, 3, 'cinturón'),(352, 3, 'pantalón'),(353, 3, 'presume'),(354, 3, 'como'),(355, 3, 'signo'),(356, 3, 'exterior'),(357, 3, 'pasión'),(358, 3, 'existen'), -(359, 3, 'cuatro'),(360, 3, 'llamativos'),(361, 3, 'llena'),(362, 3, 'itunes'),(363, 3, 'enorme'),(364, 3, 'tienda'),(365, 3, 'dedicada'),(366, 3, 'diversión,'), -(367, 3, 'colección'),(368, 3, 'organizada'),(369, 3, 'perfectamente'),(370, 3, 'jukebox'),(371, 3, 'solo'),(372, 3, 'clic'),(373, 3, 'puedes'),(374, 3, 'llenar'), -(375, 3, 'tecnicolor'),(376, 3, 'presenta'),(377, 3, 'vivos'),(378, 3, 'realzan'),(379, 3, 'estilizado'),(380, 3, 'anodizado'),(381, 3, 'elige'),(382, 3, 'rosa,'), -(383, 3, 'plateado'),(384, 3, 'origen'),(385, 3, '(clip'),(386, 3, 'incluyendo)'),(387, 1, 'macbook'),(388, 1, 'ultrathin,'),(389, 1, 'ultraportable,'), -(390, 1, 'ultra'),(391, 1, 'unlike'),(392, 1, 'anything'),(393, 1, 'else'),(394, 1, 'lose'),(395, 1, 'inches'),(396, 1, 'pounds'),(397, 1, 'overnight'), -(398, 1, 'result'),(399, 1, 'rethinking'),(400, 1, 'conventions'),(401, 1, 'multiple'),(402, 1, 'wireless'),(403, 1, 'innovations'),(404, 1, 'breakthrough'), -(405, 1, 'air,'),(406, 1, 'mobile'),(407, 1, 'computing'),(408, 1, 'suddenly'),(409, 1, 'standard'),(410, 1, 'nearly'),(411, 1, 'thin'),(412, 1, 'index'), -(413, 1, 'finger'),(414, 1, 'practically'),(415, 1, 'every'),(416, 1, 'detail'),(417, 1, 'could'),(418, 1, 'streamlined'),(419, 1, 'been'),(420, 1, 'still'), -(421, 1, '133inch'),(422, 1, 'widescreen'),(423, 1, 'display,'),(424, 1, 'fullsize'),(425, 1, 'keyboard,'),(426, 1, 'large'),(427, 1, 'multitouch'), -(428, 1, 'trackpad'),(429, 1, 'incomparably'),(430, 1, 'portable'),(431, 1, 'without'),(432, 1, 'usual'),(433, 1, 'ultraportable'),(434, 1, 'screen'), -(435, 1, 'keyboard'),(436, 1, 'compromisesthe'),(437, 1, 'incredible'),(438, 1, 'thinness'),(439, 1, 'numerous'),(440, 1, 'size'),(441, 1, 'weightshaving'), -(442, 1, 'from'),(443, 1, 'slimmer'),(444, 1, 'hard'),(445, 1, 'drive'),(446, 1, 'strategically'),(447, 1, 'hidden'),(448, 1, 'ports'),(449, 1, 'lowerprofile'), -(450, 1, 'battery,'),(451, 1, 'everything'),(452, 1, 'considered'),(453, 1, 'reconsidered'),(454, 1, 'mindmacbook'),(455, 1, 'engineered'),(456, 1, 'take'), -(457, 1, 'full'),(458, 1, 'advantage'),(459, 1, 'which'),(460, 1, '80211n'),(461, 1, 'wifi'),(462, 1, 'fast'),(463, 1, 'available,'),(464, 1, 'people'), -(465, 1, 'truly'),(466, 1, 'living'),(467, 1, 'untethered'),(468, 1, 'buying'),(469, 1, 'renting'),(470, 1, 'movies'),(471, 1, 'online,'),(472, 1, 'downloading'), -(473, 1, 'software,'),(474, 1, 'sharing'),(475, 1, 'storing'),(476, 1, 'files'),(477, 1, 'laptops'),(478, 1, '80gb'),(479, 1, 'parallel'),(480, 1, '4200'), -(481, 1, '160ghz'),(482, 1, 'intel'),(483, 1, 'core'),(484, 1, 'optional'),(485, 1, '64gb'),(486, 1, 'solidstate'),(487, 1, '180ghz'),(488, 2, 'macbook'), -(489, 2, 'ultra'),(490, 2, 'fin,'),(491, 2, 'différent'),(492, 2, 'reste'),(493, 2, 'mais'),(494, 2, 'perd'),(495, 2, 'kilos'),(496, 2, 'centimètres'), -(497, 2, 'nuit'),(498, 2, 'c''est'),(499, 2, 'résultat'),(500, 2, 'd''une'),(501, 2, 'réinvention'),(502, 2, 'normes'),(503, 2, 'multitude'), -(504, 2, 'd''innovations'),(505, 2, 'sans'),(506, 2, 'révolution'),(507, 2, 'air,'),(508, 2, 'l''informatique'),(509, 2, 'mobile'),(510, 2, 'prend'), -(511, 2, 'soudain'),(512, 2, 'dimension'),(513, 2, 'presque'),(514, 2, 'aussi'),(515, 2, 'index'),(516, 2, 'pratiquement'),(517, 2, 'pouvait'), -(518, 2, 'être'),(519, 2, 'simplifié'),(520, 2, 'n''en'),(521, 2, 'dispose'),(522, 2, 'moins'),(523, 2, 'd''un'),(524, 2, 'écran'),(525, 2, 'panoramique'), -(526, 2, 'pouces,'),(527, 2, 'clavier'),(528, 2, 'complet'),(529, 2, 'vaste'),(530, 2, 'trackpad'),(531, 2, 'multitouch'),(532, 2, 'incomparablemen'), -(533, 2, 'évite'),(534, 2, 'compromis'),(535, 2, 'habituels'),(536, 2, 'matière'),(537, 2, 'd''écran'),(538, 2, 'ultraportablesl'),(539, 2, 'finesse'), -(540, 2, 'grand'),(541, 2, 'nombre'),(542, 2, 'termes'),(543, 2, 'réduction'),(544, 2, 'taille'),(545, 2, 'poids'),(546, 2, 'disque'),(547, 2, 'ports'), -(548, 2, 'habilement'),(549, 2, 'dissimulés'),(550, 2, 'passant'),(551, 2, 'batterie'),(552, 2, 'plate,'),(553, 2, 'chaque'),(554, 2, 'détail'), -(555, 2, 'considéré'),(556, 2, 'reconsidéré'),(557, 2, 'l''espritmacbook'),(558, 2, 'conçu'),(559, 2, 'élaboré'),(560, 2, 'profiter'),(561, 2, 'pleinement'), -(562, 2, 'monde'),(563, 2, 'lequel'),(564, 2, 'norme'),(565, 2, 'wifi'),(566, 2, '80211n'),(567, 2, 'rapide'),(568, 2, 'accessible'),(569, 2, 'qu''elle'), -(570, 2, 'permet'),(571, 2, 'véritablement'),(572, 2, 'libérer'),(573, 2, 'toute'),(574, 2, 'attache'),(575, 2, 'acheter'),(576, 2, 'vidéos'),(577, 2, 'ligne,'), -(578, 2, 'télécharger'),(579, 2, 'logicééééie'),(580, 2, 'stocker'),(581, 2, 'partager'),(582, 2, 'fichiers'),(583, 2, 'portables'),(584, 2, 'macbookair'), -(585, 2, 'pata'),(586, 2, 'intel'),(587, 2, 'core'),(588, 2, '(solidstate'),(589, 2, 'drive)'),(590, 3, 'macbook'),(591, 3, 'ultra'),(592, 3, 'fino,'), -(593, 3, 'diferente'),(594, 3, 'resto'),(595, 3, 'pero'),(596, 3, 'pierden'),(597, 3, 'kilos'),(598, 3, 'centímetros'),(599, 3, 'noche'),(600, 3, 'esto'), -(601, 3, 'resultado'),(602, 3, 'invento'),(603, 3, 'normas'),(604, 3, 'sinfín'),(605, 3, 'novedades'),(606, 3, 'cable'),(607, 3, 'revolución'), -(608, 3, 'air,'),(609, 3, 'informática'),(610, 3, 'móvil'),(611, 3, 'adquiere'),(612, 3, 'dimensión'),(613, 3, 'casi'),(614, 3, 'fino'),(615, 3, 'dedo'), -(616, 3, 'simplificado'),(617, 3, 'máximo'),(618, 3, 'pesar'),(619, 3, 'ello'),(620, 3, 'dispone'),(621, 3, 'pantalla'),(622, 3, 'panorámica'), -(623, 3, 'pulgadas,'),(624, 3, 'teclado'),(625, 3, 'completo'),(626, 3, 'amplio'),(627, 3, 'trackpad'),(628, 3, 'multitouch'),(629, 3, '100%,'), -(630, 3, 'evitará'),(631, 3, 'tener'),(632, 3, 'hacer'),(633, 3, 'compromiso'),(634, 3, 'concierne'),(635, 3, 'increíble'),(636, 3, 'sutileza'), -(637, 3, 'gran'),(638, 3, 'número'),(639, 3, 'innovaciones'),(640, 3, 'materia'),(641, 3, 'reducción'),(642, 3, 'tamaño'),(643, 3, 'peso'),(644, 3, 'desde'), -(645, 3, 'disco'),(646, 3, 'duro'),(647, 3, 'puertos'),(648, 3, 'disimulados'),(649, 3, 'hábilmente'),(650, 3, 'pasando'),(651, 3, 'batería'), -(652, 3, 'plana,'),(653, 3, 'cada'),(654, 3, 'detalle'),(655, 3, 'consideró'),(656, 3, 'fuera'),(657, 3, 'posible'),(658, 3, 'creado'),(659, 3, 'elaborado'), -(660, 3, 'disfrutar'),(661, 3, 'plenamente'),(662, 3, 'mundo'),(663, 3, 'inalámbrico'),(664, 3, 'norma'),(665, 3, 'wifi'),(666, 3, '80211n'), -(667, 3, 'rápida'),(668, 3, 'accesible'),(669, 3, 'permite'),(670, 3, 'liberarse'),(671, 3, 'completamente'),(672, 3, 'cualquier'),(673, 3, 'atadura'), -(674, 3, 'comprar'),(675, 3, 'videos'),(676, 3, 'línea,'),(677, 3, 'descargar'),(678, 3, 'programas,'),(679, 3, 'almacenar'),(680, 3, 'compartir'), -(681, 3, 'archivos'),(682, 3, 'portátiles'),(683, 3, 'pata'),(684, 3, 'intel'),(685, 3, 'core'),(686, 3, '(solidstate'),(687, 3, 'drive)'),(688, 1, 'makes'), -(689, 1, 'easy'),(690, 1, 'road'),(691, 1, 'thanks'),(692, 1, 'tough'),(693, 1, 'polycarbonate'),(694, 1, 'case,'),(695, 1, 'builtin'),(696, 1, 'technologies,'), -(697, 1, 'innovative'),(698, 1, 'magsafe'),(699, 1, 'power'),(700, 1, 'adapter'),(701, 1, 'releases'),(702, 1, 'automatically'),(703, 1, 'someone'), -(704, 1, 'accidentally'),(705, 1, 'trips'),(706, 1, 'cord'),(707, 1, 'larger'),(708, 1, 'drive,'),(709, 1, '250gb,'),(710, 1, 'store'),(711, 1, 'growing'), -(712, 1, 'media'),(713, 1, 'collections'),(714, 1, 'valuable'),(715, 1, 'datathe'),(716, 1, '24ghz'),(717, 1, 'models'),(718, 1, 'include'),(719, 1, 'memory'), -(720, 1, 'perfect'),(721, 1, 'running'),(722, 1, 'favorite'),(723, 1, 'applications'),(724, 1, 'smoothly'),(725, 1, 'superdrive'),(726, 2, 'offre'), -(727, 2, 'liberté'),(728, 2, 'mouvement'),(729, 2, 'grâce'),(730, 2, 'résistant'),(731, 2, 'polycarbonate,'),(732, 2, 'technologies'),(733, 2, 'intégrées'), -(734, 2, 'adaptateur'),(735, 2, 'secteur'),(736, 2, 'magsafe'),(737, 2, 'novateur'),(738, 2, 'déconnecte'),(739, 2, 'automatiquement'),(740, 2, 'quelqu''un'), -(741, 2, 'pieds'),(742, 2, 'spacieux,'),(743, 2, 'capacité'),(744, 2, 'atteignant'),(745, 2, 'collections'),(746, 2, 'multimédia'),(747, 2, 'expansion'), -(748, 2, 'données'),(749, 2, 'précieusesle'),(750, 2, 'modèle'),(751, 2, 'intègre'),(752, 2, 'mémoire'),(753, 2, 'standard'),(754, 2, 'l''idéal'), -(755, 2, 'exécuter'),(756, 2, 'souplesse'),(757, 2, 'applications'),(758, 2, 'préférées'),(759, 3, 'ofrece'),(760, 3, 'libertad'),(761, 3, 'gracias'), -(762, 3, 'resistente'),(763, 3, 'policarbonato,'),(764, 3, 'tecnología'),(765, 3, 'adaptador'),(766, 3, 'cargador'),(767, 3, 'sector'),(768, 3, 'innovador'), -(769, 3, 'desconecta'),(770, 3, 'automáticament'),(771, 3, 'alguien'),(772, 3, 'engancha'),(773, 3, 'espacioso,'),(774, 3, 'capacidad'),(775, 3, 'colecciones'), -(776, 3, 'multimedia'),(777, 3, 'expansión'),(778, 3, 'datos'),(779, 3, 'preciados'),(780, 3, 'modelo'),(781, 3, 'integra'),(782, 3, 'memoria'),(783, 3, 'estándar'), -(784, 3, 'ideal'),(785, 3, 'realizar'),(786, 3, 'dificultad'),(787, 3, 'preferidas'),(788, 1, 'touch'),(789, 1, 'revolutionary'),(790, 1, 'interface'), -(791, 1, '35inch'),(792, 1, 'color'),(793, 1, 'display'),(794, 1, '(80211b'),(795, 1, 'safari,'),(796, 1, 'youtube,'),(797, 1, 'mail,'),(798, 1, 'stocks,'), -(799, 1, 'weather,'),(800, 1, 'notes,'),(801, 1, 'store,'),(802, 1, 'maps'),(803, 1, 'five'),(804, 1, 'handson'),(805, 1, 'rich'),(806, 1, 'html'), -(807, 1, 'email'),(808, 1, 'photos'),(809, 1, 'well'),(810, 1, 'pdf,'),(811, 1, 'word,'),(812, 1, 'excel'),(813, 1, 'attachments'),(814, 1, 'maps,'), -(815, 1, 'directions,'),(816, 1, 'realtime'),(817, 1, 'traffic'),(818, 1, 'information'),(819, 1, 'notes'),(820, 1, 'read'),(821, 1, 'stock'),(822, 1, 'weather'), -(823, 1, 'reports'),(824, 1, 'music,'),(825, 1, 'movies,'),(826, 1, 'technology'),(827, 1, 'built'),(828, 1, 'gorgeous'),(829, 1, 'lets'),(830, 1, 'pinch,'), -(831, 1, 'zoom,'),(832, 1, 'scroll,'),(833, 1, 'flick'),(834, 1, 'fingers'),(835, 1, 'internet'),(836, 1, 'pocket'),(837, 1, 'safari'),(838, 1, 'browser,'), -(839, 1, 'websites'),(840, 1, 'they'),(841, 1, 'were'),(842, 1, 'seen'),(843, 1, 'zoom'),(844, 1, 'tap2'),(845, 1, 'home'),(846, 1, 'quick'),(847, 1, 'access'), -(848, 1, 'sites'),(849, 1, 'what''s'),(850, 1, 'earphones'),(851, 1, 'cable'),(852, 1, 'dock'),(853, 1, 'polishing'),(854, 1, 'cloth'),(855, 1, 'stand'), -(856, 1, 'start'),(857, 1, 'guide'),(858, 1, '32go'),(859, 1, 'jack'),(860, 1, '120g'),(861, 1, '70mm'),(862, 1, '110mm'),(863, 2, 'touch'), -(864, 2, 'interface'),(865, 2, 'révolutionnair'),(866, 2, 'couleur'),(867, 2, 'pouceswifi'),(868, 2, '(80211b'),(869, 2, 'd''épaisseursaf'),(870, 2, 'youtube,'), -(871, 2, 'music'),(872, 2, 'store,'),(873, 2, 'courrier,'),(874, 2, 'cartes,'),(875, 2, 'bourse,'),(876, 2, 'météo,'),(877, 2, 'notes'),(878, 2, 'titre'), -(879, 2, 'paragraphe'),(880, 2, 'cinq'),(881, 2, 'sous'),(882, 2, 'main'),(883, 2, 'consultez'),(884, 2, 'emails'),(885, 2, 'format'),(886, 2, 'html'), -(887, 2, 'enrichi,'),(888, 2, 'photos'),(889, 2, 'pieces'),(890, 2, 'jointes'),(891, 2, 'pdf,'),(892, 2, 'word'),(893, 2, 'excel'),(894, 2, 'obtenez'), -(895, 2, 'itinéraires'),(896, 2, 'informations'),(897, 2, 'l''état'),(898, 2, 'circulation'),(899, 2, 'temps'),(900, 2, 'réel'),(901, 2, 'rédigez'), -(902, 2, 'cours'),(903, 2, 'bourse'),(904, 2, 'bulletins'),(905, 2, 'météo'),(906, 2, 'touchez'),(907, 2, 'doigt'),(908, 2, 'entre'),(909, 2, 'autres'), -(910, 2, 'technologie'),(911, 2, 'intégrée'),(912, 2, 'superbe'),(913, 2, 'pouces'),(914, 2, 'd''effectuer'),(915, 2, 'zooms'),(916, 2, 'avant'), -(917, 2, 'arrière,'),(918, 2, 'faire'),(919, 2, 'défiler'),(920, 2, 'feuilleter'),(921, 2, 'pages'),(922, 2, 'l''aide'),(923, 2, 'seuls'),(924, 2, 'doigts'), -(925, 2, 'internet'),(926, 2, 'poche'),(927, 2, 'navigateur'),(928, 2, 'safari,'),(929, 2, 'consulter'),(930, 2, 'sites'),(931, 2, 'leur'),(932, 2, 'mise'), -(933, 2, 'page'),(934, 2, 'effectuer'),(935, 2, 'zoom'),(936, 2, 'arrière'),(937, 2, 'simple'),(938, 2, 'pression'),(939, 2, 'l''écran'),(940, 2, 'contenu'), -(941, 2, 'coffret'),(942, 2, 'écouteurs'),(943, 2, 'câble'),(944, 2, 'dock'),(945, 2, 'chiffon'),(946, 2, 'nettoyage'),(947, 2, 'support'),(948, 2, 'guide'), -(949, 2, 'démarrage'),(950, 2, 'tactile'),(951, 2, '32go'),(952, 2, 'jack'),(953, 2, '120g'),(954, 2, '70mm'),(955, 2, '110mm'),(956, 3, 'touch'), -(957, 3, 'interfaz'),(958, 3, 'revolucionaria'),(959, 3, 'color'),(960, 3, 'pulgadas'),(961, 3, '(80211b'),(962, 3, 'espesor'),(963, 3, 'safari,'), -(964, 3, 'youtube,'),(965, 3, 'music'),(966, 3, 'store,'),(967, 3, 'correo,'),(968, 3, 'mapas,'),(969, 3, 'bolsa,'),(970, 3, 'tiempo,'),(971, 3, 'notas'), -(972, 3, 'cinco'),(973, 3, 'mano'),(974, 3, 'consulta'),(975, 3, 'correo'),(976, 3, 'formato'),(977, 3, 'html'),(978, 3, 'enriquecido,'),(979, 3, 'fotos'), -(980, 3, 'ficheros'),(981, 3, 'adjuntos'),(982, 3, 'pdf,'),(983, 3, 'word'),(984, 3, 'excel'),(985, 3, 'consigue'),(986, 3, 'itinerarios'),(987, 3, 'información'), -(988, 3, 'sobre'),(989, 3, 'estado'),(990, 3, 'carreteras'),(991, 3, 'tiempo'),(992, 3, 'real'),(993, 3, 'escribe'),(994, 3, 'bolsa'),(995, 3, 'alcanza'), -(996, 3, 'videos,'),(997, 3, 'otras'),(998, 3, 'cosas'),(999, 3, 'integrada'),(1000, 3, 'magnífica'),(1001, 3, 'permitirá'),(1002, 3, 'efectuar'),(1003, 3, 'zoom'), -(1004, 3, 'hacia'),(1005, 3, 'adelante'),(1006, 3, 'atrás,'),(1007, 3, 'pasar'),(1008, 3, 'ojear'),(1009, 3, 'páginas'),(1010, 3, 'ayuda'),(1011, 3, 'dedos'), -(1012, 3, 'internet'),(1013, 3, 'bolsillo'),(1014, 3, 'navegador'),(1015, 3, 'podrás'),(1016, 3, 'consultar'),(1017, 3, 'sitios'),(1018, 3, 'compaginación'), -(1019, 3, 'atrás'),(1020, 3, 'simple'),(1021, 3, 'presión'),(1022, 3, 'contenido'),(1023, 3, 'estuche'),(1024, 3, 'auriculares'),(1025, 3, 'dock'),(1026, 3, 'paño'), -(1027, 3, 'limpieza'),(1028, 3, 'base'),(1029, 3, 'guía'),(1030, 3, 'inicio'),(1031, 3, 'rápido'),(1032, 3, 'título'),(1033, 3, 'párrafo'),(1034, 3, '32go'), -(1035, 3, 'jack'),(1036, 3, '120g'),(1037, 3, '70mm'),(1038, 3, '110mm'),(1039, 1, 'housse'),(1040, 1, 'portefeuille'),(1041, 1, 'cuir'),(1042, 1, 'belkin'), -(1043, 1, 'pour'),(1044, 1, 'noir'),(1045, 1, 'chocolat'),(1046, 1, 'lorem'),(1047, 1, 'ipsum'),(1048, 1, 'accessories'),(1049, 2, 'housse'),(1050, 2, 'portefeuille'), -(1051, 2, 'cuir'),(1052, 2, '(ipod'),(1053, 2, 'nano)'),(1054, 2, 'chocolat'),(1055, 2, 'étui'),(1056, 2, 'tendance'),(1057, 2, 'assure'),(1058, 2, 'protection'), -(1059, 2, 'complète'),(1060, 2, 'contre'),(1061, 2, 'éraflures'),(1062, 2, 'petits'),(1063, 2, 'aléas'),(1064, 2, 'quotidienne'),(1065, 2, 'conception'), -(1066, 2, 'élégante'),(1067, 2, 'compacte'),(1068, 2, 'glisser'),(1069, 2, 'directement'),(1070, 2, 'caractéristiqu'),(1071, 2, 'doux'),(1072, 2, 'accès'), -(1073, 2, 'bouton'),(1074, 2, 'hold'),(1075, 2, 'fermeture'),(1076, 2, 'magnétique'),(1077, 2, 'connector'),(1078, 2, 'protègeécran'),(1079, 2, 'accessoires'), -(1080, 3, 'leather'),(1081, 3, 'case'),(1082, 3, '(ipod'),(1083, 3, 'nano)'),(1084, 3, 'chocolate'),(1085, 3, 'este'),(1086, 3, 'cuero'),(1087, 3, 'última'), -(1088, 3, 'moda'),(1089, 3, 'garantiza'),(1090, 3, 'completa'),(1091, 3, 'protección'),(1092, 3, 'contra'),(1093, 3, 'arañazos'),(1094, 3, 'pequeños'), -(1095, 3, 'contratiempos'),(1096, 3, 'vida'),(1097, 3, 'diaria'),(1098, 3, 'elegante'),(1099, 3, 'compacto'),(1100, 3, 'meter'),(1101, 3, 'directamente'), -(1102, 3, 'bolso'),(1103, 3, 'característica'),(1104, 3, 'suave'),(1105, 3, 'acceso'),(1106, 3, 'tecla'),(1107, 3, 'hold'),(1108, 3, 'cierre'), -(1109, 3, 'magnético'),(1110, 3, 'conector'),(1111, 3, 'salva'),(1112, 3, 'pantallas'),(1113, 3, 'accesorios'),(1114, 1, 'shure'),(1115, 1, 'se210'), -(1116, 1, 'soundisolating'),(1117, 1, 'iphone'),(1118, 1, 'evolved'),(1119, 1, 'monitor'),(1120, 1, 'roadtested'),(1121, 1, 'musicians'),(1122, 1, 'perfected'), -(1123, 1, 'engineers,'),(1124, 1, 'lightweight'),(1125, 1, 'stylish'),(1126, 1, 'delivers'),(1127, 1, 'fullrange'),(1128, 1, 'audio'),(1129, 1, 'free'), -(1130, 1, 'outside'),(1131, 1, 'noise'),(1132, 1, 'using'),(1133, 1, 'hidefinition'),(1134, 1, 'microspeakers'),(1135, 1, 'deliver'),(1136, 1, 'audio,'), -(1137, 1, 'ergonomic'),(1138, 1, 'ideal'),(1139, 1, 'premium'),(1140, 1, 'onthego'),(1141, 1, 'listening'),(1142, 1, 'offer'),(1143, 1, 'accurate'), -(1144, 1, 'reproduction'),(1145, 1, 'both'),(1146, 1, 'sourcesfor'),(1147, 1, 'ultimate'),(1148, 1, 'precision'),(1149, 1, 'highs'), -(1150, 1, 'addition,'),(1151, 1, 'flexible'),(1152, 1, 'allows'),(1153, 1, 'choose'),(1154, 1, 'comfortable'),(1155, 1, 'variety'), -(1156, 1, 'wearing'),(1157, 1, 'positions'),(1158, 1, 'microspeaker'),(1159, 1, 'single'),(1160, 1, 'balanced'),(1161, 1, 'armature'), -(1162, 1, 'driver'),(1163, 1, 'detachable,'),(1164, 1, 'modular'),(1165, 1, 'make'),(1166, 1, 'longer'),(1167, 1, 'shorter'),(1168, 1, 'depending'), -(1169, 1, 'activity'),(1170, 1, 'connector'),(1171, 1, 'compatible'),(1172, 1, 'earphone'),(1173, 1, 'specifications'),(1174, 1, 'speaker'), -(1175, 1, 'type'),(1176, 1, 'frequency'),(1177, 1, 'range'),(1178, 1, '25hz185khz'),(1179, 1, 'impedance'),(1180, 1, '(1khz)'),(1181, 1, 'ohms'), -(1182, 1, 'sensitivity'),(1183, 1, '(1mw)'),(1184, 1, 'length'),(1185, 1, '(with'),(1186, 1, 'extension)'),(1187, 1, '(540'),(1188, 1, '1371'), -(1189, 1, 'extension'),(1190, 1, '(360'),(1191, 1, 'three'),(1192, 1, 'pairs'),(1193, 1, 'foam'),(1194, 1, 'earpiece'),(1195, 1, 'sleeves'), -(1196, 1, '(small,'),(1197, 1, 'medium,'),(1198, 1, 'large)'),(1199, 1, 'soft'),(1200, 1, 'flex'),(1201, 1, 'pair'),(1202, 1, 'tripleflange'), -(1203, 1, 'carrying'),(1204, 1, 'case'),(1205, 1, 'warranty'),(1206, 1, 'twoyear'),(1207, 1, 'limited'),(1208, 1, '(for'),(1209, 1, 'details,'), -(1210, 1, 'please'),(1211, 1, 'visit'),(1212, 1, 'wwwshurecom'),(1213, 1, 'personalaudio'),(1214, 1, 'customersupport'),(1215, 1, 'productreturnsa'), -(1216, 1, 'indexhtm)'),(1217, 1, 'se210aefs'),(1218, 1, 'note'),(1219, 1, 'products'),(1220, 1, 'sold'),(1221, 1, 'through'),(1222, 1, 'this'), -(1223, 1, 'website'),(1224, 1, 'bear'),(1225, 1, 'brand'),(1226, 1, 'name'),(1227, 1, 'serviced'),(1228, 1, 'supported'),(1229, 1, 'exclusively'), -(1230, 1, 'their'),(1231, 1, 'manufacturers'),(1232, 1, 'accordance'),(1233, 1, 'terms'),(1234, 1, 'conditions'),(1235, 1, 'packaged'), -(1236, 1, 'apple''s'),(1237, 1, 'does'),(1238, 1, 'apply'),(1239, 1, 'applebranded,'),(1240, 1, 'even'),(1241, 1, 'contact'),(1242, 1, 'manufacturer'), -(1243, 1, 'directly'),(1244, 1, 'technical'),(1245, 1, 'support'),(1246, 1, 'customer'),(1247, 1, 'service'),(1248, 1, 'incorporated'), -(1249, 2, 'isolation'),(1250, 2, 'sonore'),(1251, 2, 'shure'),(1252, 2, 'se210'),(1253, 2, 'ergonomiques'),(1254, 2, 'légers'),(1255, 2, 'offrent'), -(1256, 2, 'reproduction'),(1257, 2, 'audio'),(1258, 2, 'fidèle'),(1259, 2, 'provenance'),(1260, 2, 'sources'),(1261, 2, 'salon'),(1262, 2, 'basés'), -(1263, 2, 'moniteurs'),(1264, 2, 'personnels'),(1265, 2, 'testée'),(1266, 2, 'route'),(1267, 2, 'musiciens'),(1268, 2, 'professionnels'),(1269, 2, 'perfectionnée'), -(1270, 2, 'ingénieurs'),(1271, 2, 'shure,'),(1272, 2, 'se210,'),(1273, 2, 'élégants,'),(1274, 2, 'fournissent'),(1275, 2, 'sortie'),(1276, 2, 'gamme'), -(1277, 2, 'étendue'),(1278, 2, 'exempte'),(1279, 2, 'bruit'),(1280, 2, 'externe'),(1281, 2, 'embouts'),(1282, 2, 'fournis'),(1283, 2, 'bloquent'), -(1284, 2, 'ambiant'),(1285, 2, 'combinés'),(1286, 2, 'ergonomique'),(1287, 2, 'séduisant'),(1288, 2, 'modulaire,'),(1289, 2, 'minimisent'),(1290, 2, 'intrusions'), -(1291, 2, 'extérieur,'),(1292, 2, 'permettant'),(1293, 2, 'concentrer'),(1294, 2, 'conçus'),(1295, 2, 'amoureux'),(1296, 2, 'souhaitent'),(1297, 2, 'évoluer'), -(1298, 2, 'appareil'),(1299, 2, 'portable,'),(1300, 2, 'permettent'),(1301, 2, 'd''emmener'),(1302, 2, 'performance'),(1303, 2, 'microtransducte'),(1304, 2, 'haute'), -(1305, 2, 'définition'),(1306, 2, 'développés'),(1307, 2, 'écoute'),(1308, 2, 'qualité'),(1309, 2, 'supérieure'),(1310, 2, 'déplacement,'),(1311, 2, 'utilisent'), -(1312, 2, 'transducteur'),(1313, 2, 'armature'),(1314, 2, 'équilibrée'),(1315, 2, 'bénéficier'),(1316, 2, 'confort'),(1317, 2, 'd''écoute'),(1318, 2, 'époustouflant'), -(1319, 2, 'restitue'),(1320, 2, 'tous'),(1321, 2, 'détails'),(1322, 2, 'spectacle'),(1323, 2, 'live'),(1324, 2, 'universel'),(1325, 2, 'deluxe'), -(1326, 2, 'comprend'),(1327, 2, 'éléments'),(1328, 2, 'suivants'),(1329, 2, 'inclus'),(1330, 2, 'double'),(1331, 2, 'rôle'),(1332, 2, 'bloquer'), -(1333, 2, 'bruits'),(1334, 2, 'ambiants'),(1335, 2, 'garantir'),(1336, 2, 'maintien'),(1337, 2, 'personnalisés'),(1338, 2, 'oreille'),(1339, 2, 'différente,'), -(1340, 2, 'trois'),(1341, 2, 'tailles'),(1342, 2, 'd''embouts'),(1343, 2, 'mousse'),(1344, 2, 'flexibles'),(1345, 2, 'style'),(1346, 2, 'd''embout'), -(1347, 2, 'conviennent'),(1348, 2, 'mieux'),(1349, 2, 'bonne'),(1350, 2, 'étanchéité'),(1351, 2, 'facteur'),(1352, 2, 'optimiser'),(1353, 2, 'l''isolation'), -(1354, 2, 'réponse'),(1355, 2, 'basses,'),(1356, 2, 'ainsi'),(1357, 2, 'accroître'),(1358, 2, 'prolongée'),(1359, 2, 'modulaire'),(1360, 2, 'basant'), -(1361, 2, 'commentaires'),(1362, 2, 'nombreux'),(1363, 2, 'utilisateurs,'),(1364, 2, 'développé'),(1365, 2, 'solution'),(1366, 2, 'détachable'), -(1367, 2, 'permettre'),(1368, 2, 'degré'),(1369, 2, 'personnalisatio'),(1370, 2, 'précédent'),(1371, 2, 'mètre'),(1372, 2, 'fourni'),(1373, 2, 'd''adapter'), -(1374, 2, 'fonction'),(1375, 2, 'l''activité'),(1376, 2, 'l''application'),(1377, 2, 'transport'),(1378, 2, 'outre'),(1379, 2, 'compact'),(1380, 2, 'ranger'), -(1381, 2, 'manière'),(1382, 2, 'pratique'),(1383, 2, 'encombres'),(1384, 2, 'garantie'),(1385, 2, 'limitée'),(1386, 2, 'deux'),(1387, 2, 'achetée'), -(1388, 2, 'couverte'),(1389, 2, 'maind''œuvre'),(1390, 2, 'anscaractérist'),(1391, 2, 'techniques'),(1392, 2, 'type'),(1393, 2, 'sensibilité'), -(1394, 2, 'acoustique'),(1395, 2, 'impédance'),(1396, 2, 'khz)'),(1397, 2, 'fréquences'),(1398, 2, 'longueur'),(1399, 2, 'rallonge'),(1400, 2, '(embouts'), -(1401, 2, 'sonore,'),(1402, 2, 'transport)'),(1403, 2, 'incorporated'),(1404, 2, 'casque'),(1405, 2, 'marche'),(1406, 3, 'aislantes'),(1407, 3, 'sonido'), -(1408, 3, 'shure'),(1409, 3, 'se210'),(1410, 3, 'aislamiento'),(1411, 3, 'ergonómicos'),(1412, 3, 'ligeros'),(1413, 3, 'ofrecen'),(1414, 3, 'reproducción'), -(1415, 3, 'fiel'),(1416, 3, 'proveniente'),(1417, 3, 'fuentes'),(1418, 3, 'audio'),(1419, 3, 'estéreo'),(1420, 3, 'móviles'),(1421, 3, 'salón'),(1422, 3, 'se210,'), -(1423, 3, 'elegantes,'),(1424, 3, 'están'),(1425, 3, 'basados'),(1426, 3, 'monitores'),(1427, 3, 'personales'),(1428, 3, 'músicos'),(1429, 3, 'profesionales'), -(1430, 3, 'utilizan'),(1431, 3, 'carretera'),(1432, 3, 'ingenieros'),(1433, 3, 'perfeccionado'),(1434, 3, 'también'),(1435, 3, 'provistos'),(1436, 3, 'salida'), -(1437, 3, 'gama'),(1438, 3, 'extendida'),(1439, 3, 'exenta'),(1440, 3, 'ruido'),(1441, 3, 'sonoro'),(1442, 3, 'almohadillas'),(1443, 3, 'provistas'), -(1444, 3, 'bloquean'),(1445, 3, 'ambiente'),(1446, 3, 'combinadas'),(1447, 3, 'ergonómico'),(1448, 3, 'atractivo'),(1449, 3, 'modular,'),(1450, 3, 'minimizan'), -(1451, 3, 'intrusiones'),(1452, 3, 'permiten'),(1453, 3, 'concentrarte'),(1454, 3, 'creados'),(1455, 3, 'apasionados'),(1456, 3, 'quieren'),(1457, 3, 'aparato'), -(1458, 3, 'evolucione,'),(1459, 3, 'permitirán'),(1460, 3, 'llevar'),(1461, 3, 'allí'),(1462, 3, 'donde'),(1463, 3, 'vayas'),(1464, 3, 'microtransducto'), -(1465, 3, 'alta'),(1466, 3, 'definición'),(1467, 3, 'desarrollados'),(1468, 3, 'poder'),(1469, 3, 'audición'),(1470, 3, 'calidad'),(1471, 3, 'durante'), -(1472, 3, 'desplazamientos'),(1473, 3, 'único'),(1474, 3, 'transductor'),(1475, 3, 'armazón'),(1476, 3, 'equilibrado'),(1477, 3, 'confort'), -(1478, 3, 'restituye'),(1479, 3, 'espectáculo'),(1480, 3, 'directo'),(1481, 3, 'universal'),(1482, 3, 'deluxe'),(1483, 3, 'incluye'),(1484, 3, 'siguientes'), -(1485, 3, 'elementos'),(1486, 3, 'tienen'),(1487, 3, 'doble'),(1488, 3, 'función'),(1489, 3, 'bloquear'),(1490, 3, 'garantizar'),(1491, 3, 'estabilidad'), -(1492, 3, 'personalizados'),(1493, 3, 'oreja'),(1494, 3, 'tres'),(1495, 3, 'tallas'),(1496, 3, 'espuma'),(1497, 3, 'flexibles'),(1498, 3, 'talla'), -(1499, 3, 'estilo'),(1500, 3, 'almohadilla'),(1501, 3, 'mejor'),(1502, 3, 'convenga'),(1503, 3, 'buen'),(1504, 3, 'factor'),(1505, 3, 'clave'),(1506, 3, 'tanto'), -(1507, 3, 'optimizar'),(1508, 3, 'respuesta'),(1509, 3, 'bajos'),(1510, 3, 'aumentar'),(1511, 3, 'prolongada'),(1512, 3, 'modular'),(1513, 3, 'basándose'), -(1514, 3, 'comentarios'),(1515, 3, 'numerosos'),(1516, 3, 'usuarios,'),(1517, 3, 'solución'),(1518, 3, 'separable'),(1519, 3, 'permitir'),(1520, 3, 'grado'), -(1521, 3, 'personalizació'),(1522, 3, 'precedentes'),(1523, 3, 'metro'),(1524, 3, 'adaptar'),(1525, 3, 'actividad'),(1526, 3, 'momento'),(1527, 3, 'transporte'), -(1528, 3, 'además'),(1529, 3, 'guardar'),(1530, 3, 'manera'),(1531, 3, 'práctica'),(1532, 3, 'garantía'),(1533, 3, 'límite'),(1534, 3, 'años'),(1535, 3, 'tiene'), -(1536, 3, 'piezas'),(1537, 3, 'obra'),(1538, 3, 'técnicas'),(1539, 3, 'tipo'),(1540, 3, 'sensibilidad'),(1541, 3, 'acústica'),(1542, 3, 'impedancia'), -(1543, 3, 'khz)'),(1544, 3, 'frecuencias'),(1545, 3, 'longitud'),(1546, 3, 'alargador'),(1547, 3, 'caja'),(1548, 3, 'altavoces'),(1549, 3, '(almohadillas'), -(1550, 3, 'sonoro,'),(1551, 3, 'transporte)'),(1552, 3, 'incorporated'); - - -INSERT INTO `PREFIX_access` (`id_profile`, `id_tab`, `view`, `add`, `edit`, `delete`) (SELECT 2, id_tab, 1, 1, 1, 1 FROM PREFIX_tab); -INSERT INTO `PREFIX_access` (`id_profile`, `id_tab`, `view`, `add`, `edit`, `delete`) VALUES -(3, 1, 1, 1, 1, 1), -(3, 2, 1, 1, 1, 1), -(3, 3, 1, 1, 1, 1), -(3, 4, 0, 0, 0, 0), -(3, 5, 1, 1, 1, 1), -(3, 6, 0, 0, 0, 0), -(3, 7, 0, 0, 0, 0), -(3, 8, 0, 0, 0, 0), -(3, 9, 0, 0, 0, 0), -(3, 10, 0, 0, 0, 0), -(3, 11, 0, 0, 0, 0), -(3, 12, 1, 1, 1, 1), -(3, 13, 1, 1, 1, 1), -(3, 14, 0, 0, 0, 0), -(3, 15, 0, 0, 0, 0), -(3, 16, 0, 0, 0, 0), -(3, 17, 1, 1, 1, 1), -(3, 18, 0, 0, 0, 0), -(3, 19, 0, 0, 0, 0), -(3, 20, 1, 1, 1, 1), -(3, 21, 1, 1, 1, 1), -(3, 22, 0, 0, 0, 0), -(3, 23, 0, 0, 0, 0), -(3, 24, 0, 0, 0, 0), -(3, 26, 0, 0, 0, 0), -(3, 27, 0, 0, 0, 0), -(3, 28, 0, 0, 0, 0), -(3, 29, 0, 0, 0, 0), -(3, 30, 0, 0, 0, 0), -(3, 31, 0, 0, 0, 0), -(3, 32, 0, 0, 0, 0), -(3, 33, 0, 0, 0, 0), -(3, 34, 1, 1, 1, 1), -(3, 35, 0, 0, 0, 0), -(3, 36, 0, 0, 0, 0), -(3, 37, 0, 0, 0, 0), -(3, 38, 0, 0, 0, 0), -(3, 39, 0, 0, 0, 0), -(3, 40, 0, 0, 0, 0), -(3, 41, 0, 0, 0, 0), -(3, 42, 1, 1, 1, 1), -(3, 43, 0, 0, 0, 0), -(3, 44, 0, 0, 0, 0), -(3, 46, 0, 0, 0, 0), -(3, 47, 1, 1, 1, 1), -(3, 48, 0, 0, 0, 0), -(3, 49, 1, 1, 1, 1), -(3, 51, 0, 0, 0, 0), -(3, 52, 0, 0, 0, 0), -(3, 53, 0, 0, 0, 0), -(3, 54, 0, 0, 0, 0), -(3, 55, 1, 1, 1, 1), -(3, 56, 0, 0, 0, 0), -(3, 57, 0, 0, 0, 0), -(3, 58, 0, 0, 0, 0), -(3, 59, 1, 1, 1, 1), -(3, 60, 1, 1, 1, 1), -(3, 61, 0, 0, 0, 0), -(3, 62, 0, 0, 0, 0), -(3, 63, 0, 0, 0, 0), -(3, 64, 0, 0, 0, 0), -(3, 65, 0, 0, 0, 0), -(3, 66, 0, 0, 0, 0), -(3, 67, 0, 0, 0, 0), -(3, 68, 0, 0, 0, 0), -(3, 69, 0, 0, 0, 0), -(3, 70, 0, 0, 0, 0), -(3, 71, 0, 0, 0, 0), -(3, 72, 0, 0, 0, 0), -(3, 73, 1, 1, 1, 1), -(3, 80, 0, 0, 0, 0), -(3, 81, 0, 0, 0, 0), -(3, 82, 0, 0, 0, 0), -(3, 83, 0, 0, 0, 0), -(3, 84, 0, 0, 0, 0), -(3, 85, 0, 0, 0, 0), -(3, 86, 0, 0, 0, 0), -(3, 87, 0, 0, 0, 0), -(3, 88, 0, 0, 0, 0), -(3, 90, 0, 0, 0, 0), -(3, 91, 0, 0, 0, 0), -(3, 92, 0, 0, 0, 0), -(3, 93, 1, 1, 1, 1), -(3, 94, 1, 1, 1, 1), -(3, 95, 1, 1, 1, 1), -(3, 96, 1, 1, 1, 1), -(3, 97, 1, 1, 1, 1), -(3, 98, 1, 1, 1, 1), -(3, 99, 1, 1, 1, 1), -(3, 100, 1, 1, 1, 1), -(3, 101, 1, 1, 1, 1), -(3, 102, 1, 1, 1, 1), -(3, 103, 1, 1, 1, 1), -(3, 104, 1, 1, 1, 1), -(3, 105, 0, 0, 0, 0), -(3, 106, 0, 0, 0, 0), -(3, 108, 1, 1, 1, 1), -(4, 1, 1, 1, 1, 1), -(4, 2, 0, 0, 0, 0), -(4, 3, 0, 0, 0, 0), -(4, 4, 0, 0, 0, 0), -(4, 5, 0, 0, 0, 0), -(4, 6, 0, 0, 0, 0), -(4, 7, 0, 0, 0, 0), -(4, 8, 0, 0, 0, 0), -(4, 9, 1, 0, 0, 0), -(4, 10, 0, 0, 0, 0), -(4, 11, 0, 0, 0, 0), -(4, 12, 0, 0, 0, 0), -(4, 13, 0, 0, 0, 0), -(4, 14, 0, 0, 0, 0), -(4, 15, 0, 0, 0, 0), -(4, 16, 0, 0, 0, 0), -(4, 17, 0, 0, 0, 0), -(4, 18, 0, 0, 0, 0), -(4, 19, 0, 0, 0, 0), -(4, 20, 0, 0, 0, 0), -(4, 21, 0, 0, 0, 0), -(4, 22, 0, 0, 0, 0), -(4, 23, 0, 0, 0, 0), -(4, 24, 0, 0, 0, 0), -(4, 26, 0, 0, 0, 0), -(4, 27, 0, 0, 0, 0), -(4, 28, 0, 0, 0, 0), -(4, 29, 0, 0, 0, 0), -(4, 30, 0, 0, 0, 0), -(4, 31, 0, 0, 0, 0), -(4, 32, 1, 1, 1, 1), -(4, 33, 1, 1, 1, 1), -(4, 34, 0, 0, 0, 0), -(4, 35, 0, 0, 0, 0), -(4, 36, 0, 0, 0, 0), -(4, 37, 0, 0, 0, 0), -(4, 38, 0, 0, 0, 0), -(4, 39, 0, 0, 0, 0), -(4, 40, 0, 0, 0, 0), -(4, 41, 0, 0, 0, 0), -(4, 42, 0, 0, 0, 0), -(4, 43, 1, 0, 0, 0), -(4, 44, 0, 0, 0, 0), -(4, 46, 0, 0, 0, 0), -(4, 47, 0, 0, 0, 0), -(4, 48, 0, 0, 0, 0), -(4, 49, 0, 0, 0, 0), -(4, 51, 0, 0, 0, 0), -(4, 52, 0, 0, 0, 0), -(4, 53, 0, 0, 0, 0), -(4, 54, 0, 0, 0, 0), -(4, 55, 0, 0, 0, 0), -(4, 56, 0, 0, 0, 0), -(4, 57, 1, 1, 1, 1), -(4, 58, 0, 0, 0, 0), -(4, 59, 0, 0, 0, 0), -(4, 60, 0, 0, 0, 0), -(4, 61, 0, 0, 0, 0), -(4, 62, 0, 0, 0, 0), -(4, 63, 0, 0, 0, 0), -(4, 64, 0, 0, 0, 0), -(4, 65, 0, 0, 0, 0), -(4, 66, 0, 0, 0, 0), -(4, 67, 0, 0, 0, 0), -(4, 68, 0, 0, 0, 0), -(4, 69, 0, 0, 0, 0), -(4, 70, 0, 0, 0, 0), -(4, 71, 0, 0, 0, 0), -(4, 72, 0, 0, 0, 0), -(4, 73, 0, 0, 0, 0), -(4, 80, 0, 0, 0, 0), -(4, 81, 0, 0, 0, 0), -(4, 82, 0, 0, 0, 0), -(4, 83, 0, 0, 0, 0), -(4, 84, 0, 0, 0, 0), -(4, 85, 0, 0, 0, 0), -(4, 86, 0, 0, 0, 0), -(4, 87, 0, 0, 0, 0), -(4, 88, 0, 0, 0, 0), -(4, 89, 0, 0, 0, 0), -(4, 90, 0, 0, 0, 0), -(4, 91, 0, 0, 0, 0), -(4, 92, 0, 0, 0, 0), -(4, 93, 1, 1, 1, 1), -(4, 94, 1, 1, 1, 1), -(4, 95, 0, 0, 0, 0), -(4, 96, 0, 0, 0, 0), -(4, 97, 0, 0, 0, 0), -(4, 98, 0, 0, 0, 0), -(4, 99, 0, 0, 0, 0), -(4, 100, 0, 0, 0, 0), -(4, 101, 1, 1, 1, 1), -(4, 102, 1, 1, 1, 1), -(4, 103, 1, 1, 1, 1), -(4, 104, 1, 1, 1, 1), -(4, 105, 1, 1, 1, 1), -(4, 106, 1, 1, 1, 1), -(4, 108, 0, 0, 0, 0), -(5, 1, 1, 1, 1, 1), -(5, 2, 1, 1, 1, 1), -(5, 3, 1, 1, 1, 1), -(5, 4, 0, 0, 0, 0), -(5, 5, 0, 0, 0, 0), -(5, 6, 1, 1, 1, 1), -(5, 7, 0, 0, 0, 0), -(5, 8, 0, 0, 0, 0), -(5, 9, 0, 0, 0, 0), -(5, 10, 1, 0, 0, 0), -(5, 11, 0, 0, 0, 0), -(5, 12, 1, 1, 1, 1), -(5, 13, 0, 0, 0, 0), -(5, 14, 0, 0, 0, 0), -(5, 15, 0, 0, 0, 0), -(5, 16, 0, 0, 0, 0), -(5, 17, 0, 0, 0, 0), -(5, 18, 0, 0, 0, 0), -(5, 19, 0, 0, 0, 0), -(5, 20, 0, 0, 0, 0), -(5, 21, 0, 0, 0, 0), -(5, 22, 0, 0, 0, 0), -(5, 23, 0, 0, 0, 0), -(5, 24, 0, 0, 0, 0), -(5, 26, 0, 0, 0, 0), -(5, 27, 0, 0, 0, 0), -(5, 28, 0, 0, 0, 0), -(5, 29, 0, 0, 0, 0), -(5, 30, 0, 0, 0, 0), -(5, 31, 0, 0, 0, 0), -(5, 32, 0, 0, 0, 0), -(5, 33, 0, 0, 0, 0), -(5, 34, 0, 0, 0, 0), -(5, 35, 0, 0, 0, 0), -(5, 36, 0, 0, 0, 0), -(5, 37, 0, 0, 0, 0), -(5, 38, 0, 0, 0, 0), -(5, 39, 0, 0, 0, 0), -(5, 40, 0, 0, 0, 0), -(5, 41, 0, 0, 0, 0), -(5, 42, 1, 1, 1, 1), -(5, 43, 1, 0, 0, 0), -(5, 44, 0, 0, 0, 0), -(5, 46, 0, 0, 0, 0), -(5, 47, 0, 0, 0, 0), -(5, 48, 0, 0, 0, 0), -(5, 49, 1, 1, 1, 1), -(5, 51, 0, 0, 0, 0), -(5, 52, 0, 0, 0, 0), -(5, 53, 0, 0, 0, 0), -(5, 54, 1, 1, 1, 1), -(5, 55, 0, 0, 0, 0), -(5, 56, 0, 0, 0, 0), -(5, 57, 0, 0, 0, 0), -(5, 58, 0, 0, 0, 0), -(5, 59, 1, 1, 1, 1), -(5, 60, 0, 0, 0, 0), -(5, 61, 0, 0, 0, 0), -(5, 62, 1, 1, 1, 1), -(5, 63, 1, 1, 1, 1), -(5, 64, 0, 0, 0, 0), -(5, 65, 1, 1, 1, 1), -(5, 66, 0, 0, 0, 0), -(5, 67, 0, 0, 0, 0), -(5, 68, 0, 0, 0, 0), -(5, 69, 0, 0, 0, 0), -(5, 70, 0, 0, 0, 0), -(5, 71, 0, 0, 0, 0), -(5, 72, 0, 0, 0, 0), -(5, 73, 0, 0, 0, 0), -(5, 80, 0, 0, 0, 0), -(5, 81, 0, 0, 0, 0), -(5, 82, 1, 1, 1, 1), -(5, 83, 0, 0, 0, 0), -(5, 84, 0, 0, 0, 0), -(5, 85, 0, 0, 0, 0), -(5, 86, 0, 0, 0, 0), -(5, 87, 0, 0, 0, 0), -(5, 88, 0, 0, 0, 0), -(5, 89, 0, 0, 0, 0), -(5, 90, 0, 0, 0, 0), -(5, 91, 0, 0, 0, 0), -(5, 92, 0, 0, 0, 0), -(5, 93, 1, 1, 1, 1), -(5, 94, 1, 1, 1, 1), -(5, 95, 1, 0, 0, 0), -(5, 96, 0, 0, 0, 0), -(5, 97, 0, 0, 0, 0), -(5, 98, 0, 0, 0, 0), -(5, 99, 0, 0, 0, 0), -(5, 100, 1, 0, 0, 0), -(5, 101, 1, 1, 1, 1), -(5, 102, 1, 1, 1, 1), -(5, 103, 1, 1, 1, 1), -(5, 104, 1, 1, 1, 1), -(5, 105, 0, 0, 0, 0), -(5, 106, 0, 0, 0, 0), -(5, 108, 0, 0, 0, 0); - -INSERT INTO `PREFIX_module_access` (`id_profile`, `id_module`, `configure`, `view`) (SELECT 2, id_module, 0, 1 FROM PREFIX_module); -INSERT INTO `PREFIX_module_access` (`id_profile`, `id_module`, `configure`, `view`) (SELECT 3, id_module, 0, 1 FROM PREFIX_module); -INSERT INTO `PREFIX_module_access` (`id_profile`, `id_module`, `configure`, `view`) (SELECT 4, id_module, 0, 1 FROM PREFIX_module); -INSERT INTO `PREFIX_module_access` (`id_profile`, `id_module`, `configure`, `view`) (SELECT 5, id_module, 0, 1 FROM PREFIX_module); - -INSERT INTO `PREFIX_profile` (`id_profile`) VALUES (2),(3),(4),(5); -INSERT INTO `PREFIX_profile_lang` (`id_lang`, `id_profile`, `name`) VALUES -(1, 2, 'Administrator'),(2, 2, 'Administrateur'),(3, 2, 'Administrador'),(4, 2, 'Administrator'),(5, 2, 'Administrator'), -(1, 3, 'Logistician'),(2, 3, 'Logisticien'),(3, 3, 'Logistician'),(4, 3, 'Logistiker'),(5, 3, 'Logista'), -(1, 4, 'Translator'),(2, 4, 'Traducteur'),(3, 4, 'Translator'),(4, 4, 'Übersetzer'),(5, 4, 'Traduttore'), -(1, 5, 'Salesman'),(2, 5, 'Commercial'),(3, 5, 'Salesman'),(4, 5, 'Verkäufer'),(5, 5, 'Venditore'); - -INSERT INTO `PREFIX_store` (`id_store`, `id_country`, `id_state`, `name`, `address1`, `address2`, `city`, `postcode`, `latitude`, `longitude`, `hours`, `phone`, `fax`, `email`, `note`, `active`, `date_add`, `date_upd`) VALUES -(1, 21, 9, 'Dade County', '3030 SW 8th St Miami', '', 'Miami', ' 33135', 25.765005, -80.243797, 'a:7:{i:0;s:13:"09:00 - 19:00";i:1;s:13:"09:00 - 19:00";i:2;s:13:"09:00 - 19:00";i:3;s:13:"09:00 - 19:00";i:4;s:13:"09:00 - 19:00";i:5;s:13:"10:00 - 16:00";i:6;s:13:"10:00 - 16:00";}', '', '', '', '', 1, '2010-11-09 10:53:13', '2010-11-09 10:53:13'), -(2, 21, 9, 'E Fort Lauderdale', '1000 Northeast 4th Ave Fort Lauderdale', '', 'Miami', ' 33304', 26.137936, -80.139435, 'a:7:{i:0;s:13:"09:00 - 19:00";i:1;s:13:"09:00 - 19:00";i:2;s:13:"09:00 - 19:00";i:3;s:13:"09:00 - 19:00";i:4;s:13:"09:00 - 19:00";i:5;s:13:"10:00 - 16:00";i:6;s:13:"10:00 - 16:00";}', '', '', '', '', 1, '2010-11-09 10:56:26', '2010-11-09 10:56:26'), -(3, 21, 9, 'Pembroke Pines', '11001 Pines Blvd Pembroke Pines', '', 'Miami', '33026', 26.009987, -80.294472, 'a:7:{i:0;s:13:"09:00 - 19:00";i:1;s:13:"09:00 - 19:00";i:2;s:13:"09:00 - 19:00";i:3;s:13:"09:00 - 19:00";i:4;s:13:"09:00 - 19:00";i:5;s:13:"10:00 - 16:00";i:6;s:13:"10:00 - 16:00";}', '', '', '', '', 1, '2010-11-09 10:58:42', '2010-11-09 11:01:11'), -(4, 21, 9, 'Coconut Grove', '2999 SW 32nd Avenue', '', ' Miami', ' 33133', 25.736296, -80.244797, 'a:7:{i:0;s:13:"09:00 - 19:00";i:1;s:13:"09:00 - 19:00";i:2;s:13:"09:00 - 19:00";i:3;s:13:"09:00 - 19:00";i:4;s:13:"09:00 - 19:00";i:5;s:13:"10:00 - 16:00";i:6;s:13:"10:00 - 16:00";}', '', '', '', '', 1, '2010-11-09 11:00:38', '2010-11-09 11:04:52'), -(5, 21, 9, 'N Miami/Biscayne', '12055 Biscayne Blvd', '', 'Miami', '33181', 25.886740, -80.163292, 'a:7:{i:0;s:13:"09:00 - 19:00";i:1;s:13:"09:00 - 19:00";i:2;s:13:"09:00 - 19:00";i:3;s:13:"09:00 - 19:00";i:4;s:13:"09:00 - 19:00";i:5;s:13:"10:00 - 16:00";i:6;s:13:"10:00 - 16:00";}', '', '', '', '', 1, '2010-11-09 11:11:28', '2010-11-09 11:11:28'); - -INSERT INTO `PREFIX_store_shop` (`id_store`, `id_shop`) (SELECT `id_store`, 1 FROM `PREFIX_store`); - -INSERT INTO `PREFIX_module_group` (`id_group`, `id_module`) VALUES -("1", "1"), -("1", "2"), -("1", "5"), -("1", "7"), -("1", "8"), -("1", "9"), -("1", "10"), -("1", "11"), -("1", "12"), -("1", "13"), -("1", "14"), -("1", "15"), -("1", "16"), -("1", "17"), -("1", "18"), -("1", "19"), -("1", "20"), -("1", "21"), -("1", "22"), -("1", "24"), -("1", "25"), -("1", "26"), -("1", "27"), -("1", "28"), -("1", "30"), -("1", "31"), -("1", "32"), -("1", "33"), -("1", "34"), -("1", "35"), -("1", "36"), -("1", "37"), -("1", "39"), -("1", "40"), -("1", "41"), -("1", "42"), -("1", "43"), -("1", "44"), -("1", "45"), -("1", "46"), -("1", "47"), -("1", "48"), -("1", "49"), -("1", "50"), -("1", "51"), -("1", "52"), -("1", "53"), -("1", "54"), -("1", "55"), -("1", "56"), -("2", "1"), -("2", "2"), -("2", "3"), -("2", "4"), -("2", "5"), -("2", "6"), -("2", "7"), -("2", "8"), -("2", "9"), -("2", "10"), -("2", "11"), -("2", "12"), -("2", "13"), -("2", "14"), -("2", "15"), -("2", "16"), -("2", "17"), -("2", "18"), -("2", "19"), -("2", "20"), -("2", "21"), -("2", "22"), -("2", "24"), -("2", "25"), -("2", "26"), -("2", "27"), -("2", "28"), -("2", "30"), -("2", "31"), -("2", "32"), -("2", "33"), -("2", "34"), -("2", "35"), -("2", "36"), -("2", "37"), -("2", "39"), -("2", "40"), -("2", "41"), -("2", "42"), -("2", "43"), -("2", "44"), -("2", "45"), -("2", "46"), -("2", "47"), -("2", "48"), -("2", "49"), -("2", "50"), -("2", "51"), -("2", "52"), -("2", "53"), -("2", "54"), -("2", "55"), -("2", "56"), -("3", "1"), -("3", "2"), -("3", "3"), -("3", "4"), -("3", "5"), -("3", "6"), -("3", "7"), -("3", "8"), -("3", "9"), -("3", "10"), -("3", "11"), -("3", "12"), -("3", "13"), -("3", "14"), -("3", "15"), -("3", "16"), -("3", "17"), -("3", "18"), -("3", "19"), -("3", "20"), -("3", "21"), -("3", "22"), -("3", "24"), -("3", "25"), -("3", "26"), -("3", "27"), -("3", "28"), -("3", "30"), -("3", "31"), -("3", "32"), -("3", "33"), -("3", "34"), -("3", "35"), -("3", "36"), -("3", "37"), -("3", "39"), -("3", "40"), -("3", "41"), -("3", "42"), -("3", "43"), -("3", "44"), -("3", "45"), -("3", "46"), -("3", "47"), -("3", "48"), -("3", "49"), -("3", "50"), -("3", "51"), -("3", "52"), -("3", "53"), -("3", "54"), -("3", "55"), -("3", "56"); - -INSERT INTO `PREFIX_stock_available` (`id_stock_available`, `id_product`, `id_product_attribute`, `id_shop`, `id_group_shop`, `quantity`, `depends_on_stock`, `out_of_stock`) VALUES -(1, 1, 25, 1, 0, 10, 0, 0), -(2, 1, 0, 1, 0, 160, 0, 0), -(3, 1, 26, 1, 0, 10, 0, 0), -(4, 1, 27, 1, 0, 10, 0, 0), -(5, 1, 28, 1, 0, 10, 0, 0), -(6, 1, 29, 1, 0, 10, 0, 0), -(7, 1, 30, 1, 0, 10, 0, 0), -(8, 1, 31, 1, 0, 10, 0, 0), -(9, 1, 32, 1, 0, 10, 0, 0), -(10, 1, 33, 1, 0, 10, 0, 0), -(11, 1, 34, 1, 0, 10, 0, 0), -(12, 1, 35, 1, 0, 10, 0, 0), -(13, 1, 36, 1, 0, 10, 0, 0), -(14, 1, 39, 1, 0, 10, 0, 0), -(15, 1, 40, 1, 0, 10, 0, 0), -(16, 1, 41, 1, 0, 10, 0, 0), -(17, 1, 42, 1, 0, 10, 0, 0), -(18, 5, 12, 1, 0, 100, 0, 0), -(19, 5, 0, 1, 0, 400, 0, 0), -(20, 5, 13, 1, 0, 100, 0, 0), -(21, 5, 14, 1, 0, 100, 0, 0), -(22, 5, 15, 1, 0, 100, 0, 0), -(23, 8, 0, 1, 0, 25, 0, 0), -(24, 2, 7, 1, 0, 30, 0, 0), -(25, 2, 0, 1, 0, 120, 0, 0), -(26, 2, 8, 1, 0, 30, 0, 0), -(27, 2, 9, 1, 0, 30, 0, 0), -(28, 2, 10, 1, 0, 30, 0, 0), -(29, 9, 0, 1, 0, 15, 0, 0), -(30, 6, 0, 1, 0, 75, 0, 0), -(31, 7, 19, 1, 0, 40, 0, 0), -(32, 7, 0, 1, 0, 120, 0, 0), -(33, 7, 22, 1, 0, 40, 0, 0), -(34, 7, 23, 1, 0, 40, 0, 0); - -INSERT INTO `PREFIX_order_carrier` (`id_order_carrier`, `id_order`, `id_carrier`, `date_add`) VALUES -(1, 1, 2, NOW()); - - -/* new theme, need to be checked */ - -REPLACE INTO `PREFIX_configuration` (id_group_shop, id_shop, name, value, `date_add`, `date_upd`) VALUES - (NULL, NULL, 'PS_CONDITIONS','1', NOW(), NOW()), - (NULL, NULL, 'PS_PRODUCTS_PER_PAGE','10', NOW(), NOW()), - (NULL, NULL, 'PS_PRODUCTS_ORDER_WAY','0', NOW(), NOW()), - (NULL, NULL, 'PS_PRODUCTS_ORDER_BY','4', NOW(), NOW()), - (NULL, NULL, 'PS_DISPLAY_QTIES','1', NOW(), NOW()), - (NULL, NULL, 'PS_NB_DAYS_NEW_PRODUCT','20', NOW(), NOW()), - (NULL, NULL, 'PS_BLOCK_CART_AJAX','1', NOW(), NOW()), - (NULL, NULL, 'PS_PRODUCT_PICTURE_MAX_SIZE','131072', NOW(), NOW()), - (NULL, NULL, 'PS_PRODUCT_PICTURE_WIDTH','64', NOW(), NOW()), - (NULL, NULL, 'PS_PRODUCT_PICTURE_HEIGHT','64', NOW(), NOW()), - (NULL, NULL, 'PS_SEARCH_MINWORDLEN','3', NOW(), NOW()), - (NULL, NULL, 'PS_SEARCH_WEIGHT_PNAME','6', NOW(), NOW()), - (NULL, NULL, 'PS_SEARCH_WEIGHT_REF','10', NOW(), NOW()), - (NULL, NULL, 'PS_SEARCH_WEIGHT_SHORTDESC','1', NOW(), NOW()), - (NULL, NULL, 'PS_SEARCH_WEIGHT_DESC','1', NOW(), NOW()), - (NULL, NULL, 'PS_SEARCH_WEIGHT_CNAME','3', NOW(), NOW()), - (NULL, NULL, 'PS_SEARCH_WEIGHT_MNAME','3', NOW(), NOW()), - (NULL, NULL, 'PS_SEARCH_WEIGHT_TAG','4', NOW(), NOW()), - (NULL, NULL, 'PS_SEARCH_WEIGHT_ATTRIBUTE','2', NOW(), NOW()), - (NULL, NULL, 'PS_SEARCH_WEIGHT_FEATURE','2', NOW(), NOW()), - (NULL, NULL, 'PS_SEARCH_AJAX','1', NOW(), NOW()), - (NULL, NULL, 'PS_DISPLAY_JQZOOM','0', NOW(), NOW()), - (NULL, NULL, 'PS_BLOCK_BESTSELLERS_DISPLAY','0', NOW(), NOW()), - (NULL, NULL, 'PS_BLOCK_NEWPRODUCTS_DISPLAY','0', NOW(), NOW()), - (NULL, NULL, 'PS_BLOCK_SPECIALS_DISPLAY','0', NOW(), NOW()), - (NULL, NULL, 'PS_TAX_DISPLAY','0', NOW(), NOW()), - (NULL, NULL, 'PS_STORES_DISPLAY_CMS','1', NOW(), NOW()), - (NULL, NULL, 'PS_STORES_DISPLAY_FOOTER','1', NOW(), NOW()), - (NULL, NULL, 'SHOP_LOGO_WIDTH','209', NOW(), NOW()), - (NULL, NULL, 'SHOP_LOGO_HEIGHT','52', NOW(), NOW()), - (NULL, NULL, 'PS_DISPLAY_SUPPLIERS','1', NOW(), NOW()), - (NULL, NULL, 'PS_LEGACY_IMAGES','1', NOW(), NOW()), - (NULL, NULL, 'PS_IMAGE_QUALITY','jpg', NOW(), NOW()), - (NULL, NULL, 'PS_PNG_QUALITY','7', NOW(), NOW()), - (NULL, NULL, 'PS_JPEG_QUALITY','90', NOW(), NOW()), - (NULL, NULL, 'PRODUCTS_VIEWED_NBR','2', NOW(), NOW()), - (NULL, NULL, 'BLOCK_CATEG_DHTML','1', NOW(), NOW()), - (NULL, NULL, 'BLOCK_CATEG_MAX_DEPTH','3', NOW(), NOW()), - (NULL, NULL, 'MANUFACTURER_DISPLAY_FORM','1', NOW(), NOW()), - (NULL, NULL, 'MANUFACTURER_DISPLAY_TEXT','1', NOW(), NOW()), - (NULL, NULL, 'MANUFACTURER_DISPLAY_TEXT_NB','5', NOW(), NOW()), - (NULL, NULL, 'NEW_PRODUCTS_NBR','5', NOW(), NOW()), - (NULL, NULL, 'BLOCKTAGS_NBR','10', NOW(), NOW()), - (NULL, NULL, 'FOOTER_CMS','0_3|0_4', NOW(), NOW()), - (NULL, NULL, 'FOOTER_BLOCK_ACTIVATION','0_3|0_4', NOW(), NOW()), - (NULL, NULL, 'FOOTER_POWEREDBY','1', NOW(), NOW()), - (NULL, NULL, 'BLOCKADVERT_LINK','0', NOW(), NOW()), - (NULL, NULL, 'BLOCKSTORE_IMG','store.jpg', NOW(), NOW()), - (NULL, NULL, 'BLOCKADVERT_IMG_EXT','jpg', NOW(), NOW()), - (NULL, NULL, 'MOD_BLOCKTOPMENU_ITEMS','CAT2,CAT3,CAT4', NOW(), NOW()), - (NULL, NULL, 'MOD_BLOCKTOPMENU_SEARCH','', NOW(), NOW()), - (NULL, NULL, 'blocksocial_facebook','http://www.facebook.com/prestashop', NOW(), NOW()), - (NULL, NULL, 'blocksocial_twitter','http://www.twitter.com/prestashop', NOW(), NOW()), - (NULL, NULL, 'blocksocial_rss','RSS', NOW(), NOW()), - (NULL, NULL, 'blockcontactinfos_company','Prestashop', NOW(), NOW()), - (NULL, NULL, 'blockcontactinfos_address','41, boulevard des capucines, 75002 Paris, France', NOW(), NOW()), - (NULL, NULL, 'blockcontactinfos_phone','+33 (0)1.40.18.30.04', NOW(), NOW()), - (NULL, NULL, 'blockcontactinfos_email','pub@prestashop.com', NOW(), NOW()), - (NULL, NULL, 'blockcontact_telnumber','+33 (0)1.40.18.30.04', NOW(), NOW()), - (NULL, NULL, 'blockcontact_email','pub@prestashop.com', NOW(), NOW()), - (NULL, NULL, 'SUPPLIER_DISPLAY_TEXT','1', NOW(), NOW()), - (NULL, NULL, 'SUPPLIER_DISPLAY_TEXT_NB','5', NOW(), NOW()), - (NULL, NULL, 'SUPPLIER_DISPLAY_FORM','1', NOW(), NOW()), - (NULL, NULL, 'BLOCK_CATEG_NBR_COLUMN_FOOTER','1', NOW(), NOW()), - (NULL, NULL, 'UPGRADER_BACKUPDB_FILENAME','', NOW(), NOW()), - (NULL, NULL, 'UPGRADER_BACKUPFILES_FILENAME','', NOW(), NOW()), - (NULL, NULL, 'blockreinsurance_nbblocks','5', NOW(), NOW()); - - -CREATE TABLE IF NOT EXISTS `PREFIX_reinsurance` ( - `id_reinsurance` INT UNSIGNED NOT NULL, - `filename` VARCHAR(100) NOT NULL, - PRIMARY KEY (`id_reinsurance`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_reinsurance_lang` ( - `id_reinsurance` INT UNSIGNED NOT NULL, - `id_lang` INT UNSIGNED NOT NULL, - `text` VARCHAR(300) NOT NULL, - PRIMARY KEY (`id_reinsurance`, `id_lang`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_favorite_product` ( - `id_favorite_product` int(10) unsigned NOT NULL auto_increment, - `id_product` int(10) unsigned NOT NULL, - `id_customer` int(10) unsigned NOT NULL, - `id_shop` int(10) unsigned NOT NULL, - `date_add` datetime NOT NULL, - `date_upd` datetime NOT NULL, - PRIMARY KEY (`id_favorite_product`)) -ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_newsletter` ( - `id` int(6) NOT NULL AUTO_INCREMENT, - `id_shop` INTEGER UNSIGNED NOT NULL DEFAULT 1, - `id_group_shop` INTEGER UNSIGNED NOT NULL DEFAULT 1, - `email` varchar(255) NOT NULL, - `newsletter_date_add` DATETIME NULL, - `ip_registration_newsletter` varchar(15) NOT NULL, - `http_referer` VARCHAR(255) NULL, - `active` TINYINT(1) NOT NULL DEFAULT 0, - PRIMARY KEY(`id`) -) ENGINE=ENGINE_TYPE default CHARSET=utf8; - - CREATE TABLE IF NOT EXISTS `PREFIX_homeslider` ( - `id_homeslider_slides` int(10) unsigned NOT NULL AUTO_INCREMENT, - `id_shop` int(10) unsigned NOT NULL, - PRIMARY KEY (`id_homeslider_slides`, `id_shop`) - ) ENGINE=ENGINE_TYPE DEFAULT CHARSET=UTF8; - - CREATE TABLE IF NOT EXISTS `PREFIX_homeslider_slides` ( - `id_homeslider_slides` int(10) unsigned NOT NULL AUTO_INCREMENT, - `position` int(10) unsigned NOT NULL DEFAULT '0', - `active` tinyint(1) unsigned NOT NULL DEFAULT '0', - PRIMARY KEY (`id_homeslider_slides`) - ) ENGINE=ENGINE_TYPE DEFAULT CHARSET=UTF8; - - CREATE TABLE IF NOT EXISTS `PREFIX_homeslider_slides_lang` ( - `id_homeslider_slides` int(10) unsigned NOT NULL, - `id_lang` int(10) unsigned NOT NULL, - `title` varchar(255) NOT NULL, - `description` text NOT NULL, - `legend` varchar(255) NOT NULL, - `url` varchar(255) NOT NULL, - `image` varchar(255) NOT NULL, - PRIMARY KEY (`id_homeslider_slides`,`id_lang`) - ) ENGINE=ENGINE_TYPE DEFAULT CHARSET=UTF8; - -INSERT INTO `PREFIX_configuration` (name, value) -VALUES -("HOMESLIDER_WIDTH", "535"), -("HOMESLIDER_HEIGHT", "300"), -("HOMESLIDER_SPEED", "1300"), -("HOMESLIDER_PAUSE", "7700"); - -INSERT INTO `PREFIX_homeslider` (id_homeslider_slides, id_shop) VALUES (1, 1),(2, 1), (3, 1), (4, 1), (5, 1); - -INSERT INTO `PREFIX_homeslider_slides` (id_homeslider_slides, position, active) -VALUES (1, 1, 1), (2, 2, 1), (3, 3, 1), (4, 4, 1), (5, 5, 1); - -INSERT INTO `PREFIX_homeslider_slides_lang` (id_homeslider_slides, id_lang, title, description, legend, url, image) VALUES -(1, 1, "Sample 1", "This is a sample picture", "sample-1", "http://www.prestashop.com", "sample-1.jpg"), -(2, 1, "Sample 2", "This is a sample picture", "sample-2", "http://www.prestashop.com", "sample-2.jpg"), -(3, 1, "Sample 3", "This is a sample picture", "sample-3", "http://www.prestashop.com", "sample-3.jpg"), -(4, 1, "Sample 4", "This is a sample picture", "sample-4", "http://www.prestashop.com", "sample-4.jpg"), -(5, 1, "Sample 5", "This is a sample picture", "sample-5", "http://www.prestashop.com", "sample-5.jpg"), -(1, 2, "Sample 1", "This is a sample picture", "sample-1", "http://www.prestashop.com", "sample-1.jpg"), -(2, 2, "Sample 2", "This is a sample picture", "sample-2", "http://www.prestashop.com", "sample-2.jpg"), -(3, 2, "Sample 3", "This is a sample picture", "sample-3", "http://www.prestashop.com", "sample-3.jpg"), -(4, 2, "Sample 4", "This is a sample picture", "sample-4", "http://www.prestashop.com", "sample-4.jpg"), -(5, 2, "Sample 5", "This is a sample picture", "sample-5", "http://www.prestashop.com", "sample-5.jpg"), -(1, 3, "Sample 1", "This is a sample picture", "sample-1", "http://www.prestashop.com", "sample-1.jpg"), -(2, 3, "Sample 2", "This is a sample picture", "sample-2", "http://www.prestashop.com", "sample-2.jpg"), -(3, 3, "Sample 3", "This is a sample picture", "sample-3", "http://www.prestashop.com", "sample-3.jpg"), -(4, 3, "Sample 4", "This is a sample picture", "sample-4", "http://www.prestashop.com", "sample-4.jpg"), -(5, 3, "Sample 5", "This is a sample picture", "sample-5", "http://www.prestashop.com", "sample-5.jpg"), -(1, 4, "Sample 1", "This is a sample picture", "sample-1", "http://www.prestashop.com", "sample-1.jpg"), -(2, 4, "Sample 2", "This is a sample picture", "sample-2", "http://www.prestashop.com", "sample-2.jpg"), -(3, 4, "Sample 3", "This is a sample picture", "sample-3", "http://www.prestashop.com", "sample-3.jpg"), -(4, 4, "Sample 4", "This is a sample picture", "sample-4", "http://www.prestashop.com", "sample-4.jpg"), -(5, 4, "Sample 5", "This is a sample picture", "sample-5", "http://www.prestashop.com", "sample-5.jpg"), -(1, 5, "Sample 1", "This is a sample picture", "sample-1", "http://www.prestashop.com", "sample-1.jpg"), -(2, 5, "Sample 2", "This is a sample picture", "sample-2", "http://www.prestashop.com", "sample-2.jpg"), -(3, 5, "Sample 3", "This is a sample picture", "sample-3", "http://www.prestashop.com", "sample-3.jpg"), -(4, 5, "Sample 4", "This is a sample picture", "sample-4", "http://www.prestashop.com", "sample-4.jpg"), -(5, 5, "Sample 5", "This is a sample picture", "sample-5", "http://www.prestashop.com", "sample-5.jpg"); - - -CREATE TABLE IF NOT EXISTS `PREFIX_linksmenutop` ( - `id_link` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, - `id_shop` INT UNSIGNED NOT NULL, - `new_window` TINYINT( 1 ) NOT NULL, - `link` VARCHAR( 128 ) NOT NULL, - INDEX (`id_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_linksmenutop_lang` ( - `id_link` INT NOT NULL, - `id_lang` INT NOT NULL, - `id_shop` INT NOT NULL, - `label` VARCHAR( 128 ) NOT NULL , - INDEX ( `id_link` , `id_lang`, `id_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -INSERT INTO `PREFIX_category_shop` (`id_category`, `id_shop`) VALUES -(2, 1), -(3, 1), -(4, 1); \ No newline at end of file diff --git a/install-dev/sql/db_settings_lite.sql b/install-dev/sql/db_settings_lite.sql deleted file mode 100644 index 1ce3b022b..000000000 --- a/install-dev/sql/db_settings_lite.sql +++ /dev/null @@ -1,1652 +0,0 @@ -SET NAMES 'utf8'; - -INSERT INTO `PREFIX_hook_alias` (`id_hook_alias`, `name`, `alias`) VALUES -(1, 'displayPayment', 'payment'), -(2, 'actionValidateOrder', 'newOrder'), -(3, 'actionPaymentConfirmation', 'paymentConfirm'), -(4, 'displayPaymentReturn', 'paymentReturn'), -(5, 'actionUpdateQuantity', 'updateQuantity'), -(6, 'displayRightColumn', 'rightColumn'), -(7, 'displayLeftColumn', 'leftColumn'), -(8, 'displayHome', 'home'), -(9, 'displayHeader', 'header'), -(10, 'actionCartSave', 'cart'), -(11, 'actionAuthentication', 'authentication'), -(12, 'actionProductAdd', 'addproduct'), -(13, 'actionProductUpdate', 'updateproduct'), -(14, 'displayTop', 'top'), -(15, 'displayRightColumnProduct', 'extraRight'), -(16, 'actionProductDelete', 'deleteproduct'), -(17, 'displayFooterProduct', 'productfooter'), -(18, 'displayInvoice', 'invoice'), -(19, 'actionOrderStatusUpdate', 'updateOrderStatus'), -(20, 'displayAdminOrder', 'adminOrder'), -(21, 'displayFooter', 'footer'), -(22, 'displayPDFInvoice', 'PDFInvoice'), -(23, 'displayAdminCustomers', 'adminCustomers'), -(24, 'displayOrderConfirmation', 'orderConfirmation'), -(25, 'actionCustomerAccountAdd', 'createAccount'), -(26, 'displayCustomerAccount', 'customerAccount'), -(27, 'actionOrderSlipAdd', 'orderSlip'), -(28, 'displayProductTab', 'productTab'), -(29, 'displayProductTabContent', 'productTabContent'), -(30, 'displayShoppingCartFooter', 'shoppingCart'), -(31, 'displayCustomerAccountForm', 'createAccountForm'), -(32, 'displayAdminStatsModules', 'AdminStatsModules'), -(33, 'displayAdminStatsGraphEngine', 'GraphEngine'), -(34, 'actionOrderReturn', 'orderReturn'), -(35, 'displayProductButtons', 'productActions'), -(36, 'displayBackOfficeHome', 'backOfficeHome'), -(37, 'displayAdminStatsGridEngine', 'GridEngine'), -(38, 'actionWatermark', 'watermark'), -(39, 'actionProductCancel', 'cancelProduct'), -(40, 'displayLeftColumnProduct', 'extraLeft'), -(41, 'actionProductOutOfStock', 'productOutOfStock'), -(42, 'actionProductAttributeUpdate', 'updateProductAttribute'), -(43, 'displayCarrierList', 'extraCarrier'), -(44, 'displayShoppingCart', 'shoppingCartExtra'), -(45, 'actionSearch', 'search'), -(46, 'displayBeforePayment', 'backBeforePayment'), -(47, 'actionCarrierUpdate', 'updateCarrier'), -(48, 'actionOrderStatusPostUpdate', 'postUpdateOrderStatus'), -(49, 'displayCustomerAccountFormTop', 'createAccountTop'), -(50, 'displayBackOfficeHeader', 'backOfficeHeader'), -(51, 'displayBackOfficeTop', 'backOfficeTop'), -(52, 'displayBackOfficeFooter', 'backOfficeFooter'), -(53, 'actionProductAttributeDelete', 'deleteProductAttribute'), -(54, 'actionCarrierProcess', 'processCarrier'), -(55, 'actionOrderDetail', 'orderDetail'), -(56, 'displayBeforeCarrier', 'beforeCarrier'), -(57, 'displayOrderDetail', 'orderDetailDisplayed'), -(58, 'actionPaymentCCAdd', 'paymentCCAdded'), -(59, 'displayProductComparison', 'extraProductComparison'), -(60, 'actionCategoryAdd', 'categoryAddition'), -(61, 'actionCategoryUpdate', 'categoryUpdate'), -(62, 'actionCategoryDelete', 'categoryDeletion'), -(63, 'actionBeforeAuthentication', 'beforeAuthentication'), -(64, 'displayPaymentTop', 'paymentTop'), -(65, 'actionHtaccessCreate', 'afterCreateHtaccess'), -(66, 'actionAdminMetaSave', 'afterSaveAdminMeta'), -(67, 'displayAttributeGroupForm', 'attributeGroupForm'), -(68, 'actionAttributeGroupSave', 'afterSaveAttributeGroup'), -(69, 'actionAttributeGroupDelete', 'afterDeleteAttributeGroup'), -(70, 'displayFeatureForm', 'featureForm'), -(71, 'actionFeatureSave', 'afterSaveFeature'), -(72, 'actionFeatureDelete', 'afterDeleteFeature'), -(73, 'actionProductSave', 'afterSaveProduct'), -(74, 'actionProductListOverride', 'productListAssign'), -(75, 'displayAttributeGroupPostProcess', 'postProcessAttributeGroup'), -(76, 'displayFeaturePostProcess', 'postProcessFeature'), -(77, 'displayFeatureValueForm', 'featureValueForm'), -(78, 'displayFeatureValuePostProcess', 'postProcessFeatureValue'), -(79, 'actionFeatureValueDelete', 'afterDeleteFeatureValue'), -(80, 'actionFeatureValueSave', 'afterSaveFeatureValue'), -(81, 'displayAttributeForm', 'attributeForm'), -(82, 'actionAttributePostProcess', 'postProcessAttribute'), -(83, 'actionAttributeDelete', 'afterDeleteAttribute'), -(84, 'actionAttributeSave', 'afterSaveAttribute'), -(85, 'actionTaxManager', 'taxManager'); - - -INSERT INTO `PREFIX_hook` (`id_hook`, `name`, `title`, `description`, `position`, `live_edit`) VALUES -(1, 'displayPayment', 'Payment', NULL, 1, 1), -(2, 'actionValidateOrder', 'New orders', NULL, 0, 0), -(3, 'actionPaymentConfirmation', 'Payment confirmation', NULL, 0, 0), -(4, 'displayPaymentReturn', 'Payment return', NULL, 0, 0), -(5, 'actionUpdateQuantity', 'Quantity update', 'Quantity is updated only when the customer effectively place his order.', 0, 0), -(6, 'displayRightColumn', 'Right column blocks', NULL, 1, 1), -(7, 'displayLeftColumn', 'Left column blocks', NULL, 1, 1), -(8, 'displayHome', 'Homepage content', NULL, 1, 1), -(9, 'displayHeader', 'Header of pages', 'A hook which allow you to do things in the header of each pages', 1, 0), -(10, 'actionCartSave', 'Cart creation and update', NULL, 0, 0), -(11, 'actionAuthentication', 'Successful customer authentication', NULL, 0, 0), -(12, 'actionProductAdd', 'Product creation', NULL, 0, 0), -(13, 'actionProductUpdate', 'Product Update', NULL, 0, 0), -(14, 'displayTop', 'Top of pages', 'A hook which allow you to do things a the top of each pages.', 1, 0), -(15, 'displayRightColumnProduct', 'Extra actions on the product page (right column).', NULL, 0, 0), -(16, 'actionProductDelete', 'Product deletion', 'This hook is called when a product is deleted', 0, 0), -(17, 'displayFooterProduct', 'Product footer', 'Add new blocks under the product description', 1, 1), -(18, 'displayInvoice', 'Invoice', 'Add blocks to invoice (order)', 1, 0), -(19, 'actionOrderStatusUpdate', 'Order''s status update event', 'Launch modules when the order''s status of an order change.', 0, 0), -(20, 'displayAdminOrder', 'Display in Back-Office, tab AdminOrder', 'Launch modules when the tab AdminOrder is displayed on back-office.', 0, 0), -(21, 'displayFooter', 'Footer', 'Add block in footer', 1, 0), -(22, 'displayPDFInvoice', 'PDF Invoice', 'Allow the display of extra informations into the PDF invoice', 0, 0), -(23, 'displayAdminCustomers', 'Display in Back-Office, tab AdminCustomers', 'Launch modules when the tab AdminCustomers is displayed on back-office.', 0, 0), -(24, 'displayOrderConfirmation', 'Order confirmation page', 'Called on order confirmation page', 0, 0), -(25, 'actionCustomerAccountAdd', 'Successful customer create account', 'Called when new customer create account successfuled', 0, 0), -(26, 'displayCustomerAccount', 'Customer account page display in front office', 'Display on page account of the customer', 1, 0), -(27, 'actionOrderSlipAdd', 'Called when a order slip is created', 'Called when a quantity of one product change in an order.', 0, 0), -(28, 'displayProductTab', 'Tabs on product page', 'Called on order product page tabs', 0, 0), -(29, 'displayProductTabContent', 'Content of tabs on product page', 'Called on order product page tabs', 0, 0), -(30, 'displayShoppingCartFooter', 'Shopping cart footer', 'Display some specific informations on the shopping cart page', 0, 0), -(31, 'displayCustomerAccountForm', 'Customer account creation form', 'Display some information on the form to create a customer account', 1, 0), -(32, 'displayAdminStatsModules','Stats - Modules', NULL, 1, 0), -(33, 'displayAdminStatsGraphEngine','Graph Engines', NULL, 0, 0), -(34, 'actionOrderReturn','Product returned', NULL, 0, 0), -(35, 'displayProductButtons', 'Product actions', 'Put new action buttons on product page', 1, 0), -(36, 'displayBackOfficeHome', 'Administration panel homepage', NULL, 1, 0), -(37, 'displayAdminStatsGridEngine','Grid Engines', NULL, 0, 0), -(38, 'actionWatermark','Watermark', NULL, 0, 0), -(39, 'actionProductCancel', 'Product cancelled', 'This hook is called when you cancel a product in an order', 0, 0), -(40, 'displayLeftColumnProduct', 'Extra actions on the product page (left column).', NULL, 0, 0), -(41, 'actionProductOutOfStock', 'Product out of stock', 'Make action while product is out of stock', 1, 0), -(42, 'actionProductAttributeUpdate', 'Product attribute update', NULL, 0, 0), -(43, 'displayCarrierList', 'Extra carrier (module mode)', NULL, 0, 0), -(44, 'displayShoppingCart', 'Shopping cart extra button', 'Display some specific informations', 1, 0), -(45, 'actionSearch', 'Search', NULL, 0, 0), -(46, 'displayBeforePayment', 'Redirect in order process', 'Redirect user to the module instead of displaying payment modules', 0, 0), -(47, 'actionCarrierUpdate', 'Carrier Update', 'This hook is called when a carrier is updated', 0, 0), -(48, 'actionOrderStatusPostUpdate', 'Post update of order status', NULL, 0, 0), -(49, 'displayCustomerAccountFormTop', 'Block above the form for create an account', NULL, 1, 0), -(50, 'displayBackOfficeHeader', 'Administration panel header', NULL , 0, 0), -(51, 'displayBackOfficeTop', 'Administration panel hover the tabs', NULL , 1, 0), -(52, 'displayBackOfficeFooter', 'Administration panel footer', NULL , 1, 0), -(53, 'actionProductAttributeDelete', 'Product Attribute Deletion', NULL, 0, 0), -(54, 'actionCarrierProcess', 'Carrier Process', NULL, 0, 0), -(55, 'actionOrderDetail', 'Order Detail', 'To set the follow-up in smarty when order detail is called', 0, 0), -(56, 'displayBeforeCarrier', 'Before carrier list', 'This hook is display before the carrier list on Front office', 1, 0), -(57, 'displayOrderDetail', 'Order detail displayed', 'Displayed on order detail on front office', 1, 0), -(58, 'actionPaymentCCAdd', 'Payment CC added', 'Payment CC added', 0, 0), -(59, 'displayProductComparison', 'Extra Product Comparison', 'Extra Product Comparison', 0, 0), -(60, 'actionCategoryAdd', 'Category creation', '', 0, 0), -(61, 'actionCategoryUpdate', 'Category modification', '', 0, 0), -(62, 'actionCategoryDelete', 'Category removal', '', 0, 0), -(63, 'actionBeforeAuthentication', 'Before Authentication', 'Before authentication', 0, 0), -(64, 'displayPaymentTop', 'Top of payment page', 'Top of payment page', 0, 0), -(65, 'actionHtaccessCreate', 'After htaccess creation', 'After htaccess creation', 0, 0), -(66, 'actionAdminMetaSave', 'After save configuration in AdminMeta', 'After save configuration in AdminMeta', 0, 0), -(67, 'displayAttributeGroupForm', 'Add fields to the form "attribute group"', 'Add fields to the form "attribute group"', 0, 0), -(68, 'actionAttributeGroupSave', 'On saving attribute group', 'On saving attribute group', 0, 0), -(69, 'actionAttributeGroupDelete', 'On deleting attribute group', 'On deleting attribute group', 0, 0), -(70, 'displayFeatureForm', 'Add fields to the form "feature"', 'Add fields to the form "feature"', 0, 0), -(71, 'actionFeatureSave', 'On saving attribute feature', 'On saving attribute feature', 0, 0), -(72, 'actionFeatureDelete', 'On deleting attribute feature', 'On deleting attribute feature', 0, 0), -(73, 'actionProductSave', 'On saving products', 'On saving products', 0, 0), -(74, 'actionProductListOverride', 'Assign product list to a category', 'Assign product list to a category', 0, 0), -(75, 'displayAttributeGroupPostProcess', 'On post-process in admin attribute group', 'On post-process in admin attribute group', 0, 0), -(76, 'displayFeaturePostProcess', 'On post-process in admin feature', 'On post-process in admin feature', 0, 0), -(77, 'displayFeatureValueForm', 'Add fields to the form "feature value"', 'Add fields to the form "feature value"', 0, 0), -(78, 'displayFeatureValuePostProcess', 'On post-process in admin feature value', 'On post-process in admin feature value', 0, 0), -(79, 'actionFeatureValueDelete', 'On deleting attribute feature value', 'On deleting attribute feature value', 0, 0), -(90, 'actionFeatureValueSave', 'On saving attribute feature value', 'On saving attribute feature value', 0, 0), -(91, 'displayAttributeForm', 'Add fields to the form "attribute value"', 'Add fields to the form "attribute value"', 0, 0), -(92, 'actionAttributePostProcess', 'On post-process in admin feature value', 'On post-process in admin feature value', 0, 0), -(93, 'actionAttributeDelete', 'On deleting attribute feature value', 'On deleting attribute feature value', 0, 0), -(94, 'actionAttributeSave', 'On saving attribute feature value', 'On saving attribute feature value', 0, 0), -(95, 'actionTaxManager', 'Tax Manager Factory', '' , 0, 0), -(96, 'displayMyAccountBlock', 'My account block', 'Display extra informations inside the "my account" block', 1, 0); - -INSERT INTO `PREFIX_configuration` (`id_configuration`, `name`, `value`, `date_add`, `date_upd`) VALUES -(1, 'PS_LANG_DEFAULT', '1', NOW(), NOW()), -(2, 'PS_CURRENCY_DEFAULT', '1', NOW(), NOW()), -(3, 'PS_COUNTRY_DEFAULT', '8', NOW(), NOW()), -(4, 'PS_REWRITING_SETTINGS', '0', NOW(), NOW()), -(5, 'PS_ORDER_OUT_OF_STOCK', '0', NOW(), NOW()), -(6, 'PS_LAST_QTIES', '3', NOW(), NOW()), -(7, 'PS_CART_REDIRECT', '1', NOW(), NOW()), -(8, 'PS_HELPBOX', '1', NOW(), NOW()), -(9, 'PS_CONDITIONS', '1', NOW(), NOW()), -(10, 'PS_RECYCLABLE_PACK', '1', NOW(), NOW()), -(11, 'PS_GIFT_WRAPPING', '1', NOW(), NOW()), -(12, 'PS_GIFT_WRAPPING_PRICE', '0', NOW(), NOW()), -(13, 'PS_STOCK_MANAGEMENT', '1', NOW(), NOW()), -(14, 'PS_NAVIGATION_PIPE', '>', NOW(), NOW()), -(15, 'PS_PRODUCTS_PER_PAGE', '10', NOW(), NOW()), -(16, 'PS_PURCHASE_MINIMUM', '0', NOW(), NOW()), -(17, 'PS_PRODUCTS_ORDER_WAY', '0', NOW(), NOW()), -(18, 'PS_PRODUCTS_ORDER_BY', '4', NOW(), NOW()), -(19, 'PS_DISPLAY_QTIES', '1', NOW(), NOW()), -(20, 'PS_SHIPPING_HANDLING', '2', NOW(), NOW()), -(21, 'PS_SHIPPING_FREE_PRICE', '0', NOW(), NOW()), -(22, 'PS_SHIPPING_FREE_WEIGHT', '0', NOW(), NOW()), -(23, 'PS_SHIPPING_METHOD', '1', NOW(), NOW()), -(24, 'PS_TAX', '1', NOW(), NOW()), -(25, 'PS_SHOP_ENABLE', '1', NOW(), NOW()), -(26, 'PS_NB_DAYS_NEW_PRODUCT', '20', NOW(), NOW()), -(27, 'PS_SSL_ENABLED', '0', NOW(), NOW()), -(28, 'PS_WEIGHT_UNIT', 'kg', NOW(), NOW()), -(29, 'PS_BLOCK_CART_AJAX', '1', NOW(), NOW()), -(30, 'PS_ORDER_RETURN', '0', NOW(), NOW()), -(31, 'PS_ORDER_RETURN_NB_DAYS', '7', NOW(), NOW()), -(32, 'PS_MAIL_TYPE', '3', NOW(), NOW()), -(33, 'PS_PRODUCT_PICTURE_MAX_SIZE', '131072', NOW(), NOW()), -(34, 'PS_PRODUCT_PICTURE_WIDTH', '64', NOW(), NOW()), -(35, 'PS_PRODUCT_PICTURE_HEIGHT', '64', NOW(), NOW()), -(36, 'PS_INVOICE_PREFIX', 'IN', NOW(), NOW()), -(37, 'PS_INVOICE_NUMBER', '1', NOW(), NOW()), -(38, 'PS_DELIVERY_PREFIX', 'DE', NOW(), NOW()), -(39, 'PS_DELIVERY_NUMBER', '1', NOW(), NOW()), -(40, 'PS_INVOICE', '1', NOW(), NOW()), -(41, 'PS_PASSWD_TIME_BACK', '360', NOW(), NOW()), -(42, 'PS_PASSWD_TIME_FRONT', '360', NOW(), NOW()), -(43, 'PS_DISP_UNAVAILABLE_ATTR', '1', NOW(), NOW()), -(44, 'PS_VOUCHERS', '1', NOW(), NOW()), -(45, 'PS_SEARCH_MINWORDLEN', '3', NOW(), NOW()), -(46, 'PS_SEARCH_BLACKLIST', '', NOW(), NOW()), -(47, 'PS_SEARCH_WEIGHT_PNAME', '6', NOW(), NOW()), -(48, 'PS_SEARCH_WEIGHT_REF', '10', NOW(), NOW()), -(49, 'PS_SEARCH_WEIGHT_SHORTDESC', '1', NOW(), NOW()), -(50, 'PS_SEARCH_WEIGHT_DESC', '1', NOW(), NOW()), -(51, 'PS_SEARCH_WEIGHT_CNAME', '3', NOW(), NOW()), -(52, 'PS_SEARCH_WEIGHT_MNAME', '3', NOW(), NOW()), -(53, 'PS_SEARCH_WEIGHT_TAG', '4', NOW(), NOW()), -(54, 'PS_SEARCH_WEIGHT_ATTRIBUTE', '2', NOW(), NOW()), -(55, 'PS_SEARCH_WEIGHT_FEATURE', '2', NOW(), NOW()), -(56, 'PS_SEARCH_AJAX', '1', NOW(), NOW()), -(57, 'PS_TIMEZONE', 'Europe/Paris', NOW(), NOW()), -(58, 'PS_THEME_V11', 0, NOW(), NOW()), -(59, 'PRESTASTORE_LIVE', 1, NOW(), NOW()), -(60, 'PS_TIN_ACTIVE', 0, NOW(), NOW()), -(61, 'PS_SHOW_ALL_MODULES', 0, NOW(), NOW()), -(62, 'PS_BACKUP_ALL', 0, NOW(), NOW()), -(63, 'PS_1_3_UPDATE_DATE', NOW(), NOW(), NOW()), -(64, 'PS_PRICE_ROUND_MODE', 2, NOW(), NOW()), -(65, 'PS_1_3_2_UPDATE_DATE', NOW(), NOW(), NOW()), -(66, 'PS_CONDITIONS_CMS_ID', 3, NOW(), NOW()), -(67, 'TRACKING_DIRECT_TRAFFIC', 0, NOW(), NOW()), -(68, 'PS_META_KEYWORDS', 0, NOW(), NOW()), -(69, 'PS_DISPLAY_JQZOOM', 0, NOW(), NOW()), -(70, 'PS_VOLUME_UNIT', 'cl', NOW(), NOW()), -(71, 'PS_CIPHER_ALGORITHM', 0, NOW(), NOW()), -(72, 'PS_ATTRIBUTE_CATEGORY_DISPLAY', 1, NOW(), NOW()), -(73, 'PS_CUSTOMER_SERVICE_FILE_UPLOAD', 1, NOW(), NOW()), -(74, 'PS_CUSTOMER_SERVICE_SIGNATURE', '', NOW(), NOW()), -(75, 'PS_BLOCK_BESTSELLERS_DISPLAY', 0, NOW(), NOW()), -(76, 'PS_BLOCK_NEWPRODUCTS_DISPLAY', 0, NOW(), NOW()), -(77, 'PS_BLOCK_SPECIALS_DISPLAY', 0, NOW(), NOW()), -(78, 'PS_STOCK_MVT_REASON_DEFAULT', 3, NOW(), NOW()), -(79, 'PS_COMPARATOR_MAX_ITEM', 3, NOW(), NOW()), -(80, 'PS_ORDER_PROCESS_TYPE', 1, NOW(), NOW()), -(81, 'PS_SPECIFIC_PRICE_PRIORITIES', 'id_shop;id_currency;id_country;id_group', NOW(), NOW()), -(82, 'PS_TAX_DISPLAY', 0, NOW(), NOW()), -(83, 'PS_SMARTY_FORCE_COMPILE', 1, NOW(), NOW()), -(84, 'PS_DISTANCE_UNIT', 'km', NOW(), NOW()), -(85, 'PS_STORES_DISPLAY_CMS', 1, NOW(), NOW()), -(86, 'PS_STORES_DISPLAY_FOOTER', 1, NOW(), NOW()), -(87, 'PS_STORES_SIMPLIFIED', 0, NOW(), NOW()), -(88, 'SHOP_LOGO_WIDTH', 209, NOW(), NOW()), -(89, 'SHOP_LOGO_HEIGHT', 52, NOW(), NOW()), -(90, 'EDITORIAL_IMAGE_WIDTH', 530, NOW(), NOW()), -(91, 'EDITORIAL_IMAGE_HEIGHT', 228, NOW(), NOW()), -(92, 'PS_STATSDATA_CUSTOMER_PAGESVIEWS', 0, NOW(), NOW()), -(93, 'PS_STATSDATA_PAGESVIEWS', 0, NOW(), NOW()), -(94, 'PS_STATSDATA_PLUGINS', 0, NOW(), NOW()), -(95, 'PS_GEOLOCATION_ENABLED', '0', NOW(), NOW()), -(96, 'PS_ALLOWED_COUNTRIES', 'AF;ZA;AX;AL;DZ;DE;AD;AO;AI;AQ;AG;AN;SA;AR;AM;AW;AU;AT;AZ;BS;BH;BD;BB;BY;BE;BZ;BJ;BM;BT;BO;BA;BW;BV;BR;BN;BG;BF;MM;BI;KY;KH;CM;CA;CV;CF;CL;CN;CX;CY;CC;CO;KM;CG;CD;CK;KR;KP;CR;CI;HR;CU;DK;DJ;DM;EG;IE;SV;AE;EC;ER;ES;EE;ET;FK;FO;FJ;FI;FR;GA;GM;GE;GS;GH;GI;GR;GD;GL;GP;GU;GT;GG;GN;GQ;GW;GY;GF;HT;HM;HN;HK;HU;IM;MU;VG;VI;IN;ID;IR;IQ;IS;IL;IT;JM;JP;JE;JO;KZ;KE;KG;KI;KW;LA;LS;LV;LB;LR;LY;LI;LT;LU;MO;MK;MG;MY;MW;MV;ML;MT;MP;MA;MH;MQ;MR;YT;MX;FM;MD;MC;MN;ME;MS;MZ;NA;NR;NP;NI;NE;NG;NU;NF;NO;NC;NZ;IO;OM;UG;UZ;PK;PW;PS;PA;PG;PY;NL;PE;PH;PN;PL;PF;PR;PT;QA;DO;CZ;RE;RO;GB;RU;RW;EH;BL;KN;SM;MF;PM;VA;VC;LC;SB;WS;AS;ST;SN;RS;SC;SL;SG;SK;SI;SO;SD;LK;SE;CH;SR;SJ;SZ;SY;TJ;TW;TZ;TD;TF;TH;TL;TG;TK;TO;TT;TN;TM;TC;TR;TV;UA;UY;US;VU;VE;VN;WF;YE;ZM;ZW', NOW(), NOW()), -(97, 'PS_GEOLOCATION_BEHAVIOR', '0', NOW(), NOW()), -(98, 'PS_LOCALE_LANGUAGE', '', NOW(), NOW()), -(99, 'PS_LOCALE_COUNTRY', '', NOW(), NOW()), -(100, 'PS_ATTACHMENT_MAXIMUM_SIZE', '2', NOW(), NOW()), -(101, 'PS_SMARTY_CACHE', '1', NOW(), NOW()), -(102, 'PS_DIMENSION_UNIT', 'cm', NOW(), NOW()), -(104, 'PS_GUEST_CHECKOUT_ENABLED', '1', NOW(), NOW()), -(105, 'PS_DISPLAY_SUPPLIERS', '1', NOW(), NOW()), -(106, 'PS_CATALOG_MODE', '0', NOW(), NOW()), -(107, 'PS_GEOLOCATION_WHITELIST', '209.185.108;209.185.253;209.85.238;209.85.238.11;209.85.238.4;216.239.33.96;216.239.33.97;216.239.33.98;216.239.33.99;216.239.37.98;216.239.37.99;216.239.39.98;216.239.39.99;216.239.41.96;216.239.41.97;216.239.41.98;216.239.41.99;216.239.45.4;216.239.46;216.239.51.96;216.239.51.97;216.239.51.98;216.239.51.99;216.239.53.98;216.239.53.99;216.239.57.96;216.239.57.97;216.239.57.98;216.239.57.99;216.239.59.98;216.239.59.99;216.33.229.163;64.233.173.193;64.233.173.194;64.233.173.195;64.233.173.196;64.233.173.197;64.233.173.198;64.233.173.199;64.233.173.200;64.233.173.201;64.233.173.202;64.233.173.203;64.233.173.204;64.233.173.205;64.233.173.206;64.233.173.207;64.233.173.208;64.233.173.209;64.233.173.210;64.233.173.211;64.233.173.212;64.233.173.213;64.233.173.214;64.233.173.215;64.233.173.216;64.233.173.217;64.233.173.218;64.233.173.219;64.233.173.220;64.233.173.221;64.233.173.222;64.233.173.223;64.233.173.224;64.233.173.225;64.233.173.226;64.233.173.227;64.233.173.228;64.233.173.229;64.233.173.230;64.233.173.231;64.233.173.232;64.233.173.233;64.233.173.234;64.233.173.235;64.233.173.236;64.233.173.237;64.233.173.238;64.233.173.239;64.233.173.240;64.233.173.241;64.233.173.242;64.233.173.243;64.233.173.244;64.233.173.245;64.233.173.246;64.233.173.247;64.233.173.248;64.233.173.249;64.233.173.250;64.233.173.251;64.233.173.252;64.233.173.253;64.233.173.254;64.233.173.255;64.68.80;64.68.81;64.68.82;64.68.83;64.68.84;64.68.85;64.68.86;64.68.87;64.68.88;64.68.89;64.68.90.1;64.68.90.10;64.68.90.11;64.68.90.12;64.68.90.129;64.68.90.13;64.68.90.130;64.68.90.131;64.68.90.132;64.68.90.133;64.68.90.134;64.68.90.135;64.68.90.136;64.68.90.137;64.68.90.138;64.68.90.139;64.68.90.14;64.68.90.140;64.68.90.141;64.68.90.142;64.68.90.143;64.68.90.144;64.68.90.145;64.68.90.146;64.68.90.147;64.68.90.148;64.68.90.149;64.68.90.15;64.68.90.150;64.68.90.151;64.68.90.152;64.68.90.153;64.68.90.154;64.68.90.155;64.68.90.156;64.68.90.157;64.68.90.158;64.68.90.159;64.68.90.16;64.68.90.160;64.68.90.161;64.68.90.162;64.68.90.163;64.68.90.164;64.68.90.165;64.68.90.166;64.68.90.167;64.68.90.168;64.68.90.169;64.68.90.17;64.68.90.170;64.68.90.171;64.68.90.172;64.68.90.173;64.68.90.174;64.68.90.175;64.68.90.176;64.68.90.177;64.68.90.178;64.68.90.179;64.68.90.18;64.68.90.180;64.68.90.181;64.68.90.182;64.68.90.183;64.68.90.184;64.68.90.185;64.68.90.186;64.68.90.187;64.68.90.188;64.68.90.189;64.68.90.19;64.68.90.190;64.68.90.191;64.68.90.192;64.68.90.193;64.68.90.194;64.68.90.195;64.68.90.196;64.68.90.197;64.68.90.198;64.68.90.199;64.68.90.2;64.68.90.20;64.68.90.200;64.68.90.201;64.68.90.202;64.68.90.203;64.68.90.204;64.68.90.205;64.68.90.206;64.68.90.207;64.68.90.208;64.68.90.21;64.68.90.22;64.68.90.23;64.68.90.24;64.68.90.25;64.68.90.26;64.68.90.27;64.68.90.28;64.68.90.29;64.68.90.3;64.68.90.30;64.68.90.31;64.68.90.32;64.68.90.33;64.68.90.34;64.68.90.35;64.68.90.36;64.68.90.37;64.68.90.38;64.68.90.39;64.68.90.4;64.68.90.40;64.68.90.41;64.68.90.42;64.68.90.43;64.68.90.44;64.68.90.45;64.68.90.46;64.68.90.47;64.68.90.48;64.68.90.49;64.68.90.5;64.68.90.50;64.68.90.51;64.68.90.52;64.68.90.53;64.68.90.54;64.68.90.55;64.68.90.56;64.68.90.57;64.68.90.58;64.68.90.59;64.68.90.6;64.68.90.60;64.68.90.61;64.68.90.62;64.68.90.63;64.68.90.64;64.68.90.65;64.68.90.66;64.68.90.67;64.68.90.68;64.68.90.69;64.68.90.7;64.68.90.70;64.68.90.71;64.68.90.72;64.68.90.73;64.68.90.74;64.68.90.75;64.68.90.76;64.68.90.77;64.68.90.78;64.68.90.79;64.68.90.8;64.68.90.80;64.68.90.9;64.68.91;64.68.92;66.249.64;66.249.65;66.249.66;66.249.67;66.249.68;66.249.69;66.249.70;66.249.71;66.249.72;66.249.73;66.249.78;66.249.79;72.14.199;8.6.48', NOW(), NOW()), -(108, 'PS_LOGS_BY_EMAIL', '5', NOW(), NOW()), -(109, 'PS_COOKIE_CHECKIP', '1', NOW(), NOW()), -(110, 'PS_STORES_CENTER_LAT', '25.948969', NOW(), NOW()), -(111, 'PS_STORES_CENTER_LONG', '-80.226439', NOW(), NOW()), -(113, 'PS_USE_ECOTAX', '0', NOW(), NOW()), -(114, 'PS_CANONICAL_REDIRECT', '1', NOW(), NOW()), -(115, 'PS_IMG_UPDATE_TIME', UNIX_TIMESTAMP(), NOW(), NOW()), -(116, 'PS_BACKUP_DROP_TABLE', 1, NOW(), NOW()), -(117, 'PS_OS_CHEQUE', '1', NOW(), NOW()), -(118, 'PS_OS_PAYMENT', '2', NOW(), NOW()), -(119, 'PS_OS_PREPARATION', '3', NOW(), NOW()), -(120, 'PS_OS_SHIPPING', '4', NOW(), NOW()), -(121, 'PS_OS_DELIVERED', '5', NOW(), NOW()), -(122, 'PS_OS_CANCELED', '6', NOW(), NOW()), -(123, 'PS_OS_REFUND', '7', NOW(), NOW()), -(124, 'PS_OS_ERROR', '8', NOW(), NOW()), -(125, 'PS_OS_OUTOFSTOCK', '9', NOW(), NOW()), -(126, 'PS_OS_BANKWIRE', '10', NOW(), NOW()), -(127, 'PS_OS_PAYPAL', '11', NOW(), NOW()), -(128, 'PS_OS_WS_PAYMENT', '12', NOW(), NOW()), -(129, 'PS_LEGACY_IMAGES', '1', NOW(), NOW()), -(130, 'PS_IMAGE_QUALITY', 'jpg', NOW(), NOW()), -(131, 'PS_PNG_QUALITY', '7', NOW(), NOW()), -(132, 'PS_JPEG_QUALITY', '90', NOW(), NOW()), -(133, 'PS_COOKIE_LIFETIME_FO', '480', NOW(), NOW()), -(134, 'PS_COOKIE_LIFETIME_BO', '480', NOW(), NOW()), -(135, 'PS_RESTRICT_DELIVERED_COUNTRIES', '0', NOW(), NOW()), -(136, 'PS_SHOW_NEW_ORDERS', '1', NOW(), NOW()), -(137, 'PS_SHOW_NEW_CUSTOMERS', '1', NOW(), NOW()), -(138, 'PS_SHOW_NEW_MESSAGES', '1', NOW(), NOW()), -(139, 'PS_FEATURE_FEATURE_ACTIVE', '1', NOW(), NOW()), -(140, 'PS_COMBINATION_FEATURE_ACTIVE', '1', NOW(), NOW()), -(141, 'PS_SPECIFIC_PRICE_FEATURE_ACTIVE', '1', NOW(), NOW()), -(142, 'PS_SCENE_FEATURE_ACTIVE', '1', NOW(), NOW()), -(143, 'PS_VIRTUAL_PROD_FEATURE_ACTIVE', '0', NOW(), NOW()), -(144, 'PS_CUSTOMIZATION_FEATURE_ACTIVE', '0', NOW(), NOW()), -(145, 'PS_CART_RULE_FEATURE_ACTIVE', '0', NOW(), NOW()), -(146, 'PS_GROUP_FEATURE_ACTIVE', '1', NOW(), NOW()), -(147, 'PS_PACK_FEATURE_ACTIVE', '0', NOW(), NOW()), -(148, 'PS_ALIAS_FEATURE_ACTIVE', '1', NOW(), NOW()), -(149, 'PS_CARRIER_DEFAULT', '1', NOW(), NOW()), -(150, 'PS_TAX_ADDRESS_TYPE', 'id_address_delivery', NOW(), NOW()), -(151, 'PS_SHOP_DEFAULT', '1', NOW(), NOW()), -(152, 'PS_CARRIER_DEFAULT_SORT', '0', NOW(), NOW()), -(153, 'PS_STOCK_MVT_INC_REASON_DEFAULT', '1', NOW(), NOW()), -(154, 'PS_STOCK_MVT_DEC_REASON_DEFAULT', '2', NOW(), NOW()), -(155, 'PS_ADVANCED_STOCK_MANAGEMENT', '0', NOW(), NOW()), -(156, 'PS_ADMINREFRESH_NOTIFICATION', '1', NOW(), NOW()), -(157, 'PS_STOCK_MVT_TRANSFER_TO', '7', NOW(), NOW()), -(158, 'PS_STOCK_MVT_TRANSFER_FROM', '6', NOW(), NOW()), -(159, 'PS_CARRIER_DEFAULT_ORDER', '0', NOW(), NOW()), -(160, 'PS_STOCK_MVT_SUPPLY_ORDER', '8', NOW(), NOW()), -(161, 'PS_STOCK_CUSTOMER_ORDER_REASON', '3', NOW(), NOW()), -(162, 'PS_UNIDENTIFIED_GROUP', '1', NOW(), NOW()), -(163, 'PS_GUEST_GROUP', '2', NOW(), NOW()), -(164, 'PS_CUSTOMER_GROUP', '3', NOW(), NOW()), -(165, 'PS_SMARTY_CONSOLE', 0, NOW(), NOW()), -(166, 'PS_INVOICE_MODEL', 'invoice', NOW(), NOW()), -(167, 'PS_LIMIT_UPLOAD_IMAGE_VALUE', 2, NOW(), NOW()), -(168, 'PS_LIMIT_UPLOAD_FILE_VALUE', 2 , NOW(), NOW()); - -INSERT INTO `PREFIX_configuration_lang` (`id_configuration`, `id_lang`, `value`, `date_upd`) VALUES -(36, 1, 'IN', NOW()),(36, 2, 'FA', NOW()),(36, 3, 'CU', NOW()),(36, 4, 'FA', NOW()),(36, 5, 'FA', NOW()), -(38, 1, 'DE', NOW()),(38, 2, 'LI', NOW()),(38, 3, 'EN', NOW()),(38, 4, 'LI', NOW()),(38, 5, 'BC', NOW()), -(46, 1, 'a|the|of|on|in|and|to', NOW()),(46, 2, 'le|les|de|et|en|des|les|une', NOW()),(46, 3, 'de|los|las|lo|la|en|de|y|el|a', NOW()),(46, 4, '', NOW()),(46, 5, '', NOW()), -(68, 1, 0, NOW()),(68, 2, 0, NOW()),(68, 3, 0, NOW()),(68, 4, 0, NOW()),(68, 5, 0, NOW()), -(74, 1, 'Dear Customer,\r\n\r\nRegards,\r\nCustomer service', NOW()), -(74, 2, 'Cher client,\r\n\r\nCordialement,\r\nLe service client', NOW()), -(74, 3, 'Estimado cliente,\r\n\r\nUn cordial saludo,\r\nAtención al cliente', NOW()), -(74, 4, 'Lieber Kunde,\r\n\r\nMit freundlichen Grüßen,\r\nIhr Kundenservice', NOW()), -(74, 5, 'Gentile Cliente,\r\n\r\nCordiali saluti,\r\nServizio Clienti', NOW()); - -INSERT INTO `PREFIX_lang` (`id_lang`, `name`, `active`, `iso_code`, `language_code`, `date_format_lite`, `date_format_full`) VALUES -(1, 'English (English)', 1, 'en', 'en-us', 'm/j/Y', 'm/j/Y H:i:s'), -(2, 'Français (French)', 1, 'fr', 'fr', 'd/m/Y', 'd/m/Y H:i:s'), -(3, 'Español (Spanish)', 1, 'es', 'es', 'd/m/Y', 'd/m/Y H:i:s'), -(4, 'Deutsch (German)', 1, 'de', 'de', 'd.m.Y', 'd.m.Y H:i:s'), -(5, 'Italiano (Italian)', 1, 'it', 'it', 'd/m/Y', 'd/m/Y H:i:s'); - -INSERT INTO `PREFIX_lang_shop` (`id_lang`, `id_shop`) VALUES (1,1), (2,1), (3,1), (4,1), (5,1); - -INSERT INTO `PREFIX_category` (`id_category`, `id_parent`, `level_depth`, `nleft`, `nright`, `active`, `date_add`, `date_upd`, `position`) VALUES (1, 0, 0, 1, 8, 1, NOW(), NOW(), 0); -INSERT INTO `PREFIX_category_lang` (`id_category`, `id_lang`, `name`, `description`, `link_rewrite`, `meta_title`, `meta_keywords`, `meta_description`) VALUES -(1, 1, 'Home', '', 'home', NULL, NULL, NULL),(1, 2, 'Accueil', '', 'home', NULL, NULL, NULL),(1, 3, 'Inicio', '', 'home', NULL, NULL, NULL),(1, 4, 'Start', '', 'home', NULL, NULL, NULL),(1, 5, 'Home page', '', 'home', NULL, NULL, NULL); - -INSERT INTO `PREFIX_order_state` (`id_order_state`, `invoice`, `send_email`, `color`, `unremovable`, `logable`, `delivery`, `shipped`, `paid`) VALUES -(1, 0, 1, 'RoyalBlue', 1, 0, 0, 0, 0),(2, 1, 1, 'LimeGreen', 1, 1, 0, 0, 1),(3, 1, 1, 'DarkOrange', 1, 1, 1, 0, 1),(4, 1, 1, 'BlueViolet', 1, 1, 1, 1, 1),(5, 1, 0, '#108510', 1, 1, 1, 1, 1), -(6, 0, 1, 'Crimson', 1, 0, 0, 0, 0),(7, 1, 1, '#ec2e15', 1, 0, 0, 0, 0),(8, 0, 1, '#8f0621', 1, 0, 0, 0, 0),(9, 1, 1, 'HotPink', 1, 0, 0, 0, 1),(10, 0, 1, 'RoyalBlue', 1, 0, 0, 0, 0),(11, 0, 0, 'RoyalBlue', 1, 0, 0, 0, 0),(12, 1, 0, 'LimeGreen', 1, 1, 0, 0, 1); - -INSERT INTO `PREFIX_order_state_lang` (`id_order_state`, `id_lang`, `name`, `template`) VALUES -(1, 1, 'Awaiting cheque payment', 'cheque'), -(2, 1, 'Payment accepted', 'payment'), -(3, 1, 'Preparation in progress', 'preparation'), -(4, 1, 'Shipped', 'shipped'), -(5, 1, 'Delivered', ''), -(6, 1, 'Canceled', 'order_canceled'), -(7, 1, 'Refund', 'refund'), -(8, 1, 'Payment error', 'payment_error'), -(9, 1, 'On backorder', 'outofstock'), -(10, 1, 'Awaiting bank wire payment', 'bankwire'), -(11, 1, 'Awaiting PayPal payment', ''), -(12, 1, 'Payment remotely accepted', ''), -(1, 2, 'En attente du paiement par chèque', 'cheque'), -(2, 2, 'Paiement accepté', 'payment'), -(3, 2, 'Préparation en cours', 'preparation'), -(4, 2, 'En cours de livraison', 'shipped'), -(5, 2, 'Livré', ''), -(6, 2, 'Annulé', 'order_canceled'), -(7, 2, 'Remboursé', 'refund'), -(8, 2, 'Erreur de paiement', 'payment_error'), -(9, 2, 'En attente de réapprovisionnement', 'outofstock'), -(10, 2, 'En attente du paiement par virement bancaire', 'bankwire'), -(11, 2, 'En attente du paiement par PayPal', ''), -(12, 2, 'Paiement à distance accepté', ''), -(1, 3, 'En espera de pago por cheque', 'cheque'), -(2, 3, 'Pago aceptamos', 'payment'), -(3, 3, 'Preparación en curso', 'preparation'), -(4, 3, 'Enviado', 'shipped'), -(5, 3, 'Entregado', ''), -(6, 3, 'Cancelada', 'order_canceled'), -(7, 3, 'Reembolsado', 'refund'), -(8, 3, 'Error de pago', 'payment_error'), -(9, 3, 'Productos fuera de línea', 'outofstock'), -(10, 3, 'En espera de pago por transferencia bancaria', 'bankwire'), -(11, 3, 'En espera de pago por PayPal', ''), -(12, 3, 'Payment remotely accepted', ''), -(1, 4, 'Scheckzahlung wird erwartet', 'cheque'), -(2, 4, 'Zahlung eingegangen', 'payment'), -(3, 4, 'Bestellung eingegangen', 'preparation'), -(4, 4, 'Versendet', 'shipped'), -(5, 4, 'Erfolgreich abgeschlossen', ''), -(6, 4, 'Storniert', 'order_canceled'), -(7, 4, 'Erstattet', 'refund'), -(8, 4, 'Fehler bei der Bezahlung', 'payment_error'), -(9, 4, 'Artikel erwartet', 'outofstock'), -(10, 4, 'Warten auf Zahlungseingang', 'bankwire'), -(11, 4, 'Warten auf Zahlungseingang von PayPal', ''), -(12, 4, 'Payment Anmeldung erfolgreich', ''), -(1, 5, 'In attesa di pagamento con assegno', 'cheque'), -(2, 5, 'Pagamento accettato', 'payment'), -(3, 5, 'Preparazione in corso', 'preparation'), -(4, 5, 'Consegna in corso', 'shipped'), -(5, 5, 'Consegnato', ''), -(6, 5, 'Annullato', 'order_canceled'), -(7, 5, 'Rimborsato', 'refund'), -(8, 5, 'Errore di pagamento', 'payment_error'), -(9, 5, 'In attesa di rifornimento', 'outofstock'), -(10, 5, 'In attesa di pagamento con bonifico bancario', 'bankwire'), -(11, 5, 'In attesa di pagamento con PayPal', ''), -(12, 5, 'Payment remotely accepted', ''); - -INSERT INTO `PREFIX_zone` (`id_zone`, `name`, `active`) VALUES -(1, 'Europe', 1),(2, 'North America', 1),(3, 'Asia', 1),(4, 'Africa', 1), -(5, 'Oceania', 1),(6, 'South America', 1),(7, 'Europe (out E.U)', 1),(8, 'Centrale America/Antilla', 1); - -INSERT INTO `PREFIX_zone_group_shop` (`id_zone`, `id_group_shop`) (SELECT `id_zone`, 1 FROM `PREFIX_zone`); - -INSERT INTO `PREFIX_country` (`id_country`, `id_zone`, `iso_code`, `call_prefix`, `active`, `contains_states`, `need_identification_number`, `need_zip_code`, `zip_code_format`, `display_tax_label`) VALUES -(1, 1, 'DE', 49, 1, 0, 0, 1, 'NNNNN', 1),(2, 1, 'AT', 43, 1, 0, 0, 1, 'NNNN', 1),(3, 1, 'BE', 32, 1, 0, 0, 1, 'NNNN', 1),(4, 2, 'CA', 1, 1, 1, 0, 1, 'LNL NLN', 0),(5, 3, 'CN', 86, 1, 0, 0, 1, 'NNNNNN', 1), -(6, 1, 'ES', 34, 1, 0, 1, 1, 'NNNNN', 1),(7, 1, 'FI', 358, 1, 0, 0, 1, 'NNNNN', 1),(8, 1, 'FR', 33, 1, 0, 0, 1, 'NNNNN', 1),(9, 1, 'GR', 30, 1, 0, 0, 1, 'NNNNN', 1),(10, 1, 'IT', 39, 1, 1, 0, 1, 'NNNNN', 1), -(11, 3, 'JP', 81, 1, 1, 0, 1, 'NNN-NNNN', 1),(12, 1, 'LU', 352, 1, 0, 0, 1, 'NNNN', 1),(13, 1, 'NL', 31, 1, 0, 0, 1, 'NNNN LL', 1),(14, 1, 'PL', 48, 1, 0, 0, 1, 'NN-NNN', 1), -(15, 1, 'PT', 351, 1, 0, 0, 1, 'NNNN NNN', 1),(16, 1, 'CZ', 420, 1, 0, 0, 1, 'NNN NN', 1),(17, 1, 'GB', 44, 1, 0, 0, 1, '', 1),(18, 1, 'SE', 46, 1, 0, 0, 1, 'NNN NN', 1), -(19, 7, 'CH', 41, 1, 0, 0, 1, 'NNNN', 1),(20, 1, 'DK', 45, 1, 0, 0, 1, 'NNNN', 1),(21, 2, 'US', 1, 1, 1, 0, 1, 'NNNNN', 0),(22, 3, 'HK', 852, 1, 0, 0, 0, '', 1),(23, 1, 'NO', 47, 1, 0, 0, 1, 'NNNN', 1), -(24, 5, 'AU', 61, 1, 0, 0, 1, 'NNNN', 1),(25, 3, 'SG', 65, 1, 0, 0, 1, 'NNNNNN', 1),(26, 1, 'IE', 353, 1, 0, 0, 1, '', 1),(27, 5, 'NZ', 64, 1, 0, 0, 1, 'NNNN', 1),(28, 3, 'KR', 82, 1, 0, 0, 1, 'NNN-NNN', 1), -(29, 3, 'IL', 972, 1, 0, 0, 1, 'NNNNN', 1),(30, 4, 'ZA', 27, 1, 0, 0, 1, 'NNNN', 1),(31, 4, 'NG', 234, 1, 0, 0, 1, '', 1),(32, 4, 'CI', 225, 1, 0, 0, 1, '', 1),(33, 4, 'TG', 228, 1, 0, 0, 1, '', 1), -(34, 6, 'BO', 591, 1, 0, 0, 1, '', 1),(35, 4, 'MU', 230, 1, 0, 0, 1, '', 1),(36, 1, 'RO', 40, 1, 0, 0, 1, 'NNNNNN', 1),(37, 1, 'SK', 421, 1, 0, 0, 1, 'NNN NN', 1),(38, 4, 'DZ', 213, 1, 0, 0, 1, 'NNNNN', 1), -(39, 2, 'AS', 0, 1, 0, 0, 1, '', 1),(40, 7, 'AD', 376, 1, 0, 0, 1, 'CNNN', 1),(41, 4, 'AO', 244, 1, 0, 0, 0, '', 1),(42, 8, 'AI', 0, 1, 0, 0, 1, '', 1),(43, 2, 'AG', 0, 1, 0, 0, 1, '', 1), -(44, 6, 'AR', 54, 1, 1, 0, 1, 'LNNNN', 1),(45, 3, 'AM', 374, 1, 0, 0, 1, 'NNNN', 1),(46, 8, 'AW', 297, 1, 0, 0, 1, '', 1),(47, 3, 'AZ', 994, 1, 0, 0, 1, 'CNNNN', 1),(48, 2, 'BS', 0, 1, 0, 0, 1, '', 1), -(49, 3, 'BH', 973, 1, 0, 0, 1, '', 1),(50, 3, 'BD', 880, 1, 0, 0, 1, 'NNNN', 1),(51, 2, 'BB', 0, 1, 0, 0, 1, 'CNNNNN', 1),(52, 7, 'BY', 0, 1, 0, 0, 1, 'NNNNNN', 1),(53, 8, 'BZ', 501, 1, 0, 0, 0, '', 1), -(54, 4, 'BJ', 229, 1, 0, 0, 0, '', 1),(55, 2, 'BM', 0, 1, 0, 0, 1, '', 1),(56, 3, 'BT', 975, 1, 0, 0, 1, '', 1),(57, 4, 'BW', 267, 1, 0, 0, 1, '', 1),(58, 6, 'BR', 55, 1, 0, 0, 1, 'NNNNN-NNN', 1), -(59, 3, 'BN', 673, 1, 0, 0, 1, 'LLNNNN', 1),(60, 4, 'BF', 226, 1, 0, 0, 1, '', 1),(61, 3, 'MM', 95, 1, 0, 0, 1, '', 1),(62, 4, 'BI', 257, 1, 0, 0, 1, '', 1),(63, 3, 'KH', 855, 1, 0, 0, 1, 'NNNNN', 1), -(64, 4, 'CM', 237, 1, 0, 0, 1, '', 1),(65, 4, 'CV', 238, 1, 0, 0, 1, 'NNNN', 1),(66, 4, 'CF', 236, 1, 0, 0, 1, '', 1),(67, 4, 'TD', 235, 1, 0, 0, 1, '', 1),(68, 6, 'CL', 56, 1, 0, 0, 1, 'NNN-NNNN', 1), -(69, 6, 'CO', 57, 1, 0, 0, 1, 'NNNNNN', 1),(70, 4, 'KM', 269, 1, 0, 0, 1, '', 1),(71, 4, 'CD', 242, 1, 0, 0, 1, '', 1),(72, 4, 'CG', 243, 1, 0, 0, 1, '', 1),(73, 8, 'CR', 506, 1, 0, 0, 1, 'NNNNN', 1), -(74, 7, 'HR', 385, 1, 0, 0, 1, 'NNNNN', 1),(75, 8, 'CU', 53, 1, 0, 0, 1, '', 1),(76, 1, 'CY', 357, 1, 0, 0, 1, 'NNNN', 1),(77, 4, 'DJ', 253, 1, 0, 0, 1, '', 1),(78, 8, 'DM', 0, 1, 0, 0, 1, '', 1), -(79, 8, 'DO', 0, 1, 0, 0, 1, '', 1),(80, 3, 'TL', 670, 1, 0, 0, 1, '', 1),(81, 6, 'EC', 593, 1, 0, 0, 1, 'CNNNNNN', 1),(82, 4, 'EG', 20, 1, 0, 0, 0, '', 1),(83, 8, 'SV', 503, 1, 0, 0, 1, '', 1), -(84, 4, 'GQ', 240, 1, 0, 0, 1, '', 1),(85, 4, 'ER', 291, 1, 0, 0, 1, '', 1),(86, 1, 'EE', 372, 1, 0, 0, 1, 'NNNNN', 1),(87, 4, 'ET', 251, 1, 0, 0, 1, '', 1),(88, 8, 'FK', 0, 1, 0, 0, 1, 'LLLL NLL', 1), -(89, 7, 'FO', 298, 1, 0, 0, 1, '', 1),(90, 5, 'FJ', 679, 1, 0, 0, 1, '', 1),(91, 4, 'GA', 241, 1, 0, 0, 1, '', 1),(92, 4, 'GM', 220, 1, 0, 0, 1, '', 1),(93, 3, 'GE', 995, 1, 0, 0, 1, 'NNNN', 1), -(94, 4, 'GH', 233, 1, 0, 0, 1, '', 1),(95, 8, 'GD', 0, 1, 0, 0, 1, '', 1),(96, 7, 'GL', 299, 1, 0, 0, 1, '', 1),(97, 7, 'GI', 350, 1, 0, 0, 1, '', 1),(98, 8, 'GP', 590, 1, 0, 0, 1, '', 1), -(99, 8, 'GU', 0, 1, 0, 0, 1, '', 1),(100, 8, 'GT', 502, 1, 0, 0, 1, '', 1),(101, 7, 'GG', 0, 1, 0, 0, 1, 'LLN NLL', 1),(102, 4, 'GN', 224, 1, 0, 0, 1, '', 1),(103, 4, 'GW', 245, 1, 0, 0, 1, '', 1), -(104, 6, 'GY', 592, 1, 0, 0, 1, '', 1),(105, 8, 'HT', 509, 1, 0, 0, 1, '', 1),(106, 5, 'HM', 0, 1, 0, 0, 1, '', 1),(107, 7, 'VA', 379, 1, 0, 0, 1, 'NNNNN', 1),(108, 8, 'HN', 504, 1, 0, 0, 1, '', 1), -(109, 7, 'IS', 354, 1, 0, 0, 1, 'NNN', 1),(110, 3, 'IN', 91, 1, 0, 0, 1, 'NNN NNN', 1),(111, 3, 'ID', 62, 1, 1, 0, 1, 'NNNNN', 1),(112, 3, 'IR', 98, 1, 0, 0, 1, 'NNNNN-NNNNN', 1), -(113, 3, 'IQ', 964, 1, 0, 0, 1, 'NNNNN', 1),(114, 7, 'IM', 0, 1, 0, 0, 1, 'CN NLL', 1),(115, 8, 'JM', 0, 1, 0, 0, 1, '', 1),(116, 7, 'JE', 0, 1, 0, 0, 1, 'CN NLL', 1),(117, 3, 'JO', 962, 1, 0, 0, 1, '', 1), -(118, 3, 'KZ', 7, 1, 0, 0, 1, 'NNNNNN', 1),(119, 4, 'KE', 254, 1, 0, 0, 1, '', 1),(120, 5, 'KI', 686, 1, 0, 0, 1, '', 1),(121, 3, 'KP', 850, 1, 0, 0, 1, '', 1),(122, 3, 'KW', 965, 1, 0, 0, 1, '', 1), -(123, 3, 'KG', 996, 1, 0, 0, 1, '', 1),(124, 3, 'LA', 856, 1, 0, 0, 1, '', 1),(125, 1, 'LV', 371, 1, 0, 0, 1, 'C-NNNN', 1),(126, 3, 'LB', 961, 1, 0, 0, 1, '', 1),(127, 4, 'LS', 266, 1, 0, 0, 1, '', 1), -(128, 4, 'LR', 231, 1, 0, 0, 1, '', 1),(129, 4, 'LY', 218, 1, 0, 0, 1, '', 1),(130, 1, 'LI', 423, 1, 0, 0, 1, 'NNNN', 1),(131, 1, 'LT', 370, 1, 0, 0, 1, 'NNNNN', 1),(132, 3, 'MO', 853, 1, 0, 0, 0, '', 1), -(133, 7, 'MK', 389, 1, 0, 0, 1, '', 1),(134, 4, 'MG', 261, 1, 0, 0, 1, '', 1),(135, 4, 'MW', 265, 1, 0, 0, 1, '', 1),(136, 3, 'MY', 60, 1, 0, 0, 1, 'NNNNN', 1),(137, 3, 'MV', 960, 1, 0, 0, 1, '', 1), -(138, 4, 'ML', 223, 1, 0, 0, 1, '', 1),(139, 1, 'MT', 356, 1, 0, 0, 1, 'LLL NNNN', 1),(140, 5, 'MH', 692, 1, 0, 0, 1, '', 1),(141, 8, 'MQ', 596, 1, 0, 0, 1, '', 1),(142, 4, 'MR', 222, 1, 0, 0, 1, '', 1), -(143, 1, 'HU', 36, 1, 0, 0, 1, 'NNNN', 1),(144, 4, 'YT', 262, 1, 0, 0, 1, '', 1),(145, 2, 'MX', 52, 1, 1, 1, 1, 'NNNNN', 1),(146, 5, 'FM', 691, 1, 0, 0, 1, '', 1),(147, 7, 'MD', 373, 1, 0, 0, 1, 'C-NNNN', 1), -(148, 7, 'MC', 377, 1, 0, 0, 1, '980NN', 1),(149, 3, 'MN', 976, 1, 0, 0, 1, '', 1),(150, 7, 'ME', 382, 1, 0, 0, 1, 'NNNNN', 1),(151, 8, 'MS', 0, 1, 0, 0, 1, '', 1),(152, 4, 'MA', 212, 1, 0, 0, 1, 'NNNNN', 1), -(153, 4, 'MZ', 258, 1, 0, 0, 1, '', 1),(154, 4, 'NA', 264, 1, 0, 0, 1, '', 1),(155, 5, 'NR', 674, 1, 0, 0, 1, '', 1),(156, 3, 'NP', 977, 1, 0, 0, 1, '', 1),(157, 8, 'AN', 599, 1, 0, 0, 1, '', 1), -(158, 5, 'NC', 687, 1, 0, 0, 1, '', 1),(159, 8, 'NI', 505, 1, 0, 0, 1, 'NNNNNN', 1),(160, 4, 'NE', 227, 1, 0, 0, 1, '', 1),(161, 5, 'NU', 683, 1, 0, 0, 1, '', 1),(162, 5, 'NF', 0, 1, 0, 0, 1, '', 1), -(163, 5, 'MP', 0, 1, 0, 0, 1, '', 1),(164, 3, 'OM', 968, 1, 0, 0, 1, '', 1),(165, 3, 'PK', 92, 1, 0, 0, 1, '', 1),(166, 5, 'PW', 680, 1, 0, 0, 1, '', 1),(167, 3, 'PS', 0, 1, 0, 0, 1, '', 1), -(168, 8, 'PA', 507, 1, 0, 0, 1, 'NNNNNN', 1),(169, 5, 'PG', 675, 1, 0, 0, 1, '', 1),(170, 6, 'PY', 595, 1, 0, 0, 1, '', 1),(171, 6, 'PE', 51, 1, 0, 0, 1, '', 1),(172, 3, 'PH', 63, 1, 0, 0, 1, 'NNNN', 1), -(173, 5, 'PN', 0, 1, 0, 0, 1, 'LLLL NLL', 1),(174, 8, 'PR', 0, 1, 0, 0, 1, 'NNNNN', 1),(175, 3, 'QA', 974, 1, 0, 0, 1, '', 1),(176, 4, 'RE', 262, 1, 0, 0, 1, '', 1),(177, 7, 'RU', 7, 1, 0, 0, 1, 'NNNNNN', 1), -(178, 4, 'RW', 250, 1, 0, 0, 1, '', 1),(179, 8, 'BL', 0, 1, 0, 0, 1, '', 1),(180, 8, 'KN', 0, 1, 0, 0, 1, '', 1),(181, 8, 'LC', 0, 1, 0, 0, 1, '', 1),(182, 8, 'MF', 0, 1, 0, 0, 1, '', 1), -(183, 8, 'PM', 508, 1, 0, 0, 1, '', 1),(184, 8, 'VC', 0, 1, 0, 0, 1, '', 1),(185, 5, 'WS', 685, 1, 0, 0, 1, '', 1),(186, 7, 'SM', 378, 1, 0, 0, 1, 'NNNNN', 1),(187, 4, 'ST', 239, 1, 0, 0, 1, '', 1), -(188, 3, 'SA', 966, 1, 0, 0, 1, '', 1),(189, 4, 'SN', 221, 1, 0, 0, 1, '', 1),(190, 7, 'RS', 381, 1, 0, 0, 1, 'NNNNN', 1),(191, 4, 'SC', 248, 1, 0, 0, 1, '', 1),(192, 4, 'SL', 232, 1, 0, 0, 1, '', 1), -(193, 1, 'SI', 386, 1, 0, 0, 1, 'C-NNNN', 1),(194, 5, 'SB', 677, 1, 0, 0, 1, '', 1),(195, 4, 'SO', 252, 1, 0, 0, 1, '', 1),(196, 8, 'GS', 0, 1, 0, 0, 1, 'LLLL NLL', 1),(197, 3, 'LK', 94, 1, 0, 0, 1, 'NNNNN', 1), -(198, 4, 'SD', 249, 1, 0, 0, 1, '', 1),(199, 8, 'SR', 597, 1, 0, 0, 1, '', 1),(200, 7, 'SJ', 0, 1, 0, 0, 1, '', 1),(201, 4, 'SZ', 268, 1, 0, 0, 1, '', 1),(202, 3, 'SY', 963, 1, 0, 0, 1, '', 1), -(203, 3, 'TW', 886, 1, 0, 0, 1, 'NNNNN', 1),(204, 3, 'TJ', 992, 1, 0, 0, 1, '', 1),(205, 4, 'TZ', 255, 1, 0, 0, 1, '', 1),(206, 3, 'TH', 66, 1, 0, 0, 1, 'NNNNN', 1),(207, 5, 'TK', 690, 1, 0, 0, 1, '', 1), -(208, 5, 'TO', 676, 1, 0, 0, 1, '', 1),(209, 6, 'TT', 0, 1, 0, 0, 1, '', 1),(210, 4, 'TN', 216, 1, 0, 0, 1, '', 1),(211, 7, 'TR', 90, 1, 0, 0, 1, 'NNNNN', 1),(212, 3, 'TM', 993, 1, 0, 0, 1, '', 1), -(213, 8, 'TC', 0, 1, 0, 0, 1, 'LLLL NLL', 1),(214, 5, 'TV', 688, 1, 0, 0, 1, '', 1),(215, 4, 'UG', 256, 1, 0, 0, 1, '', 1),(216, 1, 'UA', 380, 1, 0, 0, 1, 'NNNNN', 1),(217, 3, 'AE', 971, 1, 0, 0, 1, '', 1), -(218, 6, 'UY', 598, 1, 0, 0, 1, '', 1),(219, 3, 'UZ', 998, 1, 0, 0, 1, '', 1),(220, 5, 'VU', 678, 1, 0, 0, 1, '', 1),(221, 6, 'VE', 58, 1, 0, 0, 1, '', 1),(222, 3, 'VN', 84, 1, 0, 0, 1, 'NNNNNN', 1), -(223, 2, 'VG', 0, 1, 0, 0, 1, 'CNNNN', 1),(224, 2, 'VI', 0, 1, 0, 0, 1, '', 1),(225, 5, 'WF', 681, 1, 0, 0, 1, '', 1),(226, 4, 'EH', 0, 1, 0, 0, 1, '', 1),(227, 3, 'YE', 967, 1, 0, 0, 1, '', 1), -(228, 4, 'ZM', 260, 1, 0, 0, 1, '', 1),(229, 4, 'ZW', 263, 1, 0, 0, 1, '', 1),(230, 7, 'AL', 355, 1, 0, 0, 1, 'NNNN', 1),(231, 3, 'AF', 93, 1, 0, 0, 0, '', 1),(232, 5, 'AQ', 0, 1, 0, 0, 1, '', 1), -(233, 1, 'BA', 387, 1, 0, 0, 1, '', 1),(234, 5, 'BV', 0, 1, 0, 0, 1, '', 1),(235, 5, 'IO', 0, 1, 0, 0, 1, 'LLLL NLL', 1),(236, 1, 'BG', 359, 1, 0, 0, 1, 'NNNN', 1),(237, 8, 'KY', 0, 1, 0, 0, 1, '', 1), -(238, 3, 'CX', 0, 1, 0, 0, 1, '', 1),(239, 3, 'CC', 0, 1, 0, 0, 1, '', 1),(240, 5, 'CK', 682, 1, 0, 0, 1, '', 1),(241, 6, 'GF', 594, 1, 0, 0, 1, '', 1),(242, 5, 'PF', 689, 1, 0, 0, 1, '', 1), -(243, 5, 'TF', 0, 1, 0, 0, 1, '', 1),(244, 7, 'AX', 0, 1, 0, 0, 1, 'NNNNN', 1); - -INSERT INTO `PREFIX_country_lang` (`id_country`, `id_lang`, `name`) VALUES -(1, 1, 'Germany'),(1, 2, 'Allemagne'),(1, 3, 'Alemania'),(2, 1, 'Austria'),(2, 2, 'Autriche'),(2, 3, 'Austria'), -(3, 1, 'Belgium'),(3, 2, 'Belgique'),(3, 3, 'Bélgica'),(4, 1, 'Canada'),(4, 2, 'Canada'),(4, 3, 'Canadá'),(5, 1, 'China'), -(5, 2, 'Chine'),(5, 3, 'Porcelana'),(6, 1, 'Spain'),(6, 2, 'Espagne'),(6, 3, 'España'),(7, 1, 'Finland'),(7, 2, 'Finlande'), -(7, 3, 'Finlandia'),(8, 1, 'France'),(8, 2, 'France'),(8, 3, 'Francia'),(9, 1, 'Greece'),(9, 2, 'Grèce'),(9, 3, 'Grecia'), -(10, 1, 'Italy'),(10, 2, 'Italie'),(10, 3, 'Italia'),(11, 1, 'Japan'),(11, 2, 'Japon'),(11, 3, 'Japón'), -(12, 1, 'Luxemburg'),(12, 2, 'Luxembourg'),(12, 3, 'Luxemburgo'),(13, 1, 'Netherlands'),(13, 2, 'Pays-bas'),(13, 3, 'Países Bajos'), -(14, 1, 'Poland'),(14, 2, 'Pologne'),(14, 3, 'Polonia'),(15, 1, 'Portugal'),(15, 2, 'Portugal'),(15, 3, 'Portugal'), -(16, 1, 'Czech Republic'),(16, 2, 'République Tchèque'),(16, 3, 'República Checa'),(17, 1, 'United Kingdom'),(17, 2, 'Royaume-Uni'),(17, 3, 'Reino Unido'), -(18, 1, 'Sweden'),(18, 2, 'Suède'),(18, 3, 'Suecia'),(19, 1, 'Switzerland'),(19, 2, 'Suisse'),(19, 3, 'Suiza'),(20, 1, 'Denmark'), -(20, 2, 'Danemark'),(20, 3, 'Dinamarca'),(21, 1, 'United States'),(21, 2, 'États-Unis'),(21, 3, 'EE.UU.'),(22, 1, 'HongKong'),(22, 2, 'Hong-Kong'), -(22, 3, 'Hong Kong'),(23, 1, 'Norway'),(23, 2, 'Norvège'),(23, 3, 'Noruega'),(24, 1, 'Australia'),(24, 2, 'Australie'),(24, 3, 'Australia'), -(25, 1, 'Singapore'),(25, 2, 'Singapour'),(25, 3, 'Singapur'),(26, 1, 'Ireland'),(26, 2, 'Eire'),(26, 3, 'Irlanda'),(27, 1, 'New Zealand'), -(27, 2, 'Nouvelle-Zélande'),(27, 3, 'Nueva Zelanda'),(28, 1, 'South Korea'),(28, 2, 'Corée du Sud'),(28, 3, 'Corea del Sur'),(29, 1, 'Israel'), -(29, 2, 'Israël'),(29, 3, 'Israel'),(30, 1, 'South Africa'),(30, 2, 'Afrique du Sud'),(30, 3, 'Sudáfrica'),(31, 1, 'Nigeria'),(31, 2, 'Nigeria'), -(31, 3, 'Nigeria'),(32, 1, 'Ivory Coast'),(32, 2, 'Côte d''Ivoire'),(32, 3, 'Costa de Marfil'),(33, 1, 'Togo'),(33, 2, 'Togo'),(33, 3, 'Togo'), -(34, 1, 'Bolivia'),(34, 2, 'Bolivie'),(34, 3, 'Bolivia'),(35, 1, 'Mauritius'),(35, 2, 'Ile Maurice'),(35, 3, 'Mauricio'),(36, 1, 'Romania'), -(36, 2, 'Roumanie'),(36, 3, 'Rumania'),(37, 1, 'Slovakia'),(37, 2, 'Slovaquie'),(37, 3, 'Eslovaquia'),(38, 1, 'Algeria'),(38, 2, 'Algérie'), -(38, 3, 'Argelia'),(39, 1, 'American Samoa'),(39, 2, 'Samoa Américaines'),(39, 3, 'Samoa Americana'),(40, 1, 'Andorra'),(40, 2, 'Andorre'),(40, 3, 'Andorra'), -(41, 1, 'Angola'),(41, 2, 'Angola'),(41, 3, 'Angola'),(42, 1, 'Anguilla'),(42, 2, 'Anguilla'),(42, 3, 'Anguila'),(43, 1, 'Antigua and Barbuda'), -(43, 2, 'Antigua et Barbuda'),(43, 3, 'Antigua y Barbuda'),(44, 1, 'Argentina'),(44, 2, 'Argentine'),(44, 3, 'Argentina'),(45, 1, 'Armenia'), -(45, 2, 'Arménie'),(45, 3, 'Armenia'),(46, 1, 'Aruba'),(46, 2, 'Aruba'),(46, 3, 'Aruba'),(47, 1, 'Azerbaijan'),(47, 2, 'Azerbaïdjan'),(47, 3, 'Azerbaiyán'), -(48, 1, 'Bahamas'),(48, 2, 'Bahamas'),(48, 3, 'Bahamas'),(49, 1, 'Bahrain'),(49, 2, 'Bahreïn'),(49, 3, 'Bahrein'),(50, 1, 'Bangladesh'), -(50, 2, 'Bangladesh'),(50, 3, 'Bangladesh'),(51, 1, 'Barbados'),(51, 2, 'Barbade'),(51, 3, 'Barbados'),(52, 1, 'Belarus'),(52, 2, 'Bélarus'), -(52, 3, 'Belarús'),(53, 1, 'Belize'),(53, 2, 'Belize'),(53, 3, 'Belice'),(54, 1, 'Benin'),(54, 2, 'Bénin'),(54, 3, 'Benin'),(55, 1, 'Bermuda'), -(55, 2, 'Bermudes'),(55, 3, 'Bermudas'),(56, 1, 'Bhutan'),(56, 2, 'Bhoutan'),(56, 3, 'Bhután'),(57, 1, 'Botswana'),(57, 2, 'Botswana'),(57, 3, 'Botswana'), -(58, 1, 'Brazil'),(58, 2, 'Brésil'),(58, 3, 'Brasil'),(59, 1, 'Brunei'),(59, 2, 'Brunéi Darussalam'),(59, 3, 'Brunei'),(60, 1, 'Burkina Faso'), -(60, 2, 'Burkina Faso'),(60, 3, 'Burkina Faso'),(61, 1, 'Burma (Myanmar)'),(61, 2, 'Burma (Myanmar)'),(61, 3, 'Birmania (Myanmar)'),(62, 1, 'Burundi'),(62, 2, 'Burundi'), -(62, 3, 'Burundi'),(63, 1, 'Cambodia'),(63, 2, 'Cambodge'),(63, 3, 'Camboya'),(64, 1, 'Cameroon'),(64, 2, 'Cameroun'),(64, 3, 'Camerún'),(65, 1, 'Cape Verde'),(65, 2, 'Cap-Vert'), -(65, 3, 'Cabo Verde'),(66, 1, 'Central African Republic'),(66, 2, 'Centrafricaine, République'),(66, 3, 'República Centroafricana'),(67, 1, 'Chad'),(67, 2, 'Tchad'),(67, 3, 'Chad'), -(68, 1, 'Chile'),(68, 2, 'Chili'),(68, 3, 'Chile'),(69, 1, 'Colombia'),(69, 2, 'Colombie'),(69, 3, 'Colombia'),(70, 1, 'Comoros'),(70, 2, 'Comores'), -(70, 3, 'Comoras'),(71, 1, 'Congo, Dem. Republic'),(71, 2, 'Congo, Rép. Dém.'),(71, 3, 'Congo, Rep. Dem.'),(72, 1, 'Congo, Republic'),(72, 2, 'Congo, Rép.'),(72, 3, 'Congo, República'), -(73, 1, 'Costa Rica'),(73, 2, 'Costa Rica'),(73, 3, 'Costa Rica'),(74, 1, 'Croatia'),(74, 2, 'Croatie'),(74, 3, 'Croacia'),(75, 1, 'Cuba'), -(75, 2, 'Cuba'),(75, 3, 'Cuba'),(76, 1, 'Cyprus'),(76, 2, 'Chypre'),(76, 3, 'Chipre'),(77, 1, 'Djibouti'),(77, 2, 'Djibouti'),(77, 3, 'Djibouti'),(78, 1, 'Dominica'), -(78, 2, 'Dominica'),(78, 3, 'Dominica'),(79, 1, 'Dominican Republic'),(79, 2, 'République Dominicaine'),(79, 3, 'República Dominicana'),(80, 1, 'East Timor'),(80, 2, 'Timor oriental'), -(80, 3, 'Timor Oriental'),(81, 1, 'Ecuador'),(81, 2, 'Équateur'),(81, 3, 'Ecuador'),(82, 1, 'Egypt'),(82, 2, 'Égypte'),(82, 3, 'Egipto'),(83, 1, 'El Salvador'), -(83, 2, 'El Salvador'),(83, 3, 'El Salvador'),(84, 1, 'Equatorial Guinea'),(84, 2, 'Guinée Équatoriale'),(84, 3, 'Guinea Ecuatorial'),(85, 1, 'Eritrea'), -(85, 2, 'Érythrée'),(85, 3, 'Eritrea'),(86, 1, 'Estonia'),(86, 2, 'Estonie'),(86, 3, 'Estonia'),(87, 1, 'Ethiopia'),(87, 2, 'Éthiopie'),(87, 3, 'Etiopía'), -(88, 1, 'Falkland Islands'),(88, 2, 'Falkland, Îles'),(88, 3, 'Islas Malvinas'),(89, 1, 'Faroe Islands'),(89, 2, 'Féroé, Îles'),(89, 3, 'Islas Feroe'),(90, 1, 'Fiji'),(90, 2, 'Fidji'), -(90, 3, 'Fiji'),(91, 1, 'Gabon'),(91, 2, 'Gabon'),(91, 3, 'Gabón'),(92, 1, 'Gambia'),(92, 2, 'Gambie'),(92, 3, 'Gambia'),(93, 1, 'Georgia'), -(93, 2, 'Géorgie'),(93, 3, 'Georgia'),(94, 1, 'Ghana'),(94, 2, 'Ghana'),(94, 3, 'Ghana'),(95, 1, 'Grenada'),(95, 2, 'Grenade'),(95, 3, 'Granada'), -(96, 1, 'Greenland'),(96, 2, 'Groenland'),(96, 3, 'Groenlandia'),(97, 1, 'Gibraltar'),(97, 2, 'Gibraltar'),(97, 3, 'Gibraltar'),(98, 1, 'Guadeloupe'),(98, 2, 'Guadeloupe'), -(98, 3, 'Guadalupe'),(99, 1, 'Guam'),(99, 2, 'Guam'),(99, 3, 'Guam'),(100, 1, 'Guatemala'),(100, 2, 'Guatemala'),(100, 3, 'Guatemala'),(101, 1, 'Guernsey'), -(101, 2, 'Guernesey'),(101, 3, 'Guernsey'),(102, 1, 'Guinea'),(102, 2, 'Guinée'),(102, 3, 'Guinea'),(103, 1, 'Guinea-Bissau'),(103, 2, 'Guinée-Bissau'), -(103, 3, 'Guinea-Bissau'),(104, 1, 'Guyana'),(104, 2, 'Guyana'),(104, 3, 'Guyana'),(105, 1, 'Haiti'),(105, 2, 'Haîti'),(105, 3, 'Haití'),(106, 1, 'Heard Island and McDonald Islands'),(106, 2, 'Heard, Île et Mcdonald, Îles'), -(106, 3, 'Islas Heard y McDonald Islas'),(107, 1, 'Vatican City State'),(107, 2, 'Saint-Siege (État de la Cité du Vatican)'),(107, 3, 'Ciudad del Vaticano'),(108, 1, 'Honduras'),(108, 2, 'Honduras'),(108, 3, 'Honduras'),(109, 1, 'Iceland'), -(109, 2, 'Islande'),(109, 3, 'Islandia'),(110, 1, 'India'),(110, 2, 'Inde'),(110, 3, 'India'),(111, 1, 'Indonesia'),(111, 2, 'Indonésie'), -(111, 3, 'Indonesia'),(112, 1, 'Iran'),(112, 2, 'Iran'),(112, 3, 'Irán'),(113, 1, 'Iraq'),(113, 2, 'Iraq'),(113, 3, 'Iraq'),(114, 1, 'Man Island'), -(114, 2, 'Man, Île de'),(114, 3, 'Man, Isla'),(115, 1, 'Jamaica'),(115, 2, 'Jamaique'),(115, 3, 'Jamaica'),(116, 1, 'Jersey'),(116, 2, 'Jersey'), -(116, 3, 'Jersey'),(117, 1, 'Jordan'),(117, 2, 'Jordanie'),(117, 3, 'Jordania'),(118, 1, 'Kazakhstan'),(118, 2, 'Kazakhstan'),(118, 3, 'Kazajstán'),(119, 1, 'Kenya'), -(119, 2, 'Kenya'),(119, 3, 'Kenya'),(120, 1, 'Kiribati'),(120, 2, 'Kiribati'),(120, 3, 'Kiribati'),(121, 1, 'Korea, Dem. Republic of'),(121, 2, 'Corée, Rép. Populaire Dém. de'),(121, 3, 'KOREA, DEM. República de'), -(122, 1, 'Kuwait'),(122, 2, 'Koweït'),(122, 3, 'Kuwait'),(123, 1, 'Kyrgyzstan'),(123, 2, 'Kirghizistan'),(123, 3, 'Kirguistán'),(124, 1, 'Laos'),(124, 2, 'Laos'), -(124, 3, 'Laos'),(125, 1, 'Latvia'),(125, 2, 'Lettonie'),(125, 3, 'Letonia'),(126, 1, 'Lebanon'),(126, 2, 'Liban'),(126, 3, 'Líbano'),(127, 1, 'Lesotho'), -(127, 2, 'Lesotho'),(127, 3, 'Lesotho'),(128, 1, 'Liberia'),(128, 2, 'Libéria'),(128, 3, 'Liberia'),(129, 1, 'Libya'),(129, 2, 'Libyenne, Jamahiriya Arabe'),(129, 3, 'Libia'), -(130, 1, 'Liechtenstein'),(130, 2, 'Liechtenstein'),(130, 3, 'Liechtenstein'),(131, 1, 'Lithuania'),(131, 2, 'Lituanie'),(131, 3, 'Lituania'),(132, 1, 'Macau'), -(132, 2, 'Macao'),(132, 3, 'Macao'),(133, 1, 'Macedonia'),(133, 2, 'Macédoine'),(133, 3, 'Macedonia'),(134, 1, 'Madagascar'),(134, 2, 'Madagascar'), -(134, 3, 'Madagascar'),(135, 1, 'Malawi'),(135, 2, 'Malawi'),(135, 3, 'Malawi'),(136, 1, 'Malaysia'),(136, 2, 'Malaisie'),(136, 3, 'Malasia'), -(137, 1, 'Maldives'),(137, 2, 'Maldives'),(137, 3, 'Maldivas'),(138, 1, 'Mali'),(138, 2, 'Mali'),(138, 3, 'Malí'),(139, 1, 'Malta'),(139, 2, 'Malte'), -(139, 3, 'Malta'),(140, 1, 'Marshall Islands'),(140, 2, 'Marshall, Îles'),(140, 3, 'Marshall, Islas'),(141, 1, 'Martinique'),(141, 2, 'Martinique'), -(141, 3, 'Martinica'),(142, 1, 'Mauritania'),(142, 2, 'Mauritanie'),(142, 3, 'Mauritania'),(143, 1, 'Hungary'),(143, 2, 'Hongrie'),(143, 3, 'Hungría'), -(144, 1, 'Mayotte'),(144, 2, 'Mayotte'),(144, 3, 'Mayotte'),(145, 1, 'Mexico'),(145, 2, 'Mexique'),(145, 3, 'México'),(146, 1, 'Micronesia'),(146, 2, 'Micronésie'), -(146, 3, 'Micronesia'),(147, 1, 'Moldova'),(147, 2, 'Moldova'),(147, 3, 'Moldavia'),(148, 1, 'Monaco'),(148, 2, 'Monaco'),(148, 3, 'Mónaco'), -(149, 1, 'Mongolia'),(149, 2, 'Mongolie'),(149, 3, 'Mongolia'),(150, 1, 'Montenegro'),(150, 2, 'Monténégro'),(150, 3, 'Montenegro'),(151, 1, 'Montserrat'), -(151, 2, 'Montserrat'),(151, 3, 'Montserrat'),(152, 1, 'Morocco'),(152, 2, 'Maroc'),(152, 3, 'Marruecos'),(153, 1, 'Mozambique'),(153, 2, 'Mozambique'),(153, 3, 'Mozambique'), -(154, 1, 'Namibia'),(154, 2, 'Namibie'),(154, 3, 'Namibia'),(155, 1, 'Nauru'),(155, 2, 'Nauru'),(155, 3, 'Nauru'),(156, 1, 'Nepal'),(156, 2, 'Népal'), -(156, 3, 'Nepal'),(157, 1, 'Netherlands Antilles'),(157, 2, 'Antilles Néerlandaises'),(157, 3, 'Antillas Neerlandesas'),(158, 1, 'New Caledonia'),(158, 2, 'Nouvelle-Calédonie'),(158, 3, 'Nueva Caledonia'), -(159, 1, 'Nicaragua'),(159, 2, 'Nicaragua'),(159, 3, 'Nicaragua'),(160, 1, 'Niger'),(160, 2, 'Niger'),(160, 3, 'Níger'),(161, 1, 'Niue'), -(161, 2, 'Niué'),(161, 3, 'Niue'),(162, 1, 'Norfolk Island'),(162, 2, 'Norfolk, Île'),(162, 3, 'Norfolk Island'),(163, 1, 'Northern Mariana Islands'),(163, 2, 'Mariannes du Nord, Îles'), -(163, 3, 'Islas Marianas del Norte'),(164, 1, 'Oman'),(164, 2, 'Oman'),(164, 3, 'Omán'),(165, 1, 'Pakistan'),(165, 2, 'Pakistan'),(165, 3, 'Pakistán'), -(166, 1, 'Palau'),(166, 2, 'Palaos'),(166, 3, 'Palau'),(167, 1, 'Palestinian Territories'),(167, 2, 'Palestinien Occupé, Territoire'),(167, 3, 'Territorios Palestinos'),(168, 1, 'Panama'), -(168, 2, 'Panama'),(168, 3, 'Panamá'),(169, 1, 'Papua New Guinea'),(169, 2, 'Papouasie-Nouvelle-Guinée'),(169, 3, 'Papua Nueva Guinea'),(170, 1, 'Paraguay'),(170, 2, 'Paraguay'), -(170, 3, 'Paraguay'),(171, 1, 'Peru'),(171, 2, 'Pérou'),(171, 3, 'Perú'),(172, 1, 'Philippines'),(172, 2, 'Philippines'),(172, 3, 'Filipinas'),(173, 1, 'Pitcairn'), -(173, 2, 'Pitcairn'),(173, 3, 'Pitcairn'),(174, 1, 'Puerto Rico'),(174, 2, 'Porto Rico'),(174, 3, 'Puerto Rico'),(175, 1, 'Qatar'),(175, 2, 'Qatar'),(175, 3, 'Qatar'), -(176, 1, 'Reunion Island'),(176, 2, 'Réunion, Île de la'),(176, 3, 'Reunión, Isla de la'),(177, 1, 'Russian Federation'),(177, 2, 'Russie, Fédération de'),(177, 3, 'Rusia, Federación de'),(178, 1, 'Rwanda'), -(178, 2, 'Rwanda'),(178, 3, 'Rwanda'),(179, 1, 'Saint Barthelemy'),(179, 2, 'Saint-Barthélemy'),(179, 3, 'San Bartolomé'),(180, 1, 'Saint Kitts and Nevis'),(180, 2, 'Saint-Kitts-et-Nevis'), -(180, 3, 'Saint Kitts y Nevis'),(181, 1, 'Saint Lucia'),(181, 2, 'Sainte-Lucie'),(181, 3, 'Santa Lucía'),(182, 1, 'Saint Martin'),(182, 2, 'Saint-Martin'),(182, 3, 'Saint Martin'), -(183, 1, 'Saint Pierre and Miquelon'),(183, 2, 'Saint-Pierre-et-Miquelon'),(183, 3, 'San Pedro y Miquelón'),(184, 1, 'Saint Vincent and the Grenadines'),(184, 2, 'Saint-Vincent-et-Les Grenadines'),(184, 3, 'San Vicente y las Granadinas'),(185, 1, 'Samoa'), -(185, 2, 'Samoa'),(185, 3, 'Samoa'),(186, 1, 'San Marino'),(186, 2, 'Saint-Marin'),(186, 3, 'San Marino'),(187, 1, 'São Tomé and Príncipe'),(187, 2, 'Sao Tomé-et-Principe'),(187, 3, 'Santo Tomé y Príncipe'), -(188, 1, 'Saudi Arabia'),(188, 2, 'Arabie Saoudite'),(188, 3, 'Arabia Saudita'),(189, 1, 'Senegal'),(189, 2, 'Sénégal'),(189, 3, 'Senegal'),(190, 1, 'Serbia'), -(190, 2, 'Serbie'),(190, 3, 'Serbia'),(191, 1, 'Seychelles'),(191, 2, 'Seychelles'),(191, 3, 'Seychelles'),(192, 1, 'Sierra Leone'),(192, 2, 'Sierra Leone'), -(192, 3, 'Sierra Leona'),(193, 1, 'Slovenia'),(193, 2, 'Slovénie'),(193, 3, 'Eslovenia'),(194, 1, 'Solomon Islands'),(194, 2, 'Salomon, Îles'),(194, 3, 'Salomón, Islas'),(195, 1, 'Somalia'), -(195, 2, 'Somalie'),(195, 3, 'Somalia'),(196, 1, 'South Georgia and the South Sandwich Islands'),(196, 2, 'Géorgie du Sud et les Îles Sandwich du Sud'),(196, 3, 'Georgia del Sur e Islas Sandwich del Sur'),(197, 1, 'Sri Lanka'),(197, 2, 'Sri Lanka'), -(197, 3, 'Sri Lanka'),(198, 1, 'Sudan'),(198, 2, 'Soudan'),(198, 3, 'Sudán'),(199, 1, 'Suriname'),(199, 2, 'Suriname'),(199, 3, 'Suriname'),(200, 1, 'Svalbard and Jan Mayen'), -(200, 2, 'Svalbard et Île Jan Mayen'),(200, 3, 'Svalbard y Jan Mayen'),(201, 1, 'Swaziland'),(201, 2, 'Swaziland'),(201, 3, 'Swazilandia'),(202, 1, 'Syria'),(202, 2, 'Syrienne'), -(202, 3, 'Siria'),(203, 1, 'Taiwan'),(203, 2, 'Taïwan'),(203, 3, 'Taiwán'),(204, 1, 'Tajikistan'),(204, 2, 'Tadjikistan'),(204, 3, 'Tayikistán'), -(205, 1, 'Tanzania'),(205, 2, 'Tanzanie'),(205, 3, 'Tanzania'),(206, 1, 'Thailand'),(206, 2, 'Thaïlande'),(206, 3, 'Tailandia'),(207, 1, 'Tokelau'), -(207, 2, 'Tokelau'),(207, 3, 'Tokelau'),(208, 1, 'Tonga'),(208, 2, 'Tonga'),(208, 3, 'Tonga'),(209, 1, 'Trinidad and Tobago'),(209, 2, 'Trinité-et-Tobago'),(209, 3, 'Trinidad y Tobago'), -(210, 1, 'Tunisia'),(210, 2, 'Tunisie'),(210, 3, 'Túnez'),(211, 1, 'Turkey'),(211, 2, 'Turquie'),(211, 3, 'Turquía'),(212, 1, 'Turkmenistan'),(212, 2, 'Turkménistan'), -(212, 3, 'Turkmenistán'),(213, 1, 'Turks and Caicos Islands'),(213, 2, 'Turks et Caiques, Îles'),(213, 3, 'Islas Turcas y Caicos'),(214, 1, 'Tuvalu'),(214, 2, 'Tuvalu'),(214, 3, 'Tuvalu'), -(215, 1, 'Uganda'),(215, 2, 'Ouganda'),(215, 3, 'Uganda'),(216, 1, 'Ukraine'),(216, 2, 'Ukraine'),(216, 3, 'Ucrania'),(217, 1, 'United Arab Emirates'), -(217, 2, 'Émirats Arabes Unis'),(217, 3, 'Emiratos ÿrabes Unidos'),(218, 1, 'Uruguay'),(218, 2, 'Uruguay'),(218, 3, 'Uruguay'),(219, 1, 'Uzbekistan'),(219, 2, 'Ouzbékistan'), -(219, 3, 'Uzbekistán'),(220, 1, 'Vanuatu'),(220, 2, 'Vanuatu'),(220, 3, 'Vanuatu'),(221, 1, 'Venezuela'),(221, 2, 'Venezuela'),(221, 3, 'Venezuela'), -(222, 1, 'Vietnam'),(222, 2, 'Vietnam'),(222, 3, 'Vietnam'),(223, 1, 'Virgin Islands (British)'),(223, 2, 'Îles Vierges Britanniques'),(223, 3, 'Islas Vírgenes (Británicas)'),(224, 1, 'Virgin Islands (U.S.)'), -(224, 2, 'Îles Vierges des États-Unis'),(224, 3, 'Islas Vírgenes (EE.UU.)'),(225, 1, 'Wallis and Futuna'),(225, 2, 'Wallis et Futuna'),(225, 3, 'Wallis y Futuna'),(226, 1, 'Western Sahara'),(226, 2, 'Sahara Occidental'), -(226, 3, 'Sáhara Occidental'),(227, 1, 'Yemen'),(227, 2, 'Yémen'),(227, 3, 'Yemen'),(228, 1, 'Zambia'),(228, 2, 'Zambie'),(228, 3, 'Zambia'),(229, 1, 'Zimbabwe'), -(229, 2, 'Zimbabwe'),(229, 3, 'Zimbabwe'),(230, 1, 'Albania'),(230, 2, 'Albanie'),(230, 3, 'Albania'),(231, 1, 'Afghanistan'),(231, 2, 'Afghanistan'),(231, 3, 'Afganistán'), -(232, 1, 'Antarctica'),(232, 2, 'Antarctique'),(232, 3, 'Antártida'),(233, 1, 'Bosnia and Herzegovina'),(233, 2, 'Bosnie-Herzégovine'),(233, 3, 'Bosnia y Herzegovina'),(234, 1, 'Bouvet Island'), -(234, 2, 'Bouvet, Île'),(234, 3, 'Isla Bouvet'),(235, 1, 'British Indian Ocean Territory'),(235, 2, 'Océan Indien, Territoire Britannique de L'''),(235, 3, 'British Indian Ocean Territory'),(236, 1, 'Bulgaria'),(236, 2, 'Bulgarie'), -(236, 3, 'Bulgaria'),(237, 1, 'Cayman Islands'),(237, 2, 'Caïmans, Îles'),(237, 3, 'Caimán, Islas'),(238, 1, 'Christmas Island'),(238, 2, 'Christmas, Île'),(238, 3, 'Navidad, Isla de'), -(239, 1, 'Cocos (Keeling) Islands'),(239, 2, 'Cocos (Keeling), Îles'),(239, 3, 'Cocos (Keeling), Islas'),(240, 1, 'Cook Islands'),(240, 2, 'Cook, Îles'),(240, 3, 'Cook, Islas'), -(241, 1, 'French Guiana'),(241, 2, 'Guyane Française'),(241, 3, 'Francés Guayana'),(242, 1, 'French Polynesia'),(242, 2, 'Polynésie Française'),(242, 3, 'Polinesia francés'),(243, 1, 'French Southern Territories'), -(243, 2, 'Terres Australes Françaises'),(243, 3, 'Territorios del sur francés'),(244, 1, 'Åland Islands'),(244, 2, 'Åland, Îles'),(244, 3, 'Islas Åland'); - -INSERT IGNORE INTO `PREFIX_country_lang` (`id_country`, `id_lang`, `name`) - (SELECT `id_country`, id_lang, (SELECT tl.`name` - FROM `PREFIX_country_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_country`=`PREFIX_country`.`id_country`) - FROM `PREFIX_lang` CROSS JOIN `PREFIX_country`); - -INSERT INTO `PREFIX_country_shop` (id_shop, id_country) (SELECT 1, id_country FROM PREFIX_country); - -INSERT INTO `PREFIX_state` (`id_state`, `id_country`, `id_zone`, `name`, `iso_code`, `active`) VALUES -(1, 21, 2, 'Alabama', 'AL', 1),(2, 21, 2, 'Alaska', 'AK', 1),(3, 21, 2, 'Arizona', 'AZ', 1),(4, 21, 2, 'Arkansas', 'AR', 1), -(5, 21, 2, 'California', 'CA', 1),(6, 21, 2, 'Colorado', 'CO', 1),(7, 21, 2, 'Connecticut', 'CT', 1),(8, 21, 2, 'Delaware', 'DE', 1), -(9, 21, 2, 'Florida', 'FL', 1),(10, 21, 2, 'Georgia', 'GA', 1),(11, 21, 2, 'Hawaii', 'HI', 1),(12, 21, 2, 'Idaho', 'ID', 1), -(13, 21, 2, 'Illinois', 'IL', 1),(14, 21, 2, 'Indiana', 'IN', 1),(15, 21, 2, 'Iowa', 'IA', 1),(16, 21, 2, 'Kansas', 'KS', 1), -(17, 21, 2, 'Kentucky', 'KY', 1),(18, 21, 2, 'Louisiana', 'LA', 1),(19, 21, 2, 'Maine', 'ME', 1),(20, 21, 2, 'Maryland', 'MD', 1), -(21, 21, 2, 'Massachusetts', 'MA', 1),(22, 21, 2, 'Michigan', 'MI', 1),(23, 21, 2, 'Minnesota', 'MN', 1), -(24, 21, 2, 'Mississippi', 'MS', 1),(25, 21, 2, 'Missouri', 'MO', 1),(26, 21, 2, 'Montana', 'MT', 1),(27, 21, 2, 'Nebraska', 'NE', 1), -(28, 21, 2, 'Nevada', 'NV', 1),(29, 21, 2, 'New Hampshire', 'NH', 1),(30, 21, 2, 'New Jersey', 'NJ', 1),(31, 21, 2, 'New Mexico', 'NM', 1), -(32, 21, 2, 'New York', 'NY', 1),(33, 21, 2, 'North Carolina', 'NC', 1),(34, 21, 2, 'North Dakota', 'ND', 1),(35, 21, 2, 'Ohio', 'OH', 1), -(36, 21, 2, 'Oklahoma', 'OK', 1),(37, 21, 2, 'Oregon', 'OR', 1),(38, 21, 2, 'Pennsylvania', 'PA', 1),(39, 21, 2, 'Rhode Island', 'RI', 1), -(40, 21, 2, 'South Carolina', 'SC', 1),(41, 21, 2, 'South Dakota', 'SD', 1),(42, 21, 2, 'Tennessee', 'TN', 1),(43, 21, 2, 'Texas', 'TX', 1), -(44, 21, 2, 'Utah', 'UT', 1),(45, 21, 2, 'Vermont', 'VT', 1),(46, 21, 2, 'Virginia', 'VA', 1),(47, 21, 2, 'Washington', 'WA', 1), -(48, 21, 2, 'West Virginia', 'WV', 1),(49, 21, 2, 'Wisconsin', 'WI', 1),(50, 21, 2, 'Wyoming', 'WY', 1),(51, 21, 2, 'Puerto Rico', 'PR', 1), -(52, 21, 2, 'US Virgin Islands', 'VI', 1),(53, 21, 2, 'District of Columbia', 'DC', 1); - -INSERT INTO `PREFIX_state` (`id_country`, `id_zone`, `name`, `iso_code`, `tax_behavior`, `active`) VALUES -(145, 2, 'Aguascalientes', 'AGS', 0, 1), -(145, 2, 'Baja California', 'BCN', 0, 1), -(145, 2, 'Baja California Sur', 'BCS', 0, 1), -(145, 2, 'Campeche', 'CAM', 0, 1), -(145, 2, 'Chiapas', 'CHP', 0, 1), -(145, 2, 'Chihuahua', 'CHH', 0, 1), -(145, 2, 'Coahuila', 'COA', 0, 1), -(145, 2, 'Colima', 'COL', 0, 1), -(145, 2, 'Distrito Federal', 'DIF', 0, 1), -(145, 2, 'Durango', 'DUR', 0, 1), -(145, 2, 'Guanajuato', 'GUA', 0, 1), -(145, 2, 'Guerrero', 'GRO', 0, 1), -(145, 2, 'Hidalgo', 'HID', 0, 1), -(145, 2, 'Jalisco', 'JAL', 0, 1), -(145, 2, 'Estado de México', 'MEX', 0, 1), -(145, 2, 'Michoacán', 'MIC', 0, 1), -(145, 2, 'Morelos', 'MOR', 0, 1), -(145, 2, 'Nayarit', 'NAY', 0, 1), -(145, 2, 'Nuevo León', 'NLE', 0, 1), -(145, 2, 'Oaxaca', 'OAX', 0, 1), -(145, 2, 'Puebla', 'PUE', 0, 1), -(145, 2, 'Querétaro', 'QUE', 0, 1), -(145, 2, 'Quintana Roo', 'ROO', 0, 1), -(145, 2, 'San Luis Potosí', 'SLP', 0, 1), -(145, 2, 'Sinaloa', 'SIN', 0, 1), -(145, 2, 'Sonora', 'SON', 0, 1), -(145, 2, 'Tabasco', 'TAB', 0, 1), -(145, 2, 'Tamaulipas', 'TAM', 0, 1), -(145, 2, 'Tlaxcala', 'TLA', 0, 1), -(145, 2, 'Veracruz', 'VER', 0, 1), -(145, 2, 'Yucatán', 'YUC', 0, 1), -(145, 2, 'Zacatecas', 'ZAC', 0, 1); - -INSERT INTO `PREFIX_state` (`id_country`, `id_zone`, `name`, `iso_code`, `active`) VALUES -(4, 2, 'Ontario', 'ON', 1), -(4, 2, 'Quebec', 'QC', 1), -(4, 2, 'British Columbia', 'BC', 1), -(4, 2, 'Alberta', 'AB', 1), -(4, 2, 'Manitoba', 'MB', 1), -(4, 2, 'Saskatchewan', 'SK', 1), -(4, 2, 'Nova Scotia', 'NS', 1), -(4, 2, 'New Brunswick', 'NB', 1), -(4, 2, 'Newfoundland and Labrador', 'NL', 1), -(4, 2, 'Prince Edward Island', 'PE', 1), -(4, 2, 'Northwest Territories', 'NT', 1), -(4, 2, 'Yukon', 'YT', 1), -(4, 2, 'Nunavut', 'NU', 1); - -INSERT INTO `PREFIX_state` (`id_country`, `id_zone`, `name`, `iso_code`, `active`) VALUES -(44, 6, 'Buenos Aires', 'B', 1), -(44, 6, 'Catamarca', 'K', 1), -(44, 6, 'Chaco', 'H', 1), -(44, 6, 'Chubut', 'U', 1), -(44, 6, 'Ciudad de Buenos Aires', 'C', 1), -(44, 6, 'Córdoba', 'X', 1), -(44, 6, 'Corrientes', 'W', 1), -(44, 6, 'Entre Ríos', 'E', 1), -(44, 6, 'Formosa', 'P', 1), -(44, 6, 'Jujuy', 'Y', 1), -(44, 6, 'La Pampa', 'L', 1), -(44, 6, 'La Rioja', 'F', 1), -(44, 6, 'Mendoza', 'M', 1), -(44, 6, 'Misiones', 'N', 1), -(44, 6, 'Neuquén', 'Q', 1), -(44, 6, 'Río Negro', 'R', 1), -(44, 6, 'Salta', 'A', 1), -(44, 6, 'San Juan', 'J', 1), -(44, 6, 'San Luis', 'D', 1), -(44, 6, 'Santa Cruz', 'Z', 1), -(44, 6, 'Santa Fe', 'S', 1), -(44, 6, 'Santiago del Estero', 'G', 1), -(44, 6, 'Tierra del Fuego', 'V', 1), -(44, 6, 'Tucumán', 'T', 1); - -INSERT INTO `PREFIX_state` (`id_country`, `id_zone`, `name`, `iso_code`, `tax_behavior`, `active`) VALUES -(10, 1, 'Agrigento', 'AG', 0, 1), -(10, 1, 'Alessandria', 'AL', 0, 1), -(10, 1, 'Ancona', 'AN', 0, 1), -(10, 1, 'Aosta', 'AO', 0, 1), -(10, 1, 'Arezzo', 'AR', 0, 1), -(10, 1, 'Ascoli Piceno', 'AP', 0, 1), -(10, 1, 'Asti', 'AT', 0, 1), -(10, 1, 'Avellino', 'AV', 0, 1), -(10, 1, 'Bari', 'BA', 0, 1), -(10, 1, 'Barletta-Andria-Trani', 'BT', 0, 1), -(10, 1, 'Belluno', 'BL', 0, 1), -(10, 1, 'Benevento', 'BN', 0, 1), -(10, 1, 'Bergamo', 'BG', 0, 1), -(10, 1, 'Biella', 'BI', 0, 1), -(10, 1, 'Bologna', 'BO', 0, 1), -(10, 1, 'Bolzano', 'BZ', 0, 1), -(10, 1, 'Brescia', 'BS', 0, 1), -(10, 1, 'Brindisi', 'BR', 0, 1), -(10, 1, 'Cagliari', 'CA', 0, 1), -(10, 1, 'Caltanissetta', 'CL', 0, 1), -(10, 1, 'Campobasso', 'CB', 0, 1), -(10, 1, 'Carbonia-Iglesias', 'CI', 0, 1), -(10, 1, 'Caserta', 'CE', 0, 1), -(10, 1, 'Catania', 'CT', 0, 1), -(10, 1, 'Catanzaro', 'CZ', 0, 1), -(10, 1, 'Chieti', 'CH', 0, 1), -(10, 1, 'Como', 'CO', 0, 1), -(10, 1, 'Cosenza', 'CS', 0, 1), -(10, 1, 'Cremona', 'CR', 0, 1), -(10, 1, 'Crotone', 'KR', 0, 1), -(10, 1, 'Cuneo', 'CN', 0, 1), -(10, 1, 'Enna', 'EN', 0, 1), -(10, 1, 'Fermo', 'FM', 0, 1), -(10, 1, 'Ferrara', 'FE', 0, 1), -(10, 1, 'Firenze', 'FI', 0, 1), -(10, 1, 'Foggia', 'FG', 0, 1), -(10, 1, 'Forlì-Cesena', 'FC', 0, 1), -(10, 1, 'Frosinone', 'FR', 0, 1), -(10, 1, 'Genova', 'GE', 0, 1), -(10, 1, 'Gorizia', 'GO', 0, 1), -(10, 1, 'Grosseto', 'GR', 0, 1), -(10, 1, 'Imperia', 'IM', 0, 1), -(10, 1, 'Isernia', 'IS', 0, 1), -(10, 1, 'L\'Aquila', 'AQ', 0, 1), -(10, 1, 'La Spezia', 'SP', 0, 1), -(10, 1, 'Latina', 'LT', 0, 1), -(10, 1, 'Lecce', 'LE', 0, 1), -(10, 1, 'Lecco', 'LC', 0, 1), -(10, 1, 'Livorno', 'LI', 0, 1), -(10, 1, 'Lodi', 'LO', 0, 1), -(10, 1, 'Lucca', 'LU', 0, 1), -(10, 1, 'Macerata', 'MC', 0, 1), -(10, 1, 'Mantova', 'MN', 0, 1), -(10, 1, 'Massa', 'MS', 0, 1), -(10, 1, 'Matera', 'MT', 0, 1), -(10, 1, 'Medio Campidano', 'VS', 0, 1), -(10, 1, 'Messina', 'ME', 0, 1), -(10, 1, 'Milano', 'MI', 0, 1), -(10, 1, 'Modena', 'MO', 0, 1), -(10, 1, 'Monza e della Brianza', 'MB', 0, 1), -(10, 1, 'Napoli', 'NA', 0, 1), -(10, 1, 'Novara', 'NO', 0, 1), -(10, 1, 'Nuoro', 'NU', 0, 1), -(10, 1, 'Ogliastra', 'OG', 0, 1), -(10, 1, 'Olbia-Tempio', 'OT', 0, 1), -(10, 1, 'Oristano', 'OR', 0, 1), -(10, 1, 'Padova', 'PD', 0, 1), -(10, 1, 'Palermo', 'PA', 0, 1), -(10, 1, 'Parma', 'PR', 0, 1), -(10, 1, 'Pavia', 'PV', 0, 1), -(10, 1, 'Perugia', 'PG', 0, 1), -(10, 1, 'Pesaro-Urbino', 'PU', 0, 1), -(10, 1, 'Pescara', 'PE', 0, 1), -(10, 1, 'Piacenza', 'PC', 0, 1), -(10, 1, 'Pisa', 'PI', 0, 1), -(10, 1, 'Pistoia', 'PT', 0, 1), -(10, 1, 'Pordenone', 'PN', 0, 1), -(10, 1, 'Potenza', 'PZ', 0, 1), -(10, 1, 'Prato', 'PO', 0, 1), -(10, 1, 'Ragusa', 'RG', 0, 1), -(10, 1, 'Ravenna', 'RA', 0, 1), -(10, 1, 'Reggio Calabria', 'RC', 0, 1), -(10, 1, 'Reggio Emilia', 'RE', 0, 1), -(10, 1, 'Rieti', 'RI', 0, 1), -(10, 1, 'Rimini', 'RN', 0, 1), -(10, 1, 'Roma', 'RM', 0, 1), -(10, 1, 'Rovigo', 'RO', 0, 1), -(10, 1, 'Salerno', 'SA', 0, 1), -(10, 1, 'Sassari', 'SS', 0, 1), -(10, 1, 'Savona', 'SV', 0, 1), -(10, 1, 'Siena', 'SI', 0, 1), -(10, 1, 'Siracusa', 'SR', 0, 1), -(10, 1, 'Sondrio', 'SO', 0, 1), -(10, 1, 'Taranto', 'TA', 0, 1), -(10, 1, 'Teramo', 'TE', 0, 1), -(10, 1, 'Terni', 'TR', 0, 1), -(10, 1, 'Torino', 'TO', 0, 1), -(10, 1, 'Trapani', 'TP', 0, 1), -(10, 1, 'Trento', 'TN', 0, 1), -(10, 1, 'Treviso', 'TV', 0, 1), -(10, 1, 'Trieste', 'TS', 0, 1), -(10, 1, 'Udine', 'UD', 0, 1), -(10, 1, 'Varese', 'VA', 0, 1), -(10, 1, 'Venezia', 'VE', 0, 1), -(10, 1, 'Verbano-Cusio-Ossola', 'VB', 0, 1), -(10, 1, 'Vercelli', 'VC', 0, 1), -(10, 1, 'Verona', 'VR', 0, 1), -(10, 1, 'Vibo Valentia', 'VV', 0, 1), -(10, 1, 'Vicenza', 'VI', 0, 1), -(10, 1, 'Viterbo', 'VT', 0, 1); - -INSERT INTO `PREFIX_state` (`id_country`, `id_zone`, `name`, `iso_code`, `active`) VALUES -(111, 3, 'Aceh', 'AC', 1), -(111, 3, 'Bali', 'BA', 1), -(111, 3, 'Bangka', 'BB', 1), -(111, 3, 'Banten', 'BT', 1), -(111, 3, 'Bengkulu', 'BE', 1), -(111, 3, 'Central Java', 'JT', 1), -(111, 3, 'Central Kalimantan', 'KT', 1), -(111, 3, 'Central Sulawesi', 'ST', 1), -(111, 3, 'Coat of arms of East Java', 'JI', 1), -(111, 3, 'East kalimantan', 'KI', 1), -(111, 3, 'East Nusa Tenggara', 'NT', 1), -(111, 3, 'Lambang propinsi', 'GO', 1), -(111, 3, 'Jakarta', 'JK', 1), -(111, 3, 'Jambi', 'JA', 1), -(111, 3, 'Lampung', 'LA', 1), -(111, 3, 'Maluku', 'MA', 1), -(111, 3, 'North Maluku', 'MU', 1), -(111, 3, 'North Sulawesi', 'SA', 1), -(111, 3, 'North Sumatra', 'SU', 1), -(111, 3, 'Papua', 'PA', 1), -(111, 3, 'Riau', 'RI', 1), -(111, 3, 'Lambang Riau', 'KR', 1), -(111, 3, 'Southeast Sulawesi', 'SG', 1), -(111, 3, 'South Kalimantan', 'KS', 1), -(111, 3, 'South Sulawesi', 'SN', 1), -(111, 3, 'South Sumatra', 'SS', 1), -(111, 3, 'West Java', 'JB', 1), -(111, 3, 'West Kalimantan', 'KB', 1), -(111, 3, 'West Nusa Tenggara', 'NB', 1), -(111, 3, 'Lambang Provinsi Papua Barat', 'PB', 1), -(111, 3, 'West Sulawesi', 'SR', 1), -(111, 3, 'West Sumatra', 'SB', 1), -(111, 3, 'Yogyakarta', 'YO', 1); - -INSERT INTO `PREFIX_state` (`id_country`, `id_zone`, `name`, `iso_code`, `active`) VALUES -(11, 3, "Aichi", "23", 1), -(11, 3, "Akita", "05", 1), -(11, 3, "Aomori", "02", 1), -(11, 3, "Chiba", "12", 1), -(11, 3, "Ehime", "38", 1), -(11, 3, "Fukui", "18", 1), -(11, 3, "Fukuoka", "40", 1), -(11, 3, "Fukushima", "07", 1), -(11, 3, "Gifu", "21", 1), -(11, 3, "Gunma", "10", 1), -(11, 3, "Hiroshima", "34", 1), -(11, 3, "Hokkaido", "01", 1), -(11, 3, "Hyogo", "28", 1), -(11, 3, "Ibaraki", "08", 1), -(11, 3, "Ishikawa", "17", 1), -(11, 3, "Iwate", "03", 1), -(11, 3, "Kagawa", "37", 1), -(11, 3, "Kagoshima", "46", 1), -(11, 3, "Kanagawa", "14", 1), -(11, 3, "Kochi", "39", 1), -(11, 3, "Kumamoto", "43", 1), -(11, 3, "Kyoto", "26", 1), -(11, 3, "Mie", "24", 1), -(11, 3, "Miyagi", "04", 1), -(11, 3, "Miyazaki", "45", 1), -(11, 3, "Nagano", "20", 1), -(11, 3, "Nagasaki", "42", 1), -(11, 3, "Nara", "29", 1), -(11, 3, "Niigata", "15", 1), -(11, 3, "Oita", "44", 1), -(11, 3, "Okayama", "33", 1), -(11, 3, "Okinawa", "47", 1), -(11, 3, "Osaka", "27", 1), -(11, 3, "Saga", "41", 1), -(11, 3, "Saitama", "11", 1), -(11, 3, "Shiga", "25", 1), -(11, 3, "Shimane", "32", 1), -(11, 3, "Shizuoka", "22", 1), -(11, 3, "Tochigi", "09", 1), -(11, 3, "Tokushima", "36", 1), -(11, 3, "Tokyo", "13", 1), -(11, 3, "Tottori", "31", 1), -(11, 3, "Toyama", "16", 1), -(11, 3, "Wakayama", "30", 1), -(11, 3, "Yamagata", "06", 1), -(11, 3, "Yamaguchi", "35", 1), -(11, 3, "Yamanashi", "19", 1); - -INSERT INTO `PREFIX_currency` (`name`, `iso_code`, `iso_code_num`, `sign`, `blank`, `conversion_rate`, `format`, `deleted`, `active`) VALUES -('Euro', 'EUR', '978', '€', 1, 1, 2, 0, 1), ('Dollar', 'USD', '840', '$', 0, 1.32, 1, 0, 1), ('Pound', 'GBP', '826', '£', 0, 0.8, 1, 0, 1); -/*('Yen', 'JPY', '392', '¥', 0, 113.14, 2, 0, 0), -('Lev', 'BGN', '975', 'лв', 1, 1.96, 2, 0, 0), ('Couronne', 'CZK', '203', 'KĿ', 1, 24.58, 2, 0, 0), ('Couronne', 'DKK', '208', 'kr', 1, 7.45, 2, 0, 0), -('Couronne', 'EEK', '233', 'kr', 1, 15.65, 2, 0, 0), ('Forint', 'HUF', '348', 'Ft', 1, 279.65, 2, 0, 0), ('Litas', 'LTL', '440', 'Lt', 1, 3.45, 2, 0, 0), -('Lats letton', 'LVL', '428', 'Ls', 1, 0.71, 2, 0, 0), ('Zloty', 'PLN', '985', 'zł', 1, 3.94, 2, 0, 0), ('Leu', 'RON', '946', 'lei', 1, 4.26, 2, 0, 0), -('Couronne', 'SEK', '752', 'kr', 1, 9.13, 2, 0, 0), ('Franc Suisse', 'CHF', '756', 'CHF', 1, 1.32, 2, 0, 0), ('Couronne', 'NOK', '578', 'kr', 1, 7.90, 2, 0, 0), -('Kuna', 'HRK', '191', 'kn', 1, 7.28, 2, 0, 0), ('Rouble', 'RUB', '643', 'руб', 1, 41.46, 2, 0, 0), ('Livre', 'TRY', '949', 'TL', 1, 1.98, 2, 0, 0), -('Australian Dollar', 'AUD', '036', '$', 1, 1.40, 2, 0, 0), ('Réal', 'BRL', '986', 'R$', 1, 2.28, 2, 0, 0), ('Canadian Dollar', 'CAD', '124', '$', 1, 1.37, 2, 0, 0), -('Yuan renminbi', 'CNY', '156', '¥', 1, 8.96, 2, 0, 0), ('Hong Kong Dollar', 'HKD', '344', '$', 1, 10.37, 2, 0, 0), ('Rupiah', 'IDR', '360', 'Rp', 1, 11956.81, 2, 0, 0), -('Rupees', 'INR', '356', 'rupees', 1, 60.93, 2, 0, 0), ('Won', 'KRW', '410', '₩', 1, 1537.58, 2, 0, 0), ('Mexican Peso', 'MXN', '484', '$', 1, 16.96, 2, 0, 0), -('Ringgit', 'MYR', '458', 'RM', 1, 4.13, 2, 0, 0), ('New-Zeland Dollar', 'NZD', '554', '$', 1, 1.81, 2, 0, 0), ('Peso Phillipin', 'PHP', '608', 'Php', 1, 58.61, 2, 0, 0), -('Singapour Dollar', 'SGD', '702', '$', 1, 1.77, 2, 0, 0), ('Baht', 'THB', '764', '฿', 1, 40.96, 2, 0, 0), ('Rand', 'ZAR', '710', 'R', 1, 9.38, 2, 0, 0);*/ -INSERT INTO `PREFIX_currency_shop` (`id_currency`, `id_shop`) VALUES (1,1), (2,1), (3,1); - -INSERT INTO `PREFIX_image_type` (`id_image_type`, `name`, `width`, `height`, `products`, `categories`, `manufacturers`, `suppliers`, `scenes`, `stores`) VALUES -(1, 'small', 45, 45, 1, 1, 1, 1, 0, 0), -(2, 'medium', 58, 58, 1, 1, 1, 1, 0, 1), -(3, 'large', 264, 264, 1, 1, 1, 1, 0, 0), -(4, 'thickbox', 600, 600, 1, 0, 0, 0, 0, 0), -(5, 'category', 500, 150, 0, 1, 0, 0, 0, 0), -(6, 'home', 124, 124, 1, 0, 0, 0, 0, 0), -(7, 'large_scene', 556, 200, 0, 0, 0, 0, 1, 0), -(8, 'thumb_scene', 161, 58, 0, 0, 0, 0, 1, 0); - -INSERT INTO `PREFIX_contact_shop` (`id_contact`, `id_shop`) VALUES (1,1), (2,1); - -INSERT INTO `PREFIX_contact_lang` (`id_contact`, `id_lang`, `name`, `description`) VALUES -(1, 1, 'Webmaster', 'If a technical problem occurs on this website'), -(1, 2, 'Webmaster', 'Si un problème technique survient sur le site'), -(1, 3, 'Webmaster', 'Si se produce un problema técnico en el sitio'), -(1, 4, 'Webmaster', 'Falls ein technisches Problem auf der Webseite auftritt'), -(1, 5, 'Webmaster', 'Se nel sito interviene un problema tecnico'), -(2, 1, 'Customer service', 'For any question about a product, an order'), -(2, 2, 'Service client', 'Pour toute question ou réclamation sur une commande'), -(2, 3, 'Service client', 'Para cualquier pregunta o queja acerca de un pedido'), -(2, 4, 'Kundenservice', 'Bei Fragen oder Reklamationen zu einer Bestellung'), -(2, 5, 'Servizio clienti', 'Per qualsiasi domanda o reclamo riguardo ad un ordine'); - -INSERT INTO `PREFIX_profile` (`id_profile`) VALUES (1); -INSERT INTO `PREFIX_profile_lang` (`id_profile`, `id_lang`, `name`) VALUES (1, 1, 'SuperAdmin'),(1, 2, 'SuperAdmin'),(1, 3, 'SuperAdmin'),(1, 4, 'SuperAdmin'),(1, 5, 'SuperAdmin'); - -/* Active tabs */ -INSERT INTO `PREFIX_tab` (`id_tab`, `class_name`, `id_parent`, `position`) VALUES (1, 'AdminCatalog', 0, 1),(2, 'AdminCustomers', 0, 2),(3, 'AdminOrders', 0, 3), -(4, 'AdminPayment', 0, 4),(5, 'AdminShipping', 0, 5),(6, 'AdminStats', 0, 6),(7, 'AdminModules', 0, 7),(29, 'AdminEmployees', 0, 8),(8, 'AdminPreferences', 0, 9), -(9, 'AdminTools', 0, 10),(82, 'AdminStores', 9, 11),(60, 'AdminTracking', 1, 3),(10, 'AdminManufacturers', 1, 4),(34, 'AdminSuppliers', 1, 5),(11, 'AdminAttributesGroups', 1, 6), -(36, 'AdminFeatures', 1, 7),(58, 'AdminScenes', 1, 8),(66, 'AdminTags', 1, 9),(68, 'AdminAttachments', 1, 10),(12, 'AdminAddresses', 2, 1),(63, 'AdminGroups', 2, 2), -(65, 'AdminCarts', 2, 3),(42, 'AdminInvoices', 3, 1),(55, 'AdminDeliverySlip', 3, 2),(47, 'AdminReturn', 3, 3),(49, 'AdminSlip', 3, 4), -(13, 'AdminStatuses', 3, 6),(54, 'AdminOrderMessage', 3, 7),(14, 'AdminCartRules', 4, 4),(15, 'AdminCurrencies', 4, 1),(16, 'AdminTaxes', 4, 2), -(17, 'AdminCarriers', 5, 1),(46, 'AdminStates', 5, 2),(18, 'AdminCountries', 5, 3),(19, 'AdminZones', 5, 5),(20, 'AdminRangePrice', 5, 6), -(21, 'AdminRangeWeight', 5, 7),(61, 'AdminSearchEngines', 6, 2),(62, 'AdminReferrers', 6, 3), -(22, 'AdminModulesPositions', 7, 4),(30, 'AdminProfiles', 29, 1),(31, 'AdminAccess', 29, 2),(28, 'AdminContacts', 29, 3),(39, 'AdminContact', 8, 1), -(38, 'AdminThemes', 8, 2),(56, 'AdminMeta', 8, 3),(27, 'AdminPPreferences', 8, 4),(24, 'AdminEmails', 8, 5),(26, 'AdminImages', 8, 6),(23, 'AdminDb', 8, 7), -(48, 'AdminPdf', 3, 8),(44, 'AdminLocalization', 8, 9),(67, 'AdminSearchConf', 8, 10),(32, 'AdminLanguages', 9, 1),(33, 'AdminTranslations', 9, 2), -(35, 'AdminTabs', 29, 3),(37, 'AdminQuickAccesses', 9, 4),(40, 'AdminAliases', 8, 5),(41, 'AdminImport', 9, 6),(52, 'AdminSubDomains', 9, 7), -(53, 'AdminBackup', 9, 8),(57, 'AdminCmsContent', 9, 9),(64, 'AdminGenerator', 9, 10),(43, 'AdminSearch', -1, 0),(69, 'AdminInformation', 9, 5), -(70, 'AdminPerformance', 8, 11),(71, 'AdminCustomerThreads', 29, 4),(72, 'AdminWebservice', 9, 12),(73, 'AdminStockMvt', 95, 3), -(80, 'AdminAddonsCatalog', 7, 1),(81, 'AdminAddonsMyAccount', 7, 2),(83, 'AdminThemes', 7, 3),(84, 'AdminGeolocation', 8, 12), -(85, 'AdminTaxRulesGroup', 4, 3),(86, 'AdminLogs', 9, 13), (87,'AdminHome',-1,0), -(88,'AdminShop', 0, 11), (89,'AdminGroupShop', 88, 1),(90, 'AdminShopUrl', 88, 2),(91, 'AdminGenders', 2, 4),(92, 'AdminRequestSql', 9, 14), -(93, 'AdminProducts', 1, 1), -(94, 'AdminCategories', 1, 2), -(95, 'AdminStock', 0, 12), -(96, 'AdminWarehouses', 95, 1), -(97, 'AdminStockManagement', 95, 2), -(98, 'AdminStockInstantState', 95, 4), -(99, 'AdminStockCover', 95, 5), -(100, 'AdminSupplyOrders', 95, 6), -(101, 'AdminAttributeGenerator', -1, 0), -(102, 'AdminAccounting', 0, 13), -(103, 'AdminAccountingManagement', 102, 1), -(104, 'AdminAccountingExport', 102, 2), -(105, 'AdminCmsCategories', -1, 0), -(106, 'AdminCms', -1, 0), -(107, 'AdminLogin', -1 , 0), -(108, 'AdminStockConfiguration', 95, 7), -(109, 'AdminSpecificPriceRule', 1, 11); - -/* Inactive tabs */ -INSERT INTO `PREFIX_tab` (`id_tab`, `class_name`, `id_parent`, `position`, `active`) VALUES (110, 'AdminOutstanding', 2, 5, 0); - -INSERT INTO `PREFIX_access` (`id_profile`, `id_tab`, `view`, `add`, `edit`, `delete`) (SELECT 1, id_tab, 1, 1, 1, 1 FROM `PREFIX_tab`); - -INSERT INTO `PREFIX_tab_lang` (`id_lang`, `id_tab`, `name`) VALUES -(1, 1, 'Catalog'),(1, 2, 'Customers'),(1, 3, 'Orders'),(1, 4, 'Payment'), -(1, 5, 'Shipping'),(1, 6, 'Stats'),(1, 7, 'Modules'),(1, 8, 'Preferences'),(1, 9, 'Tools'),(1, 10, 'Manufacturers'),(1, 11, 'Attributes and Groups'), -(1, 12, 'Addresses'),(1, 13, 'Statuses'),(1, 14, 'Cart Rules'),(1, 15, 'Currencies'),(1, 16, 'Taxes'),(1, 17, 'Carriers'),(1, 18, 'Countries'), -(1, 19, 'Zones'),(1, 20, 'Price Ranges'),(1, 21, 'Weight Ranges'),(1, 22, 'Positions'),(1, 23, 'Database'),(1, 24, 'E-mail'),(1, 26, 'Images'), -(1, 27, 'Products'),(1, 28, 'Contacts'),(1, 29, 'Employees'),(1, 30, 'Profiles'),(1, 31, 'Permissions'),(1, 32, 'Languages'),(1, 33, 'Translations'), -(1, 34, 'Suppliers'),(1, 35, 'Tabs'),(1, 36, 'Features'),(1, 37, 'Quick Access'),(1, 38, 'Themes'),(1, 39, 'Contact Information'),(1, 40, 'Keyword Typos'), -(1, 41, 'CSV Import'),(1, 42, 'Invoices'),(1, 43, 'Search'),(1, 44, 'Localization'),(1, 46, 'States'),(1, 47, 'Merchandise Returns'),(1, 48, 'PDF'), -(1, 49, 'Credit Slips'),(1, 52, 'Subdomains'),(1, 53, 'DB Backup'),(1, 54, 'Order Messages'), -(1, 55, 'Delivery Slips'),(1, 56, 'SEO & URLs'),(1, 57, 'CMS'),(1, 58, 'Image Mapping'),(1, 59, 'Customer Messages'),(1, 60, 'Monitoring'), -(1, 61, 'Search Engines'),(1, 62, 'Referrers'),(1, 63, 'Groups'),(1, 64, 'Generators'),(1, 65, 'Shopping Carts'),(1, 66, 'Tags'),(1, 67, 'Search'), -(1, 68, 'Attachments'),(1, 69, 'Configuration Information'),(1, 70, 'Performance'),(1, 71, 'Customer Service'),(1, 72, 'Webservice'),(1, 73, 'Stock Movement'), -(1, 80, 'Modules & Themes Catalog'),(1, 81, 'My Account'),(1, 82, 'Stores'),(1, 83, 'Themes'),(1, 84, 'Geolocation'),(1, 85, 'Tax Rules'),(1, 86, 'Logs'), -(1, 87, 'Home'), (1, 88, 'Shops'), (1, 89, 'Group Shops'), (1, 90, 'Shop Urls'),(1, 91, 'Genders'),(1, 92, 'SQL Manager'), -(1, 93, 'Products'), -(1, 94, 'Categories'), -(1, 95, 'Stock'), -(1, 96, 'Warehouses'), -(1, 97, 'Stock Management'), -(1, 98, 'Stock instant state'), -(1, 99, 'Stock cover'), -(1, 100, 'Supply orders'), -(1, 101, 'Combinations generator'), -(1, 102, 'Accounting'), -(1, 103, 'Account Number Management'), -(1, 104, 'Export'), -(1, 105, 'CMS categories'), -(1, 106, 'CMS pages'), -(1, 108, 'Configuration'), -(1, 109, 'Catalog price rules'), -(1, 110, 'Outstanding'); - -INSERT INTO `PREFIX_tab_lang` (`id_lang`, `id_tab`, `name`) VALUES -(2, 1, 'Catalogue'),(2, 2, 'Clients'),(2, 3, 'Commandes'),(2, 4, 'Paiement'),(2, 5, 'Transport'), -(2, 6, 'Stats'),(2, 7, 'Modules'),(2, 8, 'Préférences'),(2, 9, 'Outils'),(2, 10, 'Marques'),(2, 11, 'Attributs et groupes'),(2, 12, 'Adresses'),(2, 13, 'Statuts'), -(2, 14, 'Règles paniers'),(2, 15, 'Devises'),(2, 16, 'Taxes'),(2, 17, 'Transporteurs'),(2, 18, 'Pays'),(2, 19, 'Zones'),(2, 20, 'Tranches de prix'), -(2, 21, 'Tranches de poids'),(2, 22, 'Positions'),(2, 23, 'Base de données'),(2, 24, 'Emails'),(2, 26, 'Images'),(2, 27, 'Produits'),(2, 28, 'Contacts'), -(2, 29, 'Employés'),(2, 30, 'Profils'),(2, 31, 'Permissions'),(2, 32, 'Langues'),(2, 33, 'Traductions'),(2, 34, 'Fournisseurs'),(2, 35, 'Onglets'), -(2, 36, 'Caractéristiques'),(2, 37, 'Accès rapide'),(2, 38, 'Thèmes'),(2, 39, 'Coordonnées'),(2, 40, 'Alias'),(2, 41, 'Import'),(2, 42, 'Factures'), -(2, 43, 'Recherche'),(2, 44, 'Localisation'),(2, 46, 'Etats'),(2, 47, 'Retours produits'),(2, 48, 'PDF'),(2, 49, 'Avoirs'), -(2, 52, 'Sous domaines'),(2, 53, 'Sauvegarde BDD'),(2, 54, 'Messages prédéfinis'),(2, 55, 'Bons de livraison'), -(2, 56, 'SEO & URLs'),(2, 57, 'CMS'),(2, 58, 'Scènes'),(2, 59, 'Messages clients'),(2, 60, 'Suivi'),(2, 61, 'Moteurs de recherche'), -(2, 62, 'Sites affluents'),(2, 63, 'Groupes'),(2, 64, 'Générateurs'),(2, 65, 'Paniers'),(2, 66, 'Tags'),(2, 67, 'Recherche'), -(2, 68, 'Documents joints'),(2, 69, 'Informations'),(2, 70, 'Performances'),(2, 71, 'SAV'),(2, 72, 'Service web'),(2, 73, 'Mouvements de Stock'), -(2, 80, 'Catalogue de modules et thèmes'),(2, 81, 'Mon compte'),(2, 82, 'Magasins'),(2, 83, 'Thèmes'),(2, 84, 'Géolocalisation'),(2, 85, 'Règles de taxes'),(2, 86, 'Log'), -(2, 87,'Accueil'), (2, 88, 'Boutiques'), (2, 89, 'Groupes de boutique'), (2, 90, 'URLs de boutique'),(2, 91, 'Genres'),(2, 92, 'SQL Manager'), -(2, 93, 'Produits'), -(2, 94, 'Catégories'), -(2, 95, 'Stock'), -(2, 96, 'Entrepôts'), -(2, 97, 'Gestion du stock'), -(2, 98, 'Etat instantané du stock'), -(2, 99, 'Couverture du stock'), -(2, 100, 'Commandes fournisseurs'), -(2, 101, 'Générateur de déclinaisons'), -(2, 102, 'Comptabilité'), -(2, 103, 'Gestion des numéros de comptes'), -(2, 104, 'Export'), -(2, 105, 'Catégories CMS'), -(2, 106, 'Pages CMS'), -(2, 108, 'Configuration'), -(2, 109, 'Règles de prix catalogue'), -(2, 110, 'Encours'); - -INSERT INTO `PREFIX_tab_lang` (`id_lang`, `id_tab`, `name`) VALUES -(3, 1, 'Catálogo'),(3, 2, 'Clientes'),(3, 3, 'Pedidos'),(3, 4, 'Pago'),(3, 5, 'Transporte'), -(3, 6, 'Estadísticas'),(3, 7, 'Módulos'),(3, 8, 'Preferencias'),(3, 9, 'Herramientas'),(3, 10, 'Fabricantes'),(3, 11, 'Atributos y grupos'),(3, 12, 'Direcciones'), -(3, 13, 'Estados'),(3, 14, 'Vales de descuento'),(3, 15, 'Divisas'),(3, 16, 'Impuestos'),(3, 17, 'Transportistas'),(3, 18, 'Países'),(3, 19, 'Zonas'), -(3, 20, 'Franja de precios'),(3, 21, 'Franja de pesos'),(3, 22, 'Posiciones'),(3, 23, 'Base de datos'),(3, 24, 'Emails'),(3, 26, 'Imágenes'), -(3, 27, 'Productos'),(3, 28, 'Contactos'),(3, 29, 'Empleados'),(3, 30, 'Perfiles'),(3, 31, 'Permisos'),(3, 32, 'Idiomas'),(3, 33, 'Traducciones'), -(3, 34, 'Proveedores'),(3, 35, 'Pestañas'),(3, 36, 'Características'),(3, 37, 'Acceso rápido'),(3, 38, 'Temas'),(3, 39, 'Datos'),(3, 40, 'Alias'), -(3, 41, 'Importar'),(3, 42, 'Facturas'),(3, 43, 'Búsqueda'),(3, 44, 'Ubicación'),(3, 46, 'Estados'),(3, 47, 'Devolución productos'),(3, 48, 'PDF'), -(3, 49, 'Vales'),(3, 52, 'Subcampos'),(3, 53, 'Copia de seguridad'),(3, 54, 'Mensajes de Orden'), -(3, 55, 'Albaranes de entrega'),(3, 56, 'SEO & URLs'),(3, 57, 'CMS'),(3, 58, 'Mapeo de la imagen'),(3, 59, 'Mensajes del cliente'),(3, 60, 'Rastreo'), -(3, 61, 'Motores de búsqueda'),(3, 62, 'Referido'),(3, 63, 'Grupos'),(3, 64, 'Generadores'),(3, 65, 'Carritos'),(3, 66, 'Etiquetas'),(3, 67, 'Búsqueda'),(3, 68, 'Adjuntos'), -(3, 69, 'Informaciones'),(3, 70, 'Rendimiento'),(3, 72, 'Web service'),(3, 71, 'Servicio al cliente'),(3, 73, 'Movimiento de Stock'), (3, 82, 'Tiendas'),(3, 83, 'Temas'),(3, 84, 'Geolocalización'),(3, 85, 'Reglas de Impuestos'),(3, 86, 'Log'), -(3, 87,'Home'), (3, 88, 'Shops'), (3, 89, 'Group Shops'), (3, 90, 'Shop Urls'),(3, 91, 'Genders'),(3, 92, 'SQL Manager'), -(3, 93, 'Products'), -(3, 94, 'Categories'), -(3, 95, 'Stock'), -(3, 96, 'Warehouses'), -(3, 97, 'Stock Management'), -(3, 98, 'Stock instant state'), -(3, 99, 'Stock cover'), -(3, 100, 'Supply orders'), -(3, 101, 'Combinations generator'), -(3, 102, 'Accounting'), -(3, 103, 'Account Number Management'), -(3, 104, 'Export'), -(3, 105, 'CMS categories'), -(3, 106, 'CMS pages'), -(3, 108, 'Configuration'), -(3, 109, 'Catalog price rules'), -(3, 110, 'Outstanding'); - -INSERT INTO `PREFIX_tab_lang` (`id_lang`, `id_tab`, `name`) VALUES -(4, 1, 'Katalog'),(4, 2, 'Kunden'),(4, 3, 'Bestellungen'),(4, 4, 'Zahlung'), -(4, 5, 'Versandkosten'),(4, 6, 'Statistik'),(4, 7, 'Module'),(4, 8, 'Voreinstellungen'),(4, 9, 'Tools'),(4, 10, 'Hersteller'),(4, 11, 'Attribute und Gruppen'), -(4, 12, 'Adressen'),(4, 13, 'Status'),(4, 14, 'Gutscheine'),(4, 15, 'Währungen'),(4, 16, 'Steuern'),(4, 17, 'Versanddienst'),(4, 18, 'Länder'), -(4, 19, 'Zonen'),(4, 20, 'Preisspanne'),(4, 21, 'Gewichtsklassen'),(4, 22, 'Positionen'),(4, 23, 'Datenbank'),(4, 24, 'E-Mail'),(4, 26, 'Bild'), -(4, 27, 'Produkte'),(4, 28, 'Kontakte'),(4, 29, 'Mitarbeiter'),(4, 30, 'Profile'),(4, 31, 'Berechtigungen'),(4, 32, 'Sprachen'),(4, 33, 'Übersetzungen'), -(4, 34, 'Zulieferer'),(4, 35, 'Tabs'),(4, 36, 'Funktionen'),(4, 37, 'Schnellzugriff'),(4, 38, 'Themen'),(4, 39, 'Kontaktinformation'),(4, 40, 'Alias'), -(4, 41, 'Import'),(4, 42, 'Rechnungen'),(4, 43, 'Suche'),(4, 44, 'Lokalisierung'),(4, 46, 'Staaten'),(4, 47, 'Warenrücksendungen'),(4, 48, 'PDF'), -(4, 49, 'Gutscheine'),(4, 52, 'Subdomains'),(4, 53, 'DB-Backup'),(4, 54, 'Bestellnachrichten'), -(4, 55, 'Lieferscheine'),(4, 56, 'SEO & URLs'),(4, 57, 'CMS'),(4, 58, 'Image Mapping'),(4, 59, 'Kundennachrichten'),(4, 60, 'Tracking'), -(4, 61, 'Suchmaschinen'),(4, 62, 'Referrer'),(4, 63, 'Gruppen'),(4, 64, 'Generatoren'),(4, 65, 'Warenkörbe'),(4, 66, 'Tags'),(4, 67, 'Suche'), -(4, 68, 'Anhänge'),(4, 69, 'Konfigurationsinformationen'),(4, 70, 'Leistung'),(4, 71, 'Kundenservice'),(4, 72, 'Webservice'),(4, 73, 'Lagerbewegungen'), -(4, 80, 'Module und Themenkatalog'),(4, 81, 'Mein Konto'),(4, 82, 'Shops'),(4, 83, 'Themen'),(4, 84, 'Geotargeting'),(4, 85, 'Steuerregeln'),(4, 86, 'Log'), -(4, 87,'Home'), (4, 88, 'Shops'), (4, 89, 'Group Shops'), (4, 90, 'Shop Urls'),(4, 91, 'Genders'),(4, 92, 'SQL Manager'), -(4, 93, 'Products'), -(4, 94, 'Categories'), -(4, 95, 'Stock'), -(4, 96, 'Warehouses'), -(4, 97, 'Stock Management'), -(4, 98, 'Stock instant state'), -(4, 99, 'Stock cover'), -(4, 100, 'Supply orders'), -(4, 101, 'Combinations generator'), -(4, 102, 'Accounting'), -(4, 103, 'Account Number Management'), -(4, 104, 'Export'), -(4, 105, 'CMS categories'), -(4, 106, 'CMS pages'), -(4, 108, 'Configuration'), -(4, 109, 'Catalog price rules'), -(4, 110, 'Outstanding'); - -INSERT INTO `PREFIX_tab_lang` (`id_lang`, `id_tab`, `name`) VALUES -(5, 1, 'Catalogo'),(5, 2, 'Clienti'),(5, 3, 'Ordini'),(5, 4, 'Pagamento'), -(5, 5, 'Spedizione'),(5, 6, 'Stat'),(5, 7, 'Moduli'),(5, 8, 'Preferenze'),(5, 9, 'Strumenti'),(5, 10, 'Produttori'),(5, 11, 'Attributi e Gruppi'), -(5, 12, 'Indirizzi'),(5, 13, 'Status'),(5, 14, 'Voucher'),(5, 15, 'Valute'),(5, 16, 'Tasse'),(5, 17, 'Corrieri'),(5, 18, 'Nazioni'), -(5, 19, 'Zone'),(5, 20, 'Fasce di prezzo'),(5, 21, 'Fasce di peso'),(5, 22, 'Posizioni'),(5, 23, 'Database'),(5, 24, 'E-mail'),(5, 26, 'Immagine'), -(5, 27, 'Prodotti'),(5, 28, 'Contatti'),(5, 29, 'Impiegati'),(5, 30, 'Profili'),(5, 31, 'Permessi'),(5, 32, 'Lingue'),(5, 33, 'Traduzioni'), -(5, 34, 'Fornitori'),(5, 35, 'Tab'),(5, 36, 'Caratteristiche'),(5, 37, 'Accesso rapido'),(5, 38, 'Temi'),(5, 39, 'Informazioni di contatto'),(5, 40, 'Alias'), -(5, 41, 'Importa'),(5, 42, 'Fatture'),(5, 43, 'Cerca'),(5, 44, 'Localizzazione'),(5, 46, 'Stati'),(5, 47, 'Resi merci'),(5, 48, 'PDF'), -(5, 49, 'Note di credito'),(5, 52, 'Sottodomini'),(5, 53, 'DB backup'),(5, 54, 'Messaggi ordine'), -(5, 55, 'Note di consegna'),(5, 56, 'SEO & URLs'),(5, 57, 'CMS'),(5, 58, 'Mappatura immagine'),(5, 59, 'Messaggi cliente'),(5, 60, 'Rintracciare'), -(5, 61, 'Motori di ricerca'),(5, 62, 'Referenti'),(5, 63, 'Gruppi'),(5, 64, 'Generatori'),(5, 65, 'Carrelli shopping'),(5, 66, 'Tag'),(5, 67, 'Cerca'), -(5, 68, 'Allegati'),(5, 69, 'Informazioni di configurazione'),(5, 70, 'Performance'),(5, 71, 'Servizio clienti'),(5, 72, 'Webservice'),(5, 73, 'Movimenti magazzino'), -(5, 80, 'Moduli & Temi catalogo'),(5, 81, 'Il mio Account'),(5, 82, 'Negozi'),(5, 83, 'Temi'),(5, 84, 'Geolocalizzazione'),(5, 85, 'Regimi fiscali'),(5, 86, 'Log'), -(5, 87,'Home'), (5, 88, 'Shops'), (5, 89, 'Group Shops'), (5, 90, 'Shop Urls'),(5, 91, 'Genders'),(5, 92, 'SQL Manager'), -(5, 93, 'Products'), -(5, 94, 'Categories'), -(5, 95, 'Stock'), -(5, 96, 'Warehouses'), -(5, 97, 'Stock Management'), -(5, 98, 'Stock instant state'), -(5, 99, 'Stock cover'), -(5, 100, 'Supply orders'), -(5, 101, 'Combinations generator'), -(5, 102, 'Accounting'), -(5, 103, 'Account Number Management'), -(5, 104, 'Export'), -(5, 105, 'CMS categories'), -(5, 106, 'CMS pages'), -(5, 108, 'Configuration'), -(5, 109, 'Catalog price rules'), -(5, 110, 'Outstanding'); - -INSERT IGNORE INTO `PREFIX_tab_lang` (`id_tab`, `id_lang`, `name`) - (SELECT `id_tab`, id_lang, (SELECT tl.`name` - FROM `PREFIX_tab_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_tab`=`PREFIX_tab`.`id_tab`) - FROM `PREFIX_lang` CROSS JOIN `PREFIX_tab`); - -INSERT INTO `PREFIX_quick_access` (`id_quick_access`, `link`, `new_window`) VALUES -(1, 'index.php', 0),(2, '../', 1),(3, 'index.php?controller=AdminCategories&addcategory', 0), -(4, 'index.php?controller=AdminProducts&addproduct', 0),(5, 'index.php?controller=AdminCartRules&addcart_rule', 0); - -INSERT INTO `PREFIX_quick_access_lang` (`id_quick_access`, `id_lang`, `name`) VALUES -(1, 1, 'Home'),(1, 2, 'Accueil'),(1, 3, 'Inicio'),(1, 4, 'Start'),(1, 5, 'Home page'), -(2, 1, 'My Shop'),(2, 2, 'Ma boutique'),(2, 3, 'Mi tienda'),(2, 4, 'Mein Shop'),(2, 5, 'Il mio negozio'), -(3, 1, 'New category'),(3, 2, 'Nouvelle catégorie'),(3, 3, 'Nueva categoría'),(3, 4, 'Neue Kategorie'),(3, 5, 'Nuova categoria'), -(4, 1, 'New product'),(4, 2, 'Nouveau produit'),(4, 3, 'Nuevo producto'),(4, 4, 'Neues Produkt'),(4, 5, 'Nuovo prodotto'), -(5, 1, 'New voucher'),(5, 2, 'Nouveau bon de réduction'),(5, 3, 'Nuevo cupón'),(5, 4, 'Neuer Ermäßigungsgutschein'),(5, 5, 'Nuovo buono sconto'); - -INSERT INTO `PREFIX_order_return_state` (`id_order_return_state`, `color`) VALUES (1, 'RoyalBlue'),(2, 'BlueViolet'),(3, 'LimeGreen'),(4, 'Crimson'),(5, '#108510'); - -INSERT INTO `PREFIX_order_return_state_lang` (`id_order_return_state`, `id_lang`, `name`) VALUES -(1, 1, 'Waiting for confirmation'),(2, 1, 'Waiting for package'),(3, 1, 'Package received'),(4, 1, 'Return denied'),(5, 1, 'Return completed'), -(1, 2, 'En attente de confirmation'),(2, 2, 'En attente du colis'),(3, 2, 'Colis reçu'),(4, 2, 'Retour refusé'),(5, 2, 'Retour terminé'), -(1, 3, 'Pendiente de confirmación'),(2, 3, 'En espera de paquetes'),(3, 3, 'Paquetes recibidos'),(4, 3, 'Volver negó'),(5, 3, 'Diligenciados'), -(1, 4, 'Bestätigung wird erwartet'),(2, 4, 'Paket wird erwartet'),(3, 4, 'Paket erhalten'),(4, 4, 'Rücksendung abgelehnt'),(5, 4, 'Rücksendung beendet'), -(1, 5, 'In attesa di conferma'),(2, 5, 'In attesa del pacco'),(3, 5, 'Pacco ricevuto'),(4, 5, 'Restituzione non accettata'),(5, 5, 'Restituzione terminata'); - -INSERT INTO `PREFIX_meta` (`id_meta`, `page`) VALUES -(1, '404'), -(2, 'best-sales'), -(3, 'contact-form'), -(4, 'index'), -(5, 'manufacturer'), -(6, 'new-products'), -(7, 'password'), -(8, 'prices-drop'), -(9, 'sitemap'), -(10, 'supply'), -(11, 'address'), -(12, 'addresses'), -(13, 'authentication'), -(14, 'cart'), -(15, 'discount'), -(16, 'history'), -(17, 'identity'), -(18, 'my-account'), -(19, 'order-follow'), -(20, 'order-slip'), -(21, 'order'), -(22, 'search'), -(23, 'stores'), -(24, 'order-opc'), -(25, 'guest-tracking'); - -INSERT INTO `PREFIX_meta_lang` (`id_meta`, `id_shop`, `id_lang`, `title`, `description`, `keywords`, `url_rewrite`) VALUES -(1, 1, 1, '404 error', 'This page cannot be found', 'error, 404, not found', 'page-not-found'), -(1, 1, 2, 'Erreur 404', 'Cette page est introuvable', 'erreur, 404, introuvable', 'page-non-trouvee'), -(1, 1, 3, 'Error 404', 'Esta página no se encuentra', 'error, 404, No se ha encontrado', 'pagina-no-encuentra'), -(2, 1, 1, 'Best sales', 'Our best sales', 'best sales', 'best-sales'), -(2, 1, 2, 'Meilleures ventes', 'Liste de nos produits les mieux vendus', 'meilleures ventes', 'meilleures-ventes'), -(2, 1, 3, 'Los más vendidos', 'Lista de los de mayor venta de productos', 'los más vendidos', 'mas-vendidos'), -(3, 1, 1, 'Contact us', 'Use our form to contact us', 'contact, form, e-mail', 'contact-us'), -(3, 1, 2, 'Contactez-nous', 'Utilisez notre formulaire pour nous contacter', 'contact, formulaire, e-mail', 'contactez-nous'), -(3, 1, 3, 'Contáctenos', 'Use nuestro formulario de contacto con nosotros', 'formulario de contacto, e-mail', 'contactenos'), -(4, 1, 1, '', 'Shop powered by PrestaShop', 'shop, prestashop', ''), -(4, 1, 2, '', 'Boutique propulsée par PrestaShop', 'boutique, prestashop', ''), -(4, 1, 3, '', 'Shop powered by PrestaShop', 'tienda, prestashop', ''), -(5, 1, 1, 'Manufacturers', 'Manufacturers list', 'manufacturer', 'manufacturers'), -(5, 1, 2, 'Fabricants', 'Liste de nos fabricants', 'fabricants', 'fabricants'), -(5, 1, 3, 'Fabricantes', 'Lista de Fabricantes', 'fabricantes', 'fabricantes'), -(6, 1, 1, 'New products', 'Our new products', 'new, products', 'new-products'), -(6, 1, 2, 'Nouveaux produits', 'Liste de nos nouveaux produits', 'nouveau, produit', 'nouveaux-produits'), -(6, 1, 3, 'Nuevos Productos', 'Lista de nuestros nuevos productos', 'nuevo, productos', 'nuevos-productos'), -(7, 1, 1, 'Forgot your password', 'Enter your e-mail address used to register in goal to get e-mail with your new password', 'forgot, password, e-mail, new, reset', 'password-recovery'), -(7, 1, 2, 'Mot de passe oublié', 'Renseignez votre adresse e-mail afin de recevoir votre nouveau mot de passe.', 'mot de passe, oublié, e-mail, nouveau, regénération', 'mot-de-passe-oublie'), -(7, 1, 3, 'Olvidaste tu contraseña', 'Ingrese su dirección de correo electrónico para recibir su nueva contraseña.', 'contraseña, has olvidado, e-mail, nuevo, regeneración', 'contrasena-olvidado'), -(8, 1, 1, 'Prices drop', 'Our special products', 'special, prices drop', 'prices-drop'), -(8, 1, 2, 'Promotions', 'Nos produits en promotion', 'promotion, réduction', 'promotions'), -(8, 1, 3, 'Promociones', 'Nuestros productos promocionales', 'promoción, reducción', 'promocion'), -(9, 1, 1, 'Sitemap', 'Lost ? Find what your are looking for', 'sitemap', 'sitemap'), -(9, 1, 2, 'Plan du site', 'Perdu ? Trouvez ce que vous cherchez', 'plan, site', 'plan-du-site'), -(9, 1, 3, 'Mapa del sitio', '¿Perdido? Encuentra lo que buscas', 'plan, sitio', 'mapa-del-sitio'), -(10, 1, 1, 'Suppliers', 'Suppliers list', 'supplier', 'supplier'), -(10, 1, 2, 'Fournisseurs', 'Liste de nos fournisseurs', 'fournisseurs', 'fournisseurs'), -(10, 1, 3, 'Proveedores', 'Lista de Proveedores', 'proveedores', 'proveedores'), -(11, 1, 1, 'Address', '', '', 'address'), -(11, 1, 2, 'Adresse', '', '', 'adresse'), -(11, 1, 3, 'Dirección', '', '', 'direccion'), -(12, 1, 1, 'Addresses', '', '', 'addresses'), -(12, 1, 2, 'Adresses', '', '', 'adresses'), -(12, 1, 3, 'Direcciones', '', '', 'direcciones'), -(13, 1, 1, 'Authentication', '', '', 'authentication'), -(13, 1, 2, 'Authentification', '', '', 'authentification'), -(13, 1, 3, 'Autenticación', '', '', 'autenticacion'), -(14, 1, 1, 'Cart', '', '', 'cart'), -(14, 1, 2, 'Panier', '', '', 'panier'), -(14, 1, 3, 'Carro de la compra', '', '', 'carro-de-la-compra'), -(15, 1, 1, 'Discount', '', '', 'discount'), -(15, 1, 2, 'Bons de réduction', '', '', 'bons-de-reduction'), -(15, 1, 3, 'Descuento', '', '', 'descuento'), -(16, 1, 1, 'Order history', '', '', 'order-history'), -(16, 1, 2, 'Historique des commandes', '', '', 'historique-des-commandes'), -(16, 1, 3, 'Historial de pedidos', '', '', 'historial-de-pedidos'), -(17, 1, 1, 'Identity', '', '', 'identity'), -(17, 1, 2, 'Identité', '', '', 'identite'), -(17, 1, 3, 'Identidad', '', '', 'identidad'), -(18, 1, 1, 'My account', '', '', 'my-account'), -(18, 1, 2, 'Mon compte', '', '', 'mon-compte'), -(18, 1, 3, 'Mi Cuenta', '', '', 'mi-cuenta'), -(19, 1, 1, 'Order follow', '', '', 'order-follow'), -(19, 1, 2, 'Détails de la commande', '', '', 'details-de-la-commande'), -(19, 1, 3, 'Devolución de productos', '', '', 'devolucion-de-productos'), -(20, 1, 1, 'Order slip', '', '', 'order-slip'), -(20, 1, 2, 'Avoirs', '', '', 'avoirs'), -(20, 1, 3, 'Vales', '', '', 'vales'), -(21, 1, 1, 'Order', '', '', 'order'), -(21, 1, 2, 'Commande', '', '', 'commande'), -(21, 1, 3, 'Carrito', '', '', 'carrito'), -(22, 1, 1, 'Search', '', '', 'search'), -(22, 1, 2, 'Recherche', '', '', 'recherche'), -(22, 1, 3, 'Buscar', '', '', 'buscar'), -(23, 1, 1, 'Stores', '', '', 'stores'), -(23, 1, 2, 'Magasins', '', '', 'magasins'), -(23, 1, 3, 'Tiendas', '', '', 'tiendas'), -(24, 1, 1, 'Order', '', '', 'quick-order'), -(24, 1, 2, 'Commande', '', '', 'commande-rapide'), -(24, 1, 3, 'Carrito', '', '', 'pedido-rapido'), -(25, 1, 1, 'Guest tracking', '', '', 'guest-tracking'), -(25, 1, 2, 'Suivi de commande invité', '', '', 'suivi-commande-invite'), -(25, 1, 3, 'Estado del pedido', '', '', 'estado-pedido'), -(1, 1, 4, 'Fehler 404', 'Seite wurde nicht gefunden', 'Fehler 404, nicht gefunden', 'seite-nicht-gefunden'), -(2, 1, 4, 'Verkaufshits', 'Unsere Verkaufshits', 'Verkaufshits', 'verkaufshits'), -(3, 1, 4, 'Kontaktieren Sie uns', 'Nutzen Sie unser Kontaktformular', 'Kontakt, Formular, E-Mail', 'kontaktieren-sie-uns'), -(4, 1, 4, '', 'Shop powered by PrestaShop', 'Shop, prestashop', ''), -(5, 1, 4, 'Hersteller', 'Herstellerliste', 'Hersteller', 'hersteller'), -(6, 1, 4, 'Neue Produkte', 'Unsere neuen Produkte', 'neu, Produkte', 'neue-Produkte'), -(7, 1, 4, 'Kennwort vergessen', 'Geben Sie die E-Mailadresse ein, die Sie zum Einloggen benutzen, damit Sie eine E-Mail mit dem neuen Kennwort erhalt', 'vergessen, Kennwort, E-Mail, neu, Reset', 'kennwort-wiederherstellung'), -(8, 1, 4, 'Angebote', 'Unsere Sonderangebote', 'besonders, Angebote', 'angebote'), -(9, 1, 4, 'Sitemap', 'Verloren? Finden Sie, was Sie suchen', 'sitemap', 'sitemap'), -(10, 1, 4, 'Zulieferer', 'Zuliefererliste', 'Zulieferer', 'zulieferer'), -(11, 1, 4, 'Adresse', '', '', 'adresse'), -(12, 1, 4, 'Adressen', '', '', 'adressen'), -(13, 1, 4, 'Authentifizierung', '', '', 'authentifizierung'), -(14, 1, 4, 'Warenkorb', '', '', 'warenkorb'), -(15, 1, 4, 'Discount', '', '', 'discount'), -(16, 1, 4, 'Bestellungsverlauf', '', '', 'bestellungsverlauf'), -(17, 1, 4, 'Kennung', '', '', 'kennung'), -(18, 1, 4, 'Mein Konto', '', '', 'mein-Konto'), -(19, 1, 4, 'Bestellungsverfolgung', '', '', 'bestellungsverfolgung'), -(20, 1, 4, 'Bestellschein', '', '', 'bestellschein'), -(21, 1, 4, 'Bestellung', '', '', 'bestellung'), -(22, 1, 4, 'Suche', '', '', 'suche'), -(23, 1, 4, 'Shops', '', '', 'shops'), -(24, 1, 4, 'Bestellung', '', '', 'schnell-bestellung'), -(25, 1, 4, 'Auftragsverfolgung Gast', '', '', 'auftragsverfolgung-gast'), -(1, 1, 5, 'errore 404', 'Impossibile trovare questa pagina', 'errore, 404, non trovato', 'pagina-non-trovata'), -(2, 1, 5, 'Vendite migliori', 'Le nostre vendite migliori', 'vendite migliori', 'vendite-migliori'), -(3, 1, 5, 'Contattaci', 'Usa il nostro modulo per contattarci', 'contatto, modulo, e-mail', 'contattaci'), -(4, 1, 5, '', 'Negozio powered by PrestaShop', 'negozio, prestashop', ''), -(5, 1, 5, 'Produttori', 'Elenco produttori', 'produttore', 'produttori'), -(6, 1, 5, 'Nuovi prodotti', 'I nostri nuovi prodotti', 'nuovi, prodotti', 'nuovi-prodotti'), -(7, 1, 5, 'Hai dimenticato la password', 'Inserisci l''indirizzo e-mail usato per registrarti per poter ottenere una e-mail with con la tua nuova password', 'dimenticato, password, e-mail, nuovo, reset', 'password-recupero'), -(8, 1, 5, 'Riduzioni prezzi', 'I nostri prodotti speciali', 'speciali, riduzione prezzi', 'riduzione-prezzi'), -(9, 1, 5, 'Mappa del sito', 'Ti sei perso? Trova quello che stai cercando', 'sitemap', 'sitemap'), -(10, 1, 5, 'Fornitori', 'Elenco fornitori', 'fornitori', 'fornitore'), -(11, 1, 5, 'Indirizzo', '', '', 'indirizzo'), -(12, 1, 5, 'Indirizzi', '', '', 'indirizzi'), -(13, 1, 5, 'Autenticazione', '', '', 'autenticazione'), -(14, 1, 5, 'Carrello', '', '', 'carrello'), -(15, 1, 5, 'Sconto', '', '', 'sconto'), -(16, 1, 5, 'Storico ordine', '', '', 'storico-ordine'), -(17, 1, 5, 'Identità', '', '', 'identita'), -(18, 1, 5, 'Il mio account', '', '', 'il-mio-account'), -(19, 1, 5, 'Seguito ordine', '', '', 'seguito-ordine'), -(20, 1, 5, 'Nota di ordine', '', '', 'nota-di-ordine'), -(21, 1, 5, 'Ordine', '', '', 'ordine'), -(22, 1, 5, 'Cerca', '', '', 'cerca'), -(23, 1, 5, 'Negozi', '', '', 'negozi'), -(24, 1, 5, 'Ordine', '', '', 'ordine-veloce'), -(25, 1, 5, 'Ospite di monitoraggio', '', '', 'ospite-monitoraggio'); - -/* Stats */ -INSERT INTO `PREFIX_operating_system` (`name`) VALUES ('Windows XP'),('Windows Vista'),('MacOsX'),('Linux'); -INSERT INTO `PREFIX_web_browser` (`name`) VALUES ('Safari'),('Firefox 2.x'),('Firefox 3.x'),('Opera'),('IE 6.x'),('IE 7.x'),('IE 8.x'),('Google Chrome'); -INSERT INTO `PREFIX_page_type` (`id_page_type`, `name`) VALUES -(13, 'authentication.php'),(11, 'best-sales.php'),(2, 'category.php'),(7, 'cms.php'),(12, 'contact-form.php'),(5, 'index.php'),(4, 'manufacturer.php'), -(3, 'order.php'),(10, 'prices-drop.php'),(1, 'product.php'),(8, 'search.php'),(14, 'sitemap.php'),(9, 'stores.php'),(6, 'supplier.php'); -INSERT INTO `PREFIX_search_engine` (`server`,`getvar`) -VALUES ('google','q'),('aol','q'),('yandex','text'),('ask.com','q'),('nhl.com','q'),('yahoo','p'),('baidu','wd'), -('lycos','query'),('exalead','q'),('search.live','q'),('voila','rdata'),('altavista','q'),('bing','q'),('daum','q'), -('eniro','search_word'),('naver','query'),('msn','q'),('netscape','query'),('cnn','query'),('about','terms'),('mamma','query'), -('alltheweb','q'),('virgilio','qs'),('alice','qs'),('najdi','q'),('mama','query'),('seznam','q'),('onet','qt'),('szukacz','q'), -('yam','k'),('pchome','q'),('kvasir','q'),('sesam','q'),('ozu','q'),('terra','query'),('mynet','q'),('ekolay','q'),('rambler','words'); - -/* SubDomains */ -INSERT INTO `PREFIX_subdomain` (`id_subdomain`, `name`) VALUES (NULL, 'www'); - -/* CMS */ -INSERT INTO `PREFIX_cms` (`id_cms`, `id_cms_category`, `position`, `active`) VALUES (1, 1, 0, 1), (2, 1, 1, 1), (3, 1, 2, 1), (4, 1, 3, 1), (5, 1, 4, 1); -INSERT INTO `PREFIX_cms_shop` (`id_cms`, `id_shop`) VALUES (1,1), (2,1), (3,1), (4,1), (5,1); -INSERT INTO `PREFIX_cms_lang` (`id_cms`, `id_lang`, `meta_title`, `meta_description`, `meta_keywords`, `content`, `link_rewrite`) VALUES -(1, 1, 'Delivery', 'Our terms and conditions of delivery', 'conditions, delivery, delay, shipment, pack', 'Packages are generally dispatched within 2 days after receipt of payment and are shipped via UPS with tracking and drop-off without signature. If you prefer delivery by UPS Extra with required signature, an additional cost will be applied, so please contact us before choosing this method. Whichever shipment choice you make, we will provide you with a link to track your package online.
Shipping fees include handling and packing fees as well as postage costs. Handling fees are fixed, whereas transport fees vary according to total weight of the shipment. We advise you to group your items in one order. We cannot group two distinct orders placed separately, and shipping fees will apply to each of them. Your package will be dispatched at your own risk, but special care is taken to protect fragile objects.
Boxes are amply sized and your items are well-protected.
Les colis sont généralement expédiés en 48h après réception de votre paiement. Le mode d''expédition standard est le Colissimo suivi, remis sans signature. Si vous souhaitez une remise avec signature, un coût supplémentaire s''applique, merci de nous contacter. Quel que soit le mode d''expédition choisi, nous vous fournirons dès que possible un lien qui vous permettra de suivre en ligne la livraison de votre colis.
Les frais d''expédition comprennent l''emballage, la manutention et les frais postaux. Ils peuvent contenir une partie fixe et une partie variable en fonction du prix ou du poids de votre commande. Nous vous conseillons de regrouper vos achats en une unique commande. Nous ne pouvons pas grouper deux commandes distinctes et vous devrez vous acquitter des frais de port pour chacune d''entre elles. Votre colis est expédié à vos propres risques, un soin particulier est apporté au colis contenant des produits fragiles..
Les colis sont surdimensionnés et protégés.
Concept and production:
This Web site was created using PrestaShop™ open-source software.
', 'legal-notice'), -(2, 2, 'Mentions légales', 'Mentions légales', 'mentions, légales, crédits', 'Concept et production :
Ce site internet a été réalisé en utilisant la solution open-source PrestaShop™ .
', 'mentions-legales'), -(3, 1, 'Terms and conditions of use', 'Our terms and conditions of use', 'conditions, terms, use, sell', 'Here is the rule 1 content
\r\nHere is the rule 2 content
\r\nHere is the rule 3 content
', 'terms-and-conditions-of-use'), -(3, 2, 'Conditions d''utilisation', 'Nos conditions générales de ventes', 'conditions, utilisation, générales, ventes', 'Contenu de la règle numéro 1
\r\nContenu de la règle numéro 2
\r\nContenu de la règle numéro 3
', 'conditions-generales-de-ventes'), -(4, 1, 'About us', 'Learn more about us', 'about us, informations', 'Our company
\r\nOur team
\r\nInformations
', 'about-us'), -(4, 2, 'A propos', 'Apprenez-en d''avantage sur nous', 'à propos, informations', 'Notre entreprise
\r\nNotre équipe
\r\nInformations
', 'a-propos'), -(5, 1, 'Secure payment', 'Our secure payment mean', 'secure payment, ssl, visa, mastercard, paypal', 'With SSL
\r\nAbout this services
', 'secure-payment'), -(5, 2, 'Paiement sécurisé', 'Notre offre de paiement sécurisé', 'paiement sécurisé, ssl, visa, mastercard, paypal', 'Avec SSL
\r\nA propos de ces services
', 'paiement-securise'), -(1, 3, 'Entrega', 'Nuestras condiciones de entrega', 'condiciones, plazos de entrega, transporte, paquetería', 'Los paquetes son generalmente enviados en 48 horas después de la recepción de su pago. La moda es el estándar expédition Colissimo seguido, entrega sin firma. Si desea una entrega con la firma, un cargo adicional, gracias al contacto con nosotros. Sea cual sea el método de envío seleccionado, vamos a presentar lo antes posible, un vínculo que le permite rastrear el envío en línea de su paquete.
Gastos de envío incluyen el embalaje, la manipulación y envío. Pueden contener un fijo y una parte variable basado en el precio o el peso de su solicitud. Le recomendamos que para consolidar sus compras en un solo comando. No podemos grupo de dos órdenes distintos y hay que pagar gastos de envío para cada uno. Su paquete es enviado a su propio riesgo, se presta especial atención a las parcelas que contienen objetos frágiles ..
Los paquetes son de gran tamaño y protegidas.
Concepto y producción:
Este sitio web fue creado utilizando la solución de código abierto PrestaShop™.
Contenido de la Regla Número 1
\r\nContenido de la Regla N º 2
\r\nContenido de la Regla Número 3
', 'condiciones-de-uso'), -(4, 3, 'Sobre', 'Conozca más sobre nosotros', 'sobre, información', 'SSL
\r\nAcerca de estos servicios
', 'pago-seguro'), -(1, 4, 'Lieferung', 'Unsere Lieferbedingungen', 'Bedingungen, Lieferung, Frist, Versand, Verpackung', 'Pakete werden normalerweise 2 Tage nach Zahlungseingang mit UPS mit Bestellverfolgemöglichkeit und Ablieferung ohne Unterschrift geliefert. Wenn Sie lieber eine UPS-Sendung per Einschreiben erhalten möchten, entstehen zusätzliche Kosten. Bitte kontaktieren Sie uns, bevor Sie dieses Liefermethode wählen. Wir senden Ihnen einen Link für die Bestellverfolgung unabhängig davon, welche Liefermethode Sie wählen.
Die Versandkosten beinhalten Lade- und Verpackungsgebühren sowie die Portokosten. Die Verladegebühren stehen fest, wobei Transportkosten schwanken, je nach Gesamtgewicht des Pakets. Wir raten Ihnen, mehrere Artikel in einer Bestellung zusammenzufassen. Wir können zwei verschiedene Bestellungen nicht zusammenlegen, und die Versandkosten werden separat für jede Bestellung gerechnet. Ihr Paket wird auf Ihr Risiko versandt, aber zerbrechliche Ware wird besonders sorgsam behandelt.
Die Versandschachteln sind weit geschnitten und ihre Ware wird gut geschützt verpackt.
Konzept und Gestaltung:
Diese Webseite wurde hergestellt unter Verwendung von PrestaShop™ open-source software.
', 'rechtliche-hinweise'), -(3, 4, 'Allgemeine Nutzungsbedingungen', 'Unsere allgemeinen Nutzungsbedingungen', 'Voraussetzungen, Bedingungen, nutzen, verkaufen', 'Here is the rule 1 content
\r\nHere is the rule 2 content
\r\nHere is the rule 3 content
', 'allgemeine-nutzungsbedingungen'), -(4, 4, 'Über uns', 'Learn more about us', 'über uns, Informationen', 'Our company
\r\nOur team
\r\nInformations
', 'uber-uns'), -(5, 4, 'Sichere Zahlung', 'Unsere Sicherheits-Zahlungsmethoden', 'Sichere Zahlung, SSL, Visa, MasterCard, PayPal', 'With SSL
\r\nAbout this services
', 'sichere-zahlung'), -(1, 5, 'Consegna', 'I nostri termini e condizioni di consegna', 'condizioni, consegna, tempo, spedizione, pacco', 'I pacchi sono solitamente spediti entro 2 giorni dopo il ricevimento del pagamento e inviati tramite UPS con controllo e consegna senza firma. Se preferisci una consegna con UPS Extra con richiesta di firma, sarà applicato un costo aggiuntivo, pertanto contattaci prima di scegliere questo mezzo. Qualunque tipo di spedizione tu scelga, ti garantiremo un link per controllare online il percorso del tuo pacco.
Le spese di spedizione comprendono le spese di imballaggio e affrancatura. Le spese di imballaggio sono fisse, mentre quelle di trasporto variano in base al peso totale della spedizione. Ti consigliamo di raggruppare i tuoi articoli in un unico ordine. Non possiamo raggruppare due ordini distinti eseguiti separatamente, e ad ognuno di esso saranno applicate le spese di spedizione. Il tuo pacco sarà inviato sotto la tua responsabilità, ma un''attenzione particolare è riservata agli oggetti fragili.
Le scatole hanno dimensioni ragionevoli e i tuoi articoli sono ben protetti.
Creazione e produzione:
Questo sito web è stato realizzato usando un software open-sourcePrestaShop™.
', 'nota-legale'), -(3, 5, 'Termini e condizioni d''uso', 'I nostri termini e condizioni d''uso', 'condizioni, termini, uso, vendi', 'Ecco il contenuto della regola 1
\r\nEcco il contenuto della regola 2
\r\nEcco il contenuto della regola 3
', 'termini-e-condizioni-di-uso'), -(4, 5, 'Chi siamo', 'Per sapere chi siamo', 'chi siamo, informazioni', 'La nostra azienda
\r\nIl nostro team
\r\nInformazioni
', 'chi-siamo'), -(5, 5, 'Pagamento sicuro', 'Il nostro mezzo di pagamento sicuro', 'pagamento sicuro, ssl, visa, mastercard, paypal', 'Con SSL
\r\nCosa sono questi servizi
', 'pagamento-sicuro'); - -INSERT INTO `PREFIX_cms_category_lang` (`id_cms_category`, `id_lang`, `name`, `description`, `link_rewrite`, `meta_title`, `meta_keywords`, `meta_description`) VALUES -(1, 1, 'Home', '', 'home', NULL, NULL, NULL), -(1, 2, 'Accueil', '', 'home', NULL, NULL, NULL), -(1, 3, 'Inicio', '', 'home', NULL, NULL, NULL), -(1, 4, 'Start', '', 'Start', NULL, NULL, NULL), -(1, 5, 'Home', '', 'home', NULL, NULL, NULL); - -INSERT INTO `PREFIX_cms_category` (`id_cms_category`, `id_parent`, `level_depth`, `active`, `date_add`, `date_upd`) VALUES(1, 0, 0, 1, NOW(), NOW()); - -/* Carrier */ -INSERT INTO `PREFIX_carrier` (`id_carrier`, `id_reference`, `id_tax_rules_group`, `name`, `active`, `deleted`, `shipping_handling`, `position`) VALUES (1, 1, 0, 0, 1, 0, 0, 0); - -INSERT INTO `PREFIX_carrier_group` (`id_carrier`, `id_group`) (SELECT 1, `id_group` FROM `PREFIX_group`); - -INSERT INTO `PREFIX_carrier_lang` (`id_carrier`, `id_lang`, `delay`) VALUES (1, 1, 'Pick up in-store'),(1, 2, 'Retrait au magasin'),(1, 3, 'Recogida en la tienda'),(1, 4, 'Abholung im Geschäft'),(1, 5, 'Ritiro in magazzino'); - -INSERT INTO `PREFIX_carrier_zone` (`id_carrier`, `id_zone`) VALUES (1, 1); - -INSERT INTO `PREFIX_carrier_shop` (`id_carrier`, `id_shop`) VALUES (1,1); - -/* Timezone */ -INSERT INTO `PREFIX_timezone` (`name`) VALUES ('Africa/Abidjan'),('Africa/Accra'),('Africa/Addis_Ababa'),('Africa/Algiers'), -('Africa/Asmara'),('Africa/Asmera'),('Africa/Bamako'),('Africa/Bangui'),('Africa/Banjul'),('Africa/Bissau'),('Africa/Blantyre'), -('Africa/Brazzaville'),('Africa/Bujumbura'),('Africa/Cairo'),('Africa/Casablanca'),('Africa/Ceuta'),('Africa/Conakry'),('Africa/Dakar'), -('Africa/Dar_es_Salaam'),('Africa/Djibouti'),('Africa/Douala'),('Africa/El_Aaiun'),('Africa/Freetown'),('Africa/Gaborone'),('Africa/Harare'), -('Africa/Johannesburg'),('Africa/Kampala'),('Africa/Khartoum'),('Africa/Kigali'),('Africa/Kinshasa'),('Africa/Lagos'),('Africa/Libreville'), -('Africa/Lome'),('Africa/Luanda'),('Africa/Lubumbashi'),('Africa/Lusaka'),('Africa/Malabo'),('Africa/Maputo'),('Africa/Maseru'), -('Africa/Mbabane'),('Africa/Mogadishu'),('Africa/Monrovia'),('Africa/Nairobi'),('Africa/Ndjamena'),('Africa/Niamey'),('Africa/Nouakchott'), -('Africa/Ouagadougou'),('Africa/Porto-Novo'),('Africa/Sao_Tome'),('Africa/Timbuktu'),('Africa/Tripoli'),('Africa/Tunis'),('Africa/Windhoek'), -('America/Adak'),('America/Anchorage '),('America/Anguilla'),('America/Antigua'),('America/Araguaina'),('America/Argentina/Buenos_Aires'), -('America/Argentina/Catamarca'),('America/Argentina/ComodRivadavia'),('America/Argentina/Cordoba'),('America/Argentina/Jujuy'), -('America/Argentina/La_Rioja'),('America/Argentina/Mendoza'),('America/Argentina/Rio_Gallegos'),('America/Argentina/Salta'), -('America/Argentina/San_Juan'),('America/Argentina/San_Luis'),('America/Argentina/Tucuman'),('America/Argentina/Ushuaia'),('America/Aruba'), -('America/Asuncion'),('America/Atikokan'),('America/Atka'),('America/Bahia'),('America/Barbados'),('America/Belem'),('America/Belize'), -('America/Blanc-Sablon'),('America/Boa_Vista'),('America/Bogota'),('America/Boise'),('America/Buenos_Aires'),('America/Cambridge_Bay'), -('America/Campo_Grande'),('America/Cancun'),('America/Caracas'),('America/Catamarca'),('America/Cayenne'),('America/Cayman'),('America/Chicago'), -('America/Chihuahua'),('America/Coral_Harbour'),('America/Cordoba'),('America/Costa_Rica'),('America/Cuiaba'),('America/Curacao'), -('America/Danmarkshavn'),('America/Dawson'),('America/Dawson_Creek'),('America/Denver'),('America/Detroit'),('America/Dominica'), -('America/Edmonton'),('America/Eirunepe'),('America/El_Salvador'),('America/Ensenada'),('America/Fort_Wayne'),('America/Fortaleza'), -('America/Glace_Bay'),('America/Godthab'),('America/Goose_Bay'),('America/Grand_Turk'),('America/Grenada'),('America/Guadeloupe'), -('America/Guatemala'),('America/Guayaquil'),('America/Guyana'),('America/Halifax'),('America/Havana'),('America/Hermosillo'), -('America/Indiana/Indianapolis'),('America/Indiana/Knox'),('America/Indiana/Marengo'),('America/Indiana/Petersburg'), -('America/Indiana/Tell_City'),('America/Indiana/Vevay'),('America/Indiana/Vincennes'),('America/Indiana/Winamac'),('America/Indianapolis'), -('America/Inuvik'),('America/Iqaluit'),('America/Jamaica'),('America/Jujuy'),('America/Juneau'),('America/Kentucky/Louisville'), -('America/Kentucky/Monticello'),('America/Knox_IN'),('America/La_Paz'),('America/Lima'),('America/Los_Angeles'),('America/Louisville'), -('America/Maceio'),('America/Managua'),('America/Manaus'),('America/Marigot'),('America/Martinique'),('America/Mazatlan'),('America/Mendoza'), -('America/Menominee'),('America/Merida'),('America/Mexico_City'),('America/Miquelon'),('America/Moncton'),('America/Monterrey'), -('America/Montevideo'),('America/Montreal'),('America/Montserrat'),('America/Nassau'),('America/New_York'),('America/Nipigon'), -('America/Nome'),('America/Noronha'),('America/North_Dakota/Center'),('America/North_Dakota/New_Salem'),('America/Panama'), -('America/Pangnirtung'),('America/Paramaribo'),('America/Phoenix'),('America/Port-au-Prince'),('America/Port_of_Spain'),('America/Porto_Acre'), -('America/Porto_Velho'),('America/Puerto_Rico'),('America/Rainy_River'),('America/Rankin_Inlet'),('America/Recife'),('America/Regina'), -('America/Resolute'),('America/Rio_Branco'),('America/Rosario'),('America/Santarem'),('America/Santiago'),('America/Santo_Domingo'), -('America/Sao_Paulo'),('America/Scoresbysund'),('America/Shiprock'),('America/St_Barthelemy'),('America/St_Johns'),('America/St_Kitts'), -('America/St_Lucia'),('America/St_Thomas'),('America/St_Vincent'),('America/Swift_Current'),('America/Tegucigalpa'),('America/Thule'), -('America/Thunder_Bay'),('America/Tijuana'),('America/Toronto'),('America/Tortola'),('America/Vancouver'),('America/Virgin'),('America/Whitehorse'), -('America/Winnipeg'),('America/Yakutat'),('America/Yellowknife'),('Antarctica/Casey'),('Antarctica/Davis'),('Antarctica/DumontDUrville'), -('Antarctica/Mawson'),('Antarctica/McMurdo'),('Antarctica/Palmer'),('Antarctica/Rothera'),('Antarctica/South_Pole'),('Antarctica/Syowa'), -('Antarctica/Vostok'),('Arctic/Longyearbyen'),('Asia/Aden'),('Asia/Almaty'),('Asia/Amman'),('Asia/Anadyr'),('Asia/Aqtau'),('Asia/Aqtobe'), -('Asia/Ashgabat'),('Asia/Ashkhabad'),('Asia/Baghdad'),('Asia/Bahrain'),('Asia/Baku'),('Asia/Bangkok'),('Asia/Beirut'),('Asia/Bishkek'), -('Asia/Brunei'),('Asia/Calcutta'),('Asia/Choibalsan'),('Asia/Chongqing'),('Asia/Chungking'),('Asia/Colombo'),('Asia/Dacca'),('Asia/Damascus'), -('Asia/Dhaka'),('Asia/Dili'),('Asia/Dubai'),('Asia/Dushanbe'),('Asia/Gaza'),('Asia/Harbin'),('Asia/Ho_Chi_Minh'),('Asia/Hong_Kong'),('Asia/Hovd'), -('Asia/Irkutsk'),('Asia/Istanbul'),('Asia/Jakarta'),('Asia/Jayapura'),('Asia/Jerusalem'),('Asia/Kabul'),('Asia/Kamchatka'),('Asia/Karachi'), -('Asia/Kashgar'),('Asia/Kathmandu'),('Asia/Katmandu'),('Asia/Kolkata'),('Asia/Krasnoyarsk'),('Asia/Kuala_Lumpur'),('Asia/Kuching'),('Asia/Kuwait'), -('Asia/Macao'),('Asia/Macau'),('Asia/Magadan'),('Asia/Makassar'),('Asia/Manila'),('Asia/Muscat'),('Asia/Nicosia'),('Asia/Novosibirsk'),('Asia/Omsk'), -('Asia/Oral'),('Asia/Phnom_Penh'),('Asia/Pontianak'),('Asia/Pyongyang'),('Asia/Qatar'),('Asia/Qyzylorda'),('Asia/Rangoon'),('Asia/Riyadh'), -('Asia/Saigon'),('Asia/Sakhalin'),('Asia/Samarkand'),('Asia/Seoul'),('Asia/Shanghai'),('Asia/Singapore'),('Asia/Taipei'),('Asia/Tashkent'), -('Asia/Tbilisi'),('Asia/Tehran'),('Asia/Tel_Aviv'),('Asia/Thimbu'),('Asia/Thimphu'),('Asia/Tokyo'),('Asia/Ujung_Pandang'),('Asia/Ulaanbaatar'), -('Asia/Ulan_Bator'),('Asia/Urumqi'),('Asia/Vientiane'),('Asia/Vladivostok'),('Asia/Yakutsk'),('Asia/Yekaterinburg'),('Asia/Yerevan'), -('Atlantic/Azores'),('Atlantic/Bermuda'),('Atlantic/Canary'),('Atlantic/Cape_Verde'),('Atlantic/Faeroe'),('Atlantic/Faroe'),('Atlantic/Jan_Mayen'), -('Atlantic/Madeira'),('Atlantic/Reykjavik'),('Atlantic/South_Georgia'),('Atlantic/St_Helena'),('Atlantic/Stanley'),('Australia/ACT'), -('Australia/Adelaide'),('Australia/Brisbane'),('Australia/Broken_Hill'),('Australia/Canberra'),('Australia/Currie'),('Australia/Darwin'), -('Australia/Eucla'),('Australia/Hobart'),('Australia/LHI'),('Australia/Lindeman'),('Australia/Lord_Howe'),('Australia/Melbourne'),('Australia/North'), -('Australia/NSW'),('Australia/Perth'),('Australia/Queensland'),('Australia/South'),('Australia/Sydney'),('Australia/Tasmania'),('Australia/Victoria'), -('Australia/West'),('Australia/Yancowinna'),('Europe/Amsterdam'),('Europe/Andorra'),('Europe/Athens'),('Europe/Belfast'),('Europe/Belgrade'), -('Europe/Berlin'),('Europe/Bratislava'),('Europe/Brussels'),('Europe/Bucharest'),('Europe/Budapest'),('Europe/Chisinau'),('Europe/Copenhagen'), -('Europe/Dublin'),('Europe/Gibraltar'),('Europe/Guernsey'),('Europe/Helsinki'),('Europe/Isle_of_Man'),('Europe/Istanbul'),('Europe/Jersey'), -('Europe/Kaliningrad'),('Europe/Kiev'),('Europe/Lisbon'),('Europe/Ljubljana'),('Europe/London'),('Europe/Luxembourg'),('Europe/Madrid'),('Europe/Malta'), -('Europe/Mariehamn'),('Europe/Minsk'),('Europe/Monaco'),('Europe/Moscow'),('Europe/Nicosia'),('Europe/Oslo'),('Europe/Paris'),('Europe/Podgorica'), -('Europe/Prague'),('Europe/Riga'),('Europe/Rome'),('Europe/Samara'),('Europe/San_Marino'),('Europe/Sarajevo'),('Europe/Simferopol'),('Europe/Skopje'), -('Europe/Sofia'),('Europe/Stockholm'),('Europe/Tallinn'),('Europe/Tirane'),('Europe/Tiraspol'),('Europe/Uzhgorod'),('Europe/Vaduz'),('Europe/Vatican'), -('Europe/Vienna'),('Europe/Vilnius'),('Europe/Volgograd'),('Europe/Warsaw'),('Europe/Zagreb'),('Europe/Zaporozhye'),('Europe/Zurich'), -('Indian/Antananarivo'),('Indian/Chagos'),('Indian/Christmas'),('Indian/Cocos'),('Indian/Comoro'),('Indian/Kerguelen'),('Indian/Mahe'),('Indian/Maldives'), -('Indian/Mauritius'),('Indian/Mayotte'),('Indian/Reunion'),('Pacific/Apia'),('Pacific/Auckland'),('Pacific/Chatham'),('Pacific/Easter'),('Pacific/Efate'), -('Pacific/Enderbury'),('Pacific/Fakaofo'),('Pacific/Fiji'),('Pacific/Funafuti'),('Pacific/Galapagos'),('Pacific/Gambier'),('Pacific/Guadalcanal'), -('Pacific/Guam'),('Pacific/Honolulu'),('Pacific/Johnston'),('Pacific/Kiritimati'),('Pacific/Kosrae'),('Pacific/Kwajalein'),('Pacific/Majuro'), -('Pacific/Marquesas'),('Pacific/Midway'),('Pacific/Nauru'),('Pacific/Niue'),('Pacific/Norfolk'),('Pacific/Noumea'),('Pacific/Pago_Pago'),('Pacific/Palau'), -('Pacific/Pitcairn'),('Pacific/Ponape'),('Pacific/Port_Moresby'),('Pacific/Rarotonga'),('Pacific/Saipan'),('Pacific/Samoa'),('Pacific/Tahiti'), -('Pacific/Tarawa'),('Pacific/Tongatapu'),('Pacific/Truk'),('Pacific/Wake'),('Pacific/Wallis'),('Pacific/Yap'),('Brazil/Acre'),('Brazil/DeNoronha'), -('Brazil/East'),('Brazil/West'),('Canada/Atlantic'),('Canada/Central'),('Canada/East-Saskatchewan'),('Canada/Eastern'),('Canada/Mountain'), -('Canada/Newfoundland'),('Canada/Pacific'),('Canada/Saskatchewan'),('Canada/Yukon'),('CET'),('Chile/Continental'),('Chile/EasterIsland'),('CST6CDT'), -('Cuba'),('EET'),('Egypt'),('Eire'),('EST'),('EST5EDT'),('Etc/GMT'),('Etc/GMT+0'),('Etc/GMT+1'),('Etc/GMT+10'),('Etc/GMT+11'),('Etc/GMT+12'), -('Etc/GMT+2'),('Etc/GMT+3'),('Etc/GMT+4'),('Etc/GMT+5'),('Etc/GMT+6'),('Etc/GMT+7'),('Etc/GMT+8'),('Etc/GMT+9'),('Etc/GMT-0'),('Etc/GMT-1'), -('Etc/GMT-10'),('Etc/GMT-11'),('Etc/GMT-12'),('Etc/GMT-13'),('Etc/GMT-14'),('Etc/GMT-2'),('Etc/GMT-3'),('Etc/GMT-4'),('Etc/GMT-5'),('Etc/GMT-6'), -('Etc/GMT-7'),('Etc/GMT-8'),('Etc/GMT-9'),('Etc/GMT0'),('Etc/Greenwich'),('Etc/UCT'),('Etc/Universal'),('Etc/UTC'),('Etc/Zulu'),('Factory'),('GB'), -('GB-Eire'),('GMT'),('GMT+0'),('GMT-0'),('GMT0'),('Greenwich'),('Hongkong'),('HST'),('Iceland'),('Iran'),('Israel'),('Jamaica'),('Japan'),('Kwajalein'), -('Libya'),('MET'),('Mexico/BajaNorte'),('Mexico/BajaSur'),('Mexico/General'),('MST'),('MST7MDT'),('Navajo'),('NZ'),('NZ-CHAT'),('Poland'),('Portugal'), -('PRC'),('PST8PDT'),('ROC'),('ROK'),('Singapore'),('Turkey'),('UCT'),('Universal'),('US/Alaska'),('US/Aleutian'),('US/Arizona'),('US/Central'), -('US/East-Indiana'),('US/Eastern'),('US/Hawaii'),('US/Indiana-Starke'),('US/Michigan'),('US/Mountain'),('US/Pacific'),('US/Pacific-New'),('US/Samoa'), -('UTC'),('W-SU'),('WET'),('Zulu'); - -INSERT INTO `PREFIX_group` (`id_group`, `reduction`, `date_add`, `date_upd`) VALUES (1, 0, NOW(), NOW()), (2, 0, NOW(), NOW()), (3, 0, NOW(), NOW()); - -INSERT INTO `PREFIX_group_lang` (`id_group`, `id_lang`, `name`) VALUES -(1, 1, 'Visitor'),(1, 2, 'Visiteur'),(1, 3, 'Visitor'),(1, 4, 'Visitor'),(1, 5, 'Visitor'), -(2, 1, 'Guest'),(2, 2, 'Invité'),(2, 3, 'Guest'),(2, 4, 'Guest'),(2, 5, 'Guest'), -(3, 1, 'Customer'),(3, 2, 'Client'),(3, 3, 'Customer'),(3, 4, 'Customer'),(3, 5, 'Customer'); -INSERT INTO `PREFIX_group_group_shop` (`id_group`, `id_group_shop`) (SELECT `id_group`, 1 FROM `PREFIX_group`); - -INSERT INTO `PREFIX_category_group` (`id_category`, `id_group`) (SELECT 1, `id_group` FROM `PREFIX_group`); - -INSERT INTO `PREFIX_stock_mvt_reason` (`id_stock_mvt_reason`, `sign`, `date_add`, `date_upd`) VALUES -(1, 1, NOW(), NOW()), -(2, -1, NOW(), NOW()), -(3, -1, NOW(), NOW()), -(4, -1, NOW(), NOW()), -(5, 1, NOW(), NOW()), -(6, -1, NOW(), NOW()), -(7, 1, NOW(), NOW()), -(8, 1, NOW(), NOW()); - -INSERT INTO `PREFIX_stock_mvt_reason_lang` (`id_stock_mvt_reason`, `id_lang`, `name`) VALUES -(1, 1, 'Increase'), -(1, 2, 'Augmenter'), -(1, 3, 'Aumentar'), -(1, 4, 'Erhöhen'), -(1, 5, 'Increase'), -(2, 1, 'Decrease'), -(2, 2, 'Diminuer'), -(2, 3, 'Disminuir'), -(2, 4, 'Reduzieren'), -(2, 5, 'Decrease'), -(3, 1, 'Customer Order'), -(3, 2, 'Commande client'), -(3, 3, 'Pedido'), -(3, 4, 'Bestellung'), -(3, 5, 'Ordine'), -(4, 1, 'Regulation following an inventory of stock'), -(4, 2, 'Régularisation du stock suite à un inventaire'), -(4, 3, 'Regulation following an inventory of stock'), -(4, 4, 'Regulation following an inventory of stock'), -(4, 5, 'Regulation following an inventory of stock'), -(5, 1, 'Regulation following an inventory of stock'), -(5, 2, 'Régularisation du stock suite à un inventaire'), -(5, 3, 'Regulation following an inventory of stock'), -(5, 4, 'Regulation following an inventory of stock'), -(5, 5, 'Regulation following an inventory of stock'), -(6, 1, 'Transfer to another warehouse'), -(6, 2, 'Transfert vers un autre entrepôt'), -(6, 3, 'Transfer to another warehouse'), -(6, 4, 'Transfer to another warehouse'), -(6, 5, 'Transfer to another warehouse'), -(7, 1, 'Transfer from another warehouse'), -(7, 2, 'Transfert depuis un autre entrepôt'), -(7, 3, 'Transfer from another warehouse'), -(7, 4, 'Transfer from another warehouse'), -(7, 5, 'Transfer from another warehouse'), -(8, 1, 'Supply Order'), -(8, 2, 'Commande fournisseur'), -(8, 3, 'Supply Order'), -(8, 4, 'Supply Order'), -(8, 5, 'Supply Order'); - -INSERT INTO `PREFIX_address_format` (`id_country`, `format`) -(SELECT `id_country` as id_country, 'firstname lastname\ncompany\nvat_number\naddress1\naddress2\npostcode city\nCountry:name\nphone' as format FROM `PREFIX_country`); - -UPDATE `PREFIX_address_format` set `format`='firstname lastname -company -address1 address2 -city, State:name postcode -Country:name -phone' where `id_country`=21; - -INSERT INTO `PREFIX_group_shop` (`id_group_shop`, `name`, `active`, `deleted`, `share_stock`, `share_customer`, `share_order`) VALUES (1, 'Default', 1, 0, 0, 0, 0); -INSERT INTO `PREFIX_shop` (`id_shop`, `id_group_shop`, `name`, `id_category`, `id_theme`, `active`, `deleted`) VALUES (1, 1, 'Default', 1, 1, 1, 0); - -INSERT INTO `PREFIX_theme` (`id_theme`, `name`, `directory`) - VALUES (1, 'default', 'default'); - -UPDATE `PREFIX_address_format` set `format`= 'firstname lastname -company -vat_number -address1 -address2 -postcode city -State:name -Country:name -phone' where `id_country`=10; - -INSERT INTO `PREFIX_gender` (`id_gender`, `type`) VALUES -(1, 0), -(2, 1), -(3, 1); - -INSERT INTO `PREFIX_gender_lang` (`id_gender`, `id_lang`, `name`) VALUES -(1, 1, 'Mr.'), -(1, 2, 'M.'), -(1, 3, 'Sr.'), -(1, 4, 'Herr'), -(1, 5, 'Sig.'), -(2, 1, 'Ms.'), -(2, 2, 'Mme'), -(2, 3, 'Sra.'), -(2, 4, 'Frau'), -(2, 5, 'Sig.ra'), -(3, 1, 'Miss'), -(3, 2, 'Melle'), -(3, 3, 'Miss'), -(3, 4, 'Miss'), -(3, 5, 'Miss'); - -UPDATE `PREFIX_address_format` set `format` = 'firstname lastname -company -address1 -address2 -city State:name postcode -Country:name -phone' WHERE `PREFIX_address_format`.`id_country` = 4; - -INSERT INTO `PREFIX_supply_order_state` (`id_supply_order_state`, `delivery_note`, `editable`, `receipt_state`, `pending_receipt`, `enclosed`, `color`) VALUES -(1, 0, 1, 0, 0, 0, '#faab00'), -(2, 1, 0, 0, 0, 0, '#273cff'), -(3, 0, 0, 0, 1, 0, '#ff37f5'), -(4, 0, 0, 1, 1, 0, '#ff3e33'), -(5, 0, 0, 1, 0, 1, '#00d60c'), -(6, 0, 0, 0, 0, 1, '#666666'); - -INSERT INTO `PREFIX_supply_order_state_lang` (`id_supply_order_state`, `id_lang`, `name`) VALUES -(1, 1, 'creation in progress'), -(1, 2, 'Création en cours'), -(1, 3, 'Création in progress'), -(1, 4, 'Création in progress'), -(1, 5, 'Création in progress'), -(2, 1, 'Order validated'), -(2, 2, 'Commande validée'), -(2, 3, 'Order validated'), -(2, 4, 'Order validated'), -(2, 5, 'Order validated'), -(3, 1, 'Pending receipt'), -(3, 2, 'Attente de réception'), -(3, 3, 'Pending receipt'), -(3, 4, 'Pending receipt'), -(3, 5, 'Pending receipt'), -(4, 1, 'Order received in part'), -(4, 2, 'Commande réceptionnée partiellement'), -(4, 3, 'Order received in part'), -(4, 4, 'Order received in part'), -(4, 5, 'Order received in part'), -(5, 1, 'Order received completely'), -(5, 2, 'Commande réceptionnée totalement'), -(5, 3, 'Order received completely'), -(5, 4, 'Order received completely'), -(5, 5, 'Order received completely'), -(6, 1, 'order canceled'), -(6, 2, 'Commande annulée'), -(6, 3, 'order canceled'), -(6, 4, 'order canceled'), -(6, 5, 'order canceled'); - -INSERT INTO `PREFIX_risk` (`id_risk`, `percent`, `color`) VALUES -(1, 0, 'LimeGreen'), -(2, 35, 'DarkOrange'), -(3, 75, 'Crimson'), -(4, 100, '#ec2e15'); - -INSERT INTO `PREFIX_risk_lang` (`id_risk`, `id_lang`, `name`) VALUES -(1, 1, 'None'), -(2, 1, 'Low'), -(3, 1, 'Middle'), -(4, 1, 'Hight'), -(1, 2, 'Aucun'), -(2, 2, 'Faible'), -(3, 2, 'Moyen'), -(4, 2, 'Élevé'), -(1, 3, 'None'), -(2, 3, 'Low'), -(3, 3, 'Middle'), -(4, 3, 'Hight'), -(1, 4, 'None'), -(2, 4, 'Low'), -(3, 4, 'Middle'), -(4, 4, 'Hight'), -(1, 5, 'None'), -(2, 5, 'Low'), -(3, 5, 'Middle'), -(4, 5, 'Hight'); - -INSERT INTO `PREFIX_category_shop` (`id_category`, `id_shop`) VALUES -(1, 1); diff --git a/install-dev/sql/index.php b/install-dev/sql/index.php deleted file mode 100644 index 4e2611d37..000000000 --- a/install-dev/sql/index.php +++ /dev/null @@ -1,36 +0,0 @@ - -* @copyright 2007-2011 PrestaShop SA -* @version Release: $Revision$ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file diff --git a/install-dev/sql/upgrade/0.9.1.2.sql b/install-dev/sql/upgrade/0.9.1.2.sql deleted file mode 100644 index 4ff1333c6..000000000 --- a/install-dev/sql/upgrade/0.9.1.2.sql +++ /dev/null @@ -1,30 +0,0 @@ -/* STRUCTURE */ -CREATE TABLE `PREFIX_product_sale` ( -`id_product` INT( 10 ) UNSIGNED NOT NULL , -`quantity` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0', -`nb_vente` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0', -`date_upd` DATE NOT NULL , -PRIMARY KEY ( `id_product` ) -) ENGINE = MYISAM DEFAULT CHARSET=utf8; - -ALTER TABLE `PREFIX_image_type` - ADD `manufacturers` BOOL NOT NULL DEFAULT '1' AFTER `categories`; - -ALTER TABLE `PREFIX_address` - ADD `id_manufacturer` INT( 10 ) UNSIGNED NOT NULL AFTER `id_customer` ; - -ALTER TABLE `PREFIX_address` - ADD `id_supplier` INT( 10 ) UNSIGNED NOT NULL AFTER `id_manufacturer` ; - -ALTER TABLE `PREFIX_order_discount` - ADD `id_discount` INT( 10 ) UNSIGNED NOT NULL AFTER `id_order` ; - -ALTER TABLE `PREFIX_discount` - ADD `quantity_per_user` INT( 10 ) UNSIGNED NOT NULL DEFAULT '1' AFTER `quantity` ; - -ALTER TABLE `PREFIX_contact` CHANGE `position` `position` TINYINT( 2 ) UNSIGNED NOT NULL DEFAULT '0'; - -/* CONTENTS */ - -/* CONFIGURATION VARIABLE */ - diff --git a/install-dev/sql/upgrade/0.9.1.sql b/install-dev/sql/upgrade/0.9.1.sql deleted file mode 100644 index 5b0fabb09..000000000 --- a/install-dev/sql/upgrade/0.9.1.sql +++ /dev/null @@ -1,9 +0,0 @@ -/* STRUCTURE */ -ALTER TABLE `PREFIX_product` CHANGE `price` `price` DECIMAL(13,6) NOT NULL DEFAULT '0.000000'; - -/* CONTENTS */ -DELETE FROM `PREFIX_carrier_lang` WHERE `id_carrier` = (SELECT c.`id_carrier` FROM `PREFIX_carrier` c WHERE c.`name` = 'My download manager' LIMIT 1); -DELETE FROM `PREFIX_carrier` WHERE `name` = 'My download manager'; - -/* Conf vars */ -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_TAX_NO', '0', NOW(), NOW()); \ No newline at end of file diff --git a/install-dev/sql/upgrade/0.9.5.1.sql b/install-dev/sql/upgrade/0.9.5.1.sql deleted file mode 100644 index 31bc41c99..000000000 --- a/install-dev/sql/upgrade/0.9.5.1.sql +++ /dev/null @@ -1,66 +0,0 @@ -/* STRUCTURE */ -ALTER TABLE `PREFIX_order_state` - ADD `logable` TINYINT(1) NOT NULL DEFAULT 0; -ALTER TABLE `PREFIX_product_sale` - CHANGE `nb_vente` `sale_nbr` INT(10) UNSIGNED NOT NULL DEFAULT 0; -ALTER TABLE `PREFIX_carrier` - CHANGE `tax` `id_tax` INT(10) UNSIGNED NULL DEFAULT 0 AFTER `id_carrier`; -ALTER TABLE `PREFIX_carrier` - ADD `shipping_handling` TINYINT(1) UNSIGNED NOT NULL DEFAULT 1 AFTER `deleted`; -ALTER TABLE `PREFIX_address` - CHANGE `id_country` `id_country` INT(10) UNSIGNED NOT NULL DEFAULT 0, - CHANGE `id_customer` `id_customer` INT(10) UNSIGNED NOT NULL DEFAULT 0, - CHANGE `id_manufacturer` `id_manufacturer` INT(10) UNSIGNED NOT NULL DEFAULT 0; -RENAME TABLE `PREFIX_product_attribute_combinaison` TO `PREFIX_product_attribute_combination`; -ALTER TABLE `PREFIX_product_attribute_combination` - DROP INDEX `product_attribute_combinaison_index`, - ADD PRIMARY KEY (`id_attribute`, `id_product_attribute`); - -CREATE TABLE `PREFIX_carrier_zone` ( - id_carrier int(10) unsigned NOT NULL, - id_zone int(10) unsigned NOT NULL, - INDEX carrier_zone_index(id_carrier, id_zone) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_tax_zone` ( - id_tax int(10) unsigned NOT NULL, - id_zone int(10) unsigned NOT NULL, - INDEX tax_zone_index(id_tax, id_zone) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - - -/* CONTENTS */ - -/* Rename old tab */ -UPDATE `PREFIX_tab_lang` SET `name` = 'Produits' - WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminPPreferences') - AND `id_lang` = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'fr'); -UPDATE `PREFIX_tab_lang` SET `name` = 'Emails' - WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminEmails') - AND `id_lang` = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'fr'); -UPDATE `PREFIX_tab_lang` SET `name` = 'Images' - WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminImages') - AND `id_lang` = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'fr'); - -/* New BankWire state */ -UPDATE `PREFIX_order_state` SET `logable` = 1 WHERE `id_order_state` < 6 AND `id_order_state` > 1; -INSERT INTO `PREFIX_order_state` (`id_order_state`, `invoice`, `send_email`, `color`, `unremovable`, `logable`) VALUES (10, 0, 1, 'lightblue', 1, 0); -INSERT INTO `PREFIX_order_state_lang` (`id_order_state`, `id_lang`, `name`, `template`) VALUES -(10, 1, 'Awaiting bank wire payment', 'bankwire'), -(10, 2, 'En attente du paiement par virement bancaire', 'bankwire'); - -/* New hook */ -INSERT INTO `PREFIX_hook` (`name`, `title`, `description`, `position`) VALUES ('updateOrderStatus', 'Order''s status update event', 'Launch modules when the order''s status of an order change.', 0); - -/* Adding zones for tax/carrier */ -INSERT INTO `PREFIX_tax_zone` (id_tax, id_zone) (SELECT id_tax, id_zone FROM `PREFIX_tax` CROSS JOIN `PREFIX_zone`); -INSERT INTO `PREFIX_carrier_zone` (id_carrier, id_zone) (SELECT id_carrier, id_zone FROM `PREFIX_carrier` CROSS JOIN `PREFIX_zone`); - -/* CONFIGURATION VARIABLE */ - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES -('PREFIX_PURCHASE_MINIMUM', '0', NOW(), NOW()), -('PREFIX_SHOP_ENABLE', '1', NOW(), NOW()); - -/* Adding tab Contact */ -/* PHP:add_new_tab(AdminContact, fr:Coordonnées|es:Datos|en:Contact Information|de:Kontaktinformation|it:Informazioni di contatto, 8); */; \ No newline at end of file diff --git a/install-dev/sql/upgrade/0.9.5.2.sql b/install-dev/sql/upgrade/0.9.5.2.sql deleted file mode 100644 index 57f9b765c..000000000 --- a/install-dev/sql/upgrade/0.9.5.2.sql +++ /dev/null @@ -1,5 +0,0 @@ -/* STRUCTURE */ - -/* CONTENTS */ - -/* CONFIGURATION VARIABLE */ \ No newline at end of file diff --git a/install-dev/sql/upgrade/0.9.6.1.sql b/install-dev/sql/upgrade/0.9.6.1.sql deleted file mode 100644 index fa371d9b9..000000000 --- a/install-dev/sql/upgrade/0.9.6.1.sql +++ /dev/null @@ -1,51 +0,0 @@ -/* STRUCTURE */ - -CREATE TABLE `PREFIX_alias` ( - alias varchar(255) NOT NULL, - search varchar(255) NOT NULL, - active tinyint(1) NOT NULL default 1, - id_alias int(10) NOT NULL auto_increment, - PRIMARY KEY (id_alias), - UNIQUE KEY alias (alias) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -ALTER TABLE `PREFIX_configuration` - ADD UNIQUE `name` (`name`); -ALTER TABLE `PREFIX_product` - ADD `wholesale_price` DECIMAL( 13, 6 ) NOT NULL AFTER `price`; -ALTER TABLE `PREFIX_range_weight` - CHANGE `delimiter1` `delimiter1` DECIMAL( 13, 6 ) NOT NULL DEFAULT '0.000000'; -ALTER TABLE `PREFIX_range_weight` - CHANGE `delimiter2` `delimiter2` DECIMAL( 13, 6 ) NOT NULL DEFAULT '0.000000'; - ALTER TABLE `PREFIX_discount_type_lang` - CHANGE `name` `name` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL; - ALTER TABLE `PREFIX_product` - CHANGE `bargain` `on_sale` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0; -ALTER TABLE `PREFIX_image_type` - ADD `suppliers` BOOL NOT NULL DEFAULT 1; - -/* CONTENTS */ - -/* Adding tab alias */ -INSERT INTO `PREFIX_tab` (`id_parent`, `class_name`, `position`) VALUES ((SELECT tmp.id_tab FROM (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminTools' LIMIT 1) AS tmp), 'AdminAliases', 9); -INSERT INTO `PREFIX_tab_lang` (id_lang, id_tab, name) ( - SELECT id_lang, - (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminAliases' LIMIT 1), - 'Alias' FROM `PREFIX_lang`); -INSERT INTO `PREFIX_access` (`id_profile`, `id_tab`, `view`, `add`, `edit`, `delete`) - VALUES ('1', (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminAliases' LIMIT 1), '1', '1', '1', '1'); - -/* Adding tab import */ -INSERT INTO `PREFIX_tab` (`id_parent`, `class_name`, `position`) VALUES ((SELECT tmp.id_tab FROM (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminTools' LIMIT 1) AS tmp), 'AdminImport', 10); -INSERT INTO `PREFIX_tab_lang` (id_lang, id_tab, name) ( - SELECT id_lang, - (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminImport' LIMIT 1), - 'Import' FROM `PREFIX_lang`); -INSERT INTO `PREFIX_access` (`id_profile`, `id_tab`, `view`, `add`, `edit`, `delete`) - VALUES ('1', (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminImport' LIMIT 1), '1', '1', '1', '1'); - -INSERT INTO `PREFIX_hook` (`name`, `title`, `description`) -VALUES ('adminOrder', 'Display in Back-Office, tab AdminOrder', 'Launch modules when the tab AdminOrder is displayed on back-office.'); - - -/* CONFIGURATION VARIABLE */ \ No newline at end of file diff --git a/install-dev/sql/upgrade/0.9.6.2.sql b/install-dev/sql/upgrade/0.9.6.2.sql deleted file mode 100644 index c55fefbb8..000000000 --- a/install-dev/sql/upgrade/0.9.6.2.sql +++ /dev/null @@ -1,7 +0,0 @@ -/* STRUCTURE */ - -ALTER TABLE `PREFIX_product` CHANGE `wholesale_price` `wholesale_price` DECIMAL(13, 6) NULL; - -/* CONTENTS */ - -/* CONFIGURATION VARIABLE */ \ No newline at end of file diff --git a/install-dev/sql/upgrade/0.9.7.1.sql b/install-dev/sql/upgrade/0.9.7.1.sql deleted file mode 100644 index 5a8ded7f5..000000000 --- a/install-dev/sql/upgrade/0.9.7.1.sql +++ /dev/null @@ -1,14 +0,0 @@ -/* STRUCTURE */ - -ALTER TABLE `PREFIX_module` ADD INDEX (`name`); - -/* CONTENTS */ - -INSERT INTO `PREFIX_hook` (`name` , `title`, `description`, `position`) VALUES -('footer', 'Footer', 'Add block in footer', 1), -('PDFInvoice', 'PDF Invoice', 'Allow the display of extra informations into the PDF invoice', 0); -UPDATE `PREFIX_hook` SET `description` = 'Add blocks in the header', `position` = '1' WHERE `name` = 'header' LIMIT 1 ; -UPDATE `PREFIX_currency` SET `iso_code` = 'XXX' WHERE `iso_code` IS NULL; - - -/* CONFIGURATION VARIABLE */ \ No newline at end of file diff --git a/install-dev/sql/upgrade/0.9.7.2.sql b/install-dev/sql/upgrade/0.9.7.2.sql deleted file mode 100644 index c0ebf4949..000000000 --- a/install-dev/sql/upgrade/0.9.7.2.sql +++ /dev/null @@ -1,21 +0,0 @@ -/* STRUCTURE */ - -CREATE TABLE `PREFIX_discount_quantity` ( - id_discount_quantity INT UNSIGNED NOT NULL auto_increment, - id_discount_type INT UNSIGNED NOT NULL, - id_product INT UNSIGNED NOT NULL, - id_product_attribute INT UNSIGNED NULL, - quantity INT UNSIGNED NOT NULL, - value DECIMAL(10,2) UNSIGNED NOT NULL, - PRIMARY KEY (id_discount_quantity) -) ENGINE=MYISAM DEFAULT CHARSET=utf8; - -ALTER TABLE `PREFIX_product` ADD quantity_discount BOOL NULL DEFAULT 0 AFTER out_of_stock; - -/* CONTENTS */ - - -/* CONFIGURATION VARIABLE */ - -UPDATE `PREFIX_configuration` SET name = 'PS_TAX', value = 1 WHERE name = 'PS_TAX_NO' AND value = 0; -UPDATE `PREFIX_configuration` SET name = 'PS_TAX', value = 0 WHERE name = 'PS_TAX_NO' AND value = 1; \ No newline at end of file diff --git a/install-dev/sql/upgrade/0.9.sql b/install-dev/sql/upgrade/0.9.sql deleted file mode 100644 index abef1ee07..000000000 --- a/install-dev/sql/upgrade/0.9.sql +++ /dev/null @@ -1,39 +0,0 @@ -/* STRUCTURE */ - -ALTER TABLE `PREFIX_currency` ADD `iso_code` VARCHAR( 3 ) NOT NULL DEFAULT '0' AFTER `name`; -ALTER TABLE `PREFIX_product_attribute` ADD `default_on` TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT '0' AFTER `weight`; -ALTER TABLE `PREFIX_carrier` ADD `tax` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0' AFTER `deleted`; - -ALTER TABLE `PREFIX_order_detail` - ADD `download_hash` VARCHAR(255) default NULL AFTER `tax_rate`, - ADD `download_nb` INT(10) unsigned default 0 AFTER `tax_rate`, - ADD `download_deadline` DATETIME DEFAULT NULL AFTER `tax_rate`; - -CREATE TABLE `PREFIX_product_download` ( - `id_product_download` INT(10) unsigned NOT NULL auto_increment, - `id_product` INT(10) unsigned NOT NULL, - `display_filename` VARCHAR(255) default NULL, - `physically_filename` VARCHAR(255) default NULL, - `date_deposit` DATETIME NOT NULL, - `date_expiration` DATETIME default NULL, - `nb_days_accessible` int(10) unsigned default NULL, - `nb_downloadable` int(10) unsigned default 1, - PRIMARY KEY (`id_product_download`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - - -/* CONTENTS */ - -/* Adding tab Appearance */ -UPDATE `PREFIX_tab` SET `class_name` = 'AdminAppearance' WHERE class_name = 'AdminHomepage'; -UPDATE `PREFIX_tab_lang` SET `name` = 'Appearance' - WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminAppearance'); -UPDATE `PREFIX_tab_lang` SET `name` = 'Apparence' - WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminAppearance') - AND `id_lang` = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'fr'); - -/* Adding iso_code to currency */ -UPDATE `PREFIX_currency` SET `iso_code` = 'XXX'; - -/* Conf vars */ -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_DISPLAY_QTIES', '1', NOW(), NOW()); \ No newline at end of file diff --git a/install-dev/sql/upgrade/1.0.0.1.sql b/install-dev/sql/upgrade/1.0.0.1.sql deleted file mode 100644 index 1aafc5d8f..000000000 --- a/install-dev/sql/upgrade/1.0.0.1.sql +++ /dev/null @@ -1,122 +0,0 @@ -/* PHP */ -/* PHP:latin1_database_to_utf8(); */; - -/* STRUCTURE */ -SET NAMES 'utf8'; - -CREATE TABLE PREFIX_attribute_impact ( - id_attribute_impact int(11) NOT NULL AUTO_INCREMENT, - id_product int(11) NOT NULL, - id_attribute int(11) NOT NULL, - weight float NOT NULL, - price decimal(10,2) NOT NULL, - PRIMARY KEY (id_attribute_impact), - UNIQUE KEY id_product (id_product,id_attribute) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE PREFIX_supplier_lang ( - id_supplier INTEGER UNSIGNED NOT NULL, - id_lang INTEGER UNSIGNED NOT NULL, - description TEXT NULL, - INDEX supplier_lang_index(id_supplier, id_lang) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE PREFIX_manufacturer_lang ( - id_manufacturer INTEGER UNSIGNED NOT NULL, - id_lang INTEGER UNSIGNED NOT NULL, - description TEXT NULL, - INDEX manufacturer_lang_index(id_manufacturer, id_lang) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE PREFIX_state ( - id_state int(10) unsigned NOT NULL AUTO_INCREMENT, - id_country int(11) NOT NULL, - name varchar(64) NOT NULL, - iso_code varchar(3) NOT NULL, - active tinyint(1) NOT NULL default 0, - PRIMARY KEY (id_state) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -ALTER TABLE PREFIX_customer ADD secure_key VARCHAR(32) NOT NULL DEFAULT '-1' AFTER id_gender; -ALTER TABLE PREFIX_orders ADD secure_key VARCHAR(32) NOT NULL DEFAULT '-1' AFTER id_address_invoice; -ALTER TABLE PREFIX_product ADD id_category_default INT NULL AFTER id_tax; -ALTER TABLE PREFIX_category_product ADD position INTEGER UNSIGNED NOT NULL DEFAULT 0 AFTER id_product; -ALTER TABLE PREFIX_product ADD INDEX (id_category_default); -ALTER TABLE PREFIX_order_detail ADD ecotax DECIMAL(10, 2) NOT NULL DEFAULT 0 AFTER tax_rate; -ALTER TABLE PREFIX_employee - CHANGE name lastname VARCHAR(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, - CHANGE surname firstname VARCHAR(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL; -ALTER TABLE PREFIX_address - CHANGE name lastname VARCHAR(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, - CHANGE surname firstname VARCHAR(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL; -ALTER TABLE PREFIX_customer - CHANGE name lastname VARCHAR(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , - CHANGE surname firstname VARCHAR(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL; -ALTER TABLE PREFIX_quick_access ADD new_window TINYINT( 1 ) NOT NULL DEFAULT 0 AFTER id_quick_access; - -/* CONTENTS */ -UPDATE PREFIX_hook_module SET id_hook = 14 WHERE id_hook = 9; -UPDATE PREFIX_quick_access SET new_window = 1 WHERE id_quick_access = 2 LIMIT 1; -INSERT INTO PREFIX_hook (name, title, description, position) VALUES ('orderConfirmation', 'Order confirmation page', 'Called on order confirmation page', 0); -UPDATE PREFIX_order_detail odt - SET product_price = ( - odt.product_price * ( - SELECT conversion_rate FROM PREFIX_currency c, PREFIX_orders o WHERE o.id_order = odt.id_order AND c.id_currency = o.id_currency - ) -); -UPDATE PREFIX_product p SET p.id_category_default = (SELECT id_category FROM PREFIX_category_product cp WHERE cp.id_product = p.id_product GROUP BY id_product ORDER BY cp.id_category ASC); -UPDATE PREFIX_category_product cp SET cp.position= cp.id_product; - -/* NEW TABS */ - -INSERT INTO PREFIX_tab (id_parent, class_name, position) VALUES ((SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminOrders' LIMIT 1) AS tmp), 'AdminPrintPDF', (SELECT tmp.max FROM (SELECT MAX(position) max FROM `PREFIX_tab` WHERE id_parent = (SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminOrders' LIMIT 1) AS tmp )) AS tmp)); -INSERT INTO PREFIX_tab_lang (id_lang, id_tab, name) ( - SELECT id_lang, - (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminPrintPDF' LIMIT 1), - 'Print invoices' FROM PREFIX_lang); -UPDATE `PREFIX_tab_lang` SET `name` = 'Impression factures' - WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminPrintPDF') - AND `id_lang` = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'fr'); -INSERT INTO PREFIX_access (id_profile, id_tab, `view`, `add`, edit, `delete`) VALUES ('1', (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminPrintPDF' LIMIT 1), 1, 1, 1, 1); - -INSERT INTO PREFIX_tab (id_parent, class_name, position) VALUES (-1, 'AdminSearch', 2); -INSERT INTO PREFIX_tab_lang (id_lang, id_tab, name) ( - SELECT id_lang, - (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminSearch' LIMIT 1), - 'Search' FROM PREFIX_lang); -UPDATE `PREFIX_tab_lang` SET `name` = 'Recherche' - WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminSearch') - AND `id_lang` = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'fr'); -INSERT INTO PREFIX_access (id_profile, id_tab, `view`, `add`, edit, `delete`) VALUES ('1', (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminSearch' LIMIT 1), 1, 1, 1, 1); - -INSERT INTO PREFIX_tab (id_parent, class_name, position) VALUES ((SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminPreferences' LIMIT 1) AS tmp), 'AdminLocalization', (SELECT tmp.max FROM (SELECT MAX(position) max FROM `PREFIX_tab` WHERE id_parent = (SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminPreferences' LIMIT 1) AS tmp )) AS tmp)); -INSERT INTO PREFIX_tab_lang (id_lang, id_tab, name) ( - SELECT id_lang, - (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminLocalization' LIMIT 1), - 'Localization' FROM PREFIX_lang); -UPDATE `PREFIX_tab_lang` SET `name` = 'Localisation' - WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminLocalization') - AND `id_lang` = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'fr'); -INSERT INTO PREFIX_access (id_profile, id_tab, `view`, `add`, edit, `delete`) VALUES ('1', (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminLocalization' LIMIT 1), 1, 1, 1, 1); - -INSERT INTO PREFIX_tab (id_parent, class_name, position) VALUES ((SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminShipping' LIMIT 1) AS tmp), 'AdminStates', (SELECT tmp.max FROM (SELECT MAX(position) max FROM `PREFIX_tab` WHERE id_parent = (SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminShipping' LIMIT 1) AS tmp )) AS tmp)); -INSERT INTO PREFIX_tab_lang (id_lang, id_tab, name) ( - SELECT id_lang, - (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminStates' LIMIT 1), - 'States' FROM PREFIX_lang); -UPDATE `PREFIX_tab_lang` SET `name` = 'Etats' - WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminStates') - AND `id_lang` = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'fr'); -INSERT INTO PREFIX_access (`id_profile`, `id_tab`, `view`, `add`, edit, `delete`) VALUES ('1', (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminStates' LIMIT 1), 1, 1, 1, 1); - -INSERT INTO PREFIX_image_type (`name`, `width`, `height`, `products`, `categories`, `manufacturers`, `suppliers`) VALUES ('home', 129, 129, 1, 0, 0, 0); - -/* CONFIGURATION VARIABLE */ -INSERT INTO PREFIX_configuration (name, value, date_add, date_upd) VALUES ('PS_NB_DAYS_NEW_PRODUCT', 20, NOW(), NOW()); -INSERT INTO PREFIX_configuration (name, value, date_add, date_upd) VALUES ('PS_WEIGHT_UNIT', 'kg', NOW(), NOW()); -INSERT INTO PREFIX_configuration (name, value, date_add, date_upd) VALUES ('PS_BLOCK_CART_AJAX', '1', NOW(), NOW()); -INSERT INTO PREFIX_configuration (name, value, date_add, date_upd) VALUES ('PS_FO_PROTOCOL', 'http://', NOW(), NOW()); -UPDATE PREFIX_configuration SET name = 'PS_MAIL_SMTP_PORT', value = 25 WHERE name = 'PS_MAIL_SMTP_PORT' AND value = 'default'; -UPDATE PREFIX_configuration SET name = 'PS_MAIL_SMTP_PORT', value = 465 WHERE name = 'PS_MAIL_SMTP_PORT' AND value = 'secure'; - -/* PHP:add_new_tab(AdminPDF, fr:PDF|es:PDF|en:PDF|de:PDF|it:PDF, 3); */; \ No newline at end of file diff --git a/install-dev/sql/upgrade/1.0.0.2.sql b/install-dev/sql/upgrade/1.0.0.2.sql deleted file mode 100644 index fb0c72687..000000000 --- a/install-dev/sql/upgrade/1.0.0.2.sql +++ /dev/null @@ -1,13 +0,0 @@ - -/* STRUCTURE */ -SET NAMES 'utf8'; - -ALTER TABLE PREFIX_currency CHANGE COLUMN conversion_rate conversion_rate DECIMAL(10,6) NOT NULL; - -/* CONTENTS */ - -INSERT INTO PREFIX_image_type (`name`, `width`, `height`, `products`, `categories`, `manufacturers`, `suppliers`) VALUES ('thickbox', 600, 600, 1, 0, 0, 0); -INSERT INTO PREFIX_image_type (`name`, `width`, `height`, `products`, `categories`, `manufacturers`, `suppliers`) VALUES ('category', 600, 150, 0, 1, 0, 0); -INSERT INTO PREFIX_image_type (`name`, `width`, `height`, `products`, `categories`, `manufacturers`, `suppliers`) VALUES ('thickbox', 129, 129, 1, 0, 0, 0); - -/* CONFIGURATION VARIABLE */ diff --git a/install-dev/sql/upgrade/1.0.0.3.sql b/install-dev/sql/upgrade/1.0.0.3.sql deleted file mode 100644 index e82995b59..000000000 --- a/install-dev/sql/upgrade/1.0.0.3.sql +++ /dev/null @@ -1,441 +0,0 @@ -/* STRUCTURE */ -SET NAMES 'utf8'; - -ALTER TABLE PREFIX_attribute_group_lang DROP INDEX attribute_group_lang_index, ADD PRIMARY KEY (id_attribute_group, id_lang); -ALTER TABLE PREFIX_discount_lang DROP INDEX discount_lang_index, ADD PRIMARY KEY (id_discount, id_lang); -ALTER TABLE PREFIX_discount_type_lang DROP INDEX discount_type_lang_index, ADD PRIMARY KEY (id_discount_type, id_lang); -ALTER TABLE PREFIX_manufacturer_lang DROP INDEX manufacturer_lang_index, ADD PRIMARY KEY (id_manufacturer, id_lang); -ALTER TABLE PREFIX_supplier_lang DROP INDEX supplier_lang_index, ADD PRIMARY KEY (id_supplier, id_lang); -ALTER TABLE PREFIX_profile_lang DROP INDEX profile_lang_index, ADD PRIMARY KEY (id_profile, id_lang); -ALTER TABLE PREFIX_configuration_lang DROP INDEX configuration_lang_index, ADD PRIMARY KEY (id_configuration, id_lang); -ALTER TABLE PREFIX_tab_lang DROP INDEX tab_lang, ADD PRIMARY KEY (id_tab, id_lang); - -ALTER TABLE PREFIX_product ADD id_color_default INT UNSIGNED NULL AFTER id_category_default; -ALTER TABLE PREFIX_attribute_group ADD is_color_group TINYINT(1) NOT NULL DEFAULT 0; -ALTER TABLE PREFIX_attribute ADD color VARCHAR(32) NULL DEFAULT NULL; -ALTER TABLE PREFIX_currency CHANGE conversion_rate conversion_rate DECIMAL(13, 6) NOT NULL ; -ALTER TABLE PREFIX_address ADD id_state INT NULL AFTER id_country; -ALTER TABLE PREFIX_state ADD id_zone INT NULL AFTER id_country; -ALTER TABLE PREFIX_country ADD contains_states tinyint(1) NOT NULL DEFAULT 0; - -UPDATE PREFIX_customer SET secure_key = MD5(RAND()) WHERE secure_key = '-1'; -UPDATE PREFIX_orders o SET secure_key = (SELECT secure_key FROM PREFIX_customer c WHERE c.id_customer = o.id_customer); - -CREATE TABLE PREFIX_order_return ( - id_order_return INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, - id_customer INTEGER UNSIGNED NOT NULL, - id_order INTEGER UNSIGNED NOT NULL, - state tinyint(1) unsigned NOT NULL DEFAULT 0, - question TEXT NOT NULL, - date_add DATETIME NOT NULL, - date_upd DATETIME NOT NULL, - PRIMARY KEY(id_order_return), - INDEX order_return_customer(id_customer) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE PREFIX_order_return_detail ( - id_order_return INTEGER UNSIGNED NOT NULL, - id_order_detail INTEGER UNSIGNED NOT NULL, - product_quantity int(10) unsigned NOT NULL DEFAULT 1, - PRIMARY KEY (id_order_return,id_order_detail) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE PREFIX_order_return_state ( - id_order_return_state int(10) unsigned NOT NULL auto_increment, - color varchar(32) default NULL, - PRIMARY KEY (`id_order_return_state`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE PREFIX_order_return_state_lang ( - id_order_return_state int(10) unsigned NOT NULL, - id_lang int(10) unsigned NOT NULL, - name varchar(64) NOT NULL, - UNIQUE KEY `order_state_lang_index` (`id_order_return_state`,`id_lang`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE PREFIX_order_slip ( - id_order_slip INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, - id_customer INTEGER UNSIGNED NOT NULL, - id_order INTEGER UNSIGNED NOT NULL, - date_add DATETIME NOT NULL, - date_upd DATETIME NOT NULL, - PRIMARY KEY(id_order_slip), - INDEX order_slip_customer(id_customer) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE PREFIX_order_slip_detail ( - id_order_slip INTEGER UNSIGNED NOT NULL, - id_order_detail INTEGER UNSIGNED NOT NULL, - product_quantity int(10) unsigned NOT NULL DEFAULT 0, - PRIMARY KEY (`id_order_slip`,`id_order_detail`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE PREFIX_tax_state ( - id_tax int(10) unsigned NOT NULL, - id_state int(10) unsigned NOT NULL, - INDEX tax_state_index(id_tax, id_state) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -/* CONTENTS */ - -INSERT INTO PREFIX_order_return_state (`id_order_return_state`, `color`) VALUES -(1, '#ADD8E6'), -(2, '#EEDDFF'), -(3, '#DDFFAA'), -(4, '#FFD3D3'), -(5, '#FFFFBB'); - -INSERT INTO PREFIX_order_return_state_lang (`id_order_return_state`, `id_lang`, `name`) VALUES -(1, 1, 'Waiting for confirmation'), -(2, 1, 'Waiting for package'), -(3, 1, 'Package received'), -(4, 1, 'Return denied'), -(5, 1, 'Return completed'), -(1, 2, 'En attente de confirmation'), -(2, 2, 'En attente du colis'), -(3, 2, 'Colis reçu'), -(4, 2, 'Retour refusé'), -(5, 2, 'Retour terminé'); - -UPDATE PREFIX_country SET contains_states = 1 WHERE id_country = 21; - -INSERT INTO `PREFIX_state` (`id_state`, `id_country`, `id_zone`, `name`, `iso_code`, `active`) VALUES -(1, 21, 2, 'Alabama', 'AL', 1), -(2, 21, 2, 'Alaska', 'AK', 1), -(3, 21, 2, 'Arizona', 'AZ', 1), -(4, 21, 2, 'Arkansas', 'AR', 1), -(5, 21, 2, 'California', 'CA', 1), -(6, 21, 2, 'Colorado', 'CO', 1), -(7, 21, 2, 'Connecticut', 'CT', 1), -(8, 21, 2, 'Delaware', 'DE', 1), -(9, 21, 2, 'Florida', 'FL', 1), -(10, 21, 2, 'Georgia', 'GA', 1), -(11, 21, 2, 'Hawaii', 'HI', 1), -(12, 21, 2, 'Idaho', 'ID', 1), -(13, 21, 2, 'Illinois', 'IL', 1), -(14, 21, 2, 'Indiana', 'IN', 1), -(15, 21, 2, 'Iowa', 'IA', 1), -(16, 21, 2, 'Kansas', 'KS', 1), -(17, 21, 2, 'Kentucky', 'KY', 1), -(18, 21, 2, 'Louisiana', 'LA', 1), -(19, 21, 2, 'Maine', 'ME', 1), -(20, 21, 2, 'Maryland', 'MD', 1), -(21, 21, 2, 'Massachusetts', 'MA', 1), -(22, 21, 2, 'Michigan', 'MI', 1), -(23, 21, 2, 'Minnesota', 'MN', 1), -(24, 21, 2, 'Mississippi', 'MS', 1), -(25, 21, 2, 'Missouri', 'MO', 1), -(26, 21, 2, 'Montana', 'MT', 1), -(27, 21, 2, 'Nebraska', 'NE', 1), -(28, 21, 2, 'Nevada', 'NV', 1), -(29, 21, 2, 'New Hampshire', 'NH', 1), -(30, 21, 2, 'New Jersey', 'NJ', 1), -(31, 21, 2, 'New Mexico', 'NM', 1), -(32, 21, 2, 'New York', 'NY', 1), -(33, 21, 2, 'North Carolina', 'NC', 1), -(34, 21, 2, 'North Dakota', 'ND', 1), -(35, 21, 2, 'Ohio', 'OH', 1), -(36, 21, 2, 'Oklahoma', 'OK', 1), -(37, 21, 2, 'Oregon', 'OR', 1), -(38, 21, 2, 'Pennsylvania', 'PA', 1), -(39, 21, 2, 'Rhode Island', 'RI', 1), -(40, 21, 2, 'South Carolina', 'SC', 1), -(41, 21, 2, 'South Dakota', 'SD', 1), -(42, 21, 2, 'Tennessee', 'TN', 1), -(43, 21, 2, 'Texas', 'TX', 1), -(44, 21, 2, 'Utah', 'UT', 1), -(45, 21, 2, 'Vermont', 'VT', 1), -(46, 21, 2, 'Virginia', 'VA', 1), -(47, 21, 2, 'Washington', 'WA', 1), -(48, 21, 2, 'West Virginia', 'WV', 1), -(49, 21, 2, 'Wisconsin', 'WI', 1), -(50, 21, 2, 'Wyoming', 'WY', 1), -(51, 21, 2, 'Puerto Rico', 'PR', 1), -(52, 21, 2, 'US Virgin Islands', 'VI', 1); - -INSERT INTO `PREFIX_lang` (`name`, `active`, `iso_code`) VALUES -('Deutsch (German)', 1, 'de'), -('Español (Spanish)', 1, 'es'), -('Nederlands (Dutch)', 1, 'nl'), -('Bahasa Indonesia (Indonesian)', 1, 'id'), -('Italiano (Italian)', 1, 'it'), -('Język polski (Polish)', 1, 'pl'), -('Português (Portuguese)', 1, 'pt'), -('Čeština (Czech)', 1, 'cs'), -('Pусский язык (Russian)', 0, 'ru'), -('Türkçe (Turkish)', 0, 'tr'), -('Tiếng Việt (Vietnamese)', 0, 'vn'); - -/* NEW LANGS */ - -INSERT IGNORE INTO `PREFIX_tab_lang` (`id_tab`, `id_lang`, `name`) - (SELECT `id_tab`, id_lang, (SELECT tl.`name` - FROM `PREFIX_tab_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_tab`=`PREFIX_tab`.`id_tab`) - FROM `PREFIX_lang` CROSS JOIN `PREFIX_tab`); - -INSERT IGNORE INTO `PREFIX_country_lang` (`id_country`, `id_lang`, `name`) - (SELECT `id_country`, id_lang, (SELECT tl.`name` - FROM `PREFIX_country_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_country`=`PREFIX_country`.`id_country`) - FROM `PREFIX_lang` CROSS JOIN `PREFIX_country`); - -INSERT IGNORE INTO `PREFIX_quick_access_lang` (`id_quick_access`, `id_lang`, `name`) - (SELECT `id_quick_access`, id_lang, (SELECT tl.`name` - FROM `PREFIX_quick_access_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_quick_access`=`PREFIX_quick_access`.`id_quick_access`) - FROM `PREFIX_lang` CROSS JOIN `PREFIX_quick_access`); - -INSERT IGNORE INTO `PREFIX_attribute_group_lang` (`id_attribute_group`, `id_lang`, `name`, `public_name`) - (SELECT `id_attribute_group`, id_lang, (SELECT tl.`name` - FROM `PREFIX_attribute_group_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_attribute_group`=`PREFIX_attribute_group`.`id_attribute_group`), - (SELECT tl.`public_name` - FROM `PREFIX_attribute_group_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_attribute_group`=`PREFIX_attribute_group`.`id_attribute_group`) - FROM `PREFIX_lang` CROSS JOIN `PREFIX_attribute_group`); - -INSERT IGNORE INTO `PREFIX_attribute_lang` (`id_attribute`, `id_lang`, `name`) - (SELECT `id_attribute`, id_lang, (SELECT tl.`name` - FROM `PREFIX_attribute_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_attribute`=`PREFIX_attribute`.`id_attribute`) - FROM `PREFIX_lang` CROSS JOIN `PREFIX_attribute`); - -INSERT IGNORE INTO `PREFIX_carrier_lang` (`id_carrier`, `id_lang`, `delay`) - (SELECT `id_carrier`, id_lang, (SELECT tl.`delay` - FROM `PREFIX_carrier_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_carrier`=`PREFIX_carrier`.`id_carrier`) - FROM `PREFIX_lang` CROSS JOIN `PREFIX_carrier`); - -INSERT IGNORE INTO `PREFIX_contact_lang` (`id_contact`, `id_lang`, `name`, `description`) - (SELECT `id_contact`, id_lang, (SELECT tl.`name` - FROM `PREFIX_contact_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_contact`=`PREFIX_contact`.`id_contact`), - (SELECT tl.`description` - FROM `PREFIX_contact_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_contact`=`PREFIX_contact`.`id_contact`) - FROM `PREFIX_lang` CROSS JOIN `PREFIX_contact`); - -INSERT IGNORE INTO `PREFIX_discount_lang` (`id_discount`, `id_lang`, `description`) - (SELECT `id_discount`, id_lang, (SELECT tl.`description` - FROM `PREFIX_discount_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_discount`=`PREFIX_discount`.`id_discount`) - FROM `PREFIX_lang` CROSS JOIN `PREFIX_discount`); - -INSERT IGNORE INTO `PREFIX_discount_type_lang` (`id_discount_type`, `id_lang`, `name`) - (SELECT `id_discount_type`, id_lang, (SELECT tl.`name` - FROM `PREFIX_discount_type_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_discount_type`=`PREFIX_discount_type`.`id_discount_type`) - FROM `PREFIX_lang` CROSS JOIN `PREFIX_discount_type`); - -INSERT IGNORE INTO `PREFIX_feature_lang` (`id_feature`, `id_lang`, `name`) - (SELECT `id_feature`, id_lang, (SELECT tl.`name` - FROM `PREFIX_feature_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_feature`=`PREFIX_feature`.`id_feature`) - FROM `PREFIX_lang` CROSS JOIN `PREFIX_feature`); - -INSERT IGNORE INTO `PREFIX_feature_value_lang` (`id_feature_value`, `id_lang`, `value`) - (SELECT `id_feature_value`, id_lang, (SELECT tl.`value` - FROM `PREFIX_feature_value_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_feature_value`=`PREFIX_feature_value`.`id_feature_value`) - FROM `PREFIX_lang` CROSS JOIN `PREFIX_feature_value`); - -INSERT IGNORE INTO `PREFIX_image_lang` (`id_image`, `id_lang`, `legend`) - (SELECT `id_image`, id_lang, (SELECT tl.`legend` - FROM `PREFIX_image_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_image`=`PREFIX_image`.`id_image`) - FROM `PREFIX_lang` CROSS JOIN `PREFIX_image`); - -INSERT IGNORE INTO `PREFIX_manufacturer_lang` (`id_manufacturer`, `id_lang`, `description`) - (SELECT `id_manufacturer`, id_lang, (SELECT tl.`description` - FROM `PREFIX_manufacturer_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_manufacturer`=`PREFIX_manufacturer`.`id_manufacturer`) - FROM `PREFIX_lang` CROSS JOIN `PREFIX_manufacturer`); - -INSERT IGNORE INTO `PREFIX_order_return_state_lang` (`id_order_return_state`, `id_lang`, `name`) - (SELECT `id_order_return_state`, id_lang, (SELECT tl.`name` - FROM `PREFIX_order_return_state_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_order_return_state`=`PREFIX_order_return_state`.`id_order_return_state`) - FROM `PREFIX_lang` CROSS JOIN `PREFIX_order_return_state`); - -INSERT IGNORE INTO `PREFIX_order_state_lang` (`id_order_state`, `id_lang`, `name`, `template`) - (SELECT `id_order_state`, id_lang, (SELECT tl.`name` - FROM `PREFIX_order_state_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_order_state`=`PREFIX_order_state`.`id_order_state`), - (SELECT tl.`template` - FROM `PREFIX_order_state_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_order_state`=`PREFIX_order_state`.`id_order_state`) - FROM `PREFIX_lang` CROSS JOIN `PREFIX_order_state`); - -INSERT IGNORE INTO `PREFIX_profile_lang` (`id_profile`, `id_lang`, `name`) - (SELECT `id_profile`, id_lang, (SELECT tl.`name` - FROM `PREFIX_profile_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_profile`=`PREFIX_profile`.`id_profile`) - FROM `PREFIX_lang` CROSS JOIN `PREFIX_profile`); - -INSERT IGNORE INTO `PREFIX_supplier_lang` (`id_supplier`, `id_lang`, `description`) - (SELECT `id_supplier`, id_lang, (SELECT tl.`description` - FROM `PREFIX_supplier_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_supplier`=`PREFIX_supplier`.`id_supplier`) - FROM `PREFIX_lang` CROSS JOIN `PREFIX_supplier`); - -INSERT IGNORE INTO `PREFIX_tax_lang` (`id_tax`, `id_lang`, `name`) - (SELECT `id_tax`, id_lang, (SELECT tl.`name` - FROM `PREFIX_tax_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_tax`=`PREFIX_tax`.`id_tax`) - FROM `PREFIX_lang` CROSS JOIN `PREFIX_tax`); - -/* products */ -INSERT IGNORE INTO `PREFIX_product_lang` (`id_product`, `id_lang`, `description`, `description_short`, `link_rewrite`, `meta_description`, `meta_keywords`, `meta_title`, `name`, `availability`) - (SELECT `id_product`, id_lang, - (SELECT tl.`description` - FROM `PREFIX_product_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_product`=`PREFIX_product`.`id_product`), - (SELECT tl.`description_short` - FROM `PREFIX_product_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_product`=`PREFIX_product`.`id_product`), - (SELECT tl.`link_rewrite` - FROM `PREFIX_product_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_product`=`PREFIX_product`.`id_product`), - (SELECT tl.`meta_description` - FROM `PREFIX_product_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_product`=`PREFIX_product`.`id_product`), - (SELECT tl.`meta_keywords` - FROM `PREFIX_product_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_product`=`PREFIX_product`.`id_product`), - (SELECT tl.`meta_title` - FROM `PREFIX_product_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_product`=`PREFIX_product`.`id_product`), - (SELECT tl.`name` - FROM `PREFIX_product_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_product`=`PREFIX_product`.`id_product`), - (SELECT tl.`availability` - FROM `PREFIX_product_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_product`=`PREFIX_product`.`id_product`) - FROM `PREFIX_lang` CROSS JOIN `PREFIX_product`); - -/* categories */ -INSERT IGNORE INTO `PREFIX_category_lang` (`id_category`, `id_lang`, `description`, `link_rewrite`, `meta_description`, `meta_keywords`, `meta_title`, `name`) - (SELECT `id_category`, id_lang, - (SELECT tl.`description` - FROM `PREFIX_category_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_category`=`PREFIX_category`.`id_category`), - (SELECT tl.`link_rewrite` - FROM `PREFIX_category_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_category`=`PREFIX_category`.`id_category`), - (SELECT tl.`meta_description` - FROM `PREFIX_category_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_category`=`PREFIX_category`.`id_category`), - (SELECT tl.`meta_keywords` - FROM `PREFIX_category_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_category`=`PREFIX_category`.`id_category`), - (SELECT tl.`meta_title` - FROM `PREFIX_category_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_category`=`PREFIX_category`.`id_category`), - (SELECT tl.`name` - FROM `PREFIX_category_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_category`=`PREFIX_category`.`id_category`) - FROM `PREFIX_lang` CROSS JOIN `PREFIX_category`); - - - -/* NEW TABS */ - -INSERT INTO PREFIX_tab (id_parent, class_name, position) VALUES ((SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminOrders' LIMIT 1) AS tmp), 'AdminReturn', (SELECT tmp.max FROM (SELECT MAX(position) max FROM `PREFIX_tab` WHERE id_parent = (SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminOrders' LIMIT 1) AS tmp )) AS tmp)); -INSERT INTO PREFIX_tab_lang (id_lang, id_tab, name) ( - SELECT id_lang, - (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminReturn' LIMIT 1), - 'Merchandise returns (RMAs)' FROM PREFIX_lang); -UPDATE `PREFIX_tab_lang` SET `name` = 'Retours produit' - WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminReturn') - AND `id_lang` = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'fr'); -INSERT INTO PREFIX_access (id_profile, id_tab, `view`, `add`, edit, `delete`) VALUES ('1', (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminReturn' LIMIT 1), 1, 1, 1, 1); - -INSERT INTO PREFIX_tab (id_parent, class_name, position) VALUES ((SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminOrders' LIMIT 1) AS tmp), 'AdminSlip', (SELECT tmp.max FROM (SELECT MAX(position) max FROM `PREFIX_tab` WHERE id_parent = (SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminOrders' LIMIT 1) AS tmp )) AS tmp)); -INSERT INTO PREFIX_tab_lang (id_lang, id_tab, name) ( - SELECT id_lang, - (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminSlip' LIMIT 1), - 'Credit slips' FROM PREFIX_lang); -UPDATE `PREFIX_tab_lang` SET `name` = 'Avoirs' - WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminSlip') - AND `id_lang` = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'fr'); -INSERT INTO PREFIX_access (id_profile, id_tab, `view`, `add`, edit, `delete`) VALUES ('1', (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminSlip' LIMIT 1), 1, 1, 1, 1); - - -/* CONFIGURATION VARIABLE */ -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_ORDER_RETURN', '0', NOW(), NOW()); -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_ORDER_RETURN_NB_DAYS', '7', NOW(), NOW()); -UPDATE PREFIX_configuration SET name = 'PS_SSL_ENABLED' WHERE name = 'PS_FO_PROTOCOL'; -UPDATE PREFIX_configuration SET name = 'PS_SSL_ENABLED', value = 0 WHERE name = 'PS_SSL_ENABLED' AND value = 'http://'; -UPDATE PREFIX_configuration SET name = 'PS_SSL_ENABLED', value = 1 WHERE name = 'PS_SSL_ENABLED' AND value = 'https://'; - diff --git a/install-dev/sql/upgrade/1.0.0.4.sql b/install-dev/sql/upgrade/1.0.0.4.sql deleted file mode 100644 index 1d5697ce5..000000000 --- a/install-dev/sql/upgrade/1.0.0.4.sql +++ /dev/null @@ -1,88 +0,0 @@ -/* STRUCTURE */ -SET NAMES 'utf8'; - -ALTER TABLE PREFIX_order_detail - ADD product_ean13 VARCHAR(13) CHARACTER SET utf8 COLLATE utf8_general_ci NULL AFTER product_price; -ALTER TABLE PREFIX_order_detail - ADD product_quantity_return INT(10) UNSIGNED NOT NULL DEFAULT 0 AFTER product_quantity; - -ALTER TABLE PREFIX_state - ADD tax_behavior SMALLINT(1) NOT NULL DEFAULT 0 AFTER iso_code; - -ALTER TABLE PREFIX_product - ADD reduction_from DATE NOT NULL AFTER reduction_percent; -ALTER TABLE PREFIX_product - ADD reduction_to DATE NOT NULL AFTER reduction_from; - -ALTER TABLE PREFIX_range_weight - ADD id_carrier INTEGER UNSIGNED DEFAULT NULL AFTER id_range_weight; -ALTER TABLE PREFIX_range_weight - DROP INDEX range_weight_index, - ADD UNIQUE range_weight_unique (delimiter1, delimiter2, id_carrier); -ALTER TABLE PREFIX_range_price - ADD id_carrier INTEGER UNSIGNED DEFAULT NULL AFTER id_range_price; -ALTER TABLE PREFIX_range_price - DROP INDEX range_price_index, - ADD UNIQUE range_price_unique (delimiter1, delimiter2, id_carrier); - -/* CONTENTS */ -/* One request per insert, if one die, other can be inserted */ -INSERT INTO PREFIX_hook (`name`, `title`, `description`, `position`) VALUES ('adminCustomers', 'Display in Back-Office, tab AdminCustomers', 'Launch modules when the tab AdminCustomers is displayed on back-office.', 0); -INSERT INTO PREFIX_hook (`name`, `title`, `description`, `position`) VALUES ('createAccount', 'Successful customer create account', 'Called when new customer create account successfuled', 0); -INSERT INTO PREFIX_hook (`name`, `title`, `description`, `position`) VALUES ('customerAccount', 'Customer account page display in front office', 'Called when a customer access to his account.', 1); -INSERT INTO PREFIX_hook (`name`, `title`, `description`, `position`) VALUES ('orderSlip', 'Called when a order slip is created', 'Called when a quantity of one product change in an order.', 0); -INSERT INTO PREFIX_hook (`name`, `title`, `description`, `position`) VALUES ('productTab', 'Tabs on product page', 'Called on order product page tabs', 0); -INSERT INTO PREFIX_hook (`name`, `title`, `description`, `position`) VALUES ('productTabContent', 'Content of tabs on product page', 'Called on order product page tabs', 0); -INSERT INTO PREFIX_hook (`name`, `title`, `description`, `position`) VALUES ('shoppingCart', 'Shopping cart footer', 'Display some specific informations on the shopping cart page', 0); - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_MAIL_TYPE', '3', NOW(), NOW()); - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_TOKEN_ENABLE', '0', NOW(), NOW()); - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_GIFT_WRAPPING_PRICE', '0', NOW(), NOW()); - -/* NEW RANGES */ - -INSERT IGNORE INTO PREFIX_range_price ( id_carrier, delimiter1, delimiter2 ) - (SELECT c.id_carrier, rp.delimiter1, rp.delimiter2 - FROM PREFIX_range_price rp - CROSS JOIN PREFIX_carrier c - WHERE c.deleted = 0 - AND c.active = 1 - ); - -UPDATE `PREFIX_delivery` d SET d.`id_range_price` = ( - SELECT rw.`id_range_price` FROM `PREFIX_range_price` rw WHERE - rw.`id_carrier` = d.`id_carrier` AND - rw.`delimiter1` = ( - SELECT `delimiter1` FROM `PREFIX_range_price` rw2 WHERE rw2.`id_range_price` = d.`id_range_price` LIMIT 1 - ) AND - rw.`delimiter2` = ( - SELECT `delimiter2` FROM `PREFIX_range_price` rw3 WHERE rw3.`id_range_price` = d.`id_range_price` LIMIT 1 - ) -); - -INSERT IGNORE INTO PREFIX_range_weight ( id_carrier, delimiter1, delimiter2 ) - (SELECT c.id_carrier, rp.delimiter1, rp.delimiter2 - FROM PREFIX_range_weight rp - CROSS JOIN PREFIX_carrier c - WHERE c.deleted = 0 - AND c.active = 1 - ); - -UPDATE `PREFIX_delivery` d SET d.`id_range_weight` = ( - SELECT rw.`id_range_weight` FROM `PREFIX_range_weight` rw WHERE - rw.`id_carrier` = d.`id_carrier` AND - rw.`delimiter1` = ( - SELECT `delimiter1` FROM `PREFIX_range_weight` rw2 WHERE rw2.`id_range_weight` = d.`id_range_weight` LIMIT 1 - ) AND - rw.`delimiter2` = ( - SELECT `delimiter2` FROM `PREFIX_range_weight` rw3 WHERE rw3.`id_range_weight` = d.`id_range_weight` LIMIT 1 - ) -); - -DELETE FROM PREFIX_range_price WHERE id_carrier IS NULL; -DELETE FROM PREFIX_range_weight WHERE id_carrier IS NULL; - -/* CONFIGURATION VARIABLE */ - diff --git a/install-dev/sql/upgrade/1.0.0.5.sql b/install-dev/sql/upgrade/1.0.0.5.sql deleted file mode 100644 index de1edb4bd..000000000 --- a/install-dev/sql/upgrade/1.0.0.5.sql +++ /dev/null @@ -1,35 +0,0 @@ -/* STRUCTURE */ -SET NAMES 'utf8'; - -ALTER TABLE PREFIX_orders - ADD total_wrapping DECIMAL(10,2) NOT NULL DEFAULT 0 AFTER total_shipping; - -ALTER TABLE PREFIX_carrier - ADD range_behavior TINYINT(1) UNSIGNED NOT NULL DEFAULT 0 AFTER shipping_handling; - -ALTER TABLE PREFIX_order_detail - ADD product_supplier_reference VARCHAR(32) NULL AFTER product_reference; - -ALTER TABLE PREFIX_product - ADD supplier_reference VARCHAR(32) NULL AFTER reference; - -ALTER TABLE PREFIX_product_attribute - ADD supplier_reference VARCHAR(32) NULL AFTER reference; - -ALTER TABLE PREFIX_customer - ADD UNIQUE customer_email(email(128)); - -ALTER TABLE PREFIX_product_download - ADD active TINYINT(1) UNSIGNED NOT NULL DEFAULT 1 AFTER nb_downloadable; - - -/* CONTENTS */ -INSERT INTO PREFIX_hook (`name`, `title`, `description`, `position`) VALUES ('createAccountForm', 'Customer account creation form', 'Display some information on the form to create a customer account', 1); - -INSERT INTO PREFIX_lang (`name`, `active`, `iso_code`) VALUES -('Română (Romanian)', 0, 'ro'), -('Νεοελληνική (Greek)', 0, 'gr'), -('Slovenčina (Slovak)', 0, 'sk'); - -/* CONFIGURATION VARIABLE */ - diff --git a/install-dev/sql/upgrade/1.0.0.6.sql b/install-dev/sql/upgrade/1.0.0.6.sql deleted file mode 100644 index b2eb0806c..000000000 --- a/install-dev/sql/upgrade/1.0.0.6.sql +++ /dev/null @@ -1,11 +0,0 @@ -/* STRUCTURE */ -SET NAMES 'utf8'; - -ALTER TABLE PREFIX_order_detail - CHANGE product_price product_price DECIMAL(13, 6) NOT NULL DEFAULT '0.000000'; - - -/* CONTENTS */ - -/* CONFIGURATION VARIABLE */ - diff --git a/install-dev/sql/upgrade/1.0.0.7.sql b/install-dev/sql/upgrade/1.0.0.7.sql deleted file mode 100644 index d7b148ca6..000000000 --- a/install-dev/sql/upgrade/1.0.0.7.sql +++ /dev/null @@ -1,21 +0,0 @@ -/* PHP */ -/* PHP:AttributeGroup::cleanDeadCombinations(); */; - -/* STRUCTURE */ -SET NAMES 'utf8'; - -ALTER TABLE PREFIX_order_detail - ADD product_quantity_discount DECIMAL(13,6) NOT NULL DEFAULT 0 AFTER product_price; -ALTER TABLE PREFIX_country - ADD deleted TINYINT(1) NOT NULL DEFAULT 0; - - -/* CONTENTS */ - -INSERT INTO PREFIX_lang (`name`, `active`, `iso_code`) VALUES -('Norsk (Norwegian)', 0, 'no'), -('ภาษาไทย (Thai)', 0, 'th'), -('Dansk (Danish)', 0, 'dk'); - -/* CONFIGURATION VARIABLE */ - diff --git a/install-dev/sql/upgrade/1.0.0.8.sql b/install-dev/sql/upgrade/1.0.0.8.sql deleted file mode 100644 index 254c4f0dc..000000000 --- a/install-dev/sql/upgrade/1.0.0.8.sql +++ /dev/null @@ -1,17 +0,0 @@ -/* PHP */ -/* PHP:AttributeGroup::cleanDeadCombinations(); */; - -/* STRUCTURE */ -SET NAMES 'utf8'; - -/* CONTENTS */ - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES -('PS_DISP_UNAVAILABLE_ATTR', '1', NOW(), NOW()); - -INSERT INTO PREFIX_lang (`name`, `active`, `iso_code`) VALUES -('Svenska (Swedish)', 0, 'se'), -('עברית (Hebrew)', 0, 'he'); - -/* CONFIGURATION VARIABLE */ - diff --git a/install-dev/sql/upgrade/1.1.0.1.sql b/install-dev/sql/upgrade/1.1.0.1.sql deleted file mode 100644 index c00a3176e..000000000 --- a/install-dev/sql/upgrade/1.1.0.1.sql +++ /dev/null @@ -1,629 +0,0 @@ -/* PHP */ -/* PHP:AttributeGroup::cleanDeadCombinations(); */; -/* PHP:configuration_double_cleaner(); */; - -SET NAMES 'utf8'; - -/* ##################################### */ -/* STRUCTURE */ -/* ##################################### */ -DROP TABLE IF EXISTS PREFIX_gender; -DROP TABLE IF EXISTS PREFIX_search; -ALTER TABLE PREFIX_category_lang - ADD INDEX category_name (name); -ALTER TABLE PREFIX_order_detail - MODIFY COLUMN product_name VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL; -ALTER TABLE PREFIX_order_detail - ADD deleted TINYINT(3) UNSIGNED NOT NULL DEFAULT 0; -ALTER TABLE PREFIX_configuration - MODIFY COLUMN name VARCHAR(32) NOT NULL UNIQUE; -ALTER TABLE PREFIX_orders - ADD invoice_number INTEGER(10) UNSIGNED NOT NULL DEFAULT 0 AFTER total_wrapping; -ALTER TABLE PREFIX_orders - ADD delivery_number INTEGER(10) UNSIGNED NOT NULL DEFAULT 0 AFTER invoice_number; -ALTER TABLE PREFIX_orders - ADD invoice_date DATETIME NOT NULL AFTER delivery_number; -ALTER TABLE PREFIX_orders - ADD delivery_date DATETIME NOT NULL AFTER invoice_date; -ALTER TABLE PREFIX_order_detail - CHANGE product_price product_price DECIMAL(13, 6) NOT NULL DEFAULT 0.000000; -ALTER TABLE PREFIX_order_slip - ADD shipping_cost TINYINT UNSIGNED NOT NULL DEFAULT 0 AFTER id_order; -ALTER TABLE PREFIX_order_state - ADD delivery TINYINT(1) UNSIGNED NOT NULL DEFAULT 0 AFTER logable; -ALTER TABLE PREFIX_country - DROP deleted; -ALTER TABLE PREFIX_product - ADD customizable BOOL NOT NULL DEFAULT 0 AFTER quantity_discount; -ALTER TABLE PREFIX_product - ADD uploadable_files TINYINT NOT NULL DEFAULT 0 AFTER customizable; -ALTER TABLE PREFIX_product - ADD text_fields TINYINT NOT NULL DEFAULT 0 AFTER uploadable_files; -ALTER TABLE PREFIX_product_lang - CHANGE availability available_now VARCHAR(255) NULL; -ALTER TABLE PREFIX_product_lang - ADD available_later VARCHAR(255) NULL AFTER available_now; -ALTER TABLE PREFIX_access - DROP id_access; -ALTER TABLE PREFIX_access - DROP INDEX access_profile; -ALTER TABLE PREFIX_access - DROP INDEX access_tab; -ALTER TABLE PREFIX_access - ADD PRIMARY KEY(id_profile, id_tab); -ALTER TABLE PREFIX_currency - ADD blank TINYINT(1) UNSIGNED NOT NULL DEFAULT 0 AFTER sign; -ALTER TABLE PREFIX_currency - ADD decimals TINYINT(1) UNSIGNED NOT NULL DEFAULT 1 AFTER format; -ALTER TABLE PREFIX_product_attribute - ADD wholesale_price decimal(13,6) NOT NULL DEFAULT 0.000000 AFTER ean13; -ALTER TABLE PREFIX_employee - ADD last_passwd_gen TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER passwd; -ALTER TABLE PREFIX_customer - ADD last_passwd_gen TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER passwd; -ALTER TABLE PREFIX_customer - ADD ip_registration_newsletter VARCHAR(15) NULL DEFAULT NULL AFTER newsletter; -ALTER TABLE PREFIX_image_type - ADD scenes TINYINT(1) NOT NULL DEFAULT 1; -ALTER TABLE PREFIX_image_lang - CHANGE legend legend VARCHAR(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; - -/* CMS */ -CREATE TABLE PREFIX_cms ( - id_cms INTEGER UNSIGNED NOT NULL auto_increment, - PRIMARY KEY (id_cms) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE PREFIX_cms_lang ( - id_cms INTEGER UNSIGNED NOT NULL auto_increment, - id_lang INTEGER UNSIGNED NOT NULL, - meta_title VARCHAR(128) NOT NULL, - meta_description VARCHAR(255) DEFAULT NULL, - meta_keywords VARCHAR(255) DEFAULT NULL, - content longtext NULL, - link_rewrite VARCHAR(128) NOT NULL, - PRIMARY KEY (id_cms, id_lang) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE PREFIX_block_cms ( - id_block INTEGER(10) NOT NULL, - id_cms INTEGER(10) NOT NULL -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -/* PAYMENT MODULE RESTRICTIONS */ -CREATE TABLE `PREFIX_module_country` ( - `id_module` INTEGER UNSIGNED NOT NULL, - `id_country` INTEGER UNSIGNED NOT NULL, - PRIMARY KEY (`id_module`, `id_country`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_module_currency` ( - `id_module` INTEGER UNSIGNED NOT NULL, - `id_currency` INTEGER NOT NULL, - PRIMARY KEY (`id_module`, `id_currency`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -/* ORDER-MESSAGE */ -CREATE TABLE PREFIX_order_message -( - id_order_message int(10) unsigned NOT NULL auto_increment, - date_add datetime NOT NULL, - PRIMARY KEY (id_order_message) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE PREFIX_order_message_lang -( - id_order_message int(10) unsigned NOT NULL, - id_lang int(10) unsigned NOT NULL, - name varchar(128) NOT NULL, - message text NOT NULL, - PRIMARY KEY (id_order_message,id_lang) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -/* SUB-DOMAINS */ -CREATE TABLE PREFIX_subdomain ( - id_subdomain INTEGER(10) NOT NULL AUTO_INCREMENT, - name VARCHAR(16) NOT NULL, - PRIMARY KEY(id_subdomain) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -/* META-CLASS */ -CREATE TABLE PREFIX_meta ( - id_meta INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, - page VARCHAR(64) NOT NULL, - PRIMARY KEY(id_meta), - KEY `meta_name` (`page`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE PREFIX_meta_lang ( - id_meta INTEGER UNSIGNED NOT NULL, - id_lang INTEGER UNSIGNED NOT NULL, - title VARCHAR(255) NULL, - description VARCHAR(255) NULL, - keywords VARCHAR(255) NULL, - PRIMARY KEY (id_meta, id_lang) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE PREFIX_discount_category ( - id_discount INTEGER(11) NOT NULL, - id_category INTEGER(11) NOT NULL -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -/* Customized products */ -CREATE TABLE PREFIX_customization ( - id_customization int(10) NOT NULL AUTO_INCREMENT, - id_product_attribute int(10) NOT NULL DEFAULT 0, - id_cart int(10) NOT NULL, - id_product int(10) NOT NULL, - PRIMARY KEY(id_customization, id_cart, id_product) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE PREFIX_customized_data ( - id_customization int(10) NOT NULL, - `type` tinyint(1) NOT NULL, - `index` int(3) NOT NULL, - `value` varchar(255) NOT NULL, - PRIMARY KEY(id_customization, `type`, `index`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE PREFIX_customization_field ( - id_customization_field int(10) NOT NULL AUTO_INCREMENT, - id_product int(10) NOT NULL, - type tinyint(1) NOT NULL, - required tinyint(1) NOT NULL, - PRIMARY KEY(id_customization_field) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE PREFIX_customization_field_lang ( - id_customization_field int(10) NOT NULL, - id_lang int(10) NOT NULL, - name varchar(255) NOT NULL, - PRIMARY KEY(id_customization_field, id_lang) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -/* Product location */ -ALTER TABLE `PREFIX_product_attribute` ADD `location` VARCHAR(64) NULL AFTER `supplier_reference`; -ALTER TABLE `PREFIX_product` ADD `location` VARCHAR(64) NULL AFTER `supplier_reference`; - -/* Paypal default e-mail fix */ -UPDATE `PREFIX_configuration` SET value = 'paypal@prestashop.com' WHERE name = 'PAYPAL_BUSINESS' AND value = 'your-address@paypal.com'; - -/* ##################################### */ -/* CONTENTS */ -/* ##################################### */ -INSERT INTO PREFIX_subdomain (id_subdomain, name) VALUES (NULL, 'www'); -UPDATE PREFIX_currency SET blank = 1 WHERE iso_code = 'EUR'; -UPDATE PREFIX_order_state SET delivery = 1 WHERE id_order_state = 3; -UPDATE PREFIX_order_state SET delivery = 1 WHERE id_order_state = 4; -UPDATE PREFIX_order_state SET delivery = 1 WHERE id_order_state = 5; - -/* IMAGE MAPPING */ -UPDATE PREFIX_image_type SET scenes = 0; -INSERT INTO `PREFIX_image_type` (`name` ,`width` ,`height` ,`products` ,`categories` ,`manufacturers` ,`suppliers` ,`scenes`) VALUES ('large_scene', '556', '200', '0', '0', '0', '0', '1'); -INSERT INTO `PREFIX_image_type` (`name` ,`width` ,`height` ,`products` ,`categories` ,`manufacturers` ,`suppliers` ,`scenes`) VALUES ('thumb_scene', '161', '58', '0', '0', '0', '0', '1'); - -/* CONFIGURATION VARIABLE */ -INSERT INTO PREFIX_configuration (name, value, date_add, date_upd) VALUES ('PS_INVOICE', '1', NOW(), NOW()); -INSERT INTO PREFIX_configuration (name, value, date_add, date_upd) VALUES ('PS_INVOICE_PREFIX', 'IN', NOW(), NOW()); -INSERT INTO PREFIX_configuration (name, value, date_add, date_upd) VALUES ('PS_DELIVERY_PREFIX', 'DE', NOW(), NOW()); -INSERT INTO PREFIX_configuration (name, value, date_add, date_upd) VALUES ('PS_PRODUCT_PICTURE_MAX_SIZE', '131072', NOW(), NOW()); -INSERT INTO PREFIX_configuration (name, value, date_add, date_upd) VALUES ('PS_PRODUCT_PICTURE_WIDTH', '64', NOW(), NOW()); -INSERT INTO PREFIX_configuration (name, value, date_add, date_upd) VALUES ('PS_PRODUCT_PICTURE_HEIGHT', '64', NOW(), NOW()); -INSERT INTO PREFIX_configuration (name, value, date_add, date_upd) VALUES ('PS_PASSWD_TIME_BACK', '360', NOW(), NOW()); -INSERT INTO PREFIX_configuration (name, value, date_add, date_upd) VALUES ('PS_PASSWD_TIME_FRONT', '360', NOW(), NOW()); - -INSERT INTO `PREFIX_configuration_lang` (`id_configuration`, `id_lang`, `value`, `date_upd`) VALUES ((SELECT id_configuration FROM PREFIX_configuration c WHERE c.name = 'PS_INVOICE_PREFIX' LIMIT 1), 1, 'IN', NOW()); -INSERT INTO `PREFIX_configuration_lang` (`id_configuration`, `id_lang`, `value`, `date_upd`) VALUES ((SELECT id_configuration FROM PREFIX_configuration c WHERE c.name = 'PS_INVOICE_PREFIX' LIMIT 1), 2, 'FA', NOW()); -INSERT INTO `PREFIX_configuration_lang` (`id_configuration`, `id_lang`, `value`, `date_upd`) VALUES ((SELECT id_configuration FROM PREFIX_configuration c WHERE c.name = 'PS_DELIVERY_PREFIX' LIMIT 1), 1, 'DE', NOW()); -INSERT INTO `PREFIX_configuration_lang` (`id_configuration`, `id_lang`, `value`, `date_upd`) VALUES ((SELECT id_configuration FROM PREFIX_configuration c WHERE c.name = 'PS_DELIVERY_PREFIX' LIMIT 1), 2, 'LI', NOW()); - -/* HOOKS/MODULES */ -UPDATE PREFIX_hook SET description = 'This hook is called when a product is deleted' WHERE name = 'deleteProduct' LIMIT 1; -UPDATE PREFIX_hook SET name = 'extraLeft', title = 'Extra actions on the product page (left column).' WHERE name = 'extra' LIMIT 1; -INSERT INTO PREFIX_hook (name, title, position, description) VALUES ('orderReturn', 'Product returned', 0, 'When an order return is made'); -INSERT INTO PREFIX_hook (name, title, position, description) VALUES ('postUpdateOrderStatus', 'Post Order\'s status update event', 0, 'Launch modules when the order\'s status was changed (enables automated workflow).'); -INSERT INTO PREFIX_hook (name, title, position, description) VALUES ('productActions', 'Product actions', 1, 'Put new action buttons on product page'); -INSERT INTO PREFIX_hook (name, title, position, description) VALUES ('cancelProduct', 'Product cancelled', 0, 'This hook is called when you cancel a product in an order'); -INSERT INTO PREFIX_hook (name, title, position) VALUES ('backOfficeHome', 'Administration panel homepage', 1); -INSERT INTO PREFIX_hook (name, title, position, description) VALUES ('extraRight', 'Extra actions on the product page (right column).', 0, NULL); -UPDATE PREFIX_hook SET position = 1 WHERE name = 'top'; -UPDATE PREFIX_hook SET position = 0 WHERE name = 'header'; - -/* ORDER MESSAGES */ -INSERT INTO `PREFIX_order_message` (`id_order_message`, `date_add`) VALUES (1, NOW()); -INSERT INTO `PREFIX_order_message_lang` (`id_order_message`, `id_lang`, `name`, `message`) VALUES -(1, 1, 'Delay', 'Hi, - -Unfortunately, an item on your order is currently out of stock. This may cause a slight delay in delivery. -Please accept our apologies and rest assured that we are working hard to rectify this. - -Best regards, -'); -INSERT INTO `PREFIX_order_message_lang` (`id_order_message`, `id_lang`, `name`, `message`) VALUES -(1, 2, 'Délai', 'Bonjour, - -Un des éléments de votre commande est actuellement en réapprovisionnement, ce qui peut légèrement retarder son envoi. - -Merci de votre compréhension. - -Cordialement, -'); - -/* META */ -INSERT INTO `PREFIX_meta` (`id_meta`, `page`) VALUES -(1, '404'), -(2, 'best-sales'), -(3, 'contact-form'), -(4, 'index'), -(5, 'manufacturer'), -(6, 'new-products'), -(7, 'password'), -(8, 'prices-drop'), -(9, 'sitemap'), -(10, 'supplier'); - -INSERT INTO `PREFIX_meta_lang` (`id_meta`, `id_lang`, `title`, `description`, `keywords`) VALUES -(1, 1, '404 error', 'This page cannot be found', 'error, 404, not found'), -(1, 2, 'Erreur 404', 'Cette page est introuvable', 'erreur, 404, introuvable'), -(2, 1, 'Best sales', 'Our best sales', 'best sales'), -(2, 2, 'Meilleurs ventes', 'Liste de nos produits les mieux vendus', 'meilleurs ventes'), -(3, 1, 'Contact us', 'Use our form to contact us', 'contact, form, e-mail'), -(3, 2, 'Contactez-nous', 'Utilisez notre formulaire pour nous contacter', 'contact, formulaire, e-mail'), -(4, 1, '', 'Shop powered by PrestaShop', 'shop, prestashop'), -(4, 2, '', 'Boutique propulsé par PrestaShop', 'boutique, prestashop'), -(5, 1, 'Manufacturers', 'Manufacturers list', 'manufacturer'), -(5, 2, 'Fabricants', 'Liste de nos fabricants', 'fabricants'), -(6, 1, 'New products', 'Our new products', 'new, products'), -(6, 2, 'Nouveaux produits', 'Liste de nos nouveaux produits', 'nouveau, produit'), -(7, 1, 'Forgot your password', 'Enter your e-mail address used to register in goal to get e-mail with your new password', 'forgot, password, e-mail, new, reset'), -(7, 2, 'Mot de passe oublié', 'Renseignez votre adresse e-mail afin de recevoir votre nouveau mot de passe.', 'mot de passe, oublié, e-mail, nouveau, regénération'), -(8, 1, 'Specials', 'Our special products', 'special, prices drop'), -(8, 2, 'Promotions', 'Nos produits en promotion', 'promotion, réduction'), -(9, 1, 'Sitemap', 'Lost ? Find what your are looking for', 'sitemap'), -(9, 2, 'Plan du site', 'Perdu ? Trouvez ce que vous cherchez', 'plan, site'), -(10, 1, 'Suppliers', 'Suppliers list', 'supplier'), -(10, 2, 'Fournisseurs', 'Liste de nos fournisseurs', 'fournisseurs'); - -/* CMS */ -INSERT INTO `PREFIX_cms` VALUES (1),(2),(3),(4),(5); -INSERT INTO `PREFIX_cms_lang` (`id_cms`, `id_lang`, `meta_title`, `meta_description`, `meta_keywords`, `content`, `link_rewrite`) VALUES -(1, 1, 'Delivery', 'Our terms and conditions of delivery', 'conditions, delivery, delay, shipment, pack', 'Packages are generally dispatched within 2 days after receipt of payment and are shipped via Colissimo with tracking and drop-off without signature. If you prefer delivery by Colissimo Extra with required signature, an additional cost will be applied, so please contact us before choosing this method. Whichever shipment choice you make, we will provide you with a link to track your package online.
Shipping fees include handling and packing fees as well as postage costs. Handling fees are fixed, whereas transport fees vary according to total weight of the shipment. We advise you to group your items in one order. We cannot group two distinct orders placed separately, and shipping fees will apply to each of them. Your package will be dispatched at your own risk, but special care is taken to protect fragile objects.
Boxes are amply sized and your items are well-protected.
Les colis sont généralement expédiés en 48h après réception de votre paiement. Le mode d''expédidition standard est le Colissimo suivi, remis sans signature. Si vous souhaitez une remise avec signature, un coût supplémentaire s''applique, merci de nous contacter. Quel que soit le mode d''expédition choisi, nous vous fournirons dès que possible un lien qui vous permettra de suivre en ligne la livraison de votre colis.
Les frais d''expédition comprennent l''emballage, la manutention et les frais postaux. Ils peuvent contenir une partie fixe et une partie variable en fonction du prix ou du poids de votre commande. Nous vous conseillons de regrouper vos achats en une unique commande. Nous ne pouvons pas grouper deux commandes distinctes et vous devrez vous acquitter des frais de port pour chacune d''entre elles. Votre colis est expédié à vos propres risques, un soin particulier est apporté au colis contenant des produits fragiles..
Les colis sont surdimensionnés et protégés.
Concept and production:
This Web site was created using PrestaShop™ open-source software.
', 'legal-notice'); -INSERT INTO `PREFIX_cms_lang` (`id_cms`, `id_lang`, `meta_title`, `meta_description`, `meta_keywords`, `content`, `link_rewrite`) VALUES -(2, 2, 'Mentions légales', 'Mentions légales', 'mentions, légales, crédits', 'Concept et production :
Ce site internet a été réalisé en utilisant la solution open-source PrestaShop™ .
', 'mentions-legales'); -INSERT INTO `PREFIX_cms_lang` (`id_cms`, `id_lang`, `meta_title`, `meta_description`, `meta_keywords`, `content`, `link_rewrite`) VALUES -(3, 1, 'Terms and conditions of use', 'Our terms and conditions of use', 'conditions, terms, use, sell', 'Here is the rule 1 content
\r\nHere is the rule 2 content
\r\nHere is the rule 3 content
', 'terms-and-conditions-of-use'); -INSERT INTO `PREFIX_cms_lang` (`id_cms`, `id_lang`, `meta_title`, `meta_description`, `meta_keywords`, `content`, `link_rewrite`) VALUES -(3, 2, 'Conditions d''utilisation', 'Nos conditions générales de ventes', 'conditions, utilisation, générales, ventes', 'Contenu de la règle numéro 1
\r\nContenu de la règle numéro 2
\r\nContenu de la règle numéro 3
', 'conditions-generales-de-ventes'); -INSERT INTO `PREFIX_cms_lang` (`id_cms`, `id_lang`, `meta_title`, `meta_description`, `meta_keywords`, `content`, `link_rewrite`) VALUES -(4, 1, 'About us', 'Learn more about us', 'about us, informations', 'Our company
\r\nOur team
\r\nInformations
', 'about-us'); -INSERT INTO `PREFIX_cms_lang` (`id_cms`, `id_lang`, `meta_title`, `meta_description`, `meta_keywords`, `content`, `link_rewrite`) VALUES -(4, 2, 'A propos', 'Apprenez-en d''avantage sur nous', 'à propos, informations', 'Notre entreprise
\r\nNotre équipe
\r\nInformations
', 'a-propos'); -INSERT INTO `PREFIX_cms_lang` (`id_cms`, `id_lang`, `meta_title`, `meta_description`, `meta_keywords`, `content`, `link_rewrite`) VALUES -(5, 1, 'Secure payment', 'Our secure payment mean', 'secure payment, ssl, visa, mastercard, paypal', 'With SSL
\r\nAbout this services
', 'secure-payment'); -INSERT INTO `PREFIX_cms_lang` (`id_cms`, `id_lang`, `meta_title`, `meta_description`, `meta_keywords`, `content`, `link_rewrite`) VALUES -(5, 2, 'Paiement sécurisé', 'Notre offre de paiement sécurisé', 'paiement sécurisé, ssl, visa, mastercard, paypal', 'Avec SSL
\r\nA propos de ces services
', 'paiement-securise'); - -INSERT INTO PREFIX_block_cms (`id_block`, `id_cms`) VALUES (IFNULL((SELECT id_module FROM PREFIX_module m WHERE m.name = 'blockvariouslinks' LIMIT 1), 0), 3); -INSERT INTO PREFIX_block_cms (`id_block`, `id_cms`) VALUES (IFNULL((SELECT id_module FROM PREFIX_module m WHERE m.name = 'blockvariouslinks' LIMIT 1), 0), 4); -INSERT INTO PREFIX_block_cms (`id_block`, `id_cms`) VALUES (IFNULL((SELECT id_module FROM PREFIX_module m WHERE m.name = 'blockinfos' LIMIT 1), 0), 1); -INSERT INTO PREFIX_block_cms (`id_block`, `id_cms`) VALUES (IFNULL((SELECT id_module FROM PREFIX_module m WHERE m.name = 'blockinfos' LIMIT 1), 0), 2); -INSERT INTO PREFIX_block_cms (`id_block`, `id_cms`) VALUES (IFNULL((SELECT id_module FROM PREFIX_module m WHERE m.name = 'blockinfos' LIMIT 1), 0), 3); -INSERT INTO PREFIX_block_cms (`id_block`, `id_cms`) VALUES (IFNULL((SELECT id_module FROM PREFIX_module m WHERE m.name = 'blockinfos' LIMIT 1), 0), 4); -DELETE FROM PREFIX_block_cms WHERE id_block = 0; - -/* NEW TABS */ -UPDATE PREFIX_tab_lang - SET name = 'Vouchers' - WHERE id_lang = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'en' LIMIT 1) - AND id_tab = (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminDiscounts' LIMIT 1); - -INSERT INTO PREFIX_tab (id_parent, class_name, position) VALUES ((SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminTools' LIMIT 1) AS tmp), 'AdminCMS', (SELECT tmp.max FROM (SELECT MAX(position) max FROM `PREFIX_tab` WHERE id_parent = (SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminTools' LIMIT 1) AS tmp )) AS tmp)); -INSERT INTO PREFIX_tab_lang (id_lang, id_tab, name) ( - SELECT id_lang, - (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminCMS' LIMIT 1), - 'CMS' FROM PREFIX_lang); -INSERT INTO PREFIX_access (id_profile, id_tab, `view`, `add`, edit, `delete`) VALUES ('1', (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminCMS' LIMIT 1), 1, 1, 1, 1); - -INSERT INTO PREFIX_tab (id_parent, class_name, position) VALUES ((SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminTools' LIMIT 1) AS tmp), 'AdminSubDomains', (SELECT tmp.max FROM (SELECT MAX(position) max FROM `PREFIX_tab` WHERE id_parent = (SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminTools' LIMIT 1) AS tmp )) AS tmp)); -INSERT INTO PREFIX_tab_lang (id_lang, id_tab, name) ( - SELECT id_lang, - (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminSubDomains' LIMIT 1), - 'Subdomains' FROM PREFIX_lang); -UPDATE `PREFIX_tab_lang` SET `name` = 'Sous domaines' - WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminSubDomains') - AND `id_lang` = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'fr'); -INSERT INTO PREFIX_access (id_profile, id_tab, `view`, `add`, edit, `delete`) VALUES ('1', (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminSubDomains' LIMIT 1), 1, 1, 1, 1); - -INSERT INTO PREFIX_tab (id_parent, class_name, position) VALUES ((SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminOrders' LIMIT 1) AS tmp), 'AdminOrderMessage', (SELECT tmp.max FROM (SELECT MAX(position) max FROM `PREFIX_tab` WHERE id_parent = (SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminOrders' LIMIT 1) AS tmp )) AS tmp)); -INSERT INTO PREFIX_tab_lang (id_lang, id_tab, name) ( - SELECT id_lang, - (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminOrderMessage' LIMIT 1), - 'Order messages' FROM PREFIX_lang); -UPDATE `PREFIX_tab_lang` SET `name` = 'Messages prédéfinis' - WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminOrderMessage') - AND `id_lang` = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'fr'); -INSERT INTO PREFIX_access (id_profile, id_tab, `view`, `add`, edit, `delete`) VALUES ('1', (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminOrderMessage' LIMIT 1), 1, 1, 1, 1); - -INSERT INTO PREFIX_tab (id_parent, class_name, position) VALUES ((SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminOrders' LIMIT 1) AS tmp), 'AdminDeliverySlip', (SELECT tmp.max FROM (SELECT MAX(position) max FROM `PREFIX_tab` WHERE id_parent = (SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminOrders' LIMIT 1) AS tmp )) AS tmp)); -INSERT INTO PREFIX_tab_lang (id_lang, id_tab, name) ( - SELECT id_lang, - (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminDeliverySlip' LIMIT 1), - 'Delivery slips' FROM PREFIX_lang); -UPDATE `PREFIX_tab_lang` SET `name` = 'Bons de livraison' - WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminDeliverySlip') - AND `id_lang` = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'fr'); -INSERT INTO PREFIX_access (id_profile, id_tab, `view`, `add`, edit, `delete`) VALUES ('1', (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminDeliverySlip' LIMIT 1), 1, 1, 1, 1); - -INSERT INTO PREFIX_tab (id_parent, class_name, position) VALUES ((SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminTools' LIMIT 1) AS tmp), 'AdminBackup', (SELECT tmp.max FROM (SELECT MAX(position) max FROM `PREFIX_tab` WHERE id_parent = (SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminTools' LIMIT 1) AS tmp )) AS tmp)); -INSERT INTO PREFIX_tab_lang (id_lang, id_tab, name) ( - SELECT id_lang, - (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminBackup' LIMIT 1), - 'Database backup' FROM PREFIX_lang); -UPDATE `PREFIX_tab_lang` SET `name` = 'Sauvegarde BDD' - WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminBackup') - AND `id_lang` = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'fr'); -INSERT INTO PREFIX_access (id_profile, id_tab, `view`, `add`, edit, `delete`) VALUES ('1', (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminBackup' LIMIT 1), 1, 1, 1, 1); - -INSERT INTO PREFIX_tab (id_parent, class_name, position) VALUES ((SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminPreferences' LIMIT 1) AS tmp), 'AdminMeta', (SELECT tmp.max FROM (SELECT MAX(position) max FROM `PREFIX_tab` WHERE id_parent = (SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminPreferences' LIMIT 1) AS tmp )) AS tmp)); -INSERT INTO PREFIX_tab_lang (id_lang, id_tab, name) ( - SELECT id_lang, - (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminMeta' LIMIT 1), - 'Meta-tags' FROM PREFIX_lang); -UPDATE `PREFIX_tab_lang` SET `name` = 'Méta-Tags' - WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminMeta') - AND `id_lang` = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'fr'); -INSERT INTO PREFIX_access (id_profile, id_tab, `view`, `add`, edit, `delete`) VALUES ('1', (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminMeta' LIMIT 1), 1, 1, 1, 1); - -INSERT INTO PREFIX_tab (id_parent, class_name, position) VALUES ((SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminCatalog' LIMIT 1) AS tmp), 'AdminScenes', (SELECT tmp.max FROM (SELECT MAX(position) max FROM `PREFIX_tab` WHERE id_parent = (SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminCatalog' LIMIT 1) AS tmp )) AS tmp)); -INSERT INTO PREFIX_tab_lang (id_lang, id_tab, name) ( - SELECT id_lang, - (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminScenes' LIMIT 1), - 'Image mapping' FROM PREFIX_lang); -UPDATE `PREFIX_tab_lang` SET `name` = 'Scènes' - WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminScenes') - AND `id_lang` = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'fr'); -INSERT INTO PREFIX_access (id_profile, id_tab, `view`, `add`, edit, `delete`) VALUES ('1', (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminScenes' LIMIT 1), 1, 1, 1, 1); - -/* NEW TEAM TAB */ -UPDATE PREFIX_tab SET position = 10 WHERE class_name = 'AdminTools'; -UPDATE PREFIX_tab SET position = 9 WHERE class_name = 'AdminPreferences'; -UPDATE PREFIX_tab SET position = 8, id_parent = 0 WHERE class_name = 'AdminEmployees'; -UPDATE PREFIX_tab SET position = 1, id_parent = 29 WHERE class_name = 'AdminProfiles'; -UPDATE PREFIX_tab SET position = 2, id_parent = 29 WHERE class_name = 'AdminAccess'; -UPDATE PREFIX_tab SET position = 3, id_parent = 29 WHERE class_name = 'AdminContacts'; -UPDATE PREFIX_tab SET position = 1 WHERE class_name = 'AdminLanguages'; -UPDATE PREFIX_tab SET position = 2 WHERE class_name = 'AdminTranslations'; -UPDATE PREFIX_tab SET position = 3 WHERE class_name = 'AdminTabs'; -UPDATE PREFIX_tab SET position = 4 WHERE class_name = 'AdminQuickAccesses'; -UPDATE PREFIX_tab SET position = 5 WHERE class_name = 'AdminAliases'; -UPDATE PREFIX_tab SET position = 6 WHERE class_name = 'AdminImport'; -UPDATE PREFIX_tab SET position = 7 WHERE class_name = 'AdminSubDomains'; - -/* UPDATE ORDER TABS */ -UPDATE PREFIX_tab SET class_name = 'AdminInvoices' WHERE class_name = 'AdminPrintPDF'; -UPDATE PREFIX_tab SET position = 1 WHERE class_name = 'AdminInvoices'; -UPDATE PREFIX_tab SET position = 2 WHERE class_name = 'AdminReturn'; -UPDATE PREFIX_tab SET position = 3 WHERE class_name = 'AdminSlip'; -UPDATE PREFIX_tab SET position = 4 WHERE class_name = 'AdminOrdersStates'; -UPDATE PREFIX_tab_lang SET name = 'Invoices' WHERE name = 'PDF Invoice'; -UPDATE PREFIX_tab_lang SET name = 'Factures' WHERE name = 'Facture PDF'; - -/* ##################################### */ -/* STATS */ -/* ##################################### */ -CREATE TABLE PREFIX_web_browser ( - id_web_browser INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT, - name VARCHAR(64) NULL, - PRIMARY KEY(id_web_browser) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE PREFIX_operating_system ( - id_operating_system INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT, - name VARCHAR(64) NULL, - PRIMARY KEY(id_operating_system) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE PREFIX_page_type ( - id_page_type INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT, - name VARCHAR(256) NOT NULL, - PRIMARY KEY(id_page_type) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE PREFIX_date_range ( - id_date_range INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, - time_start DATETIME NOT NULL, - time_end DATETIME NOT NULL, - PRIMARY KEY(id_date_range) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE PREFIX_page ( - id_page INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT, - id_page_type INTEGER(10) UNSIGNED NOT NULL, - id_object VARCHAR(256) NULL, - PRIMARY KEY(id_page) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE PREFIX_page_viewed ( - id_page INTEGER(10) UNSIGNED NOT NULL, - id_date_range INTEGER UNSIGNED NOT NULL, - counter INTEGER UNSIGNED NOT NULL, - PRIMARY KEY(id_page, id_date_range) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE PREFIX_guest ( - id_guest INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT, - id_operating_system INTEGER(10) UNSIGNED NULL DEFAULT NULL, - id_web_browser INTEGER(10) UNSIGNED NULL DEFAULT NULL, - id_customer INTEGER(10) UNSIGNED NULL DEFAULT NULL, - javascript BOOL NULL DEFAULT 0, - screen_resolution_x SMALLINT UNSIGNED NULL DEFAULT NULL, - screen_resolution_y SMALLINT UNSIGNED NULL DEFAULT NULL, - screen_color TINYINT UNSIGNED NULL DEFAULT NULL, - sun_java BOOL NULL DEFAULT NULL, - adobe_flash BOOL NULL DEFAULT NULL, - adobe_director BOOL NULL DEFAULT NULL, - apple_quicktime BOOL NULL DEFAULT NULL, - real_player BOOL NULL DEFAULT NULL, - windows_media BOOL NULL DEFAULT NULL, - accept_language VARCHAR(8) NULL DEFAULT NULL, - PRIMARY KEY(id_guest) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_scene` ( - `id_scene` int(10) NOT NULL auto_increment, - `active` tinyint(1) NOT NULL default '1', - PRIMARY KEY (`id_scene`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_scene_category` ( - `id_scene` int(10) NOT NULL, - `id_category` int(10) NOT NULL, - PRIMARY KEY (`id_scene`,`id_category`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_scene_lang` ( - `id_scene` int(10) NOT NULL, - `id_lang` int(10) NOT NULL, - `name` varchar(100) NOT NULL, - PRIMARY KEY (`id_scene`,`id_lang`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_scene_products` ( - `id_scene` int(10) NOT NULL, - `id_product` int(10) NOT NULL, - `x_axis` int(4) NOT NULL, - `y_axis` int(4) NOT NULL, - `zone_width` int(3) NOT NULL, - `zone_height` int(3) NOT NULL -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -INSERT INTO PREFIX_guest (id_customer) SELECT id_customer FROM PREFIX_customer; - -ALTER TABLE PREFIX_connections ADD id_guest INTEGER(10) UNSIGNED NULL AFTER id_connections; -ALTER TABLE PREFIX_connections ADD id_page INTEGER(10) UNSIGNED NOT NULL AFTER id_guest; -ALTER TABLE PREFIX_connections ADD http_referer VARCHAR(256) NULL; -ALTER TABLE PREFIX_connections CHANGE date date_add DATETIME NOT NULL; - -UPDATE PREFIX_connections, PREFIX_guest SET PREFIX_connections.id_guest=PREFIX_guest.id_guest WHERE PREFIX_connections.id_customer=PREFIX_guest.id_customer; -ALTER TABLE PREFIX_connections CHANGE id_guest id_guest INTEGER(10) UNSIGNED NOT NULL; -ALTER TABLE PREFIX_connections DROP id_customer; - -CREATE TABLE PREFIX_connections_page ( - id_connections INTEGER(10) UNSIGNED NOT NULL, - id_page INTEGER(10) UNSIGNED NOT NULL, - time_start DATETIME NOT NULL, - time_end DATETIME NULL, - PRIMARY KEY(id_connections, id_page, time_start) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -INSERT INTO `PREFIX_operating_system` (`name`) VALUES ('Windows XP'),('Windows Vista'),('MacOsX'),('Linux'); -INSERT INTO `PREFIX_web_browser` (`name`) VALUES ('Safari'),('Firefox 2.x'),('Firefox 3.x'),('Opera'),('IE 6.x'),('IE 7.x'),('IE 8.x'),('Google Chrome'); -INSERT INTO `PREFIX_page_type` (`name`) VALUES ('product.php'),('category.php'),('order.php'),('manufacturer.php'); - -INSERT INTO `PREFIX_hook` (`name`, `title`, `position`) VALUES -('AdminStatsModules', 'Stats - Modules', 1), -('GraphEngine', 'Graph Engines', 0), -('GridEngine', 'Grid Engines', 0); - -/* Temporary configuration variable used in the following query */ -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('TMP_ID_TAB_STATS', (SELECT `id_tab` FROM `PREFIX_tab` WHERE `class_name` = 'AdminStats'), NOW(), NOW()); -INSERT INTO `PREFIX_tab` (`id_parent`, `class_name`, `position`) VALUES - ((SELECT `value` FROM `PREFIX_configuration` WHERE `name` = 'TMP_ID_TAB_STATS'), 'AdminStatsModules', 1); -INSERT INTO `PREFIX_tab` (`id_parent`, `class_name`, `position`) VALUES - ((SELECT `value` FROM `PREFIX_configuration` WHERE `name` = 'TMP_ID_TAB_STATS'), 'AdminStatsConf', 2); -INSERT INTO `PREFIX_tab_lang` (`id_lang`, `id_tab`, `name`) VALUES - (1, (SELECT `id_tab` FROM `PREFIX_tab` WHERE `class_name` = 'AdminStatsModules'), 'Modules'); -INSERT INTO `PREFIX_tab_lang` (`id_lang`, `id_tab`, `name`) VALUES - (2, (SELECT `id_tab` FROM `PREFIX_tab` WHERE `class_name` = 'AdminStatsModules'), 'Modules'); -INSERT INTO `PREFIX_tab_lang` (`id_lang`, `id_tab`, `name`) VALUES - (1, (SELECT `id_tab` FROM `PREFIX_tab` WHERE `class_name` = 'AdminStatsConf'), 'Settings'); -INSERT INTO `PREFIX_tab_lang` (`id_lang`, `id_tab`, `name`) VALUES - (2, (SELECT `id_tab` FROM `PREFIX_tab` WHERE `class_name` = 'AdminStatsConf'), 'Configuration'); -INSERT INTO `PREFIX_access` (`id_profile`, `id_tab`, `view`, `add`, `edit`, `delete`) VALUES - (1, (SELECT `id_tab` FROM `PREFIX_tab` WHERE `class_name` = 'AdminStatsModules'), 1, 1, 1, 1); -INSERT INTO `PREFIX_access` (`id_profile`, `id_tab`, `view`, `add`, `edit`, `delete`) VALUES - (1, (SELECT `id_tab` FROM `PREFIX_tab` WHERE `class_name` = 'AdminStatsConf'), 1, 1, 1, 1); -DELETE FROM `PREFIX_configuration` WHERE `name` = 'TMP_ID_TAB_STATS'; - -/* ##################################### */ -/* DOUBLE LANGUAGE */ -/* ##################################### */ -INSERT IGNORE INTO `PREFIX_discount_type_lang` (`id_discount_type`, `id_lang`, `name`) - (SELECT `id_discount_type`, id_lang, (SELECT tl.`name` - FROM `PREFIX_discount_type_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_discount_type`=`PREFIX_discount_type`.`id_discount_type`) - FROM `PREFIX_lang` CROSS JOIN `PREFIX_discount_type`); - -INSERT IGNORE INTO `PREFIX_cms_lang` (`id_cms`, `id_lang`, `link_rewrite`, `meta_description`, `meta_keywords`, `meta_title`, `content`) - (SELECT `id_cms`, id_lang, - (SELECT tl.`link_rewrite` - FROM `PREFIX_cms_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_cms`=`PREFIX_cms`.`id_cms`), - (SELECT tl.`meta_description` - FROM `PREFIX_cms_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_cms`=`PREFIX_cms`.`id_cms`), - (SELECT tl.`meta_keywords` - FROM `PREFIX_cms_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_cms`=`PREFIX_cms`.`id_cms`), - (SELECT tl.`meta_title` - FROM `PREFIX_cms_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_cms`=`PREFIX_cms`.`id_cms`), - (SELECT tl.`content` - FROM `PREFIX_cms_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_cms`=`PREFIX_cms`.`id_cms`) - FROM `PREFIX_lang` CROSS JOIN `PREFIX_cms`); - -INSERT IGNORE INTO `PREFIX_meta_lang` (`id_meta`, `id_lang`, `description`, `keywords`, `title`) - (SELECT `id_meta`, id_lang, - (SELECT tl.`description` - FROM `PREFIX_meta_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_meta`=`PREFIX_meta`.`id_meta`), - (SELECT tl.`keywords` - FROM `PREFIX_meta_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_meta`=`PREFIX_meta`.`id_meta`), - (SELECT tl.`title` - FROM `PREFIX_meta_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_meta`=`PREFIX_meta`.`id_meta`) - FROM `PREFIX_lang` CROSS JOIN `PREFIX_meta`); - -INSERT IGNORE INTO `PREFIX_order_message_lang` (`id_order_message`, `id_lang`, `name`, `message`) - (SELECT `id_order_message`, id_lang, - (SELECT tl.`name` - FROM `PREFIX_order_message_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_order_message`=`PREFIX_order_message`.`id_order_message`), - (SELECT tl.`message` - FROM `PREFIX_order_message_lang` tl - WHERE tl.`id_lang` = (SELECT c.`value` - FROM `PREFIX_configuration` c - WHERE c.`name` = 'PS_LANG_DEFAULT' LIMIT 1) AND tl.`id_order_message`=`PREFIX_order_message`.`id_order_message`) - FROM `PREFIX_lang` CROSS JOIN `PREFIX_order_message`); - -/* PHP */ -/* PHP:invoice_number_set(); */; -/* PHP:delivery_number_set(); */; -/* PHP:set_payment_module(); */; -/* PHP:set_discount_category(); */; diff --git a/install-dev/sql/upgrade/1.1.0.2.sql b/install-dev/sql/upgrade/1.1.0.2.sql deleted file mode 100644 index ee56776c5..000000000 --- a/install-dev/sql/upgrade/1.1.0.2.sql +++ /dev/null @@ -1,3 +0,0 @@ -SET NAMES 'utf8'; - -/* ##################################### */ diff --git a/install-dev/sql/upgrade/1.1.0.3.sql b/install-dev/sql/upgrade/1.1.0.3.sql deleted file mode 100644 index 5fb70c0ab..000000000 --- a/install-dev/sql/upgrade/1.1.0.3.sql +++ /dev/null @@ -1,10 +0,0 @@ -SET NAMES 'utf8'; - -/* ##################################### */ -/* STRUCTURE */ -/* ##################################### */ - -DROP TABLE IF EXISTS PREFIX_product_picture; - -/* PHP */ -/* PHP:moduleReinstaller('blockmyaccount'); */; diff --git a/install-dev/sql/upgrade/1.1.0.4.sql b/install-dev/sql/upgrade/1.1.0.4.sql deleted file mode 100644 index 1bd039324..000000000 --- a/install-dev/sql/upgrade/1.1.0.4.sql +++ /dev/null @@ -1,28 +0,0 @@ -SET NAMES 'utf8'; - -/* ##################################### */ -/* STRUCTURE */ -/* ##################################### */ - -ALTER TABLE PREFIX_order_detail - DROP `deleted`, - ADD product_quantity_cancelled INT(10) UNSIGNED NOT NULL AFTER product_quantity_return; - -ALTER TABLE PREFIX_customization ADD quantity INT(10) NOT NULL; - -ALTER TABLE PREFIX_order_return_detail ADD id_customization INT(10) NOT NULL DEFAULT 0 AFTER id_order_detail; -ALTER TABLE PREFIX_order_return_detail DROP PRIMARY KEY; -ALTER TABLE PREFIX_order_return_detail ADD PRIMARY KEY (id_order_return, id_order_detail, id_customization); - - -ALTER TABLE PREFIX_orders - CHANGE payment payment VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, - CHANGE module module VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; - -/* ################################# */ -/* CONTENTS */ -/* ################################# */ - -INSERT INTO PREFIX_hook (`name`, `title`, `description`, `position`) VALUES - ('productOutOfStock', 'Product out of stock', 'Make action while product is out of stock', 1), - ('updateProductAttribute', 'Product attribute update', NULL, 1); diff --git a/install-dev/sql/upgrade/1.1.0.5.sql b/install-dev/sql/upgrade/1.1.0.5.sql deleted file mode 100644 index 08b08b3a5..000000000 --- a/install-dev/sql/upgrade/1.1.0.5.sql +++ /dev/null @@ -1,20 +0,0 @@ -SET NAMES 'utf8'; - -/* ##################################### */ -/* STRUCTURE */ -/* ##################################### */ - -ALTER TABLE PREFIX_product - CHANGE customizable customizable TINYINT(2) NOT NULL DEFAULT 0; -ALTER TABLE PREFIX_connections - CHANGE ip_address ip_address VARCHAR(16) NULL; -ALTER TABLE PREFIX_customer - ADD newsletter_date_add DATETIME NULL; -ALTER TABLE PREFIX_cart_product - ADD date_add DATETIME NOT NULL; - -/* ################################# */ -/* CONTENTS */ -/* ################################# */ - -/* PHP:add_required_customization_field_flag(); */; diff --git a/install-dev/sql/upgrade/1.2.0.1.sql b/install-dev/sql/upgrade/1.2.0.1.sql deleted file mode 100644 index b4fef836e..000000000 --- a/install-dev/sql/upgrade/1.2.0.1.sql +++ /dev/null @@ -1,1071 +0,0 @@ -SET NAMES 'utf8'; - -/* ##################################### */ -/* STRUCTURE */ -/* ##################################### */ - -DROP TABLE IF EXISTS PREFIX_order_customization_return; - -ALTER TABLE PREFIX_cart - ADD id_guest INT UNSIGNED NULL AFTER id_customer; - -ALTER TABLE PREFIX_tab - ADD `module` varchar(64) NULL AFTER class_name; - -ALTER TABLE PREFIX_product - ADD `indexed` tinyint(1) NOT NULL default '0' AFTER `active`; - -ALTER TABLE PREFIX_orders - DROP INDEX `orders_customer`; -ALTER TABLE PREFIX_orders - ADD INDEX id_customer (id_customer); -ALTER TABLE PREFIX_orders - ADD valid INTEGER(1) UNSIGNED NOT NULL DEFAULT '0' AFTER delivery_date; -ALTER TABLE PREFIX_orders - ADD INDEX `id_cart` (`id_cart`); - -ALTER TABLE PREFIX_customer - ADD deleted TINYINT(1) NOT NULL DEFAULT '0' AFTER active; - -ALTER TABLE PREFIX_employee - ADD stats_date_to DATE NULL DEFAULT NULL AFTER last_passwd_gen; -ALTER TABLE PREFIX_employee - ADD stats_date_from DATE NULL DEFAULT NULL AFTER last_passwd_gen; - -ALTER TABLE PREFIX_order_state - ADD hidden TINYINT(1) UNSIGNED NOT NULL DEFAULT '0' AFTER unremovable; - -ALTER TABLE PREFIX_carrier - ADD is_module TINYINT(1) UNSIGNED NOT NULL DEFAULT '0' AFTER range_behavior; -ALTER TABLE PREFIX_carrier - ADD INDEX deleted (`deleted`, `active`); - -ALTER TABLE PREFIX_state - CHANGE iso_code `iso_code` char(4) NOT NULL; - -ALTER TABLE PREFIX_order_detail - CHANGE product_quantity_cancelled product_quantity_refunded INT(10) UNSIGNED NOT NULL DEFAULT '0'; -ALTER TABLE PREFIX_order_detail - ADD INDEX product_id (product_id); - -ALTER TABLE PREFIX_attribute_lang - ADD INDEX id_lang (`id_lang`, `name`); -ALTER TABLE PREFIX_attribute_lang - ADD INDEX id_lang_2 (`id_lang`); -ALTER TABLE PREFIX_attribute_lang - ADD INDEX id_attribute (`id_attribute`); - -ALTER TABLE PREFIX_block_cms - ADD PRIMARY KEY (`id_block`, `id_cms`); - -/* IGNORE because can raise error data truncated */ -ALTER IGNORE TABLE PREFIX_connections - CHANGE `http_referer` `http_referer` VARCHAR(255) DEFAULT NULL; - -ALTER TABLE PREFIX_connections - ADD INDEX `date_add` (`date_add`); - -ALTER TABLE PREFIX_customer - DROP INDEX `customer_email`; -ALTER TABLE PREFIX_customer - ADD UNIQUE `customer_email` (`email`); - -ALTER TABLE PREFIX_delivery - ADD INDEX id_zone (`id_zone`); -ALTER TABLE PREFIX_delivery - ADD INDEX id_carrier (`id_carrier`, `id_zone`); - -ALTER TABLE PREFIX_feature_product - ADD INDEX `id_feature` (`id_feature`); - -ALTER TABLE PREFIX_hook_module - DROP INDEX `hook_module_index`; -ALTER TABLE PREFIX_hook_module - ADD PRIMARY KEY (id_module,id_hook); -ALTER TABLE PREFIX_hook_module - ADD INDEX id_module (`id_module`); -ALTER TABLE PREFIX_hook_module - ADD INDEX id_hook (`id_hook`); - -ALTER TABLE PREFIX_module - CHANGE `active` `active` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0'; - -ALTER TABLE PREFIX_page - CHANGE `id_object` `id_object` INT UNSIGNED NULL DEFAULT NULL; -ALTER TABLE PREFIX_page - ADD INDEX `id_page_type` (`id_page_type`); -ALTER TABLE PREFIX_page - ADD INDEX `id_object` (`id_object`); - -ALTER TABLE PREFIX_page_type - CHANGE `name` `name` VARCHAR(255) NOT NULL; -ALTER TABLE PREFIX_page_type - ADD INDEX `name` (`name`); - -ALTER TABLE PREFIX_product_attribute - ADD INDEX reference (reference); -ALTER TABLE PREFIX_product_attribute - ADD INDEX supplier_reference (supplier_reference); - -ALTER TABLE PREFIX_product_lang - ADD INDEX id_product (id_product); -ALTER TABLE PREFIX_product_lang - ADD INDEX id_lang (id_lang); -ALTER TABLE PREFIX_product_lang - ADD INDEX `name` (`name`); -ALTER TABLE PREFIX_product_lang - ADD FULLTEXT KEY ftsname (`name`); - -ALTER TABLE PREFIX_cart_discount - ADD INDEX `id_discount` (`id_discount`); - -ALTER TABLE PREFIX_discount_category - ADD PRIMARY KEY (`id_category`,`id_discount`); - -ALTER TABLE PREFIX_image_lang - ADD INDEX id_image (id_image); - -ALTER TABLE PREFIX_range_price - CHANGE `delimiter1` `delimiter1` DECIMAL(13, 6) NOT NULL; -ALTER TABLE PREFIX_range_price - CHANGE `delimiter2` `delimiter2` DECIMAL(13, 6) NOT NULL; -ALTER TABLE PREFIX_range_price - CHANGE `id_carrier` `id_carrier` INT(10) UNSIGNED NOT NULL; -ALTER TABLE PREFIX_range_price - DROP INDEX `range_price_unique`; -ALTER TABLE PREFIX_range_price - ADD UNIQUE KEY `id_carrier` (`id_carrier`,`delimiter1`,`delimiter2`); - -ALTER TABLE PREFIX_range_weight - CHANGE `delimiter1` `delimiter1` DECIMAL(13, 6) NOT NULL; -ALTER TABLE PREFIX_range_weight - CHANGE `delimiter2` `delimiter2` DECIMAL(13, 6) NOT NULL; -ALTER TABLE PREFIX_range_weight - CHANGE `id_carrier` `id_carrier` INT(10) UNSIGNED NOT NULL; -ALTER TABLE PREFIX_range_weight - DROP INDEX `range_weight_unique`; -ALTER TABLE PREFIX_range_weight - ADD UNIQUE KEY `id_carrier` (`id_carrier`,`delimiter1`,`delimiter2`); - -ALTER TABLE PREFIX_scene_products - ADD PRIMARY KEY (`id_scene`, `id_product`, `x_axis`, `y_axis`); - -ALTER TABLE PREFIX_product_lang DROP INDEX fts; -ALTER TABLE PREFIX_product_lang DROP INDEX ftsname ; - -/* KEY management */ -ALTER TABLE PREFIX_attribute_lang DROP INDEX `id_lang_2`; -ALTER TABLE PREFIX_attribute_lang DROP INDEX `id_attribute`; -ALTER TABLE PREFIX_attribute_lang DROP INDEX `attribute_lang_index`, ADD PRIMARY KEY (`id_attribute`, `id_lang`); -ALTER TABLE PREFIX_carrier_zone DROP INDEX `carrier_zone_index`, ADD PRIMARY KEY (`id_carrier`, `id_zone`); -ALTER TABLE PREFIX_discount_category CHANGE `id_discount` `id_discount` int(11) NOT NULL AFTER `id_category`; -ALTER TABLE PREFIX_feature_product DROP INDEX `id_feature`; -ALTER TABLE PREFIX_hook_module DROP INDEX `id_module`; -ALTER TABLE PREFIX_image_lang DROP INDEX `id_image`; -ALTER TABLE PREFIX_product_lang DROP INDEX `id_product`; - -/* ############################################################ */ - -CREATE TABLE `PREFIX_customer_group` ( - `id_customer` int(10) unsigned NOT NULL, - `id_group` int(10) unsigned NOT NULL, - PRIMARY KEY (`id_customer`,`id_group`), - INDEX customer_login(id_group) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE PREFIX_category_group ( - id_category INTEGER UNSIGNED NOT NULL, - id_group INTEGER UNSIGNED NOT NULL, - INDEX category_group_index(id_category, id_group) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_group` ( - id_group INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, - reduction DECIMAL(10,2) NOT NULL DEFAULT 0, - date_add DATETIME NOT NULL, - date_upd DATETIME NOT NULL, - PRIMARY KEY(id_group) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE PREFIX_group_lang ( - id_group INTEGER UNSIGNED NOT NULL, - id_lang INTEGER UNSIGNED NOT NULL, - name VARCHAR(32) NOT NULL, - UNIQUE INDEX attribute_lang_index(id_group, id_lang) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE PREFIX_message_readed ( - id_message INTEGER UNSIGNED NOT NULL, - id_employee INTEGER UNSIGNED NOT NULL, - date_add DATETIME NOT NULL, - PRIMARY KEY (id_message,id_employee) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_attachment` ( - `id_attachment` int(10) unsigned NOT NULL auto_increment, - `file` varchar(40) NOT NULL, - `mime` varchar(32) NOT NULL, - PRIMARY KEY (`id_attachment`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_attachment_lang` ( - `id_attachment` int(10) unsigned NOT NULL auto_increment, - `id_lang` int(10) unsigned NOT NULL, - `name` varchar(32) default NULL, - `description` TEXT, - PRIMARY KEY (`id_attachment`, `id_lang`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_product_attachment` ( - `id_product` int(10) NOT NULL, - `id_attachment` int(10) NOT NULL, - PRIMARY KEY (`id_product`,`id_attachment`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_connections_source` ( - id_connections_source INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, - id_connections INTEGER UNSIGNED NOT NULL, - http_referer VARCHAR(255) NULL, - request_uri VARCHAR(255) NULL, - keywords VARCHAR(255) NULL, - date_add DATETIME NOT NULL, - PRIMARY KEY (id_connections_source), - INDEX connections (id_connections), - INDEX orderby (date_add), - INDEX http_referer (`http_referer`), - INDEX request_uri(`request_uri`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_referrer` ( - `id_referrer` int(10) unsigned NOT NULL auto_increment, - `name` varchar(64) NOT NULL, - `passwd` varchar(32) default NULL, - `http_referer_regexp` varchar(64) default NULL, - `http_referer_like` varchar(64) default NULL, - `request_uri_regexp` varchar(64) default NULL, - `request_uri_like` varchar(64) default NULL, - `http_referer_regexp_not` varchar(64) default NULL, - `http_referer_like_not` varchar(64) default NULL, - `request_uri_regexp_not` varchar(64) default NULL, - `request_uri_like_not` varchar(64) default NULL, - `base_fee` decimal(5,2) NOT NULL default '0.00', - `percent_fee` decimal(5,2) NOT NULL default '0.00', - `click_fee` decimal(5,2) NOT NULL default '0.00', - `cache_visitors` int(11) default NULL, - `cache_visits` int(11) default NULL, - `cache_pages` int(11) default NULL, - `cache_registrations` int(11) default NULL, - `cache_orders` int(11) default NULL, - `cache_sales` decimal(10,2) default NULL, - `cache_reg_rate` decimal(5,4) default NULL, - `cache_order_rate` decimal(5,4) default NULL, - `date_add` datetime NOT NULL, - PRIMARY KEY (`id_referrer`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_referrer_cache` ( - `id_connections_source` int(11) NOT NULL, - `id_referrer` int(11) NOT NULL, - PRIMARY KEY (`id_connections_source`, `id_referrer`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_search_engine` ( - id_search_engine INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, - server VARCHAR(64) NOT NULL, - getvar VARCHAR(16) NOT NULL, - PRIMARY KEY(id_search_engine) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_module_group` ( - `id_module` INTEGER UNSIGNED NOT NULL, - `id_group` INTEGER NOT NULL, - PRIMARY KEY (`id_module`, `id_group`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_product_attribute_image` ( - `id_product_attribute` int(10) NOT NULL, - `id_image` int(10) NOT NULL, - PRIMARY KEY (`id_product_attribute`,`id_image`), - KEY `id_image` (`id_image`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_search_index` ( - `id_product` int(11) NOT NULL, - `id_word` int(11) NOT NULL, - `weight` tinyint(4) NOT NULL default '1', - PRIMARY KEY (`id_word`, `id_product`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_search_word` ( - `id_word` int(10) unsigned NOT NULL auto_increment, - `id_lang` int(10) unsigned NOT NULL, - `word` varchar(15) NOT NULL, - PRIMARY KEY (`id_word`), - UNIQUE KEY `id_lang` (`id_lang`,`word`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -CREATE TABLE PREFIX_timezone ( - id_timezone INTEGER UNSIGNED NOT NULL auto_increment, - name VARCHAR(32) NOT NULL, - PRIMARY KEY timezone_index(`id_timezone`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -/* ##################################### */ -/* CONTENTS */ -/* ##################################### */ - -INSERT INTO `PREFIX_order_state` (`id_order_state`, `invoice`, `send_email`, `color`, `unremovable`, `logable`, `delivery`) VALUES - (11, 0, 0, 'lightblue', 1, 0, 0); - -INSERT INTO `PREFIX_order_state_lang` (`id_order_state`, `id_lang`, `name`, `template`) VALUES - (11, 1, 'Awaiting PayPal payment', ''); -INSERT INTO `PREFIX_order_state_lang` (`id_order_state`, `id_lang`, `name`, `template`) VALUES - (11, 2, 'En attente du paiement par PayPal', ''); - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES - ('PS_SEARCH_MINWORDLEN', '3', NOW(), NOW()); -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES - ('PS_SEARCH_WEIGHT_PNAME', '6', NOW(), NOW()); -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES - ('PS_SEARCH_WEIGHT_REF', '10', NOW(), NOW()); -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES - ('PS_SEARCH_WEIGHT_SHORTDESC', '1', NOW(), NOW()); -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES - ('PS_SEARCH_WEIGHT_DESC', '1', NOW(), NOW()); -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES - ('PS_SEARCH_WEIGHT_CNAME', '3', NOW(), NOW()); -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES - ('PS_SEARCH_WEIGHT_MNAME', '3', NOW(), NOW()); -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES - ('PS_SEARCH_WEIGHT_TAG', '4', NOW(), NOW()); -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES - ('PS_SEARCH_WEIGHT_ATTRIBUTE', '2', NOW(), NOW()); -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES - ('PS_SEARCH_WEIGHT_FEATURE', '2', NOW(), NOW()); -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES - ('PS_SEARCH_AJAX', '1', NOW(), NOW()); -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES - ('PS_TIMEZONE', '374', NOW(), NOW()); -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES - ('BLOCKTAGS_NBR', '10', NOW(), NOW()); - -INSERT INTO PREFIX_hook (`name`, `title`, `description`, `position`) VALUES - ('extraCarrier', 'Extra carrier (module mode)', NULL, 0); -INSERT INTO PREFIX_hook (`name`, `title`, `description`, `position`) VALUES - ('shoppingCartExtra', 'Shopping cart extra button', 'Display some specific informations', 1); -INSERT INTO PREFIX_hook (`name`, `title`, `description`, `position`) VALUES - ('search', 'Search', NULL, 0); -INSERT INTO PREFIX_hook (`name`, `title`, `description`, `position`) VALUES - ('backBeforePayment', 'Redirect in order process', 'Redirect user to the module instead of displaying payment modules', 0); - -UPDATE PREFIX_orders o SET o.valid = IFNULL(( - SELECT os.logable - FROM PREFIX_order_history oh - LEFT JOIN PREFIX_order_state os ON os.id_order_state = oh.id_order_state - WHERE oh.id_order = o.id_order - ORDER BY oh.date_add DESC, oh.id_order_history DESC - LIMIT 1 -), 0); - -INSERT INTO `PREFIX_search_engine` (`id_search_engine`, `server`,`getvar`) VALUES - (1, 'google','q'), - (2, 'search.aol','query'), - (3, 'yandex.ru','text'), - (4, 'ask.com','q'), - (5, 'nhl.com','q'), - (6, 'search.yahoo','p'), - (7, 'baidu.com','wd'), - (8, 'search.lycos','query'), - (9, 'exalead','q'), - (10, 'search.live.com','q'), - (11, 'search.ke.voila','rdata'), - (12, 'altavista','q') - ON DUPLICATE KEY UPDATE server = server; - -/* GROUPS, CUSTOMERS GROUPS, & CATEGORY GROUPS */ -INSERT INTO `PREFIX_group` (`reduction`, `date_add`, `date_upd`) VALUES (0, NOW(), NOW()); -INSERT INTO `PREFIX_group_lang` (`id_lang`, `id_group`, `name`) ( - SELECT `id_lang`, - (SELECT `id_group` FROM `PREFIX_group` LIMIT 1), - 'Default' FROM `PREFIX_lang`); -UPDATE `PREFIX_group_lang` SET `name` = 'Défaut' - WHERE `id_group` = (SELECT `id_group` FROM `PREFIX_group` LIMIT 1) - AND `id_lang` = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'fr'); -INSERT INTO `PREFIX_customer_group` (`id_customer`, `id_group`) - (SELECT `id_customer`, - (SELECT `id_group` FROM `PREFIX_group` LIMIT 1) FROM `PREFIX_customer`); -INSERT INTO `PREFIX_category_group` (`id_category`, `id_group`) - (SELECT `id_category`, - (SELECT `id_group` FROM `PREFIX_group` LIMIT 1) FROM `PREFIX_category`); - -/* NEW TABS */ -INSERT INTO PREFIX_tab (id_parent, class_name, position) VALUES ((SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminOrders' LIMIT 1) AS tmp), 'AdminMessages', (SELECT tmp.max FROM (SELECT MAX(position) max FROM `PREFIX_tab` WHERE id_parent = (SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminOrders' LIMIT 1) AS tmp )) AS tmp)); -INSERT INTO PREFIX_tab_lang (id_lang, id_tab, name) ( - SELECT id_lang, - (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminMessages' LIMIT 1), - 'Customer messages' FROM PREFIX_lang); -UPDATE `PREFIX_tab_lang` SET `name` = 'Messages clients' - WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminMessages') - AND `id_lang` = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'fr'); -INSERT INTO PREFIX_access (id_profile, id_tab, `view`, `add`, edit, `delete`) VALUES ('1', (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminMessages' LIMIT 1), 1, 1, 1, 1); - -INSERT INTO PREFIX_tab (id_parent, class_name, position) VALUES ((SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminCatalog' LIMIT 1) AS tmp), 'AdminTracking', (SELECT tmp.max FROM (SELECT MAX(position) max FROM `PREFIX_tab` WHERE id_parent = (SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminCatalog' LIMIT 1) AS tmp )) AS tmp)); -INSERT INTO PREFIX_tab_lang (id_lang, id_tab, name) ( - SELECT id_lang, - (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminTracking' LIMIT 1), - 'Tracking' FROM PREFIX_lang); -UPDATE `PREFIX_tab_lang` SET `name` = 'Suivi' - WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminTracking') - AND `id_lang` = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'fr'); -INSERT INTO PREFIX_access (id_profile, id_tab, `view`, `add`, edit, `delete`) VALUES ('1', (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminTracking' LIMIT 1), 1, 1, 1, 1); - -INSERT INTO PREFIX_tab (id_parent, class_name, position) VALUES ((SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminStats' LIMIT 1) AS tmp), 'AdminSearchEngines', (SELECT tmp.max FROM (SELECT MAX(position) max FROM `PREFIX_tab` WHERE id_parent = (SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminStats' LIMIT 1) AS tmp )) AS tmp)); -INSERT INTO PREFIX_tab_lang (id_lang, id_tab, name) ( - SELECT id_lang, - (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminSearchEngines' LIMIT 1), - 'Search Engines' FROM PREFIX_lang); -UPDATE `PREFIX_tab_lang` SET `name` = 'Moteurs de recherche' - WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminSearchEngines') - AND `id_lang` = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'fr'); -INSERT INTO PREFIX_access (id_profile, id_tab, `view`, `add`, edit, `delete`) VALUES ('1', (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminSearchEngines' LIMIT 1), 1, 1, 1, 1); - -INSERT INTO PREFIX_tab (id_parent, class_name, position) VALUES ((SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminStats' LIMIT 1) AS tmp), 'AdminReferrers', (SELECT tmp.max FROM (SELECT MAX(position) max FROM `PREFIX_tab` WHERE id_parent = (SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminStats' LIMIT 1) AS tmp )) AS tmp)); -INSERT INTO PREFIX_tab_lang (id_lang, id_tab, name) ( - SELECT id_lang, - (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminReferrers' LIMIT 1), - 'Referrers' FROM PREFIX_lang); -UPDATE `PREFIX_tab_lang` SET `name` = 'Sites affluents' - WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminReferrers') - AND `id_lang` = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'fr'); -INSERT INTO PREFIX_access (id_profile, id_tab, `view`, `add`, edit, `delete`) VALUES ('1', (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminReferrers' LIMIT 1), 1, 1, 1, 1); - -INSERT INTO PREFIX_tab (id_parent, class_name, position) VALUES ((SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminCustomers' LIMIT 1) AS tmp), 'AdminGroups', (SELECT tmp.max FROM (SELECT MAX(position) max FROM `PREFIX_tab` WHERE id_parent = (SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminCustomers' LIMIT 1) AS tmp )) AS tmp)); -INSERT INTO PREFIX_tab_lang (id_lang, id_tab, name) ( - SELECT id_lang, - (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminGroups' LIMIT 1), - 'Groups' FROM PREFIX_lang); -UPDATE `PREFIX_tab_lang` SET `name` = 'Groupes' - WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminGroups') - AND `id_lang` = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'fr'); -INSERT INTO PREFIX_access (id_profile, id_tab, `view`, `add`, edit, `delete`) VALUES ('1', (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminGroups' LIMIT 1), 1, 1, 1, 1); - -INSERT INTO PREFIX_tab (id_parent, class_name, position) VALUES ((SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminCustomers' LIMIT 1) AS tmp), 'AdminCarts', (SELECT tmp.max FROM (SELECT MAX(position) max FROM `PREFIX_tab` WHERE id_parent = (SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminCustomers' LIMIT 1) AS tmp )) AS tmp)); -INSERT INTO PREFIX_tab_lang (id_lang, id_tab, name) ( - SELECT id_lang, - (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminCarts' LIMIT 1), - 'Carts' FROM PREFIX_lang); -UPDATE `PREFIX_tab_lang` SET `name` = 'Paniers' - WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminCarts') - AND `id_lang` = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'fr'); -INSERT INTO PREFIX_access (id_profile, id_tab, `view`, `add`, edit, `delete`) VALUES ('1', (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminCarts' LIMIT 1), 1, 1, 1, 1); - -INSERT INTO PREFIX_tab (id_parent, class_name, position) VALUES ((SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminCatalog' LIMIT 1) AS tmp), 'AdminTags', (SELECT tmp.max FROM (SELECT MAX(position) max FROM `PREFIX_tab` WHERE id_parent = (SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminCatalog' LIMIT 1) AS tmp )) AS tmp)); -INSERT INTO PREFIX_tab_lang (id_lang, id_tab, name) ( - SELECT id_lang, - (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminTags' LIMIT 1), - 'Tags' FROM PREFIX_lang); -INSERT INTO PREFIX_access (id_profile, id_tab, `view`, `add`, edit, `delete`) VALUES ('1', (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminTags' LIMIT 1), 1, 1, 1, 1); - -INSERT INTO PREFIX_tab (id_parent, class_name, position) VALUES ((SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminPreferences' LIMIT 1) AS tmp), 'AdminSearchConf', (SELECT tmp.max FROM (SELECT MAX(position) max FROM `PREFIX_tab` WHERE id_parent = (SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminPreferences' LIMIT 1) AS tmp )) AS tmp)); -INSERT INTO PREFIX_tab_lang (id_lang, id_tab, name) ( - SELECT id_lang, - (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminSearchConf' LIMIT 1), - 'Search' FROM PREFIX_lang); -UPDATE `PREFIX_tab_lang` SET `name` = 'Recherche' - WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminSearchConf') - AND `id_lang` = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'fr'); -INSERT INTO PREFIX_access (id_profile, id_tab, `view`, `add`, edit, `delete`) VALUES ('1', (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminSearchConf' LIMIT 1), 1, 1, 1, 1); - -INSERT INTO PREFIX_tab (id_parent, class_name, position) VALUES ((SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminCatalog' LIMIT 1) AS tmp), 'AdminAttachments', (SELECT tmp.max FROM (SELECT MAX(position) max FROM `PREFIX_tab` WHERE id_parent = (SELECT tmp.`id_tab` FROM (SELECT `id_tab` FROM PREFIX_tab t WHERE t.class_name = 'AdminCatalog' LIMIT 1) AS tmp )) AS tmp)); -INSERT INTO PREFIX_tab_lang (id_lang, id_tab, name) ( - SELECT id_lang, - (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminAttachments' LIMIT 1), - 'Attachments' FROM PREFIX_lang); -UPDATE `PREFIX_tab_lang` SET `name` = 'Documents joints' - WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminAttachments') - AND `id_lang` = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'fr'); -INSERT INTO PREFIX_access (id_profile, id_tab, `view`, `add`, edit, `delete`) VALUES ('1', (SELECT id_tab FROM PREFIX_tab t WHERE t.class_name = 'AdminAttachments' LIMIT 1), 1, 1, 1, 1); - -/* CHANGE TABS */ -UPDATE `PREFIX_tab` SET `class_name` = 'AdminStatuses' WHERE `class_name` = 'AdminOrdersStates'; -UPDATE `PREFIX_tab_lang` SET `name` = 'Statuses' - WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminStatuses') - AND `id_lang` = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'en'); -UPDATE `PREFIX_tab_lang` SET `name` = 'Statuts' - WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.class_name = 'AdminStatuses') - AND `id_lang` = (SELECT `id_lang` FROM `PREFIX_lang` l WHERE l.iso_code = 'fr'); - -INSERT IGNORE INTO PREFIX_product_attribute_image (id_image, id_product_attribute) - (SELECT id_image, id_product_attribute FROM PREFIX_product_attribute WHERE id_image IS NOT NULL); -/* ALTER query must stay here (right after the INSERT INTO PREFIX_product_attribute_image)! */ -ALTER TABLE PREFIX_product_attribute DROP id_image; - -UPDATE PREFIX_category_lang SET link_rewrite = 'home' WHERE id_category = 1; - -/* TIMEZONES */ - -INSERT INTO `PREFIX_timezone` (`id_timezone`, `name`) VALUES -(1, 'Africa/Abidjan'), -(2, 'Africa/Accra'), -(3, 'Africa/Addis_Ababa'), -(4, 'Africa/Algiers'), -(5, 'Africa/Asmara'), -(6, 'Africa/Asmera'), -(7, 'Africa/Bamako'), -(8, 'Africa/Bangui'), -(9, 'Africa/Banjul'), -(10, 'Africa/Bissau'), -(11, 'Africa/Blantyre'), -(12, 'Africa/Brazzaville'), -(13, 'Africa/Bujumbura'), -(14, 'Africa/Cairo'), -(15, 'Africa/Casablanca'), -(16, 'Africa/Ceuta'), -(17, 'Africa/Conakry'), -(18, 'Africa/Dakar'), -(19, 'Africa/Dar_es_Salaam'), -(20, 'Africa/Djibouti'), -(21, 'Africa/Douala'), -(22, 'Africa/El_Aaiun'), -(23, 'Africa/Freetown'), -(24, 'Africa/Gaborone'), -(25, 'Africa/Harare'), -(26, 'Africa/Johannesburg'), -(27, 'Africa/Kampala'), -(28, 'Africa/Khartoum'), -(29, 'Africa/Kigali'), -(30, 'Africa/Kinshasa'), -(31, 'Africa/Lagos'), -(32, 'Africa/Libreville'), -(33, 'Africa/Lome'), -(34, 'Africa/Luanda'), -(35, 'Africa/Lubumbashi'), -(36, 'Africa/Lusaka'), -(37, 'Africa/Malabo'), -(38, 'Africa/Maputo'), -(39, 'Africa/Maseru'), -(40, 'Africa/Mbabane'), -(41, 'Africa/Mogadishu'), -(42, 'Africa/Monrovia'), -(43, 'Africa/Nairobi'), -(44, 'Africa/Ndjamena'), -(45, 'Africa/Niamey'), -(46, 'Africa/Nouakchott'), -(47, 'Africa/Ouagadougou'), -(48, 'Africa/Porto-Novo'), -(49, 'Africa/Sao_Tome'), -(50, 'Africa/Timbuktu'), -(51, 'Africa/Tripoli'), -(52, 'Africa/Tunis'), -(53, 'Africa/Windhoek'), -(54, 'America/Adak'), -(55, 'America/Anchorage '), -(56, 'America/Anguilla'), -(57, 'America/Antigua'), -(58, 'America/Araguaina'), -(59, 'America/Argentina/Buenos_Aires'), -(60, 'America/Argentina/Catamarca'), -(61, 'America/Argentina/ComodRivadavia'), -(62, 'America/Argentina/Cordoba'), -(63, 'America/Argentina/Jujuy'), -(64, 'America/Argentina/La_Rioja'), -(65, 'America/Argentina/Mendoza'), -(66, 'America/Argentina/Rio_Gallegos'), -(67, 'America/Argentina/Salta'), -(68, 'America/Argentina/San_Juan'), -(69, 'America/Argentina/San_Luis'), -(70, 'America/Argentina/Tucuman'), -(71, 'America/Argentina/Ushuaia'), -(72, 'America/Aruba'), -(73, 'America/Asuncion'), -(74, 'America/Atikokan'), -(75, 'America/Atka'), -(76, 'America/Bahia'), -(77, 'America/Barbados'), -(78, 'America/Belem'), -(79, 'America/Belize'), -(80, 'America/Blanc-Sablon'), -(81, 'America/Boa_Vista'), -(82, 'America/Bogota'), -(83, 'America/Boise'), -(84, 'America/Buenos_Aires'), -(85, 'America/Cambridge_Bay'), -(86, 'America/Campo_Grande'), -(87, 'America/Cancun'), -(88, 'America/Caracas'), -(89, 'America/Catamarca'), -(90, 'America/Cayenne'), -(91, 'America/Cayman'), -(92, 'America/Chicago'), -(93, 'America/Chihuahua'), -(94, 'America/Coral_Harbour'), -(95, 'America/Cordoba'), -(96, 'America/Costa_Rica'), -(97, 'America/Cuiaba'), -(98, 'America/Curacao'), -(99, 'America/Danmarkshavn'), -(100, 'America/Dawson'), -(101, 'America/Dawson_Creek'), -(102, 'America/Denver'), -(103, 'America/Detroit'), -(104, 'America/Dominica'), -(105, 'America/Edmonton'), -(106, 'America/Eirunepe'), -(107, 'America/El_Salvador'), -(108, 'America/Ensenada'), -(109, 'America/Fort_Wayne'), -(110, 'America/Fortaleza'), -(111, 'America/Glace_Bay'), -(112, 'America/Godthab'), -(113, 'America/Goose_Bay'), -(114, 'America/Grand_Turk'), -(115, 'America/Grenada'), -(116, 'America/Guadeloupe'), -(117, 'America/Guatemala'), -(118, 'America/Guayaquil'), -(119, 'America/Guyana'), -(120, 'America/Halifax'), -(121, 'America/Havana'), -(122, 'America/Hermosillo'), -(123, 'America/Indiana/Indianapolis'), -(124, 'America/Indiana/Knox'), -(125, 'America/Indiana/Marengo'), -(126, 'America/Indiana/Petersburg'), -(127, 'America/Indiana/Tell_City'), -(128, 'America/Indiana/Vevay'), -(129, 'America/Indiana/Vincennes'), -(130, 'America/Indiana/Winamac'), -(131, 'America/Indianapolis'), -(132, 'America/Inuvik'), -(133, 'America/Iqaluit'), -(134, 'America/Jamaica'), -(135, 'America/Jujuy'), -(136, 'America/Juneau'), -(137, 'America/Kentucky/Louisville'), -(138, 'America/Kentucky/Monticello'), -(139, 'America/Knox_IN'), -(140, 'America/La_Paz'), -(141, 'America/Lima'), -(142, 'America/Los_Angeles'), -(143, 'America/Louisville'), -(144, 'America/Maceio'), -(145, 'America/Managua'), -(146, 'America/Manaus'), -(147, 'America/Marigot'), -(148, 'America/Martinique'), -(149, 'America/Mazatlan'), -(150, 'America/Mendoza'), -(151, 'America/Menominee'), -(152, 'America/Merida'), -(153, 'America/Mexico_City'), -(154, 'America/Miquelon'), -(155, 'America/Moncton'), -(156, 'America/Monterrey'), -(157, 'America/Montevideo'), -(158, 'America/Montreal'), -(159, 'America/Montserrat'), -(160, 'America/Nassau'), -(161, 'America/New_York'), -(162, 'America/Nipigon'), -(163, 'America/Nome'), -(164, 'America/Noronha'), -(165, 'America/North_Dakota/Center'), -(166, 'America/North_Dakota/New_Salem'), -(167, 'America/Panama'), -(168, 'America/Pangnirtung'), -(169, 'America/Paramaribo'), -(170, 'America/Phoenix'), -(171, 'America/Port-au-Prince'), -(172, 'America/Port_of_Spain'), -(173, 'America/Porto_Acre'), -(174, 'America/Porto_Velho'), -(175, 'America/Puerto_Rico'), -(176, 'America/Rainy_River'), -(177, 'America/Rankin_Inlet'), -(178, 'America/Recife'), -(179, 'America/Regina'), -(180, 'America/Resolute'), -(181, 'America/Rio_Branco'), -(182, 'America/Rosario'), -(183, 'America/Santarem'), -(184, 'America/Santiago'), -(185, 'America/Santo_Domingo'), -(186, 'America/Sao_Paulo'), -(187, 'America/Scoresbysund'), -(188, 'America/Shiprock'), -(189, 'America/St_Barthelemy'), -(190, 'America/St_Johns'), -(191, 'America/St_Kitts'), -(192, 'America/St_Lucia'), -(193, 'America/St_Thomas'), -(194, 'America/St_Vincent'), -(195, 'America/Swift_Current'), -(196, 'America/Tegucigalpa'), -(197, 'America/Thule'), -(198, 'America/Thunder_Bay'), -(199, 'America/Tijuana'), -(200, 'America/Toronto'), -(201, 'America/Tortola'), -(202, 'America/Vancouver'), -(203, 'America/Virgin'), -(204, 'America/Whitehorse'), -(205, 'America/Winnipeg'), -(206, 'America/Yakutat'), -(207, 'America/Yellowknife'), -(208, 'Antarctica/Casey'), -(209, 'Antarctica/Davis'), -(210, 'Antarctica/DumontDUrville'), -(211, 'Antarctica/Mawson'), -(212, 'Antarctica/McMurdo'), -(213, 'Antarctica/Palmer'), -(214, 'Antarctica/Rothera'), -(215, 'Antarctica/South_Pole'), -(216, 'Antarctica/Syowa'), -(217, 'Antarctica/Vostok'), -(218, 'Arctic/Longyearbyen'), -(219, 'Asia/Aden'), -(220, 'Asia/Almaty'), -(221, 'Asia/Amman'), -(222, 'Asia/Anadyr'), -(223, 'Asia/Aqtau'), -(224, 'Asia/Aqtobe'), -(225, 'Asia/Ashgabat'), -(226, 'Asia/Ashkhabad'), -(227, 'Asia/Baghdad'), -(228, 'Asia/Bahrain'), -(229, 'Asia/Baku'), -(230, 'Asia/Bangkok'), -(231, 'Asia/Beirut'), -(232, 'Asia/Bishkek'), -(233, 'Asia/Brunei'), -(234, 'Asia/Calcutta'), -(235, 'Asia/Choibalsan'), -(236, 'Asia/Chongqing'), -(237, 'Asia/Chungking'), -(238, 'Asia/Colombo'), -(239, 'Asia/Dacca'), -(240, 'Asia/Damascus'), -(241, 'Asia/Dhaka'), -(242, 'Asia/Dili'), -(243, 'Asia/Dubai'), -(244, 'Asia/Dushanbe'), -(245, 'Asia/Gaza'), -(246, 'Asia/Harbin'), -(247, 'Asia/Ho_Chi_Minh'), -(248, 'Asia/Hong_Kong'), -(249, 'Asia/Hovd'), -(250, 'Asia/Irkutsk'), -(251, 'Asia/Istanbul'), -(252, 'Asia/Jakarta'), -(253, 'Asia/Jayapura'), -(254, 'Asia/Jerusalem'), -(255, 'Asia/Kabul'), -(256, 'Asia/Kamchatka'), -(257, 'Asia/Karachi'), -(258, 'Asia/Kashgar'), -(259, 'Asia/Kathmandu'), -(260, 'Asia/Katmandu'), -(261, 'Asia/Kolkata'), -(262, 'Asia/Krasnoyarsk'), -(263, 'Asia/Kuala_Lumpur'), -(264, 'Asia/Kuching'), -(265, 'Asia/Kuwait'), -(266, 'Asia/Macao'), -(267, 'Asia/Macau'), -(268, 'Asia/Magadan'), -(269, 'Asia/Makassar'), -(270, 'Asia/Manila'), -(271, 'Asia/Muscat'), -(272, 'Asia/Nicosia'), -(273, 'Asia/Novosibirsk'), -(274, 'Asia/Omsk'), -(275, 'Asia/Oral'), -(276, 'Asia/Phnom_Penh'), -(277, 'Asia/Pontianak'), -(278, 'Asia/Pyongyang'), -(279, 'Asia/Qatar'), -(280, 'Asia/Qyzylorda'), -(281, 'Asia/Rangoon'), -(282, 'Asia/Riyadh'), -(283, 'Asia/Saigon'), -(284, 'Asia/Sakhalin'), -(285, 'Asia/Samarkand'), -(286, 'Asia/Seoul'), -(287, 'Asia/Shanghai'), -(288, 'Asia/Singapore'), -(289, 'Asia/Taipei'), -(290, 'Asia/Tashkent'), -(291, 'Asia/Tbilisi'), -(292, 'Asia/Tehran'), -(293, 'Asia/Tel_Aviv'), -(294, 'Asia/Thimbu'), -(295, 'Asia/Thimphu'), -(296, 'Asia/Tokyo'), -(297, 'Asia/Ujung_Pandang'), -(298, 'Asia/Ulaanbaatar'), -(299, 'Asia/Ulan_Bator'), -(300, 'Asia/Urumqi'), -(301, 'Asia/Vientiane'), -(302, 'Asia/Vladivostok'), -(303, 'Asia/Yakutsk'), -(304, 'Asia/Yekaterinburg'), -(305, 'Asia/Yerevan'), -(306, 'Atlantic/Azores'), -(307, 'Atlantic/Bermuda'), -(308, 'Atlantic/Canary'), -(309, 'Atlantic/Cape_Verde'), -(310, 'Atlantic/Faeroe'), -(311, 'Atlantic/Faroe'), -(312, 'Atlantic/Jan_Mayen'), -(313, 'Atlantic/Madeira'), -(314, 'Atlantic/Reykjavik'), -(315, 'Atlantic/South_Georgia'), -(316, 'Atlantic/St_Helena'), -(317, 'Atlantic/Stanley'), -(318, 'Australia/ACT'), -(319, 'Australia/Adelaide'), -(320, 'Australia/Brisbane'), -(321, 'Australia/Broken_Hill'), -(322, 'Australia/Canberra'), -(323, 'Australia/Currie'), -(324, 'Australia/Darwin'), -(325, 'Australia/Eucla'), -(326, 'Australia/Hobart'), -(327, 'Australia/LHI'), -(328, 'Australia/Lindeman'), -(329, 'Australia/Lord_Howe'), -(330, 'Australia/Melbourne'), -(331, 'Australia/North'), -(332, 'Australia/NSW'), -(333, 'Australia/Perth'), -(334, 'Australia/Queensland'), -(335, 'Australia/South'), -(336, 'Australia/Sydney'), -(337, 'Australia/Tasmania'), -(338, 'Australia/Victoria'), -(339, 'Australia/West'), -(340, 'Australia/Yancowinna'), -(341, 'Europe/Amsterdam'), -(342, 'Europe/Andorra'), -(343, 'Europe/Athens'), -(344, 'Europe/Belfast'), -(345, 'Europe/Belgrade'), -(346, 'Europe/Berlin'), -(347, 'Europe/Bratislava'), -(348, 'Europe/Brussels'), -(349, 'Europe/Bucharest'), -(350, 'Europe/Budapest'), -(351, 'Europe/Chisinau'), -(352, 'Europe/Copenhagen'), -(353, 'Europe/Dublin'), -(354, 'Europe/Gibraltar'), -(355, 'Europe/Guernsey'), -(356, 'Europe/Helsinki'), -(357, 'Europe/Isle_of_Man'), -(358, 'Europe/Istanbul'), -(359, 'Europe/Jersey'), -(360, 'Europe/Kaliningrad'), -(361, 'Europe/Kiev'), -(362, 'Europe/Lisbon'), -(363, 'Europe/Ljubljana'), -(364, 'Europe/London'), -(365, 'Europe/Luxembourg'), -(366, 'Europe/Madrid'), -(367, 'Europe/Malta'), -(368, 'Europe/Mariehamn'), -(369, 'Europe/Minsk'), -(370, 'Europe/Monaco'), -(371, 'Europe/Moscow'), -(372, 'Europe/Nicosia'), -(373, 'Europe/Oslo'), -(374, 'Europe/Paris'), -(375, 'Europe/Podgorica'), -(376, 'Europe/Prague'), -(377, 'Europe/Riga'), -(378, 'Europe/Rome'), -(379, 'Europe/Samara'), -(380, 'Europe/San_Marino'), -(381, 'Europe/Sarajevo'), -(382, 'Europe/Simferopol'), -(383, 'Europe/Skopje'), -(384, 'Europe/Sofia'), -(385, 'Europe/Stockholm'), -(386, 'Europe/Tallinn'), -(387, 'Europe/Tirane'), -(388, 'Europe/Tiraspol'), -(389, 'Europe/Uzhgorod'), -(390, 'Europe/Vaduz'), -(391, 'Europe/Vatican'), -(392, 'Europe/Vienna'), -(393, 'Europe/Vilnius'), -(394, 'Europe/Volgograd'), -(395, 'Europe/Warsaw'), -(396, 'Europe/Zagreb'), -(397, 'Europe/Zaporozhye'), -(398, 'Europe/Zurich'), -(399, 'Indian/Antananarivo'), -(400, 'Indian/Chagos'), -(401, 'Indian/Christmas'), -(402, 'Indian/Cocos'), -(403, 'Indian/Comoro'), -(404, 'Indian/Kerguelen'), -(405, 'Indian/Mahe'), -(406, 'Indian/Maldives'), -(407, 'Indian/Mauritius'), -(408, 'Indian/Mayotte'), -(409, 'Indian/Reunion'), -(410, 'Pacific/Apia'), -(411, 'Pacific/Auckland'), -(412, 'Pacific/Chatham'), -(413, 'Pacific/Easter'), -(414, 'Pacific/Efate'), -(415, 'Pacific/Enderbury'), -(416, 'Pacific/Fakaofo'), -(417, 'Pacific/Fiji'), -(418, 'Pacific/Funafuti'), -(419, 'Pacific/Galapagos'), -(420, 'Pacific/Gambier'), -(421, 'Pacific/Guadalcanal'), -(422, 'Pacific/Guam'), -(423, 'Pacific/Honolulu'), -(424, 'Pacific/Johnston'), -(425, 'Pacific/Kiritimati'), -(426, 'Pacific/Kosrae'), -(427, 'Pacific/Kwajalein'), -(428, 'Pacific/Majuro'), -(429, 'Pacific/Marquesas'), -(430, 'Pacific/Midway'), -(431, 'Pacific/Nauru'), -(432, 'Pacific/Niue'), -(433, 'Pacific/Norfolk'), -(434, 'Pacific/Noumea'), -(435, 'Pacific/Pago_Pago'), -(436, 'Pacific/Palau'), -(437, 'Pacific/Pitcairn'), -(438, 'Pacific/Ponape'), -(439, 'Pacific/Port_Moresby'), -(440, 'Pacific/Rarotonga'), -(441, 'Pacific/Saipan'), -(442, 'Pacific/Samoa'), -(443, 'Pacific/Tahiti'), -(444, 'Pacific/Tarawa'), -(445, 'Pacific/Tongatapu'), -(446, 'Pacific/Truk'), -(447, 'Pacific/Wake'), -(448, 'Pacific/Wallis'), -(449, 'Pacific/Yap'), -(450, 'Brazil/Acre'), -(451, 'Brazil/DeNoronha'), -(452, 'Brazil/East'), -(453, 'Brazil/West'), -(454, 'Canada/Atlantic'), -(455, 'Canada/Central'), -(456, 'Canada/East-Saskatchewan'), -(457, 'Canada/Eastern'), -(458, 'Canada/Mountain'), -(459, 'Canada/Newfoundland'), -(460, 'Canada/Pacific'), -(461, 'Canada/Saskatchewan'), -(462, 'Canada/Yukon'), -(463, 'CET'), -(464, 'Chile/Continental'), -(465, 'Chile/EasterIsland'), -(466, 'CST6CDT'), -(467, 'Cuba'), -(468, 'EET'), -(469, 'Egypt'), -(470, 'Eire'), -(471, 'EST'), -(472, 'EST5EDT'), -(473, 'Etc/GMT'), -(474, 'Etc/GMT+0'), -(475, 'Etc/GMT+1'), -(476, 'Etc/GMT+10'), -(477, 'Etc/GMT+11'), -(478, 'Etc/GMT+12'), -(479, 'Etc/GMT+2'), -(480, 'Etc/GMT+3'), -(481, 'Etc/GMT+4'), -(482, 'Etc/GMT+5'), -(483, 'Etc/GMT+6'), -(484, 'Etc/GMT+7'), -(485, 'Etc/GMT+8'), -(486, 'Etc/GMT+9'), -(487, 'Etc/GMT-0'), -(488, 'Etc/GMT-1'), -(489, 'Etc/GMT-10'), -(490, 'Etc/GMT-11'), -(491, 'Etc/GMT-12'), -(492, 'Etc/GMT-13'), -(493, 'Etc/GMT-14'), -(494, 'Etc/GMT-2'), -(495, 'Etc/GMT-3'), -(496, 'Etc/GMT-4'), -(497, 'Etc/GMT-5'), -(498, 'Etc/GMT-6'), -(499, 'Etc/GMT-7'), -(500, 'Etc/GMT-8'), -(501, 'Etc/GMT-9'), -(502, 'Etc/GMT0'), -(503, 'Etc/Greenwich'), -(504, 'Etc/UCT'), -(505, 'Etc/Universal'), -(506, 'Etc/UTC'), -(507, 'Etc/Zulu'), -(508, 'Factory'), -(509, 'GB'), -(510, 'GB-Eire'), -(511, 'GMT'), -(512, 'GMT+0'), -(513, 'GMT-0'), -(514, 'GMT0'), -(515, 'Greenwich'), -(516, 'Hongkong'), -(517, 'HST'), -(518, 'Iceland'), -(519, 'Iran'), -(520, 'Israel'), -(521, 'Jamaica'), -(522, 'Japan'), -(523, 'Kwajalein'), -(524, 'Libya'), -(525, 'MET'), -(526, 'Mexico/BajaNorte'), -(527, 'Mexico/BajaSur'), -(528, 'Mexico/General'), -(529, 'MST'), -(530, 'MST7MDT'), -(531, 'Navajo'), -(532, 'NZ'), -(533, 'NZ-CHAT'), -(534, 'Poland'), -(535, 'Portugal'), -(536, 'PRC'), -(537, 'PST8PDT'), -(538, 'ROC'), -(539, 'ROK'), -(540, 'Singapore'), -(541, 'Turkey'), -(542, 'UCT'), -(543, 'Universal'), -(544, 'US/Alaska'), -(545, 'US/Aleutian'), -(546, 'US/Arizona'), -(547, 'US/Central'), -(548, 'US/East-Indiana'), -(549, 'US/Eastern'), -(550, 'US/Hawaii'), -(551, 'US/Indiana-Starke'), -(552, 'US/Michigan'), -(553, 'US/Mountain'), -(554, 'US/Pacific'), -(555, 'US/Pacific-New'), -(556, 'US/Samoa'), -(557, 'UTC'), -(558, 'W-SU'), -(559, 'WET'), -(560, 'Zulu'); - -/* PHP:blocknewsletter(); */; -/* PHP:set_payment_module_group(); */; -/* PHP:add_new_tab(AdminGenerator, fr:Générateurs|es:Generadores|en:Generators|de:Generatoren|it:Generatori, 9); */; diff --git a/install-dev/sql/upgrade/1.2.0.2.sql b/install-dev/sql/upgrade/1.2.0.2.sql deleted file mode 100644 index 605edb065..000000000 --- a/install-dev/sql/upgrade/1.2.0.2.sql +++ /dev/null @@ -1,610 +0,0 @@ -SET NAMES 'utf8'; - -/* ##################################### */ -/* STRUCTURE */ -/* ##################################### */ - -CREATE TABLE `PREFIX_pack` ( - `id_product_pack` int(10) unsigned NOT NULL, - `id_product_item` int(10) unsigned NOT NULL, - `quantity` int(10) unsigned NOT NULL DEFAULT 1, - PRIMARY KEY (`id_product_pack`,`id_product_item`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -ALTER TABLE `PREFIX_manufacturer_lang` - ADD `short_description` VARCHAR( 254 ) NULL DEFAULT NULL; -ALTER TABLE `PREFIX_manufacturer_lang` - ADD `meta_title` VARCHAR( 254 ) NULL DEFAULT NULL; -ALTER TABLE `PREFIX_manufacturer_lang` - ADD `meta_keywords` VARCHAR( 254 ) NULL DEFAULT NULL; -ALTER TABLE `PREFIX_manufacturer_lang` - ADD `meta_description` VARCHAR( 254 ) NULL DEFAULT NULL; - -ALTER TABLE `PREFIX_supplier_lang` - ADD `meta_title` VARCHAR( 254 ) NULL DEFAULT NULL; -ALTER TABLE `PREFIX_supplier_lang` - ADD `meta_keywords` VARCHAR( 254 ) NULL DEFAULT NULL; -ALTER TABLE `PREFIX_supplier_lang` - ADD `meta_description` VARCHAR( 254 ) NULL DEFAULT NULL; - -/* ##################################### */ -/* CONTENTS */ -/* ##################################### */ - -TRUNCATE TABLE `PREFIX_timezone`; -INSERT INTO `PREFIX_timezone` (`name`) VALUES - ('Africa/Abidjan'), - ('Africa/Accra'), - ('Africa/Addis_Ababa'), - ('Africa/Algiers'), - ('Africa/Asmara'), - ('Africa/Asmera'), - ('Africa/Bamako'), - ('Africa/Bangui'), - ('Africa/Banjul'), - ('Africa/Bissau'), - ('Africa/Blantyre'), - ('Africa/Brazzaville'), - ('Africa/Bujumbura'), - ('Africa/Cairo'), - ('Africa/Casablanca'), - ('Africa/Ceuta'), - ('Africa/Conakry'), - ('Africa/Dakar'), - ('Africa/Dar_es_Salaam'), - ('Africa/Djibouti'), - ('Africa/Douala'), - ('Africa/El_Aaiun'), - ('Africa/Freetown'), - ('Africa/Gaborone'), - ('Africa/Harare'), - ('Africa/Johannesburg'), - ('Africa/Kampala'), - ('Africa/Khartoum'), - ('Africa/Kigali'), - ('Africa/Kinshasa'), - ('Africa/Lagos'), - ('Africa/Libreville'), - ('Africa/Lome'), - ('Africa/Luanda'), - ('Africa/Lubumbashi'), - ('Africa/Lusaka'), - ('Africa/Malabo'), - ('Africa/Maputo'), - ('Africa/Maseru'), - ('Africa/Mbabane'), - ('Africa/Mogadishu'), - ('Africa/Monrovia'), - ('Africa/Nairobi'), - ('Africa/Ndjamena'), - ('Africa/Niamey'), - ('Africa/Nouakchott'), - ('Africa/Ouagadougou'), - ('Africa/Porto-Novo'), - ('Africa/Sao_Tome'), - ('Africa/Timbuktu'), - ('Africa/Tripoli'), - ('Africa/Tunis'), - ('Africa/Windhoek'), - ('America/Adak'), - ('America/Anchorage '), - ('America/Anguilla'), - ('America/Antigua'), - ('America/Araguaina'), - ('America/Argentina/Buenos_Aires'), - ('America/Argentina/Catamarca'), - ('America/Argentina/ComodRivadavia'), - ('America/Argentina/Cordoba'), - ('America/Argentina/Jujuy'), - ('America/Argentina/La_Rioja'), - ('America/Argentina/Mendoza'), - ('America/Argentina/Rio_Gallegos'), - ('America/Argentina/Salta'), - ('America/Argentina/San_Juan'), - ('America/Argentina/San_Luis'), - ('America/Argentina/Tucuman'), - ('America/Argentina/Ushuaia'), - ('America/Aruba'), - ('America/Asuncion'), - ('America/Atikokan'), - ('America/Atka'), - ('America/Bahia'), - ('America/Barbados'), - ('America/Belem'), - ('America/Belize'), - ('America/Blanc-Sablon'), - ('America/Boa_Vista'), - ('America/Bogota'), - ('America/Boise'), - ('America/Buenos_Aires'), - ('America/Cambridge_Bay'), - ('America/Campo_Grande'), - ('America/Cancun'), - ('America/Caracas'), - ('America/Catamarca'), - ('America/Cayenne'), - ('America/Cayman'), - ('America/Chicago'), - ('America/Chihuahua'), - ('America/Coral_Harbour'), - ('America/Cordoba'), - ('America/Costa_Rica'), - ('America/Cuiaba'), - ('America/Curacao'), - ('America/Danmarkshavn'), - ('America/Dawson'), - ('America/Dawson_Creek'), - ('America/Denver'), - ('America/Detroit'), - ('America/Dominica'), - ('America/Edmonton'), - ('America/Eirunepe'), - ('America/El_Salvador'), - ('America/Ensenada'), - ('America/Fort_Wayne'), - ('America/Fortaleza'), - ('America/Glace_Bay'), - ('America/Godthab'), - ('America/Goose_Bay'), - ('America/Grand_Turk'), - ('America/Grenada'), - ('America/Guadeloupe'), - ('America/Guatemala'), - ('America/Guayaquil'), - ('America/Guyana'), - ('America/Halifax'), - ('America/Havana'), - ('America/Hermosillo'), - ('America/Indiana/Indianapolis'), - ('America/Indiana/Knox'), - ('America/Indiana/Marengo'), - ('America/Indiana/Petersburg'), - ('America/Indiana/Tell_City'), - ('America/Indiana/Vevay'), - ('America/Indiana/Vincennes'), - ('America/Indiana/Winamac'), - ('America/Indianapolis'), - ('America/Inuvik'), - ('America/Iqaluit'), - ('America/Jamaica'), - ('America/Jujuy'), - ('America/Juneau'), - ('America/Kentucky/Louisville'), - ('America/Kentucky/Monticello'), - ('America/Knox_IN'), - ('America/La_Paz'), - ('America/Lima'), - ('America/Los_Angeles'), - ('America/Louisville'), - ('America/Maceio'), - ('America/Managua'), - ('America/Manaus'), - ('America/Marigot'), - ('America/Martinique'), - ('America/Mazatlan'), - ('America/Mendoza'), - ('America/Menominee'), - ('America/Merida'), - ('America/Mexico_City'), - ('America/Miquelon'), - ('America/Moncton'), - ('America/Monterrey'), - ('America/Montevideo'), - ('America/Montreal'), - ('America/Montserrat'), - ('America/Nassau'), - ('America/New_York'), - ('America/Nipigon'), - ('America/Nome'), - ('America/Noronha'), - ('America/North_Dakota/Center'), - ('America/North_Dakota/New_Salem'), - ('America/Panama'), - ('America/Pangnirtung'), - ('America/Paramaribo'), - ('America/Phoenix'), - ('America/Port-au-Prince'), - ('America/Port_of_Spain'), - ('America/Porto_Acre'), - ('America/Porto_Velho'), - ('America/Puerto_Rico'), - ('America/Rainy_River'), - ('America/Rankin_Inlet'), - ('America/Recife'), - ('America/Regina'), - ('America/Resolute'), - ('America/Rio_Branco'), - ('America/Rosario'), - ('America/Santarem'), - ('America/Santiago'), - ('America/Santo_Domingo'), - ('America/Sao_Paulo'), - ('America/Scoresbysund'), - ('America/Shiprock'), - ('America/St_Barthelemy'), - ('America/St_Johns'), - ('America/St_Kitts'), - ('America/St_Lucia'), - ('America/St_Thomas'), - ('America/St_Vincent'), - ('America/Swift_Current'), - ('America/Tegucigalpa'), - ('America/Thule'), - ('America/Thunder_Bay'), - ('America/Tijuana'), - ('America/Toronto'), - ('America/Tortola'), - ('America/Vancouver'), - ('America/Virgin'), - ('America/Whitehorse'), - ('America/Winnipeg'), - ('America/Yakutat'), - ('America/Yellowknife'), - ('Antarctica/Casey'), - ('Antarctica/Davis'), - ('Antarctica/DumontDUrville'), - ('Antarctica/Mawson'), - ('Antarctica/McMurdo'), - ('Antarctica/Palmer'), - ('Antarctica/Rothera'), - ('Antarctica/South_Pole'), - ('Antarctica/Syowa'), - ('Antarctica/Vostok'), - ('Arctic/Longyearbyen'), - ('Asia/Aden'), - ('Asia/Almaty'), - ('Asia/Amman'), - ('Asia/Anadyr'), - ('Asia/Aqtau'), - ('Asia/Aqtobe'), - ('Asia/Ashgabat'), - ('Asia/Ashkhabad'), - ('Asia/Baghdad'), - ('Asia/Bahrain'), - ('Asia/Baku'), - ('Asia/Bangkok'), - ('Asia/Beirut'), - ('Asia/Bishkek'), - ('Asia/Brunei'), - ('Asia/Calcutta'), - ('Asia/Choibalsan'), - ('Asia/Chongqing'), - ('Asia/Chungking'), - ('Asia/Colombo'), - ('Asia/Dacca'), - ('Asia/Damascus'), - ('Asia/Dhaka'), - ('Asia/Dili'), - ('Asia/Dubai'), - ('Asia/Dushanbe'), - ('Asia/Gaza'), - ('Asia/Harbin'), - ('Asia/Ho_Chi_Minh'), - ('Asia/Hong_Kong'), - ('Asia/Hovd'), - ('Asia/Irkutsk'), - ('Asia/Istanbul'), - ('Asia/Jakarta'), - ('Asia/Jayapura'), - ('Asia/Jerusalem'), - ('Asia/Kabul'), - ('Asia/Kamchatka'), - ('Asia/Karachi'), - ('Asia/Kashgar'), - ('Asia/Kathmandu'), - ('Asia/Katmandu'), - ('Asia/Kolkata'), - ('Asia/Krasnoyarsk'), - ('Asia/Kuala_Lumpur'), - ('Asia/Kuching'), - ('Asia/Kuwait'), - ('Asia/Macao'), - ('Asia/Macau'), - ('Asia/Magadan'), - ('Asia/Makassar'), - ('Asia/Manila'), - ('Asia/Muscat'), - ('Asia/Nicosia'), - ('Asia/Novosibirsk'), - ('Asia/Omsk'), - ('Asia/Oral'), - ('Asia/Phnom_Penh'), - ('Asia/Pontianak'), - ('Asia/Pyongyang'), - ('Asia/Qatar'), - ('Asia/Qyzylorda'), - ('Asia/Rangoon'), - ('Asia/Riyadh'), - ('Asia/Saigon'), - ('Asia/Sakhalin'), - ('Asia/Samarkand'), - ('Asia/Seoul'), - ('Asia/Shanghai'), - ('Asia/Singapore'), - ('Asia/Taipei'), - ('Asia/Tashkent'), - ('Asia/Tbilisi'), - ('Asia/Tehran'), - ('Asia/Tel_Aviv'), - ('Asia/Thimbu'), - ('Asia/Thimphu'), - ('Asia/Tokyo'), - ('Asia/Ujung_Pandang'), - ('Asia/Ulaanbaatar'), - ('Asia/Ulan_Bator'), - ('Asia/Urumqi'), - ('Asia/Vientiane'), - ('Asia/Vladivostok'), - ('Asia/Yakutsk'), - ('Asia/Yekaterinburg'), - ('Asia/Yerevan'), - ('Atlantic/Azores'), - ('Atlantic/Bermuda'), - ('Atlantic/Canary'), - ('Atlantic/Cape_Verde'), - ('Atlantic/Faeroe'), - ('Atlantic/Faroe'), - ('Atlantic/Jan_Mayen'), - ('Atlantic/Madeira'), - ('Atlantic/Reykjavik'), - ('Atlantic/South_Georgia'), - ('Atlantic/St_Helena'), - ('Atlantic/Stanley'), - ('Australia/ACT'), - ('Australia/Adelaide'), - ('Australia/Brisbane'), - ('Australia/Broken_Hill'), - ('Australia/Canberra'), - ('Australia/Currie'), - ('Australia/Darwin'), - ('Australia/Eucla'), - ('Australia/Hobart'), - ('Australia/LHI'), - ('Australia/Lindeman'), - ('Australia/Lord_Howe'), - ('Australia/Melbourne'), - ('Australia/North'), - ('Australia/NSW'), - ('Australia/Perth'), - ('Australia/Queensland'), - ('Australia/South'), - ('Australia/Sydney'), - ('Australia/Tasmania'), - ('Australia/Victoria'), - ('Australia/West'), - ('Australia/Yancowinna'), - ('Europe/Amsterdam'), - ('Europe/Andorra'), - ('Europe/Athens'), - ('Europe/Belfast'), - ('Europe/Belgrade'), - ('Europe/Berlin'), - ('Europe/Bratislava'), - ('Europe/Brussels'), - ('Europe/Bucharest'), - ('Europe/Budapest'), - ('Europe/Chisinau'), - ('Europe/Copenhagen'), - ('Europe/Dublin'), - ('Europe/Gibraltar'), - ('Europe/Guernsey'), - ('Europe/Helsinki'), - ('Europe/Isle_of_Man'), - ('Europe/Istanbul'), - ('Europe/Jersey'), - ('Europe/Kaliningrad'), - ('Europe/Kiev'), - ('Europe/Lisbon'), - ('Europe/Ljubljana'), - ('Europe/London'), - ('Europe/Luxembourg'), - ('Europe/Madrid'), - ('Europe/Malta'), - ('Europe/Mariehamn'), - ('Europe/Minsk'), - ('Europe/Monaco'), - ('Europe/Moscow'), - ('Europe/Nicosia'), - ('Europe/Oslo'), - ('Europe/Paris'), - ('Europe/Podgorica'), - ('Europe/Prague'), - ('Europe/Riga'), - ('Europe/Rome'), - ('Europe/Samara'), - ('Europe/San_Marino'), - ('Europe/Sarajevo'), - ('Europe/Simferopol'), - ('Europe/Skopje'), - ('Europe/Sofia'), - ('Europe/Stockholm'), - ('Europe/Tallinn'), - ('Europe/Tirane'), - ('Europe/Tiraspol'), - ('Europe/Uzhgorod'), - ('Europe/Vaduz'), - ('Europe/Vatican'), - ('Europe/Vienna'), - ('Europe/Vilnius'), - ('Europe/Volgograd'), - ('Europe/Warsaw'), - ('Europe/Zagreb'), - ('Europe/Zaporozhye'), - ('Europe/Zurich'), - ('Indian/Antananarivo'), - ('Indian/Chagos'), - ('Indian/Christmas'), - ('Indian/Cocos'), - ('Indian/Comoro'), - ('Indian/Kerguelen'), - ('Indian/Mahe'), - ('Indian/Maldives'), - ('Indian/Mauritius'), - ('Indian/Mayotte'), - ('Indian/Reunion'), - ('Pacific/Apia'), - ('Pacific/Auckland'), - ('Pacific/Chatham'), - ('Pacific/Easter'), - ('Pacific/Efate'), - ('Pacific/Enderbury'), - ('Pacific/Fakaofo'), - ('Pacific/Fiji'), - ('Pacific/Funafuti'), - ('Pacific/Galapagos'), - ('Pacific/Gambier'), - ('Pacific/Guadalcanal'), - ('Pacific/Guam'), - ('Pacific/Honolulu'), - ('Pacific/Johnston'), - ('Pacific/Kiritimati'), - ('Pacific/Kosrae'), - ('Pacific/Kwajalein'), - ('Pacific/Majuro'), - ('Pacific/Marquesas'), - ('Pacific/Midway'), - ('Pacific/Nauru'), - ('Pacific/Niue'), - ('Pacific/Norfolk'), - ('Pacific/Noumea'), - ('Pacific/Pago_Pago'), - ('Pacific/Palau'), - ('Pacific/Pitcairn'), - ('Pacific/Ponape'), - ('Pacific/Port_Moresby'), - ('Pacific/Rarotonga'), - ('Pacific/Saipan'), - ('Pacific/Samoa'), - ('Pacific/Tahiti'), - ('Pacific/Tarawa'), - ('Pacific/Tongatapu'), - ('Pacific/Truk'), - ('Pacific/Wake'), - ('Pacific/Wallis'), - ('Pacific/Yap'), - ('Brazil/Acre'), - ('Brazil/DeNoronha'), - ('Brazil/East'), - ('Brazil/West'), - ('Canada/Atlantic'), - ('Canada/Central'), - ('Canada/East-Saskatchewan'), - ('Canada/Eastern'), - ('Canada/Mountain'), - ('Canada/Newfoundland'), - ('Canada/Pacific'), - ('Canada/Saskatchewan'), - ('Canada/Yukon'), - ('CET'), - ('Chile/Continental'), - ('Chile/EasterIsland'), - ('CST6CDT'), - ('Cuba'), - ('EET'), - ('Egypt'), - ('Eire'), - ('EST'), - ('EST5EDT'), - ('Etc/GMT'), - ('Etc/GMT+0'), - ('Etc/GMT+1'), - ('Etc/GMT+10'), - ('Etc/GMT+11'), - ('Etc/GMT+12'), - ('Etc/GMT+2'), - ('Etc/GMT+3'), - ('Etc/GMT+4'), - ('Etc/GMT+5'), - ('Etc/GMT+6'), - ('Etc/GMT+7'), - ('Etc/GMT+8'), - ('Etc/GMT+9'), - ('Etc/GMT-0'), - ('Etc/GMT-1'), - ('Etc/GMT-10'), - ('Etc/GMT-11'), - ('Etc/GMT-12'), - ('Etc/GMT-13'), - ('Etc/GMT-14'), - ('Etc/GMT-2'), - ('Etc/GMT-3'), - ('Etc/GMT-4'), - ('Etc/GMT-5'), - ('Etc/GMT-6'), - ('Etc/GMT-7'), - ('Etc/GMT-8'), - ('Etc/GMT-9'), - ('Etc/GMT0'), - ('Etc/Greenwich'), - ('Etc/UCT'), - ('Etc/Universal'), - ('Etc/UTC'), - ('Etc/Zulu'), - ('Factory'), - ('GB'), - ('GB-Eire'), - ('GMT'), - ('GMT+0'), - ('GMT-0'), - ('GMT0'), - ('Greenwich'), - ('Hongkong'), - ('HST'), - ('Iceland'), - ('Iran'), - ('Israel'), - ('Jamaica'), - ('Japan'), - ('Kwajalein'), - ('Libya'), - ('MET'), - ('Mexico/BajaNorte'), - ('Mexico/BajaSur'), - ('Mexico/General'), - ('MST'), - ('MST7MDT'), - ('Navajo'), - ('NZ'), - ('NZ-CHAT'), - ('Poland'), - ('Portugal'), - ('PRC'), - ('PST8PDT'), - ('ROC'), - ('ROK'), - ('Singapore'), - ('Turkey'), - ('UCT'), - ('Universal'), - ('US/Alaska'), - ('US/Aleutian'), - ('US/Arizona'), - ('US/Central'), - ('US/East-Indiana'), - ('US/Eastern'), - ('US/Hawaii'), - ('US/Indiana-Starke'), - ('US/Michigan'), - ('US/Mountain'), - ('US/Pacific'), - ('US/Pacific-New'), - ('US/Samoa'), - ('UTC'), - ('W-SU'), - ('WET'), - ('Zulu'); - -DELETE FROM `PREFIX_discount_category` -WHERE `id_discount` IN ( - SELECT `id_discount` FROM ( - SELECT dc.`id_discount` - FROM `PREFIX_discount_category` dc - LEFT JOIN `PREFIX_discount`d ON (d.`id_discount` = dc.`id_discount`) - WHERE d.`id_discount` IS NULL - GROUP BY dc.`id_discount`) discount_category_tmp - ); - -DELETE FROM `PREFIX_configuration` WHERE `name` = 'PS_DISPLAY_WITHOUT_TAX'; - -INSERT INTO PREFIX_hook (`name`, `title`, `description`, `position`) VALUES - ('updateCarrier', 'Carrier update', 'This hook is called when a carrier is updated', 0); diff --git a/install-dev/sql/upgrade/1.2.0.3.sql b/install-dev/sql/upgrade/1.2.0.3.sql deleted file mode 100644 index 9f6f078ee..000000000 --- a/install-dev/sql/upgrade/1.2.0.3.sql +++ /dev/null @@ -1,33 +0,0 @@ -SET NAMES 'utf8'; - -/* ##################################### */ -/* STRUCTURE */ -/* ##################################### */ - -ALTER TABLE `PREFIX_customization` - ADD `quantity_refunded` INT NOT NULL DEFAULT '0'; -ALTER TABLE `PREFIX_customization` - ADD `quantity_returned` INT NOT NULL DEFAULT '0'; - -ALTER TABLE `PREFIX_alias` - CHANGE `id_alias` `id_alias` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT; -ALTER TABLE `PREFIX_attribute_impact` - CHANGE `id_attribute_impact` `id_attribute_impact` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT; -ALTER TABLE `PREFIX_customization` - CHANGE `id_customization` `id_customization` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT; -ALTER TABLE `PREFIX_customization_field` - CHANGE `id_customization_field` `id_customization_field` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT; -ALTER TABLE `PREFIX_subdomain` - CHANGE `id_subdomain` `id_subdomain` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT; - - -/* ##################################### */ -/* CONTENTS */ -/* ##################################### */ - -INSERT INTO `PREFIX_search_engine` (`server`,`getvar`) VALUES - ('bing.com','q'); - -INSERT INTO `PREFIX_hook_module` (`id_module`, `id_hook`, `position`) VALUES - (19, 9, 1); - diff --git a/install-dev/sql/upgrade/1.2.0.4.sql b/install-dev/sql/upgrade/1.2.0.4.sql deleted file mode 100644 index 2b4f66a32..000000000 --- a/install-dev/sql/upgrade/1.2.0.4.sql +++ /dev/null @@ -1,10 +0,0 @@ -SET NAMES 'utf8'; - -/* ##################################### */ -/* STRUCTURE */ -/* ##################################### */ - -/* ##################################### */ -/* CONTENTS */ -/* ##################################### */ - diff --git a/install-dev/sql/upgrade/1.2.0.5.sql b/install-dev/sql/upgrade/1.2.0.5.sql deleted file mode 100644 index 7512ab24a..000000000 --- a/install-dev/sql/upgrade/1.2.0.5.sql +++ /dev/null @@ -1,17 +0,0 @@ -SET NAMES 'utf8'; - -/* ##################################### */ -/* STRUCTURE */ -/* ##################################### */ - -/* ##################################### */ -/* CONTENTS */ -/* ##################################### */ - -UPDATE `PREFIX_order_state_lang` -SET `name` = 'Shipped' -WHERE `id_order_state` = 4 AND `id_lang` = 1; - -UPDATE `PREFIX_order_state_lang` SET `template` = 'shipped' WHERE `id_order_state` = 4 AND `template` = 'shipping'; - -/* PHP:reorderpositions(); */; \ No newline at end of file diff --git a/install-dev/sql/upgrade/1.2.0.6.sql b/install-dev/sql/upgrade/1.2.0.6.sql deleted file mode 100644 index fc88820b8..000000000 --- a/install-dev/sql/upgrade/1.2.0.6.sql +++ /dev/null @@ -1,14 +0,0 @@ -SET NAMES 'utf8'; - -/* ##################################### */ -/* STRUCTURE */ -/* ##################################### */ - -ALTER TABLE `PREFIX_configuration` DROP INDEX `configuration_name`; -ALTER TABLE `PREFIX_order_detail` ADD `product_quantity_in_stock` INT(10) NOT NULL DEFAULT 0 AFTER `product_quantity`; -ALTER TABLE `PREFIX_order_detail` ADD `product_quantity_reinjected` INT(10) UNSIGNED NOT NULL DEFAULT 0 AFTER `product_quantity_return`; - -/* ##################################### */ -/* CONTENTS */ -/* ##################################### */ -UPDATE `PREFIX_product` SET `out_of_stock` = 0 WHERE `id_product` IN ((SELECT `id_product` FROM `PREFIX_product_download`)); diff --git a/install-dev/sql/upgrade/1.2.0.7.sql b/install-dev/sql/upgrade/1.2.0.7.sql deleted file mode 100644 index 5cd1d4109..000000000 --- a/install-dev/sql/upgrade/1.2.0.7.sql +++ /dev/null @@ -1,12 +0,0 @@ -SET NAMES 'utf8'; - -/* ##################################### */ -/* STRUCTURE */ -/* ##################################### */ - - -/* ##################################### */ -/* CONTENTS */ -/* ##################################### */ - -/* PHP:update_modules_sql(); */; diff --git a/install-dev/sql/upgrade/1.2.0.8.sql b/install-dev/sql/upgrade/1.2.0.8.sql deleted file mode 100644 index eeda18cd2..000000000 --- a/install-dev/sql/upgrade/1.2.0.8.sql +++ /dev/null @@ -1,10 +0,0 @@ -SET NAMES 'utf8'; - -/* ##################################### */ -/* STRUCTURE */ -/* ##################################### */ - - -/* ##################################### */ -/* CONTENTS */ -/* ##################################### */ diff --git a/install-dev/sql/upgrade/1.2.1.0.sql b/install-dev/sql/upgrade/1.2.1.0.sql deleted file mode 100644 index d11032a29..000000000 --- a/install-dev/sql/upgrade/1.2.1.0.sql +++ /dev/null @@ -1,16 +0,0 @@ -SET NAMES 'utf8'; - -/* ##################################### */ -/* STRUCTURE */ -/* ##################################### */ - - -/* ##################################### */ -/* CONTENTS */ -/* ##################################### */ - -INSERT INTO PREFIX_configuration (name, value, date_add, date_upd) VALUES ('PS_THEME_V11', 0, NOW(), NOW()); - -/* PHP */ -/* PHP:update_carrier_url(); */; -/* PHP:moduleReinstaller('blocksearch'); */; diff --git a/install-dev/sql/upgrade/1.2.2.0.sql b/install-dev/sql/upgrade/1.2.2.0.sql deleted file mode 100644 index 27e0498df..000000000 --- a/install-dev/sql/upgrade/1.2.2.0.sql +++ /dev/null @@ -1,6 +0,0 @@ -SET NAMES 'utf8'; - -ALTER TABLE `PREFIX_discount_category` ADD INDEX ( `id_discount` ); - -DELETE FROM `PREFIX_delivery` WHERE `id_range_weight` != NULL AND `id_range_weight` NOT IN (SELECT `id_range_weight` FROM `PREFIX_range_weight`); -DELETE FROM `PREFIX_delivery` WHERE `id_range_price` != NULL AND `id_range_weight` NOT IN (SELECT `id_range_price` FROM `PREFIX_range_price`); diff --git a/install-dev/sql/upgrade/1.2.3.0.sql b/install-dev/sql/upgrade/1.2.3.0.sql deleted file mode 100644 index 3f288763f..000000000 --- a/install-dev/sql/upgrade/1.2.3.0.sql +++ /dev/null @@ -1,3 +0,0 @@ -SET NAMES 'utf8'; - -ALTER TABLE `PREFIX_category_product` ADD INDEX (`id_product`); diff --git a/install-dev/sql/upgrade/1.2.4.0.sql b/install-dev/sql/upgrade/1.2.4.0.sql deleted file mode 100644 index 0b4cf1b2f..000000000 --- a/install-dev/sql/upgrade/1.2.4.0.sql +++ /dev/null @@ -1 +0,0 @@ -SET NAMES 'utf8'; diff --git a/install-dev/sql/upgrade/1.2.5.0.sql b/install-dev/sql/upgrade/1.2.5.0.sql deleted file mode 100644 index 0b4cf1b2f..000000000 --- a/install-dev/sql/upgrade/1.2.5.0.sql +++ /dev/null @@ -1 +0,0 @@ -SET NAMES 'utf8'; diff --git a/install-dev/sql/upgrade/1.3.0.1.sql b/install-dev/sql/upgrade/1.3.0.1.sql deleted file mode 100644 index b043fd51b..000000000 --- a/install-dev/sql/upgrade/1.3.0.1.sql +++ /dev/null @@ -1,92 +0,0 @@ -SET NAMES 'utf8'; - -/* ##################################### */ -/* STRUCTURE */ -/* ##################################### */ - -ALTER TABLE `PREFIX_product` -CHANGE `reduction_from` `reduction_from` DATE NOT NULL DEFAULT '1970-01-01', -CHANGE `reduction_to` `reduction_to` DATE NOT NULL DEFAULT '1970-01-01'; - -ALTER TABLE `PREFIX_order_detail` CHANGE `tax_rate` `tax_rate` DECIMAL(10, 3) NOT NULL DEFAULT '0.000'; -ALTER TABLE `PREFIX_group` ADD `price_display_method` TINYINT NOT NULL DEFAULT 0 AFTER `reduction`; - -CREATE TABLE `PREFIX_carrier_group` ( - `id_carrier` int(10) unsigned NOT NULL, - `id_group` int(10) unsigned NOT NULL, - UNIQUE KEY `id_carrier` (`id_carrier`,`id_group`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -ALTER TABLE `PREFIX_country` ADD `need_identification_number` TINYINT( 1 ) NOT NULL; -ALTER TABLE `PREFIX_customer` ADD `dni` VARCHAR( 16 ) NULL AFTER `firstname`; - -ALTER TABLE `PREFIX_image` ADD INDEX `product_position` (`id_product`, `position`); -ALTER TABLE `PREFIX_hook_module` ADD INDEX `id_module` (`id_module`); -ALTER TABLE `PREFIX_customer` ADD INDEX `id_customer_passwd` (`id_customer`, `passwd`); -ALTER TABLE `PREFIX_tag` ADD INDEX `id_lang` (`id_lang`); -ALTER TABLE `PREFIX_customer_group` ADD INDEX `id_customer` (`id_customer`); -ALTER TABLE `PREFIX_category_group` ADD INDEX `id_category` (`id_category`); -ALTER TABLE `PREFIX_image` ADD INDEX `id_product_cover` (`id_product`, `cover`); -ALTER TABLE `PREFIX_employee` ADD INDEX `id_employee_passwd` (`id_employee`, `passwd`); -ALTER TABLE `PREFIX_product_attribute` ADD INDEX `product_default` (`id_product`, `default_on`); -ALTER TABLE `PREFIX_product_download` ADD INDEX `product_active` (`id_product`, `active`); -ALTER TABLE `PREFIX_tab` ADD INDEX `class_name` (`class_name`); -ALTER TABLE `PREFIX_module_currency` ADD INDEX `id_module` (`id_module`); -ALTER TABLE `PREFIX_product_attribute_combination` ADD INDEX `id_product_attribute` (`id_product_attribute`); -ALTER TABLE `PREFIX_orders` ADD INDEX `invoice_number` (`invoice_number`); -ALTER TABLE `PREFIX_product_tag` ADD INDEX `id_tag` (`id_tag`); -ALTER TABLE `PREFIX_cms_lang` CHANGE `id_cms` `id_cms` INT(10) UNSIGNED NOT NULL; -ALTER TABLE `PREFIX_tax` CHANGE `rate` `rate` DECIMAL(10, 3) NOT NULL; - -ALTER TABLE `PREFIX_order_detail` ADD `discount_quantity_applied` TINYINT(1) NOT NULL DEFAULT 0 AFTER `ecotax`; -ALTER TABLE `PREFIX_orders` ADD `total_products_wt` DECIMAL(10, 2) NOT NULL AFTER `total_products`; - -/* ##################################### */ -/* CONTENTS */ -/* ##################################### */ - -UPDATE IGNORE `PREFIX_group` SET `price_display_method` = IFNULL((SELECT `value` FROM `PREFIX_configuration` WHERE `name` = 'PS_PRICE_DISPLAY'), 0); - -UPDATE `PREFIX_configuration` -SET `value` = ROUND(value / (1 + ( - SELECT rate FROM ( - SELECT t.`rate`, COUNT(*) n - FROM `PREFIX_orders` o - LEFT JOIN `PREFIX_carrier` c ON (o.`id_carrier` = c.`id_carrier`) - LEFT JOIN `PREFIX_tax` t ON (t.`id_tax` = c.`id_tax`) - WHERE c.`deleted` = 0 - AND c.`shipping_handling` = 1 - GROUP BY o.`id_carrier` - ORDER BY n DESC - LIMIT 1 - ) myrate -) / 100), 6) -WHERE `name` = 'PS_SHIPPING_HANDLING'; - -DELETE FROM `PREFIX_configuration` WHERE `name` = 'PS_PRICE_DISPLAY'; -DELETE FROM `PREFIX_product_attachment` WHERE `id_product` NOT IN (SELECT `id_product` FROM `PREFIX_product`); -DELETE FROM `PREFIX_discount_quantity` WHERE `id_product` NOT IN (SELECT `id_product` FROM `PREFIX_product`); -DELETE FROM `PREFIX_pack` WHERE `id_product_pack` NOT IN (SELECT `id_product` FROM `PREFIX_product`) OR `id_product_item` NOT IN (SELECT `id_product` FROM `PREFIX_product`); -DELETE FROM `PREFIX_product_sale` WHERE `id_product` NOT IN (SELECT `id_product` FROM `PREFIX_product`); -DELETE FROM `PREFIX_scene_products` WHERE `id_product` NOT IN (SELECT `id_product` FROM `PREFIX_product`); -DELETE FROM `PREFIX_search_index` WHERE `id_product` NOT IN (SELECT `id_product` FROM `PREFIX_product`); -DELETE FROM `PREFIX_search_word` WHERE `id_word` NOT IN (SELECT `id_word` FROM `PREFIX_search_index`); -DELETE FROM `PREFIX_tag` WHERE `id_lang` NOT IN (SELECT `id_lang` FROM `PREFIX_lang`); -DELETE FROM `PREFIX_search_word` WHERE `id_lang` NOT IN (SELECT `id_lang` FROM `PREFIX_lang`); - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES -('PRESTASTORE_LIVE', 1, NOW(), NOW()), -('PS_SHOW_ALL_MODULES', 0, NOW(), NOW()), -('PS_BACKUP_ALL', 0, NOW(), NOW()), -('PS_1_3_UPDATE_DATE', NOW(), NOW(), NOW()), -('PS_PRICE_ROUND_MODE', 2, NOW(), NOW()); -INSERT INTO `PREFIX_hook` (`name`, `title`, `description`, `position`) VALUES -('createAccountTop', 'Block above the form for create an account', NULL , '1'), -('backOfficeHeader', 'Administration panel header', NULL , '0'), -('backOfficeTop', 'Administration panel top hover the tabs', NULL , '1'), -('backOfficeFooter', 'Administration panel footer', NULL , '1'); - -INSERT INTO `PREFIX_carrier_group` (id_carrier, id_group) (SELECT id_carrier, id_group FROM `PREFIX_carrier` c, `PREFIX_group` g WHERE c.active = 1); - -/* PHP */ -/* PHP:convert_product_price(); */; diff --git a/install-dev/sql/upgrade/1.3.0.10.sql b/install-dev/sql/upgrade/1.3.0.10.sql deleted file mode 100644 index 5354e7131..000000000 --- a/install-dev/sql/upgrade/1.3.0.10.sql +++ /dev/null @@ -1,5 +0,0 @@ -SET NAMES 'utf8'; - -ALTER TABLE `PREFIX_order_detail` ADD INDEX `id_order_id_order_detail` (`id_order`, `id_order_detail`); -ALTER TABLE `PREFIX_category_group` ADD INDEX `id_group` (`id_group`); -ALTER TABLE `PREFIX_product` ADD INDEX `date_add` (`date_add`); \ No newline at end of file diff --git a/install-dev/sql/upgrade/1.3.0.2.sql b/install-dev/sql/upgrade/1.3.0.2.sql deleted file mode 100644 index 9069781e8..000000000 --- a/install-dev/sql/upgrade/1.3.0.2.sql +++ /dev/null @@ -1,147 +0,0 @@ -SET NAMES 'utf8'; - -/* ##################################### */ -/* STRUCTURE */ -/* ##################################### */ - -ALTER TABLE `PREFIX_product_attachment` -CHANGE `id_product` `id_product` INT(10) UNSIGNED NOT NULL, -CHANGE `id_attachment` `id_attachment` INT(10) UNSIGNED NOT NULL; - -ALTER TABLE `PREFIX_attribute_impact` -CHANGE `id_product` `id_product` INT(11) UNSIGNED NOT NULL, -CHANGE `id_attribute` `id_attribute` INT(11) UNSIGNED NOT NULL; - -ALTER TABLE `PREFIX_block_cms` -CHANGE `id_block` `id_block` INT(10) UNSIGNED NOT NULL, -CHANGE `id_cms` `id_cms` INT(10) UNSIGNED NOT NULL; - -ALTER TABLE `PREFIX_customization` -CHANGE `id_cart` `id_cart` int(10) unsigned NOT NULL, -CHANGE `id_product_attribute` `id_product_attribute` int(10) unsigned NOT NULL default '0'; - -ALTER TABLE `PREFIX_customization_field` -CHANGE `id_product` `id_product` int(10) unsigned NOT NULL; - -ALTER TABLE `PREFIX_customization_field_lang` -CHANGE `id_customization_field` `id_customization_field` int(10) unsigned NOT NULL, -CHANGE `id_lang` `id_lang` int(10) unsigned NOT NULL; - -ALTER TABLE `PREFIX_customized_data` -CHANGE `id_customization` `id_customization` int(10) unsigned NOT NULL; - -ALTER TABLE `PREFIX_discount_category` -CHANGE `id_category` `id_category` int(11) unsigned NOT NULL, -CHANGE `id_discount` `id_discount` int(11) unsigned NOT NULL; - -ALTER TABLE `PREFIX_module_group` -CHANGE `id_group` `id_group` int(11) unsigned NOT NULL; - -ALTER TABLE `PREFIX_order_return_detail` -CHANGE `id_customization` `id_customization` int(10) unsigned NOT NULL default '0'; - -ALTER TABLE `PREFIX_product_attribute_image` -CHANGE `id_product_attribute` `id_product_attribute` int(10) unsigned NOT NULL, -CHANGE `id_image` `id_image` int(10) unsigned NOT NULL; - -ALTER TABLE `PREFIX_referrer_cache` -CHANGE `id_connections_source` `id_connections_source` int(11) unsigned NOT NULL, -CHANGE `id_referrer` `id_referrer` int(11) unsigned NOT NULL; - -ALTER TABLE `PREFIX_scene_category` -CHANGE `id_scene` `id_scene` int(10) unsigned NOT NULL, -CHANGE `id_category` `id_category` int(10) unsigned NOT NULL; - -ALTER TABLE `PREFIX_scene_lang` -CHANGE `id_scene` `id_scene` int(10) unsigned NOT NULL, -CHANGE `id_lang` `id_lang` int(10) unsigned NOT NULL; - -ALTER TABLE `PREFIX_scene_products` -CHANGE `id_scene` `id_scene` int(10) unsigned NOT NULL, -CHANGE `id_product` `id_product` int(10) unsigned NOT NULL; - -ALTER TABLE `PREFIX_search_index` -CHANGE `id_product` `id_product` int(11) unsigned NOT NULL, -CHANGE `id_word` `id_word` int(11) unsigned NOT NULL; - -ALTER TABLE `PREFIX_state` -CHANGE `id_country` `id_country` int(11) unsigned NOT NULL, -CHANGE `id_zone` `id_zone` int(11) unsigned NOT NULL; - -ALTER TABLE `PREFIX_category_lang` -CHANGE `meta_keywords` `meta_keywords` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, -CHANGE `meta_description` `meta_description` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL ; - -ALTER TABLE `PREFIX_supplier_lang` -CHANGE `meta_title` `meta_title` VARCHAR( 128 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, -CHANGE `meta_keywords` `meta_keywords` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, -CHANGE `meta_description` `meta_description` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL ; - -ALTER TABLE `PREFIX_manufacturer_lang` -CHANGE `meta_title` `meta_title` VARCHAR( 128 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, -CHANGE `meta_keywords` `meta_keywords` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, -CHANGE `meta_description` `meta_description` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL ; - -ALTER TABLE `PREFIX_meta_lang` -CHANGE `title` `title` VARCHAR( 128 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL ; - -/* ##################################### */ -/* PRICE RANGE */ -/* ##################################### */ - -ALTER TABLE `PREFIX_attribute_impact` CHANGE `price` `price` DECIMAL(17, 2) NOT NULL; - -ALTER TABLE `PREFIX_delivery` CHANGE `price` `price` DECIMAL(17, 2) NOT NULL; - -ALTER TABLE `PREFIX_discount` CHANGE `value` `value` DECIMAL(17, 2) NOT NULL DEFAULT '0.00', -CHANGE `minimal` `minimal` DECIMAL(17, 2) NULL DEFAULT NULL; - -ALTER TABLE `PREFIX_discount_quantity` CHANGE `value` `value` DECIMAL(17, 2) UNSIGNED NOT NULL; - -ALTER TABLE `PREFIX_group` CHANGE `reduction` `reduction` DECIMAL(17, 2) NOT NULL DEFAULT '0.00'; - -ALTER TABLE `PREFIX_orders` CHANGE `total_discounts` `total_discounts` DECIMAL(17, 2) NOT NULL DEFAULT '0.00', -CHANGE `total_paid` `total_paid` DECIMAL(17, 2) NOT NULL DEFAULT '0.00', -CHANGE `total_paid_real` `total_paid_real` DECIMAL(17, 2) NOT NULL DEFAULT '0.00', -CHANGE `total_products` `total_products` DECIMAL(17, 2) NOT NULL DEFAULT '0.00', -CHANGE `total_products_wt` `total_products_wt` DECIMAL(17, 2) NOT NULL DEFAULT '0.00', -CHANGE `total_shipping` `total_shipping` DECIMAL(17, 2) NOT NULL DEFAULT '0.00', -CHANGE `total_wrapping` `total_wrapping` DECIMAL(17, 2) NOT NULL DEFAULT '0.00'; - -ALTER TABLE `PREFIX_order_detail` CHANGE `product_price` `product_price` DECIMAL(20, 6) NOT NULL DEFAULT '0.000000', -CHANGE `product_quantity_discount` `product_quantity_discount` DECIMAL(20, 6) NOT NULL DEFAULT '0.000000', -CHANGE `ecotax` `ecotax` decimal(17,2) NOT NULL default '0.00'; - -ALTER TABLE `PREFIX_order_discount` CHANGE `value` `value` DECIMAL(17, 2) NOT NULL DEFAULT '0.00'; - -ALTER TABLE `PREFIX_product` CHANGE `price` `price` DECIMAL(20, 6) NOT NULL DEFAULT '0.000000', -CHANGE `wholesale_price` `wholesale_price` DECIMAL(20, 6) NOT NULL DEFAULT '0.000000', -CHANGE `ecotax` `ecotax` DECIMAL(17, 2) NOT NULL DEFAULT '0.00', -CHANGE `reduction_price` `reduction_price` DECIMAL(17, 2) NULL DEFAULT NULL; - -ALTER TABLE `PREFIX_product_attribute` CHANGE `wholesale_price` `wholesale_price` DECIMAL(20, 6) NOT NULL DEFAULT '0.000000', -CHANGE `price` `price` DECIMAL(17, 2) NOT NULL DEFAULT '0.00', -CHANGE `ecotax` `ecotax` DECIMAL(17, 2) NOT NULL DEFAULT '0.00'; - -ALTER TABLE `PREFIX_range_price` CHANGE `delimiter1` `delimiter1` DECIMAL(20, 6) NOT NULL, -CHANGE `delimiter2` `delimiter2` DECIMAL(20, 6) NOT NULL; - -ALTER TABLE `PREFIX_range_weight` CHANGE `delimiter1` `delimiter1` DECIMAL(20, 6) NOT NULL, -CHANGE `delimiter2` `delimiter2` DECIMAL(20, 6) NOT NULL; - -ALTER TABLE `PREFIX_referrer` CHANGE `cache_sales` `cache_sales` DECIMAL(17, 2) NULL DEFAULT NULL; - -UPDATE `PREFIX_configuration` -SET `value` = IFNULL(ROUND(value / (1 + ( - SELECT `rate` - FROM `PREFIX_tax` - WHERE `id_tax` = ( - SELECT `value` - FROM ( - SELECT `value` - FROM `PREFIX_configuration` - WHERE `name` = 'PS_GIFT_WRAPPING_TAX' - )tmp - ) -) / 100), 2), 0) -WHERE `name` = 'PS_GIFT_WRAPPING_PRICE'; diff --git a/install-dev/sql/upgrade/1.3.0.3.sql b/install-dev/sql/upgrade/1.3.0.3.sql deleted file mode 100644 index 7adb283eb..000000000 --- a/install-dev/sql/upgrade/1.3.0.3.sql +++ /dev/null @@ -1,15 +0,0 @@ -SET NAMES 'utf8'; - -ALTER TABLE `PREFIX_tab` CHANGE `id_parent` `id_parent` INT(11) NOT NULL; -INSERT INTO `PREFIX_tab` (`id_tab`, `class_name`, `id_parent`, `position`) -VALUES (43, 'AdminSearch', -1, 0) -ON DUPLICATE KEY -UPDATE `id_parent` = -1; - -ALTER TABLE `PREFIX_search_engine` ADD UNIQUE (`server`,`getvar`); -REPLACE INTO `PREFIX_search_engine` (`server`,`getvar`) -VALUES ('google','q'),('aol','q'),('yandex','text'),('ask.com','q'),('nhl.com','q'),('yahoo','p'),('baidu','wd'), -('lycos','query'),('exalead','q'),('search.live','q'),('voila','rdata'),('altavista','q'),('bing','q'),('daum','q'), -('eniro','search_word'),('naver','query'),('msn','q'),('netscape','query'),('cnn','query'),('about','terms'),('mamma','query'), -('alltheweb','q'),('virgilio','qs'),('alice','qs'),('najdi','q'),('mama','query'),('seznam','q'),('onet','qt'),('szukacz','q'), -('yam','k'),('pchome','q'),('kvasir','q'),('sesam','q'),('ozu','q'),('terra','query'),('mynet','q'),('ekolay','q'),('rambler','words'); \ No newline at end of file diff --git a/install-dev/sql/upgrade/1.3.0.4.sql b/install-dev/sql/upgrade/1.3.0.4.sql deleted file mode 100644 index 46ad8ccb4..000000000 --- a/install-dev/sql/upgrade/1.3.0.4.sql +++ /dev/null @@ -1,83 +0,0 @@ -SET NAMES 'utf8'; - -DELETE FROM `PREFIX_tax_state` WHERE `id_tax` NOT IN (SELECT `id_tax` FROM `PREFIX_tax`); - -ALTER TABLE `PREFIX_product` CHANGE `reduction_from` `reduction_from` DATETIME NOT NULL DEFAULT '1970-01-01 00:00:00', -CHANGE `reduction_to` `reduction_to` DATETIME NOT NULL DEFAULT '1970-01-01 00:00:00'; - -UPDATE `PREFIX_product` -SET `reduction_to` = DATE_ADD(reduction_to, INTERVAL 1 DAY) -WHERE `reduction_from` != `reduction_to`; - -ALTER TABLE `PREFIX_discount` ADD `id_currency` INT UNSIGNED NOT NULL DEFAULT 0 AFTER `id_customer`; -UPDATE `PREFIX_discount` SET `id_currency` = (SELECT `value` FROM `PREFIX_configuration` WHERE `name` = 'PS_CURRENCY_DEFAULT' LIMIT 1) WHERE `id_discount_type` = 2; - -ALTER TABLE `PREFIX_address` ADD INDEX (id_country); -ALTER TABLE `PREFIX_address` ADD INDEX (id_state); -ALTER TABLE `PREFIX_address` ADD INDEX (id_manufacturer); -ALTER TABLE `PREFIX_address` ADD INDEX (id_supplier); -ALTER TABLE `PREFIX_carrier` ADD INDEX (id_tax); -ALTER TABLE `PREFIX_cart` ADD INDEX (id_address_delivery); -ALTER TABLE `PREFIX_cart` ADD INDEX (id_address_invoice); -ALTER TABLE `PREFIX_cart` ADD INDEX (id_carrier); -ALTER TABLE `PREFIX_cart` ADD INDEX (id_lang); -ALTER TABLE `PREFIX_cart` ADD INDEX (id_currency); -ALTER TABLE `PREFIX_cart_product` ADD INDEX (id_product_attribute); -ALTER TABLE `PREFIX_connections` ADD INDEX (id_page); -ALTER TABLE `PREFIX_customer` ADD INDEX (id_gender); -ALTER TABLE `PREFIX_customization` ADD INDEX (id_product_attribute); -ALTER TABLE `PREFIX_customization_field` ADD INDEX (id_product); -ALTER TABLE `PREFIX_delivery` ADD INDEX (id_range_price); -ALTER TABLE `PREFIX_delivery` ADD INDEX (id_range_weight); -ALTER TABLE `PREFIX_discount` ADD INDEX (id_discount_type); -ALTER TABLE `PREFIX_discount_quantity` ADD INDEX (id_discount_type); -ALTER TABLE `PREFIX_discount_quantity` ADD INDEX (id_product); -ALTER TABLE `PREFIX_discount_quantity` ADD INDEX (id_product_attribute); -ALTER TABLE `PREFIX_employee` ADD INDEX (id_profile); -ALTER TABLE `PREFIX_feature_product` ADD INDEX (id_feature_value); -ALTER TABLE `PREFIX_guest` ADD INDEX (id_operating_system); -ALTER TABLE `PREFIX_guest` ADD INDEX (id_web_browser); -ALTER TABLE `PREFIX_hook_module_exceptions` ADD INDEX (id_module); -ALTER TABLE `PREFIX_hook_module_exceptions` ADD INDEX (id_hook); -ALTER TABLE `PREFIX_message` ADD INDEX (id_cart); -ALTER TABLE `PREFIX_message` ADD INDEX (id_customer); -ALTER TABLE `PREFIX_message` ADD INDEX (id_employee); -ALTER TABLE `PREFIX_order_detail` ADD INDEX (product_attribute_id); -ALTER TABLE `PREFIX_order_discount` ADD INDEX (id_discount); -ALTER TABLE `PREFIX_order_history` ADD INDEX (id_employee); -ALTER TABLE `PREFIX_order_history` ADD INDEX (id_order_state); -ALTER TABLE `PREFIX_order_return` ADD INDEX (id_order); -ALTER TABLE `PREFIX_order_slip` ADD INDEX (id_order); -ALTER TABLE `PREFIX_orders` ADD INDEX (id_carrier); -ALTER TABLE `PREFIX_orders` ADD INDEX (id_lang); -ALTER TABLE `PREFIX_orders` ADD INDEX (id_currency); -ALTER TABLE `PREFIX_orders` ADD INDEX (id_address_delivery); -ALTER TABLE `PREFIX_orders` ADD INDEX (id_address_invoice); -ALTER TABLE `PREFIX_product` ADD INDEX (id_tax); -ALTER TABLE `PREFIX_product` ADD INDEX (id_category_default); -ALTER TABLE `PREFIX_product` ADD INDEX (id_color_default); -ALTER TABLE `PREFIX_state` ADD INDEX (id_country); -ALTER TABLE `PREFIX_state` ADD INDEX (id_zone); -ALTER TABLE `PREFIX_tab` ADD INDEX (id_parent); -ALTER TABLE `PREFIX_cart` ADD INDEX (id_guest); - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) -( - SELECT 'MA_LAST_QTIES', '3', NOW(), NOW() - FROM `PREFIX_module` WHERE `name` = 'mailalerts' -); - -ALTER TABLE `PREFIX_customer` ADD `id_default_group` INT UNSIGNED NOT NULL DEFAULT '1' AFTER `id_gender`; - -UPDATE `PREFIX_customer` c SET `id_default_group` = ( - SELECT ( - IFNULL( - (SELECT g.`id_group` - FROM `PREFIX_group` g - LEFT JOIN `PREFIX_customer_group` cg ON (cg.`id_group` = g.`id_group`) - WHERE g.`reduction` > 0 AND cg.`id_customer` = c.`id_customer` - ORDER BY g.`reduction` - LIMIT 1) - , 1) - ) -); diff --git a/install-dev/sql/upgrade/1.3.0.5.sql b/install-dev/sql/upgrade/1.3.0.5.sql deleted file mode 100644 index 0b4cf1b2f..000000000 --- a/install-dev/sql/upgrade/1.3.0.5.sql +++ /dev/null @@ -1 +0,0 @@ -SET NAMES 'utf8'; diff --git a/install-dev/sql/upgrade/1.3.0.6.sql b/install-dev/sql/upgrade/1.3.0.6.sql deleted file mode 100644 index 0b4cf1b2f..000000000 --- a/install-dev/sql/upgrade/1.3.0.6.sql +++ /dev/null @@ -1 +0,0 @@ -SET NAMES 'utf8'; diff --git a/install-dev/sql/upgrade/1.3.0.7.sql b/install-dev/sql/upgrade/1.3.0.7.sql deleted file mode 100755 index 158212ef5..000000000 --- a/install-dev/sql/upgrade/1.3.0.7.sql +++ /dev/null @@ -1,3 +0,0 @@ -SET NAMES 'utf8'; - -/* PHP:setAllGroupsOnHomeCategory(); */; diff --git a/install-dev/sql/upgrade/1.3.0.8.sql b/install-dev/sql/upgrade/1.3.0.8.sql deleted file mode 100644 index e988c8279..000000000 --- a/install-dev/sql/upgrade/1.3.0.8.sql +++ /dev/null @@ -1,5 +0,0 @@ -SET NAMES 'utf8'; - -ALTER TABLE `PREFIX_product_attribute` ADD INDEX `id_product_id_product_attribute` (`id_product_attribute` , `id_product`); -ALTER TABLE `PREFIX_image_lang` ADD INDEX `id_image` (`id_image`); - diff --git a/install-dev/sql/upgrade/1.3.0.9.sql b/install-dev/sql/upgrade/1.3.0.9.sql deleted file mode 100644 index 0b4cf1b2f..000000000 --- a/install-dev/sql/upgrade/1.3.0.9.sql +++ /dev/null @@ -1 +0,0 @@ -SET NAMES 'utf8'; diff --git a/install-dev/sql/upgrade/1.3.1.1.sql b/install-dev/sql/upgrade/1.3.1.1.sql deleted file mode 100644 index 0b4cf1b2f..000000000 --- a/install-dev/sql/upgrade/1.3.1.1.sql +++ /dev/null @@ -1 +0,0 @@ -SET NAMES 'utf8'; diff --git a/install-dev/sql/upgrade/1.3.2.1.sql b/install-dev/sql/upgrade/1.3.2.1.sql deleted file mode 100755 index da21b32f2..000000000 --- a/install-dev/sql/upgrade/1.3.2.1.sql +++ /dev/null @@ -1,3 +0,0 @@ -SET NAMES 'utf8'; - - diff --git a/install-dev/sql/upgrade/1.3.2.2.sql b/install-dev/sql/upgrade/1.3.2.2.sql deleted file mode 100755 index 180ac77b6..000000000 --- a/install-dev/sql/upgrade/1.3.2.2.sql +++ /dev/null @@ -1,27 +0,0 @@ -SET NAMES 'utf8'; - -ALTER TABLE `PREFIX_order_detail` ADD `reduction_percent` DECIMAL(10, 2) NOT NULL AFTER `product_price`; -ALTER TABLE `PREFIX_order_detail` ADD `reduction_amount` DECIMAL(20, 6) NOT NULL AFTER `reduction_percent`; - -ALTER TABLE `PREFIX_country` CHANGE `need_identification_number` `need_identification_number` TINYINT(1) NOT NULL DEFAULT '0'; - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES -('PS_1_3_2_UPDATE_DATE', NOW(), NOW(), NOW()); - -ALTER TABLE `PREFIX_search_index` CHANGE `weight` `weight` SMALLINT(4) unsigned NOT NULL DEFAULT '1'; - -ALTER TABLE `PREFIX_image` DROP INDEX `product_position`, ADD UNIQUE `product_position` (`id_product`, `position`); - -ALTER TABLE `PREFIX_zone` DROP `enabled`; - -SET @id_hook = (SELECT id_hook FROM PREFIX_hook WHERE name = 'backOfficeHeader'); -SET @position = (SELECT IFNULL(MAX(position),0)+1 FROM PREFIX_hook_module WHERE id_hook = @id_hook); -INSERT IGNORE INTO PREFIX_hook_module (id_hook, id_module, position) VALUES (@id_hook, (SELECT id_module FROM PREFIX_module WHERE name = 'statsbestcustomers'), @position); -SET @position = @position + 1; -INSERT IGNORE INTO PREFIX_hook_module (id_hook, id_module, position) VALUES (@id_hook, (SELECT id_module FROM PREFIX_module WHERE name = 'statsbestproducts'), @position); -SET @position = @position + 1; -INSERT IGNORE INTO PREFIX_hook_module (id_hook, id_module, position) VALUES (@id_hook, (SELECT id_module FROM PREFIX_module WHERE name = 'statsbestvouchers'), @position); -SET @position = @position + 1; -INSERT IGNORE INTO PREFIX_hook_module (id_hook, id_module, position) VALUES (@id_hook, (SELECT id_module FROM PREFIX_module WHERE name = 'statsbestcategories'), @position); -SET @position = @position + 1; -INSERT IGNORE INTO PREFIX_hook_module (id_hook, id_module, position) VALUES (@id_hook, (SELECT id_module FROM PREFIX_module WHERE name = 'statsbestcarriers'), @position); diff --git a/install-dev/sql/upgrade/1.3.2.3.sql b/install-dev/sql/upgrade/1.3.2.3.sql deleted file mode 100755 index 0b4cf1b2f..000000000 --- a/install-dev/sql/upgrade/1.3.2.3.sql +++ /dev/null @@ -1 +0,0 @@ -SET NAMES 'utf8'; diff --git a/install-dev/sql/upgrade/1.3.3.0.sql b/install-dev/sql/upgrade/1.3.3.0.sql deleted file mode 100644 index a8c43bb44..000000000 --- a/install-dev/sql/upgrade/1.3.3.0.sql +++ /dev/null @@ -1,8 +0,0 @@ -SET NAMES 'utf8'; - -ALTER TABLE `PREFIX_order_detail` ADD `group_reduction` DECIMAL(10, 2) NOT NULL AFTER `reduction_amount`; -ALTER TABLE `PREFIX_order_detail` ADD `ecotax_tax_rate` DECIMAL(5, 3) NOT NULL AFTER `ecotax`; -ALTER TABLE `PREFIX_product` CHANGE `ecotax` `ecotax` DECIMAL(21, 6) NOT NULL DEFAULT '0.00'; - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) SELECT 'PS_LOCALE_LANGUAGE', l.`iso_code`, NOW(), NOW() FROM `PREFIX_configuration` c INNER JOIN `PREFIX_lang` l ON (l.`id_lang` = c.`value`) WHERE c.`name` = 'PS_LANG_DEFAULT'; -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) SELECT 'PS_LOCALE_COUNTRY', co.`iso_code`, NOW(), NOW() FROM `PREFIX_configuration` c INNER JOIN `PREFIX_country` co ON (co.`id_country` = c.`value`) WHERE c.`name` = 'PS_COUNTRY_DEFAULT'; diff --git a/install-dev/sql/upgrade/1.3.4.0.sql b/install-dev/sql/upgrade/1.3.4.0.sql deleted file mode 100644 index 22c382dd4..000000000 --- a/install-dev/sql/upgrade/1.3.4.0.sql +++ /dev/null @@ -1 +0,0 @@ -SET NAMES 'utf8'; \ No newline at end of file diff --git a/install-dev/sql/upgrade/1.3.5.0.sql b/install-dev/sql/upgrade/1.3.5.0.sql deleted file mode 100644 index 22c382dd4..000000000 --- a/install-dev/sql/upgrade/1.3.5.0.sql +++ /dev/null @@ -1 +0,0 @@ -SET NAMES 'utf8'; \ No newline at end of file diff --git a/install-dev/sql/upgrade/1.3.6.0.sql b/install-dev/sql/upgrade/1.3.6.0.sql deleted file mode 100755 index 083171282..000000000 --- a/install-dev/sql/upgrade/1.3.6.0.sql +++ /dev/null @@ -1,3 +0,0 @@ -SET NAMES 'utf8'; - -/* PHP:update_products_ecotax_v133(); */; diff --git a/install-dev/sql/upgrade/1.3.7.0.sql b/install-dev/sql/upgrade/1.3.7.0.sql deleted file mode 100644 index 0b4cf1b2f..000000000 --- a/install-dev/sql/upgrade/1.3.7.0.sql +++ /dev/null @@ -1 +0,0 @@ -SET NAMES 'utf8'; diff --git a/install-dev/sql/upgrade/1.4.0.1.sql b/install-dev/sql/upgrade/1.4.0.1.sql deleted file mode 100644 index 525c317c0..000000000 --- a/install-dev/sql/upgrade/1.4.0.1.sql +++ /dev/null @@ -1,2 +0,0 @@ -SET NAMES 'utf8'; - diff --git a/install-dev/sql/upgrade/1.4.0.10.sql b/install-dev/sql/upgrade/1.4.0.10.sql deleted file mode 100644 index 64833005c..000000000 --- a/install-dev/sql/upgrade/1.4.0.10.sql +++ /dev/null @@ -1,20 +0,0 @@ -SET NAMES 'utf8'; - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_CATALOG_MODE', '0', NOW(), NOW()); - -ALTER TABLE `PREFIX_specific_price` DROP `priority`; - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES -('PS_GEOLOCATION_WHITELIST', '209.185.108;209.185.253;209.85.238;209.85.238.11;209.85.238.4;216.239.33.96;216.239.33.97;216.239.33.98;216.239.33.99;216.239.37.98;216.239.37.99;216.239.39.98;216.239.39.99;216.239.41.96;216.239.41.97;216.239.41.98;216.239.41.99;216.239.45.4;216.239.46;216.239.51.96;216.239.51.97;216.239.51.98;216.239.51.99;216.239.53.98;216.239.53.99;216.239.57.96;216.239.57.97;216.239.57.98;216.239.57.99;216.239.59.98;216.239.59.99;216.33.229.163;64.233.173.193;64.233.173.194;64.233.173.195;64.233.173.196;64.233.173.197;64.233.173.198;64.233.173.199;64.233.173.200;64.233.173.201;64.233.173.202;64.233.173.203;64.233.173.204;64.233.173.205;64.233.173.206;64.233.173.207;64.233.173.208;64.233.173.209;64.233.173.210;64.233.173.211;64.233.173.212;64.233.173.213;64.233.173.214;64.233.173.215;64.233.173.216;64.233.173.217;64.233.173.218;64.233.173.219;64.233.173.220;64.233.173.221;64.233.173.222;64.233.173.223;64.233.173.224;64.233.173.225;64.233.173.226;64.233.173.227;64.233.173.228;64.233.173.229;64.233.173.230;64.233.173.231;64.233.173.232;64.233.173.233;64.233.173.234;64.233.173.235;64.233.173.236;64.233.173.237;64.233.173.238;64.233.173.239;64.233.173.240;64.233.173.241;64.233.173.242;64.233.173.243;64.233.173.244;64.233.173.245;64.233.173.246;64.233.173.247;64.233.173.248;64.233.173.249;64.233.173.250;64.233.173.251;64.233.173.252;64.233.173.253;64.233.173.254;64.233.173.255;64.68.80;64.68.81;64.68.82;64.68.83;64.68.84;64.68.85;64.68.86;64.68.87;64.68.88;64.68.89;64.68.90.1;64.68.90.10;64.68.90.11;64.68.90.12;64.68.90.129;64.68.90.13;64.68.90.130;64.68.90.131;64.68.90.132;64.68.90.133;64.68.90.134;64.68.90.135;64.68.90.136;64.68.90.137;64.68.90.138;64.68.90.139;64.68.90.14;64.68.90.140;64.68.90.141;64.68.90.142;64.68.90.143;64.68.90.144;64.68.90.145;64.68.90.146;64.68.90.147;64.68.90.148;64.68.90.149;64.68.90.15;64.68.90.150;64.68.90.151;64.68.90.152;64.68.90.153;64.68.90.154;64.68.90.155;64.68.90.156;64.68.90.157;64.68.90.158;64.68.90.159;64.68.90.16;64.68.90.160;64.68.90.161;64.68.90.162;64.68.90.163;64.68.90.164;64.68.90.165;64.68.90.166;64.68.90.167;64.68.90.168;64.68.90.169;64.68.90.17;64.68.90.170;64.68.90.171;64.68.90.172;64.68.90.173;64.68.90.174;64.68.90.175;64.68.90.176;64.68.90.177;64.68.90.178;64.68.90.179;64.68.90.18;64.68.90.180;64.68.90.181;64.68.90.182;64.68.90.183;64.68.90.184;64.68.90.185;64.68.90.186;64.68.90.187;64.68.90.188;64.68.90.189;64.68.90.19;64.68.90.190;64.68.90.191;64.68.90.192;64.68.90.193;64.68.90.194;64.68.90.195;64.68.90.196;64.68.90.197;64.68.90.198;64.68.90.199;64.68.90.2;64.68.90.20;64.68.90.200;64.68.90.201;64.68.90.202;64.68.90.203;64.68.90.204;64.68.90.205;64.68.90.206;64.68.90.207;64.68.90.208;64.68.90.21;64.68.90.22;64.68.90.23;64.68.90.24;64.68.90.25;64.68.90.26;64.68.90.27;64.68.90.28;64.68.90.29;64.68.90.3;64.68.90.30;64.68.90.31;64.68.90.32;64.68.90.33;64.68.90.34;64.68.90.35;64.68.90.36;64.68.90.37;64.68.90.38;64.68.90.39;64.68.90.4;64.68.90.40;64.68.90.41;64.68.90.42;64.68.90.43;64.68.90.44;64.68.90.45;64.68.90.46;64.68.90.47;64.68.90.48;64.68.90.49;64.68.90.5;64.68.90.50;64.68.90.51;64.68.90.52;64.68.90.53;64.68.90.54;64.68.90.55;64.68.90.56;64.68.90.57;64.68.90.58;64.68.90.59;64.68.90.6;64.68.90.60;64.68.90.61;64.68.90.62;64.68.90.63;64.68.90.64;64.68.90.65;64.68.90.66;64.68.90.67;64.68.90.68;64.68.90.69;64.68.90.7;64.68.90.70;64.68.90.71;64.68.90.72;64.68.90.73;64.68.90.74;64.68.90.75;64.68.90.76;64.68.90.77;64.68.90.78;64.68.90.79;64.68.90.8;64.68.90.80;64.68.90.9;64.68.91;64.68.92;66.249.64;66.249.65;66.249.66;66.249.67;66.249.68;66.249.69;66.249.70;66.249.71;66.249.72;66.249.73;66.249.78;66.249.79;72.14.199;8.6.48', NOW(), NOW()); - -ALTER TABLE `PREFIX_address` ADD `dni` VARCHAR(16) NULL AFTER `vat_number`; - -UPDATE `PREFIX_address` a SET `dni` = ( - SELECT `dni` - FROM `PREFIX_customer` c - WHERE c.`id_customer` = a.`id_customer` -); - -ALTER TABLE `PREFIX_customer` DROP `dni`; - -INSERT INTO `PREFIX_hook` (`name`, `title`, `description`, `position`) VALUES ('paymentTop', 'Top of payment page', 'Top of payment page', 0); diff --git a/install-dev/sql/upgrade/1.4.0.11.sql b/install-dev/sql/upgrade/1.4.0.11.sql deleted file mode 100644 index f0ea8d56a..000000000 --- a/install-dev/sql/upgrade/1.4.0.11.sql +++ /dev/null @@ -1,35 +0,0 @@ -CREATE TEMPORARY TABLE `PREFIX_tab_tmp` ( - `position` int(10) -); - -INSERT INTO `PREFIX_tab_tmp` (SELECT * FROM (SELECT `position` FROM `PREFIX_tab` WHERE `class_name` = 'AdminTaxes') AS tmp); -UPDATE `PREFIX_tab` SET `position` = (SELECT position FROM PREFIX_tab_tmp tmp) + 1 WHERE `class_name` = 'AdminTaxRulesGroup'; -DROP TABLE PREFIX_tab_tmp; - -DELETE FROM `PREFIX_configuration` WHERE `name` = 'PS_INVOICE_NUMBER'; - -CREATE TABLE `PREFIX_log` ( - `id_log` int(10) unsigned NOT NULL AUTO_INCREMENT, - `severity` tinyint(1) NOT NULL, - `error_code` int(11) DEFAULT NULL, - `message` text NOT NULL, - `object_type` varchar(32) DEFAULT NULL, - `object_id` int(10) unsigned DEFAULT NULL, - `date_add` datetime NOT NULL, - `date_upd` datetime NOT NULL, - PRIMARY KEY (`id_log`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_LOGS_BY_EMAIL', '5', NOW(), NOW()); - -ALTER TABLE `PREFIX_tax_rules_group` CHANGE `name` `name` VARCHAR( 50 ) NOT NULL; - -CREATE TABLE `PREFIX_import_match` ( - `id_import_match` int(10) NOT NULL AUTO_INCREMENT, - `name` varchar(32) NOT NULL, - `match` text NOT NULL, - `skip` int(2) NOT NULL, - PRIMARY KEY (`id_import_match`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -/* PHP:add_new_tab(AdminLogs, en:Log|fr:Log|es:Log|de:Log|it:Log, 9); */; diff --git a/install-dev/sql/upgrade/1.4.0.12.sql b/install-dev/sql/upgrade/1.4.0.12.sql deleted file mode 100644 index 9af34e070..000000000 --- a/install-dev/sql/upgrade/1.4.0.12.sql +++ /dev/null @@ -1,7 +0,0 @@ -ALTER TABLE `PREFIX_product` CHANGE `ecotax` `ecotax` DECIMAL( 17, 6 ) NOT NULL DEFAULT '0.00'; - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_LAST_SHOP_UPDATE', NOW(), NOW(), NOW()); - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_STORES_DISPLAY_SITEMAP', 1, NOW(), NOW()); - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_COOKIE_CHECKIP', 1, NOW(), NOW()); \ No newline at end of file diff --git a/install-dev/sql/upgrade/1.4.0.13.sql b/install-dev/sql/upgrade/1.4.0.13.sql deleted file mode 100644 index 22c382dd4..000000000 --- a/install-dev/sql/upgrade/1.4.0.13.sql +++ /dev/null @@ -1 +0,0 @@ -SET NAMES 'utf8'; \ No newline at end of file diff --git a/install-dev/sql/upgrade/1.4.0.14.sql b/install-dev/sql/upgrade/1.4.0.14.sql deleted file mode 100644 index 959066ac0..000000000 --- a/install-dev/sql/upgrade/1.4.0.14.sql +++ /dev/null @@ -1,24 +0,0 @@ -SET NAMES 'utf8'; - -ALTER TABLE `PREFIX_tax_rule` DROP PRIMARY KEY ; -ALTER TABLE `PREFIX_tax_rule` ADD `id_tax_rule` INT NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST ; -ALTER TABLE `PREFIX_tax_rule` ADD INDEX ( `id_tax` ) ; -ALTER TABLE `PREFIX_tax_rule` ADD INDEX ( `id_tax_rules_group` ) ; - -ALTER TABLE `PREFIX_address` MODIFY `dni` VARCHAR(16) NULL AFTER `vat_number`; - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES -('BLOCKSTORE_IMG', 'store.jpg', NOW(), NOW()), -('PS_STORES_CENTER_LAT', '25.948969', NOW(), NOW()), -('PS_STORES_CENTER_LONG', '-80.226439', NOW(), NOW()); - -/* PHP:add_new_tab(AdminInformation, en:Configuration Information|fr:Informations|es:Informations|it:Informazioni di configurazione|de:Konfigurationsinformationen, 9); */; -/* PHP:add_new_tab(AdminPerformance, de:Leistung|en:Performance|it:Performance|fr:Performances|es:Rendimiento, 8); */; -/* PHP:add_new_tab(AdminCustomerThreads, en:Customer Service|de:Kundenservice|fr:SAV|es:Servicio al cliente|it:Servizio clienti, 29); */; -/* PHP:add_new_tab(AdminWebservice, fr:Service web|es:Web service|en:Webservice|de:Webservice|it:Webservice, 9); */; -/* PHP:add_new_tab(AdminAddonsCatalog, fr:Catalogue de modules et thèmes|de:Module und Themenkatalog|en:Modules & Themes Catalog|it:Moduli & Temi catalogo, 7); */; -/* PHP:add_new_tab(AdminAddonsMyAccount, it:Il mio Account|de:Mein Konto|fr:Mon compte|en:My Account, 7); */; -/* PHP:add_new_tab(AdminThemes, es:Temas|it:Temi|de:Themen|en:Themes|fr:Thèmes, 7); */; -/* PHP:add_new_tab(AdminGeolocation, es:Geolocalización|it:Geolocalizzazione|en:Geolocation|de:Geotargeting|fr:Géolocalisation, 8); */; -/* PHP:add_new_tab(AdminTaxRulesGroup, it:Regimi fiscali|es:Reglas de Impuestos|fr:Règles de taxes|de:Steuerregeln|en:Tax Rules, 4); */; -/* PHP:add_new_tab(AdminLogs, en:Log|fr:Log|es:Log|de:Log|it:Log, 9); */; diff --git a/install-dev/sql/upgrade/1.4.0.15.sql b/install-dev/sql/upgrade/1.4.0.15.sql deleted file mode 100644 index f58669a52..000000000 --- a/install-dev/sql/upgrade/1.4.0.15.sql +++ /dev/null @@ -1,41 +0,0 @@ -/* PHP:add_new_tab(AdminCounty, fr:Comtés|es:Condados|en:Counties|de:Counties|it:Counties, 5); */; - -ALTER TABLE `PREFIX_tax_rule` ADD `county_behavior` INT NOT NULL AFTER `state_behavior`; -ALTER TABLE `PREFIX_tax_rule` ADD `id_county` INT NOT NULL AFTER `id_country`; - -ALTER TABLE `PREFIX_tax_rule` ADD UNIQUE ( -`id_tax_rules_group` , -`id_country` , -`id_state` , -`id_county` -); - -CREATE TABLE `PREFIX_county` ( - `id_county` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(64) NOT NULL, - `id_state` int(11) NOT NULL, - `active` tinyint(1) NOT NULL, - PRIMARY KEY (`id_county`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8 ; - - -CREATE TABLE `PREFIX_county_zip_code` ( - `id_county` INT NOT NULL , - `from_zip_code` INT NOT NULL , - `to_zip_code` INT NOT NULL , - PRIMARY KEY ( `id_county` , `from_zip_code` , `to_zip_code` ) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_HOMEPAGE_PHP_SELF', 'index.php', NOW(), NOW()); - - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) -VALUES ('PS_USE_ECOTAX', - (SELECT IF((SELECT `ecotax` FROM `PREFIX_product` WHERE `ecotax` != 0 LIMIT 1),'1','0')), - NOW(), - NOW()); - -ALTER TABLE `PREFIX_hook` ADD `live_edit` TINYINT NOT NULL DEFAULT '0'; - -UPDATE `PREFIX_hook` SET `live_edit` = '1' WHERE `PREFIX_hook`.`name` IN ('rightColumn', 'leftColumn', 'home'); diff --git a/install-dev/sql/upgrade/1.4.0.16.sql b/install-dev/sql/upgrade/1.4.0.16.sql deleted file mode 100644 index ed45cf3d2..000000000 --- a/install-dev/sql/upgrade/1.4.0.16.sql +++ /dev/null @@ -1,38 +0,0 @@ -INSERT INTO `PREFIX_hook` (`id_hook`, `name`, `title`, `description`, `position`) -VALUES (NULL, 'afterCreateHtaccess', 'After htaccess creation', 'After htaccess creation', 0); - -UPDATE `PREFIX_meta_lang` SET `url_rewrite` = 'kontaktieren-sie-uns' WHERE id_meta = 3 AND id_lang = 4 AND url_rewrite = 'Kontaktieren Sie uns'; -UPDATE `PREFIX_meta_lang` SET `url_rewrite` = 'kennwort-wiederherstellung' WHERE id_meta = 7 AND id_lang = 4 AND url_rewrite = 'Kennwort Wiederherstellung'; -UPDATE `PREFIX_meta_lang` SET `url_rewrite` = 'il-mio-account' WHERE id_meta = 18 AND id_lang = 5 AND url_rewrite = 'il mio-account'; -UPDATE `PREFIX_meta_lang` SET `url_rewrite` = 'nota-di-ordine' WHERE id_meta = 20 AND id_lang = 5 AND url_rewrite = 'nota di-ordine'; - -INSERT INTO `PREFIX_meta` (`page`) VALUES ('order-opc'); -INSERT INTO `PREFIX_meta_lang` (`id_lang`, `id_meta`, `title`, `url_rewrite`) -( - SELECT `id_lang`, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'order-opc'), 'Order', 'quick-order' - FROM `PREFIX_lang` -); -INSERT INTO `PREFIX_meta` (`page`) VALUES ('guest-tracking'); -INSERT INTO `PREFIX_meta_lang` (`id_lang`, `id_meta`, `title`, `url_rewrite`) -( - SELECT `id_lang`, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'guest-tracking'), 'Guest tracking', 'guest-tracking' - FROM `PREFIX_lang` -); - -UPDATE `PREFIX_hook` SET `live_edit` = '1' WHERE `PREFIX_hook`.`name` IN ('productfooter', 'payment'); - -UPDATE `PREFIX_configuration` SET name = 'PS_GEOLOCATION_ENABLED' WHERE name = 'PS_GEOLOCALIZATION_ENABLED'; -UPDATE `PREFIX_configuration` SET name = 'PS_GEOLOCATION_BEHAVIOR' WHERE name = 'PS_GEOLOCALIZATION_BEHAVIOR'; -UPDATE `PREFIX_configuration` SET name = 'PS_GEOLOCATION_WHITELIST' WHERE name = 'PS_GEOLOCALIZATION_WHITELIST'; -UPDATE `PREFIX_tab` SET class_name = 'AdminGeolocation' WHERE class_name = 'AdminGeolocalization'; - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES -('PS_CANONICAL_REDIRECT', '0', NOW(), NOW()); - -ALTER TABLE `PREFIX_webservice_account` ADD `class_name` VARCHAR( 50 ) NOT NULL DEFAULT 'WebserviceRequest' AFTER `key`; -ALTER TABLE `PREFIX_webservice_account` ADD `description` text NULL AFTER `key`; - -/* PHP:add_new_tab(AdminHome, en:Home|fr:Accueil|es:Home|de:Home|it:Home, -1); */; -/* PHP:add_new_tab(AdminStockMvt, de:Lagerbewegungen|fr:Mouvements de Stock|it:Movimenti magazzino|en:Stock Movements, 1); */; -/* PHP:update_for_13version(); */; - diff --git a/install-dev/sql/upgrade/1.4.0.17.sql b/install-dev/sql/upgrade/1.4.0.17.sql deleted file mode 100644 index bf8cb320f..000000000 --- a/install-dev/sql/upgrade/1.4.0.17.sql +++ /dev/null @@ -1,22 +0,0 @@ -SET NAMES 'utf8'; - -ALTER TABLE `PREFIX_stock_mvt_reason` ADD `sign` TINYINT(1) NOT NULL DEFAULT '1' AFTER `id_stock_mvt_reason`; -UPDATE `PREFIX_stock_mvt_reason` SET `sign`=-1; -UPDATE `PREFIX_stock_mvt_reason` SET `sign`=1 WHERE `id_stock_mvt_reason`=3; -UPDATE `PREFIX_stock_mvt_reason` SET `id_stock_mvt_reason`=`id_stock_mvt_reason`+2 ORDER BY `id_stock_mvt_reason` DESC; -UPDATE `PREFIX_stock_mvt` SET `id_stock_mvt_reason`=`id_stock_mvt_reason`+2; -UPDATE `PREFIX_stock_mvt_reason_lang` SET `id_stock_mvt_reason`=`id_stock_mvt_reason`+2 ORDER BY `id_stock_mvt_reason` DESC; -INSERT INTO `PREFIX_stock_mvt_reason` (`id_stock_mvt_reason` ,`sign` ,`date_add` ,`date_upd`) VALUES ('1', '1', NOW(), NOW()), ('2', '-1', NOW(), NOW()); - -INSERT INTO `PREFIX_stock_mvt_reason_lang` (`id_stock_mvt_reason` ,`id_lang` ,`name`) VALUES -('1', '1', 'Increase'), -('1', '2', 'Augmenter'), -('1', '3', 'Aumentar'), -('1', '4', 'Erhöhen'), -('1', '5', 'Aumento'), -('2', '1', 'Decrease'), -('2', '2', 'Diminuer'), -('2', '3', 'Disminuir'), -('2', '4', 'Reduzieren'), -('2', '5', 'Diminuzione'); - diff --git a/install-dev/sql/upgrade/1.4.0.2.sql b/install-dev/sql/upgrade/1.4.0.2.sql deleted file mode 100644 index b3f9ab89f..000000000 --- a/install-dev/sql/upgrade/1.4.0.2.sql +++ /dev/null @@ -1,694 +0,0 @@ -SET NAMES 'utf8'; - -ALTER TABLE `PREFIX_employee` ADD `bo_color` varchar(32) default NULL AFTER `stats_date_to`; -ALTER TABLE `PREFIX_employee` ADD `bo_theme` varchar(32) default NULL AFTER `bo_color`; -ALTER TABLE `PREFIX_employee` ADD `bo_uimode` ENUM('hover','click') default 'click' AFTER `bo_theme`; -ALTER TABLE `PREFIX_employee` ADD `id_lang` int(10) unsigned NOT NULL default 0 AFTER `id_profile`; - -ALTER TABLE `PREFIX_cms` ADD `id_cms_category` int(10) unsigned NOT NULL default '0' AFTER `id_cms`; -ALTER TABLE `PREFIX_cms` ADD `position` int(10) unsigned NOT NULL default '0' AFTER `id_cms_category`; - -CREATE TABLE `PREFIX_cms_category` ( - `id_cms_category` int(10) unsigned NOT NULL AUTO_INCREMENT, - `id_parent` int(10) unsigned NOT NULL, - `level_depth` tinyint(3) unsigned NOT NULL DEFAULT '0', - `active` tinyint(1) unsigned NOT NULL DEFAULT '0', - `date_add` datetime NOT NULL, - `date_upd` datetime NOT NULL, - `position` int(10) unsigned NOT NULL default '0', - PRIMARY KEY (`id_cms_category`), - KEY `category_parent` (`id_parent`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_cms_category_lang` ( - `id_cms_category` int(10) unsigned NOT NULL, - `id_lang` int(10) unsigned NOT NULL, - `name` varchar(128) NOT NULL, - `description` text, - `link_rewrite` varchar(128) NOT NULL, - `meta_title` varchar(128) DEFAULT NULL, - `meta_keywords` varchar(255) DEFAULT NULL, - `meta_description` varchar(255) DEFAULT NULL, - UNIQUE KEY `category_lang_index` (`id_cms_category`,`id_lang`), - KEY `category_name` (`name`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -INSERT INTO `PREFIX_cms_category_lang` VALUES(1, 1, 'Home', '', 'home', NULL, NULL, NULL); -INSERT INTO `PREFIX_cms_category_lang` VALUES(1, 2, 'Accueil', '', 'home', NULL, NULL, NULL); -INSERT INTO `PREFIX_cms_category_lang` VALUES(1, 3, 'Inicio', '', 'home', NULL, NULL, NULL); - -INSERT INTO `PREFIX_cms_category` VALUES(1, 0, 0, 1, NOW(), NOW(),0); - -UPDATE `PREFIX_cms_category` SET `position` = 0; -UPDATE `PREFIX_cms` SET `position` = 0; -UPDATE `PREFIX_cms` SET `id_cms_category` = 0; - -ALTER TABLE `PREFIX_category` ADD `position` int(10) unsigned NOT NULL default '0' AFTER `date_upd`; - -UPDATE `PREFIX_employee` SET `id_lang` = (SELECT `value` FROM `PREFIX_configuration` WHERE `name` LIKE "PS_LANG_DEFAULT"); - -ALTER TABLE `PREFIX_customer` ADD `note` text AFTER `secure_key`; - -ALTER TABLE `PREFIX_contact` ADD `customer_service` tinyint(1) NOT NULL DEFAULT 0 AFTER `email`; - -CREATE TABLE `PREFIX_customer_thread` ( - `id_customer_thread` int(11) unsigned NOT NULL auto_increment, - `id_lang` int(10) unsigned NOT NULL, - `id_contact` int(10) unsigned NOT NULL, - `id_customer` int(10) unsigned default NULL, - `id_order` int(10) unsigned default NULL, - `id_product` int(10) unsigned default NULL, - `status` enum('open','closed','pending1','pending2') NOT NULL default 'open', - `email` varchar(128) NOT NULL, - `token` varchar(12) default NULL, - `date_add` datetime NOT NULL, - `date_upd` datetime NOT NULL, - PRIMARY KEY (`id_customer_thread`), - KEY `id_customer_thread` (`id_customer_thread`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_customer_message` ( - `id_customer_message` int(10) unsigned NOT NULL auto_increment, - `id_customer_thread` int(11) default NULL, - `id_employee` int(10) unsigned default NULL, - `message` text NOT NULL, - `file_name` varchar(18) DEFAULT NULL, - `ip_address` int(11) default NULL, - `user_agent` varchar(128) default NULL, - `date_add` datetime NOT NULL, - PRIMARY KEY (`id_customer_message`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_payment_cc` ( - `id_payment_cc` INT NOT NULL auto_increment, - `id_order` INT UNSIGNED NULL, - `id_currency` INT UNSIGNED NOT NULL, - `amount` DECIMAL(10,2) NOT NULL, - `transaction_id` VARCHAR(254) NULL, - `card_number` VARCHAR(254) NULL, - `card_brand` VARCHAR(254) NULL, - `card_expiration` CHAR(7) NULL, - `card_holder` VARCHAR(254) NULL, - `date_add` DATETIME NOT NULL, - PRIMARY KEY (`id_payment_cc`), - KEY `id_order` (`id_order`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_specific_price` ( - `id_specific_price` INT UNSIGNED NOT NULL AUTO_INCREMENT, - `id_product` INT UNSIGNED NOT NULL, - `id_shop` TINYINT UNSIGNED NOT NULL, - `id_currency` INT UNSIGNED NOT NULL, - `id_country` INT UNSIGNED NOT NULL, - `id_group` INT UNSIGNED NOT NULL, - `priority` SMALLINT UNSIGNED NOT NULL, - `price` DECIMAL(20, 6) NOT NULL, - `from_quantity` SMALLINT UNSIGNED NOT NULL, - `reduction` DECIMAL(20, 6) NOT NULL, - `reduction_type` ENUM('amount', 'percentage') NOT NULL, - `from` DATETIME NOT NULL, - `to` DATETIME NOT NULL, - PRIMARY KEY(`id_specific_price`), - KEY (`id_product`, `id_shop`, `id_currency`, `id_country`, `id_group`, `from_quantity`, `from`, `to`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -INSERT INTO `PREFIX_specific_price` (`id_product`, `id_shop`, `id_currency`, `id_country`, `id_group`, `priority`, `price`, `from_quantity`, `reduction`, `reduction_type`, `from`, `to`) - ( SELECT dq.`id_product`, 1, 1, 0, 1, 0, 0.00, dq.`quantity`, IF(dq.`id_discount_type` = 2, dq.`value`, dq.`value` / 100), IF (dq.`id_discount_type` = 2, 'amount', 'percentage'), '0000-00-00 00:00:00', '0000-00-00 00:00:00' - FROM `PREFIX_discount_quantity` dq - INNER JOIN `PREFIX_product` p ON (p.`id_product` = dq.`id_product`) - ); -DROP TABLE `PREFIX_discount_quantity`; - -INSERT INTO `PREFIX_specific_price` (`id_product`, `id_shop`, `id_currency`, `id_country`, `id_group`, `priority`, `price`, `from_quantity`, `reduction`, `reduction_type`, `from`, `to`) ( - SELECT - p.`id_product`, - 1, - 0, - 0, - 0, - 0, - 0.00, - 1, - IF(p.`reduction_price` > 0, p.`reduction_price`, p.`reduction_percent` / 100), - IF(p.`reduction_price` > 0, 'amount', 'percentage'), - IF (p.`reduction_from` = p.`reduction_to`, '0000-00-00 00:00:00', p.`reduction_from`), - IF (p.`reduction_from` = p.`reduction_to`, '0000-00-00 00:00:00', p.`reduction_to`) - FROM `PREFIX_product` p - WHERE p.`reduction_price` OR p.`reduction_percent` -); -ALTER TABLE `PREFIX_product` - DROP `reduction_price`, - DROP `reduction_percent`, - DROP `reduction_from`, - DROP `reduction_to`; - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES -('PS_SPECIFIC_PRICE_PRIORITIES', 'id_shop;id_currency;id_country;id_group', NOW(), NOW()), -('PS_TAX_DISPLAY', 0, NOW(), NOW()), -('PS_SMARTY_FORCE_COMPILE', 1, NOW(), NOW()), -('PS_DISTANCE_UNIT', 'km', NOW(), NOW()), -('PS_STORES_DISPLAY_CMS', 0, NOW(), NOW()), -('PS_STORES_DISPLAY_FOOTER', 0, NOW(), NOW()), -('PS_STORES_SIMPLIFIED', 0, NOW(), NOW()), -('PS_STATSDATA_CUSTOMER_PAGESVIEWS', 1, NOW(), NOW()), -('PS_STATSDATA_PAGESVIEWS', 1, NOW(), NOW()), -('PS_STATSDATA_PLUGINS', 1, NOW(), NOW()); - -CREATE TABLE `PREFIX_group_reduction` ( - `id_group_reduction` MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT, - `id_group` INT(10) UNSIGNED NOT NULL, - `id_category` INT(10) UNSIGNED NOT NULL, - `reduction` DECIMAL(4, 3) NOT NULL, - PRIMARY KEY(`id_group_reduction`), - UNIQUE KEY(`id_group`, `id_category`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_product_group_reduction_cache` ( - `id_product` INT UNSIGNED NOT NULL, - `id_group` INT UNSIGNED NOT NULL, - `reduction` DECIMAL(4, 3) NOT NULL, - PRIMARY KEY(`id_product`, `id_group`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -ALTER TABLE `PREFIX_currency` ADD `iso_code_num` varchar(3) NOT NULL default '0' AFTER `iso_code`; -UPDATE `PREFIX_currency` SET iso_code_num = '978' WHERE iso_code LIKE 'EUR' LIMIT 1; -UPDATE `PREFIX_currency` SET iso_code_num = '840' WHERE iso_code LIKE 'USD' LIMIT 1; -UPDATE `PREFIX_currency` SET iso_code_num = '826' WHERE iso_code LIKE 'GBP' LIMIT 1; - -ALTER TABLE `PREFIX_country` ADD `call_prefix` int(10) NOT NULL default '0' AFTER `iso_code`; - -UPDATE `PREFIX_country` SET `call_prefix` = 49 WHERE `iso_code` = 'DE' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 43 WHERE `iso_code` = 'AT' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 32 WHERE `iso_code` = 'BE' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 1 WHERE `iso_code` = 'CA' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 86 WHERE `iso_code` = 'CN' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 34 WHERE `iso_code` = 'ES' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 358 WHERE `iso_code` = 'FI' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 33 WHERE `iso_code` = 'FR' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 30 WHERE `iso_code` = 'GR' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 39 WHERE `iso_code` = 'IT' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 81 WHERE `iso_code` = 'JP' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 352 WHERE `iso_code` = 'LU' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 31 WHERE `iso_code` = 'NL' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 48 WHERE `iso_code` = 'PL' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 351 WHERE `iso_code` = 'PT' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 420 WHERE `iso_code` = 'CZ' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 44 WHERE `iso_code` = 'GB' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 46 WHERE `iso_code` = 'SE' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 41 WHERE `iso_code` = 'CH' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 45 WHERE `iso_code` = 'DK' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 1 WHERE `iso_code` = 'US' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 852 WHERE `iso_code` = 'HK' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 47 WHERE `iso_code` = 'NO' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 61 WHERE `iso_code` = 'AU' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 65 WHERE `iso_code` = 'SG' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 353 WHERE `iso_code` = 'IE' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 64 WHERE `iso_code` = 'NZ' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 82 WHERE `iso_code` = 'KR' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 972 WHERE `iso_code` = 'IL' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 27 WHERE `iso_code` = 'ZA' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 234 WHERE `iso_code` = 'NG' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 225 WHERE `iso_code` = 'CI' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 228 WHERE `iso_code` = 'TG' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 591 WHERE `iso_code` = 'BO' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 230 WHERE `iso_code` = 'MU' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 40 WHERE `iso_code` = 'RO' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 421 WHERE `iso_code` = 'SK' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 213 WHERE `iso_code` = 'DZ' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 376 WHERE `iso_code` = 'AD' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 244 WHERE `iso_code` = 'AO' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 54 WHERE `iso_code` = 'AR' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 374 WHERE `iso_code` = 'AM' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 297 WHERE `iso_code` = 'AW' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 994 WHERE `iso_code` = 'AZ' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 973 WHERE `iso_code` = 'BH' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 880 WHERE `iso_code` = 'BD' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 501 WHERE `iso_code` = 'BZ' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 229 WHERE `iso_code` = 'BJ' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 975 WHERE `iso_code` = 'BT' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 267 WHERE `iso_code` = 'BW' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 55 WHERE `iso_code` = 'BR' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 673 WHERE `iso_code` = 'BN' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 226 WHERE `iso_code` = 'BF' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 95 WHERE `iso_code` = 'MM' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 257 WHERE `iso_code` = 'BI' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 855 WHERE `iso_code` = 'KH' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 237 WHERE `iso_code` = 'CM' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 238 WHERE `iso_code` = 'CV' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 236 WHERE `iso_code` = 'CF' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 235 WHERE `iso_code` = 'TD' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 56 WHERE `iso_code` = 'CL' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 57 WHERE `iso_code` = 'CO' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 269 WHERE `iso_code` = 'KM' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 242 WHERE `iso_code` = 'CD' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 243 WHERE `iso_code` = 'CG' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 506 WHERE `iso_code` = 'CR' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 385 WHERE `iso_code` = 'HR' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 53 WHERE `iso_code` = 'CU' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 357 WHERE `iso_code` = 'CY' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 253 WHERE `iso_code` = 'DJ' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 670 WHERE `iso_code` = 'TL' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 593 WHERE `iso_code` = 'EC' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 20 WHERE `iso_code` = 'EG' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 503 WHERE `iso_code` = 'SV' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 240 WHERE `iso_code` = 'GQ' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 291 WHERE `iso_code` = 'ER' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 372 WHERE `iso_code` = 'EE' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 251 WHERE `iso_code` = 'ET' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 298 WHERE `iso_code` = 'FO' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 679 WHERE `iso_code` = 'FJ' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 241 WHERE `iso_code` = 'GA' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 220 WHERE `iso_code` = 'GM' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 995 WHERE `iso_code` = 'GE' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 233 WHERE `iso_code` = 'GH' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 299 WHERE `iso_code` = 'GL' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 350 WHERE `iso_code` = 'GI' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 590 WHERE `iso_code` = 'GP' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 502 WHERE `iso_code` = 'GT' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 224 WHERE `iso_code` = 'GN' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 245 WHERE `iso_code` = 'GW' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 592 WHERE `iso_code` = 'GY' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 509 WHERE `iso_code` = 'HT' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 379 WHERE `iso_code` = 'VA' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 504 WHERE `iso_code` = 'HN' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 354 WHERE `iso_code` = 'IS' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 91 WHERE `iso_code` = 'IN' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 62 WHERE `iso_code` = 'ID' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 98 WHERE `iso_code` = 'IR' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 964 WHERE `iso_code` = 'IQ' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 962 WHERE `iso_code` = 'JO' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 7 WHERE `iso_code` = 'KZ' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 254 WHERE `iso_code` = 'KE' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 686 WHERE `iso_code` = 'KI' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 850 WHERE `iso_code` = 'KP' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 965 WHERE `iso_code` = 'KW' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 996 WHERE `iso_code` = 'KG' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 856 WHERE `iso_code` = 'LA' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 371 WHERE `iso_code` = 'LV' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 961 WHERE `iso_code` = 'LB' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 266 WHERE `iso_code` = 'LS' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 231 WHERE `iso_code` = 'LR' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 218 WHERE `iso_code` = 'LY' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 423 WHERE `iso_code` = 'LI' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 370 WHERE `iso_code` = 'LT' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 853 WHERE `iso_code` = 'MO' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 389 WHERE `iso_code` = 'MK' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 261 WHERE `iso_code` = 'MG' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 265 WHERE `iso_code` = 'MW' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 60 WHERE `iso_code` = 'MY' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 960 WHERE `iso_code` = 'MV' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 223 WHERE `iso_code` = 'ML' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 356 WHERE `iso_code` = 'MT' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 692 WHERE `iso_code` = 'MH' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 596 WHERE `iso_code` = 'MQ' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 222 WHERE `iso_code` = 'MR' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 36 WHERE `iso_code` = 'HU' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 262 WHERE `iso_code` = 'YT' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 52 WHERE `iso_code` = 'MX' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 691 WHERE `iso_code` = 'FM' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 373 WHERE `iso_code` = 'MD' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 377 WHERE `iso_code` = 'MC' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 976 WHERE `iso_code` = 'MN' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 382 WHERE `iso_code` = 'ME' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 212 WHERE `iso_code` = 'MA' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 258 WHERE `iso_code` = 'MZ' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 264 WHERE `iso_code` = 'NA' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 674 WHERE `iso_code` = 'NR' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 977 WHERE `iso_code` = 'NP' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 599 WHERE `iso_code` = 'AN' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 687 WHERE `iso_code` = 'NC' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 505 WHERE `iso_code` = 'NI' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 227 WHERE `iso_code` = 'NE' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 683 WHERE `iso_code` = 'NU' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 968 WHERE `iso_code` = 'OM' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 92 WHERE `iso_code` = 'PK' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 680 WHERE `iso_code` = 'PW' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 507 WHERE `iso_code` = 'PA' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 675 WHERE `iso_code` = 'PG' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 595 WHERE `iso_code` = 'PY' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 51 WHERE `iso_code` = 'PE' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 63 WHERE `iso_code` = 'PH' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 974 WHERE `iso_code` = 'QA' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 262 WHERE `iso_code` = 'RE' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 7 WHERE `iso_code` = 'RU' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 250 WHERE `iso_code` = 'RW' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 508 WHERE `iso_code` = 'PM' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 685 WHERE `iso_code` = 'WS' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 378 WHERE `iso_code` = 'SM' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 239 WHERE `iso_code` = 'ST' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 966 WHERE `iso_code` = 'SA' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 221 WHERE `iso_code` = 'SN' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 381 WHERE `iso_code` = 'RS' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 248 WHERE `iso_code` = 'SC' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 232 WHERE `iso_code` = 'SL' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 386 WHERE `iso_code` = 'SI' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 677 WHERE `iso_code` = 'SB' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 252 WHERE `iso_code` = 'SO' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 94 WHERE `iso_code` = 'LK' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 249 WHERE `iso_code` = 'SD' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 597 WHERE `iso_code` = 'SR' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 268 WHERE `iso_code` = 'SZ' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 963 WHERE `iso_code` = 'SY' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 886 WHERE `iso_code` = 'TW' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 992 WHERE `iso_code` = 'TJ' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 255 WHERE `iso_code` = 'TZ' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 66 WHERE `iso_code` = 'TH' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 690 WHERE `iso_code` = 'TK' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 676 WHERE `iso_code` = 'TO' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 216 WHERE `iso_code` = 'TN' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 90 WHERE `iso_code` = 'TR' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 993 WHERE `iso_code` = 'TM' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 688 WHERE `iso_code` = 'TV' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 256 WHERE `iso_code` = 'UG' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 380 WHERE `iso_code` = 'UA' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 971 WHERE `iso_code` = 'AE' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 598 WHERE `iso_code` = 'UY' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 998 WHERE `iso_code` = 'UZ' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 678 WHERE `iso_code` = 'VU' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 58 WHERE `iso_code` = 'VE' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 84 WHERE `iso_code` = 'VN' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 681 WHERE `iso_code` = 'WF' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 967 WHERE `iso_code` = 'YE' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 260 WHERE `iso_code` = 'ZM' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 263 WHERE `iso_code` = 'ZW' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 355 WHERE `iso_code` = 'AL' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 93 WHERE `iso_code` = 'AF' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 387 WHERE `iso_code` = 'BA' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 359 WHERE `iso_code` = 'BG' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 682 WHERE `iso_code` = 'CK' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 594 WHERE `iso_code` = 'GF' LIMIT 1; -UPDATE `PREFIX_country` SET `call_prefix` = 689 WHERE `iso_code` = 'PF' LIMIT 1; - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_CONDITIONS_CMS_ID', IFNULL((SELECT `id_cms` FROM `PREFIX_cms` WHERE `id_cms` = 3), 0), NOW(), NOW()); -CREATE TEMPORARY TABLE `PREFIX_configuration_tmp` ( - `value` text -); -INSERT INTO `PREFIX_configuration_tmp` (SELECT value FROM (SELECT `value` FROM `PREFIX_configuration` WHERE `name` = 'PREFIX_CONDITIONS_CMS_ID') AS tmp); - -UPDATE `PREFIX_configuration` SET `value` = IF((SELECT value FROM PREFIX_configuration_tmp), 1, 0) WHERE `name` = 'PREFIX_CONDITIONS'; -DROP TABLE PREFIX_configuration_tmp; - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_CIPHER_ALGORITHM', 0, NOW(), NOW()); -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_ORDER_PROCESS_TYPE', 0, NOW(), NOW()); - -ALTER TABLE `PREFIX_product` ADD `minimal_quantity` INT NOT NULL DEFAULT '1' AFTER `quantity`; -ALTER TABLE `PREFIX_product` ADD `cache_default_attribute` int(10) unsigned default NULL AFTER `indexed`; -ALTER TABLE `PREFIX_product` ADD `cache_has_attachments` TINYINT(1) NOT NULL default '0' AFTER `indexed`; -ALTER TABLE `PREFIX_product` ADD `cache_is_pack` TINYINT(1) NOT NULL default '0' AFTER `indexed`; -ALTER TABLE `PREFIX_product` ADD `available_for_order` TINYINT(1) NOT NULL DEFAULT '1' AFTER `active`; -ALTER TABLE `PREFIX_product` ADD `show_price` TINYINT(1) NOT NULL DEFAULT '1' AFTER `available_for_order`; -ALTER TABLE `PREFIX_product` ADD `online_only` TINYINT(1) NOT NULL DEFAULT '0' AFTER `on_sale`; -ALTER TABLE `PREFIX_product` ADD `condition` ENUM('new', 'used', 'refurbished') NOT NULL DEFAULT 'new' AFTER `available_for_order`; -ALTER TABLE `PREFIX_product` ADD `upc` VARCHAR( 12 ) NULL AFTER `ean13`; - -ALTER TABLE `PREFIX_product_attribute` ADD `upc` VARCHAR( 12 ) NULL AFTER `ean13`; - -SET @defaultOOS = (SELECT value FROM `PREFIX_configuration` WHERE name = 'PS_ORDER_OUT_OF_STOCK'); -/* Set 0 for every non-attribute product */ -UPDATE `PREFIX_product` p SET `cache_default_attribute` = 0 WHERE `id_product` NOT IN (SELECT `id_product` FROM `PREFIX_product_attribute`); -/* First default attribute in stock */ -UPDATE `PREFIX_product` p SET `cache_default_attribute` = (SELECT `id_product_attribute` FROM `PREFIX_product_attribute` WHERE `id_product` = p.`id_product` AND default_on = 1 AND quantity > 0 LIMIT 1) WHERE `cache_default_attribute` IS NULL; -/* Then default attribute without stock if we don't care */ -UPDATE `PREFIX_product` p SET `cache_default_attribute` = (SELECT `id_product_attribute` FROM `PREFIX_product_attribute` WHERE `id_product` = p.`id_product` AND default_on = 1 LIMIT 1) WHERE `cache_default_attribute` IS NULL AND `out_of_stock` = 1 OR `out_of_stock` = IF(@defaultOOS = 1, 2, 1); -/* Next, the default attribute can be any attribute with stock */ -UPDATE `PREFIX_product` p SET `cache_default_attribute` = (SELECT `id_product_attribute` FROM `PREFIX_product_attribute` WHERE `id_product` = p.`id_product` AND quantity > 0 LIMIT 1) WHERE `cache_default_attribute` IS NULL; -/* If there is still no default attribute, then we go back to the default one */ -UPDATE `PREFIX_product` p SET `cache_default_attribute` = (SELECT `id_product_attribute` FROM `PREFIX_product_attribute` WHERE `id_product` = p.`id_product` AND default_on = 1 LIMIT 1) WHERE `cache_default_attribute` IS NULL; - -UPDATE `PREFIX_product` p SET -cache_is_pack = (SELECT IF(COUNT(*) > 0, 1, 0) FROM `PREFIX_pack` pp WHERE pp.`id_product_pack` = p.`id_product`), -cache_has_attachments = (SELECT IF(COUNT(*) > 0, 1, 0) FROM `PREFIX_product_attachment` pa WHERE pa.`id_product` = p.`id_product`); - -INSERT INTO `PREFIX_hook` (`name`, `title`, `description`, `position`) VALUES ('deleteProductAttribute', 'Product Attribute Deletion', NULL, 0); -INSERT INTO `PREFIX_hook` (`name` ,`title` ,`description` ,`position`) VALUES ('beforeCarrier', 'Before carrier list', 'This hook is display before the carrier list on Front office', 1); -INSERT INTO `PREFIX_hook` (`name`, `title`, `description`, `position`) VALUES ('orderDetailDisplayed', 'Order detail displayed', 'Displayed on order detail on front office', 1); - -INSERT INTO `PREFIX_hook_module` (`id_module`, `id_hook`, `position`) VALUES -((SELECT IFNULL((SELECT `id_module` FROM `PREFIX_module` WHERE `name` = 'mailalerts'), 0)), -(SELECT `id_hook` FROM `PREFIX_hook` WHERE `name` = 'deleteProductAttribute'), 1); - -DELETE FROM `PREFIX_hook_module` WHERE `id_module` = 0; - -ALTER TABLE `PREFIX_country` ADD `need_zip_code` TINYINT(1) NOT NULL DEFAULT '1'; -ALTER TABLE `PREFIX_country` ADD `zip_code_format` VARCHAR(12) NOT NULL DEFAULT ''; - -ALTER TABLE `PREFIX_product` ADD `unit_price` DECIMAL(20,6) NOT NULL DEFAULT '0.000000' AFTER `wholesale_price`; -ALTER TABLE `PREFIX_product` ADD `unity` VARCHAR(10) NOT NULL DEFAULT '0.000000' AFTER `unit_price` ; -ALTER TABLE `PREFIX_product_attribute` ADD `unit_price_impact`DECIMAL(17,2) NOT NULL DEFAULT '0.00' AFTER `weight`; - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_VOLUME_UNIT', 'cl', NOW(), NOW()); - -ALTER TABLE `PREFIX_carrier` ADD `shipping_external` TINYINT( 1 ) UNSIGNED NOT NULL; -ALTER TABLE `PREFIX_carrier` ADD `external_module_name` varchar(64) DEFAULT NULL; -ALTER TABLE `PREFIX_carrier` ADD `need_range` TINYINT( 1 ) UNSIGNED NOT NULL; - -INSERT INTO `PREFIX_hook` (`name`, `title`, `description`, `position`) VALUES ('processCarrier', 'Carrier Process', NULL, 0); -INSERT INTO `PREFIX_hook` (`name`, `title`, `description`, `position`) VALUES ('orderDetail', 'Order Detail', 'To set the follow-up in smarty when order detail is called', 0); -INSERT INTO `PREFIX_hook` (`name`, `title`, `description`, `position`) VALUES ('paymentCCAdded', 'Payment CC added', 'Payment CC added', '0'); -INSERT INTO `PREFIX_hook` (`name`, `title`, `description`, `position`) VALUES ('extraProductComparison', 'Extra Product Comparison', 'Extra Product Comparison', '0'); - -ALTER TABLE `PREFIX_address` ADD `vat_number` varchar(32) NULL DEFAULT NULL AFTER `phone_mobile`; -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_TAX_ADDRESS_TYPE', 'id_address_delivery', NOW(), NOW()); - - -/* PHP:add_module_to_hook(blockpaymentlogo, header); */; -/* PHP:add_module_to_hook(blockpermanentlinks, header); */; -/* PHP:add_module_to_hook(blockviewed, header); */; -/* PHP:add_module_to_hook(blockcart, header); */; -/* PHP:add_module_to_hook(editorial, header); */; -/* PHP:add_module_to_hook(blockbestsellers, header); */; -/* PHP:add_module_to_hook(blockcategories, header); */; -/* PHP:add_module_to_hook(blockspecials, header); */; -/* PHP:add_module_to_hook(blockcurrencies, header); */; -/* PHP:add_module_to_hook(blocknewproducts, header); */; -/* PHP:add_module_to_hook(blockuserinfo, header); */; -/* PHP:migrate_block_info_to_cms_block(); */; -/* PHP:add_module_to_hook(blockcms, header); */; -/* PHP:add_module_to_hook(blocklanguages, header); */; -/* PHP:add_module_to_hook(blockmanufacturer, header); */; -/* PHP:add_module_to_hook(blockadvertising, header); */; -/* PHP:add_module_to_hook(blocktags, header); */; -/* PHP:add_module_to_hook(blockmyaccount, header); */; - -ALTER TABLE `PREFIX_product` ADD `additional_shipping_cost` DECIMAL(20,2) NOT NULL DEFAULT '0.000000' AFTER `unit_price`; - -ALTER TABLE `PREFIX_currency` ADD `active` TINYINT(1) NOT NULL DEFAULT '1'; -ALTER TABLE `PREFIX_tax` ADD `active` TINYINT(1) NOT NULL DEFAULT '1'; - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_ATTRIBUTE_CATEGORY_DISPLAY', 1, NOW(), NOW()); - -ALTER TABLE `PREFIX_discount` ADD `cart_display` TINYINT( 4 ) NOT NULL AFTER `active` , ADD `date_add` DATETIME NOT NULL AFTER `cart_display` , ADD `date_upd` DATETIME NOT NULL AFTER `date_add` ; - -ALTER TABLE `PREFIX_carrier` ADD `shipping_method` INT( 2 ) NOT NULL DEFAULT '0'; - -CREATE TABLE `PREFIX_stock_mvt` ( - `id_stock_mvt` int(11) unsigned NOT NULL AUTO_INCREMENT, - `id_product` int(11) unsigned DEFAULT NULL, - `id_product_attribute` int(11) unsigned DEFAULT NULL, - `id_order` int(11) unsigned DEFAULT NULL, - `id_stock_mvt_reason` int(11) unsigned NOT NULL, - `id_employee` int(11) unsigned NOT NULL, - `quantity` int(11) NOT NULL, - `date_add` datetime NOT NULL, - `date_upd` datetime NOT NULL, - PRIMARY KEY (`id_stock_mvt`), - KEY `id_order` (`id_order`), - KEY `id_product` (`id_product`), - KEY `id_product_attribute` (`id_product_attribute`), - KEY `id_stock_mvt_reason` (`id_stock_mvt_reason`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_stock_mvt_reason` ( - `id_stock_mvt_reason` int(11) NOT NULL AUTO_INCREMENT, - `date_add` datetime NOT NULL, - `date_upd` datetime NOT NULL, - PRIMARY KEY (`id_stock_mvt_reason`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - - -ALTER TABLE `PREFIX_product` CHANGE `quantity` `quantity` INT( 10 ) NOT NULL DEFAULT '0'; -ALTER TABLE `PREFIX_product_attribute` CHANGE `quantity` `quantity` INT( 10 ) NOT NULL DEFAULT '0'; - -CREATE TABLE `PREFIX_stock_mvt_reason_lang` ( - `id_stock_mvt_reason` int(11) NOT NULL, - `id_lang` int(11) NOT NULL, - `name` varchar(255) CHARACTER SET utf8 NOT NULL, - PRIMARY KEY (`id_stock_mvt_reason`,`id_lang`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -INSERT INTO `PREFIX_stock_mvt_reason` (`id_stock_mvt_reason`, `date_add`, `date_upd`) VALUES -(1, NOW(), NOW()), (2, NOW(), NOW()), (3, NOW(), NOW()); - -INSERT INTO `PREFIX_stock_mvt_reason_lang` (`id_stock_mvt_reason`, `id_lang`, `name`) VALUES -(1, 1, 'Order'), -(1, 2, 'Commande'), -(2, 1, 'Missing Stock Movement'), -(2, 2, 'Mouvement de stock manquant'), -(3, 1, 'Restocking'), -(3, 2, 'Réassort'); - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_COMPARATOR_MAX_ITEM', 0, NOW(), NOW()); - -ALTER TABLE `PREFIX_meta_lang` ADD `url_rewrite` VARCHAR( 255 ) NOT NULL , ADD INDEX ( `url_rewrite` ); -INSERT INTO `PREFIX_meta` (`page`) VALUES ('address'); -INSERT INTO `PREFIX_meta_lang` (`id_lang`, `id_meta`, `title`, `url_rewrite`) VALUES -(1, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'address'), 'Address', 'address'), -(2, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'address'), 'Adresse', 'adresse'), -(3, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'address'), 'Dirección', 'direccion'); -INSERT INTO `PREFIX_meta` (`page`) VALUES ('addresses'); -INSERT INTO `PREFIX_meta_lang` (`id_lang`, `id_meta`, `title`, `url_rewrite`) VALUES -(1, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'addresses'), 'Addresses', 'addresses'), -(2, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'addresses'), 'Adresses', 'adresses'), -(3, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'addresses'), 'Direcciones', 'direcciones'); -INSERT INTO `PREFIX_meta` (`page`) VALUES ('authentication'); -INSERT INTO `PREFIX_meta_lang` (`id_lang`, `id_meta`, `title`, `url_rewrite`) VALUES -(1, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'authentication'), 'Authentication', 'authentication'), -(2, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'authentication'), 'Authentification', 'authentification'), -(3, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'authentication'), 'Autenticación', 'autenticacion'); -INSERT INTO `PREFIX_meta` (`page`) VALUES ('cart'); -INSERT INTO `PREFIX_meta_lang` (`id_lang`, `id_meta`, `title`, `url_rewrite`) VALUES -(1, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'cart'), 'Cart', 'cart'), -(2, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'cart'), 'Panier', 'panier'), -(3, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'cart'), 'Carro de la compra', 'carro-de-la-compra'); -INSERT INTO `PREFIX_meta` (`page`) VALUES ('discount'); -INSERT INTO `PREFIX_meta_lang` (`id_lang`, `id_meta`, `title`, `url_rewrite`) VALUES -(1, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'discount'), 'Discount', 'discount'), -(2, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'discount'), 'Bons de réduction', 'bons-de-reduction'), -(3, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'discount'), 'Descuento', 'descuento'); -INSERT INTO `PREFIX_meta` (`page`) VALUES ('history'); -INSERT INTO `PREFIX_meta_lang` (`id_lang`, `id_meta`, `title`, `url_rewrite`) VALUES -(1, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'history'), 'Order history', 'order-history'), -(2, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'history'), 'Historique des commandes', 'historique-des-commandes'), -(3, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'history'), 'Historial de pedidos', 'historial-de-pedidos'); -INSERT INTO `PREFIX_meta` (`page`) VALUES ('identity'); -INSERT INTO `PREFIX_meta_lang` (`id_lang`, `id_meta`, `title`, `url_rewrite`) VALUES -(1, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'identity'), 'Identity', 'identity'), -(2, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'identity'), 'Identité', 'identite'), -(3, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'identity'), 'Identidad', 'identidad'); -INSERT INTO `PREFIX_meta` (`page`) VALUES ('my-account'); -INSERT INTO `PREFIX_meta_lang` (`id_lang`, `id_meta`, `title`, `url_rewrite`) VALUES -(1, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'my-account'), 'My account', 'my-account'), -(2, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'my-account'), 'Mon compte', 'mon-compte'), -(3, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'my-account'), 'Mi Cuenta', 'mi-cuenta'); -INSERT INTO `PREFIX_meta` (`page`) VALUES ('order-follow'); -INSERT INTO `PREFIX_meta_lang` (`id_lang`, `id_meta`, `title`, `url_rewrite`) VALUES -(1, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'order-follow'), 'Order follow', 'order-follow'), -(2, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'order-follow'), 'Détails de la commande', 'details-de-la-commande'), -(3, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'order-follow'), 'Devolución de productos', 'devolucion-de-productos'); -INSERT INTO `PREFIX_meta` (`page`) VALUES ('order-slip'); -INSERT INTO `PREFIX_meta_lang` (`id_lang`, `id_meta`, `title`, `url_rewrite`) VALUES -(1, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'order-slip'), 'Order slip', 'order-slip'), -(2, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'order-slip'), 'Avoirs', 'avoirs'), -(3, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'order-slip'), 'Vales', 'vales'); -INSERT INTO `PREFIX_meta` (`page`) VALUES ('order'); -INSERT INTO `PREFIX_meta_lang` (`id_lang`, `id_meta`, `title`, `url_rewrite`) VALUES -(1, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'order'), 'Order', 'order'), -(2, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'order'), 'Commande', 'commande'), -(3, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'order'), 'Carrito', 'carrito'); -INSERT INTO `PREFIX_meta` (`page`) VALUES ('search'); -INSERT INTO `PREFIX_meta_lang` (`id_lang`, `id_meta`, `title`, `url_rewrite`) VALUES -(1, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'search' LIMIT 1), 'Search', 'search'), -(2, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'search' LIMIT 1), 'Recherche', 'recherche'), -(3, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'search' LIMIT 1), 'Buscar', 'buscar'); -INSERT INTO `PREFIX_meta` (`page`) VALUES ('stores'); -INSERT INTO `PREFIX_meta_lang` (`id_lang`, `id_meta`, `title`, `url_rewrite`) VALUES -(1, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'stores'), 'Stores', 'stores'), -(2, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'stores'), 'Magagins', 'magasins'), -(3, (SELECT `id_meta` FROM `PREFIX_meta` WHERE `page` = 'stores'), 'Tiendas', 'tiendas'); - -ALTER TABLE `PREFIX_manufacturer` ADD `active` tinyint(1) NOT NULL default 0; -ALTER TABLE `PREFIX_supplier` ADD `active` tinyint(1) NOT NULL default 0; -UPDATE `PREFIX_manufacturer` SET `active` = 1; -UPDATE `PREFIX_supplier` SET `active` = 1; -ALTER TABLE `PREFIX_cms` ADD `active` tinyint(1) unsigned NOT NULL default 0; -UPDATE `PREFIX_cms` SET `active` = 1; - -ALTER TABLE `PREFIX_cart` ADD `secure_key` varchar(32) NOT NULL default '-1' AFTER `id_guest`; - -ALTER TABLE `PREFIX_order_detail` ADD `product_upc` varchar(12) default NULL AFTER `product_ean13`; - -ALTER TABLE `PREFIX_discount` ADD `id_group` int(10) unsigned NOT NULL default 0; - -CREATE TABLE `PREFIX_store` ( - `id_store` int(10) unsigned NOT NULL AUTO_INCREMENT, - `id_country` int(10) unsigned NOT NULL, - `id_state` int(10) unsigned DEFAULT NULL, - `name` varchar(128) NOT NULL, - `address1` varchar(128) NOT NULL, - `address2` varchar(128) DEFAULT NULL, - `city` varchar(64) NOT NULL, - `postcode` varchar(12) NOT NULL, - `latitude` float(10,6) DEFAULT NULL, - `longitude` float(10,6) DEFAULT NULL, - `hours` varchar(254) DEFAULT NULL, - `phone` varchar(16) DEFAULT NULL, - `fax` varchar(16) DEFAULT NULL, - `email` varchar(128) DEFAULT NULL, - `note` text, - `active` tinyint(1) unsigned NOT NULL DEFAULT '0', - `date_add` datetime NOT NULL, - `date_upd` datetime NOT NULL, - PRIMARY KEY (`id_store`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -INSERT INTO `PREFIX_hook` (`name`, `title`, `description`, `position`) VALUES -('categoryAddition', '', 'Temporary hook. Must NEVER be used. Will soon be replaced by a generic CRUD hook system.', 0), -('categoryUpdate', '', 'Temporary hook. Must NEVER be used. Will soon be replaced by a generic CRUD hook system.', 0), -('categoryDeletion', '', 'Temporary hook. Must NEVER be used. Will soon be replaced by a generic CRUD hook system.', 0); - - -/* PHP:add_module_to_hook(blockcategories, categoryAddition); */; -/* PHP:add_module_to_hook(blockcategories, categoryUpdate); */; -/* PHP:add_module_to_hook(blockcategories, categoryDeletion); */; - -DELETE FROM `PREFIX_hook_module` WHERE `id_module` = 0; - -CREATE TABLE `PREFIX_required_field` ( - `id_required_field` int(11) NOT NULL AUTO_INCREMENT, - `object_name` varchar(32) NOT NULL, - `field_name` varchar(32) NOT NULL, - PRIMARY KEY (`id_required_field`), - KEY `object_name` (`object_name`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_memcached_servers` ( -`id_memcached_server` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY , -`ip` VARCHAR( 254 ) NOT NULL , -`port` INT(11) UNSIGNED NOT NULL , -`weight` INT(11) UNSIGNED NOT NULL -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_webservice_account` ( - `id_webservice_account` int(11) NOT NULL AUTO_INCREMENT, - `key` varchar(32) NOT NULL, - `active` tinyint(2) NOT NULL, - PRIMARY KEY (`id_webservice_account`), - KEY `key` (`key`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_webservice_permission` ( - `id_webservice_permission` int(11) NOT NULL AUTO_INCREMENT, - `resource` varchar(50) NOT NULL, - `method` enum('GET','POST','PUT','DELETE') NOT NULL, - `id_webservice_account` int(11) NOT NULL, - PRIMARY KEY (`id_webservice_permission`), - UNIQUE KEY `resource_2` (`resource`,`method`,`id_webservice_account`), - KEY `resource` (`resource`), - KEY `method` (`method`), - KEY `id_webservice_account` (`id_webservice_account`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - - -/* PHP */ -/* PHP:editorial_update(); */; -/* PHP:reorderpositions(); */; -/* PHP:update_image_size_in_db(); */; -/* PHP:update_order_details(); */; -/* PHP:add_new_tab(AdminInformation, en:Configuration Information|fr:Informations|es:Informations|it:Informazioni di configurazione|de:Konfigurationsinformationen, 9); */; -/* PHP:add_new_tab(AdminCustomerThreads, en:Customer Service|de:Kundenservice|fr:SAV|es:Servicio al cliente|it:Servizio clienti, 29); */; -/* PHP:add_new_tab(AdminAddonsCatalog, fr:Catalogue de modules et thèmes|de:Module und Themenkatalog|en:Modules & Themes Catalog|it:Moduli & Temi catalogo, 7); */; -/* PHP:add_new_tab(AdminAddonsMyAccount, it:Il mio Account|de:Mein Konto|fr:Mon compte|en:My Account, 7); */; -/* PHP:add_new_tab(AdminPerformance, de:Leistung|en:Performance|it:Performance|fr:Performances|es:Rendimiento, 8); */; -/* PHP:add_new_tab(AdminThemes, es:Temas|it:Temi|de:Themen|en:Themes|fr:Thèmes, 7); */; -/* PHP:add_new_tab(AdminWebservice, fr:Service web|es:Web service|en:Webservice|de:Webservice|it:Webservice, 9); */; - diff --git a/install-dev/sql/upgrade/1.4.0.3.sql b/install-dev/sql/upgrade/1.4.0.3.sql deleted file mode 100644 index 1df6fd470..000000000 --- a/install-dev/sql/upgrade/1.4.0.3.sql +++ /dev/null @@ -1,67 +0,0 @@ -SET NAMES 'utf8'; - -CREATE TABLE IF NOT EXISTS `PREFIX_country_tax` ( - `id_country_tax` int(11) NOT NULL AUTO_INCREMENT, - `id_country` int(11) NOT NULL, - `id_tax` int(11) NOT NULL, - PRIMARY KEY (`id_country_tax`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_product_country_tax` ( - `id_product` int(11) NOT NULL, - `id_country` int(11) NOT NULL, - `id_tax` int(11) NOT NULL, - UNIQUE KEY `id_product` (`id_product`,`id_country`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -DELETE FROM `PREFIX_tab` WHERE `class_name` = 'AdminStatsModules' LIMIT 1; -DELETE FROM `PREFIX_tab_lang` WHERE `id_tab` NOT IN (SELECT id_tab FROM `PREFIX_tab`); -DELETE FROM `PREFIX_access` WHERE `id_tab` NOT IN (SELECT id_tab FROM `PREFIX_tab`); - -INSERT INTO `PREFIX_module` (`name`, `active`) VALUES ('statsforecast', 1); -INSERT INTO `PREFIX_hook_module` (`id_module`, `id_hook` , `position`) (SELECT id_module, 32, (SELECT max_position from (SELECT MAX(position)+1 as max_position FROM `PREFIX_hook_module` WHERE `id_hook` = 32) tmp) FROM `PREFIX_module` WHERE `name` = 'statsforecast'); - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES -('PS_GEOLOCATION_ENABLED', '0', NOW(), NOW()), -('PS_ALLOWED_COUNTRIES', -'AF;ZA;AX;AL;DZ;DE;AD;AO;AI;AQ;AG;AN;SA;AR;AM;AW;AU;AT;AZ;BS;BH;BD;BB;BY;BE;BZ;BJ;BM;BT;BO;BA;BW;BV;BR;BN;BG;BF;MM;BI;KY;KH;CM;CA;CV;CF;CL;CN;CX;CY;CC;CO;KM;CG;CD;CK;KR;KP;CR;CI;HR;CU;DK;DJ;DM;EG;IE;SV;AE;EC;ER;ES;EE;ET;FK;FO;FJ;FI;FR;GA;GM;GE;GS;GH;GI;GR;GD;GL;GP;GU;GT;GG;GN;GQ;GW;GY;GF;HT;HM;HN;HK;HU;IM;MU;VG;VI;IN;ID;IR;IQ;IS;IL;IT;JM;JP;JE;JO;KZ;KE;KG;KI;KW;LA;LS;LV;LB;LR;LY;LI;LT;LU;MO;MK;MG;MY;MW;MV;ML;MT;MP;MA;MH;MQ;MR;YT;MX;FM;MD;MC;MN;ME;MS;MZ;NA;NR;NP;NI;NE;NG;NU;NF;NO;NC;NZ;IO;OM;UG;UZ;PK;PW;PS;PA;PG;PY;NL;PE;PH;PN;PL;PF;PR;PT;QA;DO;CZ;RE;RO;UK;RU;RW;EH;BL;KN;SM;MF;PM;VA;VC;LC;SB;WS;AS;ST;SN;RS;SC;SL;SG;SK;SI;SO;SD;LK;SE;CH;SR;SJ;SZ;SY;TJ;TW;TZ;TD;TF;TH;TL;TG;TK;TO;TT;TN;TM;TC;TR;TV;UA;UY;US;VU;VE;VN;WF;YE;ZM;ZW', NOW(), NOW()), -('PS_GEOLOCATION_BEHAVIOR', '0', NOW(), NOW()); - -ALTER TABLE `PREFIX_orders` ADD `conversion_rate` decimal(13,6) NOT NULL default 1 AFTER `payment`; -UPDATE `PREFIX_orders` o SET o.`conversion_rate` = IFNULL(( - SELECT c.`conversion_rate` - FROM `PREFIX_currency` c - WHERE c.`id_currency` = o.`id_currency` - LIMIT 1), 0 -); - -ALTER TABLE `PREFIX_order_slip` ADD `conversion_rate` decimal(13,6) NOT NULL default 1 AFTER `id_order`; -UPDATE `PREFIX_order_slip` os SET os.`conversion_rate` = IFNULL(( - SELECT o.`conversion_rate` - FROM `PREFIX_orders` o - WHERE os.`id_order` = o.`id_order` - LIMIT 1), 0 -); - -UPDATE `PREFIX_configuration` SET `value` = 'gridhtml' WHERE `name` = 'PS_STATS_GRID_RENDER' LIMIT 1; -UPDATE `PREFIX_module` SET `name` = 'gridhtml' WHERE `name` = 'gridextjs' LIMIT 1; - -ALTER TABLE `PREFIX_attachment` CHANGE `mime` `mime` varchar(64) NOT NULL; -ALTER TABLE `PREFIX_attachment` ADD `file_name` varchar(128) NOT NULL default '' AFTER `file`; -UPDATE `PREFIX_attachment` a SET `file_name` = ( - SELECT `name` FROM `PREFIX_attachment_lang` al WHERE al.`id_attachment` = a.`id_attachment` AND al.`id_lang` = ( - SELECT `value` FROM `PREFIX_configuration` WHERE `name` = 'PS_LANG_DEFAULT') - ); - -UPDATE `PREFIX_tab` SET `class_name` = 'AdminCMSContent' WHERE `class_name` = 'AdminCMS' LIMIT 1; - -SET @id_timezone = (SELECT `name` FROM `PREFIX_timezone` WHERE `id_timezone` = (SELECT `value` FROM `PREFIX_configuration` WHERE `name` = 'PS_TIMEZONE' LIMIT 1) LIMIT 1); -UPDATE `PREFIX_configuration` SET `value` = @id_timezone WHERE `name` = "PS_TIMEZONE" LIMIT 1; - -ALTER TABLE `PREFIX_country` ADD `id_currency` INT NOT NULL DEFAULT '0' AFTER `id_zone`; - -/* PHP */ -/* PHP:group_reduction_column_fix(); */; -/* PHP:ecotax_tax_application_fix(); */; -/* PHP:cms_block(); */; -/* PHP:add_new_tab(AdminGeolocation, es:Geolocalización|it:Geolocalizzazione|en:Geolocation|de:Geotargeting|fr:Géolocalisation, 8); */; diff --git a/install-dev/sql/upgrade/1.4.0.4.sql b/install-dev/sql/upgrade/1.4.0.4.sql deleted file mode 100644 index 4ad45113c..000000000 --- a/install-dev/sql/upgrade/1.4.0.4.sql +++ /dev/null @@ -1,21 +0,0 @@ -SET NAMES 'utf8'; -ALTER TABLE `PREFIX_product` CHANGE `ecotax` `ecotax` DECIMAL(21, 6) NOT NULL DEFAULT '0.00'; -/* PHP:move_crossselling(); */; - -UPDATE `PREFIX_cms` SET `id_cms_category` = 1; - -/* PHP:add_new_tab(AdminStores, fr:Magasins|es:Tiendas|en:Stores|de:Shops|it:Negozi, 9); */; - -INSERT IGNORE INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) SELECT 'PS_LOCALE_LANGUAGE', l.`iso_code`, NOW(), NOW() FROM `PREFIX_configuration` c INNER JOIN `PREFIX_lang` l ON (l.`id_lang` = c.`value`) WHERE c.`name` = 'PS_LANG_DEFAULT'; -INSERT IGNORE INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) SELECT 'PS_LOCALE_COUNTRY', co.`iso_code`, NOW(), NOW() FROM `PREFIX_configuration` c INNER JOIN `PREFIX_country` co ON (co.`id_country` = c.`value`) WHERE c.`name` = 'PS_COUNTRY_DEFAULT'; -/* PHP:reorderpositions(); */; - -ALTER TABLE `PREFIX_webservice_permission` CHANGE `method` `method` ENUM( 'GET', 'POST', 'PUT', 'DELETE', 'HEAD' ) NOT NULL; - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES -('PS_ATTACHMENT_MAXIMUM_SIZE', '2', NOW(), NOW()), -('PS_SMARTY_CACHE', '1', NOW(), NOW()); - -ALTER TABLE `PREFIX_product_attribute` CHANGE `price` `price` decimal(20,6) NOT NULL default '0.000000'; -UPDATE `PREFIX_product_attribute` pa SET pa.`price` = pa.`price` / (1 + IFNULL((SELECT t.`rate` FROM `PREFIX_tax` t INNER JOIN `PREFIX_product` p ON (p.`id_tax` = t.`id_tax`) WHERE p.`id_product` = pa.`id_product`) ,0) / 100); - diff --git a/install-dev/sql/upgrade/1.4.0.5.sql b/install-dev/sql/upgrade/1.4.0.5.sql deleted file mode 100644 index 42a62d345..000000000 --- a/install-dev/sql/upgrade/1.4.0.5.sql +++ /dev/null @@ -1,73 +0,0 @@ -SET NAMES 'utf8'; - -SET @alias = (SELECT IFNULL((SELECT `id_tab` FROM `PREFIX_tab` WHERE `class_name` = "AdminAliases" LIMIT 1), '0')); -UPDATE `PREFIX_tab` SET `id_parent` = 8 WHERE `id_tab` = @alias LIMIT 1; -SET @stores = (SELECT IFNULL((SELECT `id_tab` FROM `PREFIX_tab` WHERE `class_name` = "AdminStores" LIMIT 1), '0')); -UPDATE `PREFIX_tab` SET `id_parent` = 9 WHERE `id_tab` = @stores LIMIT 1; -SET @pdf = (SELECT IFNULL((SELECT `id_tab` FROM `PREFIX_tab` WHERE `class_name` = "AdminPDF" LIMIT 1), '0')); -UPDATE `PREFIX_tab` SET `id_parent` = 3 WHERE `id_tab` = @pdf LIMIT 1; -SET @tabs = (SELECT IFNULL((SELECT `id_tab` FROM `PREFIX_tab` WHERE `class_name` = "AdminTabs" LIMIT 1), '0')); -UPDATE `PREFIX_tab` SET `id_parent` = 29 WHERE `id_tab` = @tabs LIMIT 1; - -ALTER TABLE `PREFIX_image_type` ADD `stores` tinyint(1) NOT NULL default '1'; - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES -('PS_FORCE_SMARTY_2', '0', NOW(), NOW()), -('PS_DIMENSION_UNIT', 'cm', NOW(), NOW()); - -ALTER TABLE `PREFIX_product` -ADD `width` FLOAT NOT NULL AFTER `location`, -ADD `height` FLOAT NOT NULL AFTER `width`, -ADD `depth` FLOAT NOT NULL AFTER `height`; - -SET @id_module = (SELECT IFNULL((SELECT `id_module` FROM `PREFIX_module` WHERE `name` = "statshome" LIMIT 1), '0')); -DELETE FROM `PREFIX_module` WHERE `id_module` = @id_module; -DELETE FROM `PREFIX_hook_module` WHERE `id_module` = @id_module; - -ALTER TABLE `PREFIX_customer` ADD `is_guest` TINYINT(1) NOT NULL DEFAULT '0' AFTER `deleted`; -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_GUEST_CHECKOUT_ENABLED', '0', NOW(), NOW()); - -ALTER TABLE `PREFIX_category` ADD `nleft` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `level_depth`; -ALTER TABLE `PREFIX_category` ADD `nright` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `nleft`; -ALTER TABLE `PREFIX_category` ADD INDEX `nleftright` (`nleft`, `nright`); - -ALTER TABLE `PREFIX_product` ADD `id_tax_rules_group` int(10) unsigned NOT NULL AFTER `id_tax`; -ALTER TABLE `PREFIX_carrier` ADD `id_tax_rules_group` int(10) unsigned NOT NULL AFTER `id_tax`; -ALTER TABLE `PREFIX_carrier` ADD INDEX ( `id_tax_rules_group` ) ; - -CREATE TABLE `PREFIX_tax_rule` ( -`id_tax_rules_group` INT NOT NULL , -`id_country` INT NOT NULL , -`id_state` INT NOT NULL , -`id_tax` INT NOT NULL , -`state_behavior` INT NOT NULL , -PRIMARY KEY ( `id_tax_rules_group`, `id_country` , `id_state` ) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_tax_rules_group` ( -`id_tax_rules_group` INT NOT NULL AUTO_INCREMENT PRIMARY KEY , -`name` VARCHAR( 32 ) NOT NULL , -`active` INT NOT NULL -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_help_access` ( - `id_help_access` int(11) NOT NULL AUTO_INCREMENT, - `label` varchar(45) NOT NULL, - `version` varchar(8) NOT NULL, - PRIMARY KEY (`id_help_access`), - UNIQUE KEY `label` (`label`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -/* PHP:add_new_tab(AdminTaxRulesGroup, it:Regimi fiscali|es:Reglas de Impuestos|fr:Règles de taxes|de:Steuerregeln|en:Tax Rules, 4); */; -/* PHP:generate_ntree(); */; -/* PHP:generate_tax_rules(); */; -/* PHP:id_currency_country_fix(); */; -/* PHP:update_modules_sql(); */; - -ALTER TABLE `PREFIX_product` DROP `id_tax`; -ALTER TABLE `PREFIX_carrier` DROP `id_tax`; - -DROP TABLE `PREFIX_tax_state`, `PREFIX_tax_zone`, `PREFIX_country_tax`; -ALTER TABLE `PREFIX_orders` ADD `carrier_tax_rate` DECIMAL(10, 3) NOT NULL default '0.00' AFTER `total_shipping`; - -INSERT INTO `PREFIX_hook` (`id_hook`, `name`, `title`, `description`, `position`) VALUES (NULL, 'beforeAuthentication', 'Before Authentication', 'Before authentication', 0); diff --git a/install-dev/sql/upgrade/1.4.0.6.sql b/install-dev/sql/upgrade/1.4.0.6.sql deleted file mode 100644 index f3b33b76d..000000000 --- a/install-dev/sql/upgrade/1.4.0.6.sql +++ /dev/null @@ -1,12 +0,0 @@ -SET NAMES 'utf8'; - -ALTER TABLE `PREFIX_customer` DROP INDEX `customer_email`; -ALTER TABLE `PREFIX_customer` ADD INDEX `customer_email` (`email`); - -ALTER TABLE `PREFIX_lang` ADD `language_code` char(5) NULL AFTER `iso_code`; -UPDATE `PREFIX_lang` SET language_code = iso_code; -ALTER TABLE `PREFIX_lang` MODIFY `language_code` char(5) NOT NULL; - -DELETE FROM `PREFIX_module` WHERE `name` = 'gridextjs' LIMIT 1; -DELETE FROM `PREFIX_hook_module` WHERE `id_module` NOT IN (SELECT id_module FROM `PREFIX_module`); -UPDATE `PREFIX_configuration` SET `value` = 'gridhtml' WHERE `name` = 'PS_STATS_GRID_RENDER' AND `value` = 'gridextjs' LIMIT 1; diff --git a/install-dev/sql/upgrade/1.4.0.7.sql b/install-dev/sql/upgrade/1.4.0.7.sql deleted file mode 100644 index 1edfbdac1..000000000 --- a/install-dev/sql/upgrade/1.4.0.7.sql +++ /dev/null @@ -1,10 +0,0 @@ -SET NAMES 'utf8'; - -ALTER TABLE `PREFIX_product_attribute` ADD `minimal_quantity` int(10) unsigned NOT NULL DEFAULT '1' AFTER `default_on`; - -ALTER TABLE `PREFIX_orders` ADD `reference` VARCHAR(14) NOT NULL AFTER `id_address_invoice`; - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES('PS_DISPLAY_SUPPLIERS', '1', NOW(), NOW()); - -/* PHP:update_products_ecotax_v133(); */; - diff --git a/install-dev/sql/upgrade/1.4.0.8.sql b/install-dev/sql/upgrade/1.4.0.8.sql deleted file mode 100644 index da0a17fcf..000000000 --- a/install-dev/sql/upgrade/1.4.0.8.sql +++ /dev/null @@ -1,35 +0,0 @@ -SET NAMES 'utf8'; - -CREATE TEMPORARY TABLE `PREFIX_tab_tmp1` ( - `id_parent` int(11) -); -INSERT INTO `PREFIX_tab_tmp1` (SELECT * FROM (SELECT `id_parent` FROM `PREFIX_tab` WHERE `class_name` = 'AdminTaxes') AS tmp); - -CREATE TEMPORARY TABLE `PREFIX_tab_tmp2` ( - `position` int(10) -); - -INSERT INTO `PREFIX_tab_tmp2` (SELECT * FROM (SELECT `position` FROM `PREFIX_tab` WHERE `class_name` = 'AdminTaxes') AS tmp2); - -UPDATE `PREFIX_tab` SET `position` = `position` + 1 WHERE `id_parent` = (SELECT id_parent FROM PREFIX_tab_tmp1 AS tmp) AND `position` > (SELECT position FROM PREFIX_tab_tmp2 AS tmp2); -DROP TABLE PREFIX_tab_tmp1; -DROP TABLE PREFIX_tab_tmp2; - -CREATE TEMPORARY TABLE `PREFIX_tab_tmp` ( - `position` int(10) -); - -INSERT INTO `PREFIX_tab_tmp` (SELECT * FROM (SELECT `position` FROM `PREFIX_tab` WHERE `class_name` = 'AdminTaxes') AS tmp); -UPDATE `PREFIX_tab` SET `position` = (SELECT position FROM PREFIX_tab_tmp tmp) + 1 WHERE `class_name` = 'AdminTaxRulesGroup'; -DROP TABLE PREFIX_tab_tmp; - -UPDATE `PREFIX_hook` SET `title` = 'Category creation', description = '' WHERE `name` = 'categoryAddition' LIMIT 1; -UPDATE `PREFIX_hook` SET `title` = 'Category modification', description = '' WHERE `name` = 'categoryUpdate' LIMIT 1; -UPDATE `PREFIX_hook` SET `title` = 'Category removal', description = '' WHERE `name` = 'categoryDeletion' LIMIT 1; - -DELETE FROM `PREFIX_module` WHERE `name` = 'canonicalurl' LIMIT 1; -DELETE FROM `PREFIX_hook_module` WHERE `id_module` NOT IN (SELECT id_module FROM `PREFIX_module`); - -/* PHP:gridextjs_deprecated(); */; -/* PHP:shop_url(); */; -/* PHP:updateproductcomments(); */; \ No newline at end of file diff --git a/install-dev/sql/upgrade/1.4.0.9.sql b/install-dev/sql/upgrade/1.4.0.9.sql deleted file mode 100644 index a975b0927..000000000 --- a/install-dev/sql/upgrade/1.4.0.9.sql +++ /dev/null @@ -1,16 +0,0 @@ -SET NAMES 'utf8'; - -CREATE TABLE `PREFIX_specific_price_priority` ( -`id_specific_price_priority` INT NOT NULL AUTO_INCREMENT , -`id_product` INT NOT NULL , -`priority` VARCHAR( 80 ) NOT NULL , -PRIMARY KEY ( `id_specific_price_priority` , `id_product` ) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -ALTER TABLE `PREFIX_product` ADD `unit_price_ratio` DECIMAL(20, 6) NOT NULL default '0.00' AFTER `unit_price`; - -UPDATE `PREFIX_product` SET `unit_price_ratio` = IF (`unit_price` != 0, `price` / `unit_price`, 0); - -ALTER TABLE `PREFIX_product` DROP `unit_price`; - -ALTER TABLE `PREFIX_discount` ADD `behavior_not_exhausted` TINYINT(3) DEFAULT '1' AFTER `id_discount_type`; diff --git a/install-dev/sql/upgrade/1.4.1.0.sql b/install-dev/sql/upgrade/1.4.1.0.sql deleted file mode 100755 index fb914c24a..000000000 --- a/install-dev/sql/upgrade/1.4.1.0.sql +++ /dev/null @@ -1,43 +0,0 @@ -SET NAMES 'utf8'; - -INSERT INTO `PREFIX_hook` (`name`, `title`, `description`, `position`, `live_edit`) VALUES ('afterSaveAdminMeta', 'After save configuration in AdminMeta', 'After save configuration in AdminMeta', 0, 0); - -ALTER TABLE `PREFIX_webservice_account` ADD `is_module` TINYINT( 2 ) NOT NULL DEFAULT '0' AFTER `class_name` , -ADD `module_name` VARCHAR( 50 ) NULL DEFAULT NULL AFTER `is_module`; - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES -('PS_IMG_UPDATE_TIME', UNIX_TIMESTAMP(), NOW(), NOW()); - -UPDATE `PREFIX_cms_lang` set link_rewrite = "uber-uns" where link_rewrite like "%ber-uns"; - -ALTER TABLE `PREFIX_connections` CHANGE `ip_address` `ip_address` BIGINT NULL DEFAULT NULL; - - -UPDATE `PREFIX_meta_lang` -SET `title` = 'Angebote', `keywords` = 'besonders, Angebote', `url_rewrite` = 'angebote' WHERE url_rewrite = 'preise-fallen'; - -ALTER TABLE `PREFIX_country` ADD `display_tax_label` BOOLEAN NOT NULL DEFAULT '1'; -DROP TABLE IF EXISTS `PREFIX_country_tax`; - -ALTER TABLE `PREFIX_order_detail` -CHANGE `product_quantity_in_stock` `product_quantity_in_stock` INT(10) NOT NULL DEFAULT '0'; - -CREATE TABLE `PREFIX_address_format` ( - `id_country` int(10) unsigned NOT NULL, - `format` varchar(255) NOT NULL DEFAULT '', - KEY `country` (`id_country`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -INSERT INTO `PREFIX_address_format` (`id_country`, `format`) -(SELECT `id_country` as id_country, 'firstname lastname\ncompany\nvat_number\naddress1\naddress2\npostcode city\ncountry\nphone' as format FROM PREFIX_country); - -UPDATE `PREFIX_address_format` set `format`='firstname lastname -company -address1 -address2 -city State:name postcode -country -phone' where `id_country`=21; - -/* PHP:alter_cms_block(); */; -/* PHP:add_module_to_hook(blockcategories, afterSaveAdminMeta); */; diff --git a/install-dev/sql/upgrade/1.4.2.0.sql b/install-dev/sql/upgrade/1.4.2.0.sql deleted file mode 100644 index b4920b207..000000000 --- a/install-dev/sql/upgrade/1.4.2.0.sql +++ /dev/null @@ -1,20 +0,0 @@ -SET NAMES 'utf8'; - -ALTER TABLE `PREFIX_tab_lang` MODIFY `id_lang` int(10) unsigned NOT NULL AFTER `id_tab`; -ALTER TABLE `PREFIX_carrier` ADD `is_free` tinyint(1) unsigned NOT NULL DEFAULT '0' AFTER `is_module`; - -UPDATE `PREFIX_address_format` SET `format`=REPLACE(REPLACE(`format`, 'state_iso', 'State:name'), 'country', 'Country:name'); - -ALTER TABLE `PREFIX_orders` ADD INDEX `date_add`(`date_add`); - -/* PHP:update_module_followup(); */; - -INSERT IGNORE INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES -('PS_STOCK_MVT_REASON_DEFAULT', 3, NOW(), NOW()); - -/* PHP:add_order_state(PS_OS_WS_PAYMENT, en:Payment remotely accepted|fr:Paiement à distance accepté, 1, 0, #DDEEFF, 1, 1, 0); */; -/* PHP:alter_blocklink(); */; -/* PHP:update_module_loyalty(); */; -/* PHP:remove_module_from_hook(blockcategories, afterCreateHtaccess); */; -/* PHP:updatetabicon_from_11version(); */; - diff --git a/install-dev/sql/upgrade/1.4.2.1.sql b/install-dev/sql/upgrade/1.4.2.1.sql deleted file mode 100644 index bb1503351..000000000 --- a/install-dev/sql/upgrade/1.4.2.1.sql +++ /dev/null @@ -1,3 +0,0 @@ -SET NAMES 'utf8'; - -DELETE FROM `PREFIX_configuration_lang` WHERE 1 AND `value` is NULL AND `date_upd` is NULL; diff --git a/install-dev/sql/upgrade/1.4.2.2.sql b/install-dev/sql/upgrade/1.4.2.2.sql deleted file mode 100644 index 35f908ba5..000000000 --- a/install-dev/sql/upgrade/1.4.2.2.sql +++ /dev/null @@ -1,11 +0,0 @@ -SET NAMES 'utf8'; - -UPDATE `PREFIX_country` SET `display_tax_label` = '1' WHERE `id_country` = 21; - -/* PHP:check_webservice_account_table(); */; -/* PHP:add_module_to_hook(blockcms, leftColumn); */; -/* PHP:add_module_to_hook(blockcms, rightColumn); */; -/* PHP:add_module_to_hook(blockcms, footer); */; - -UPDATE `PREFIX_cart` ca SET `secure_key` = IFNULL((SELECT `secure_key` from `PREFIX_customer` `cu` WHERE `cu`.`id_customer` = `ca`.`id_customer`), -1) WHERE `ca`.`secure_key` = -1; - diff --git a/install-dev/sql/upgrade/1.4.2.3.sql b/install-dev/sql/upgrade/1.4.2.3.sql deleted file mode 100644 index 6022be885..000000000 --- a/install-dev/sql/upgrade/1.4.2.3.sql +++ /dev/null @@ -1,30 +0,0 @@ -SET NAMES 'utf8'; - -UPDATE `PREFIX_address_format` SET `format`=REPLACE(`format`, 'state', 'State:name'); - -SET @defaultOOS = (SELECT value FROM `PREFIX_configuration` WHERE name = 'PS_ORDER_OUT_OF_STOCK'); -/* Set 0 for every non-attribute product */ -UPDATE `PREFIX_product` p SET `cache_default_attribute` = 0 WHERE `id_product` NOT IN (SELECT `id_product` FROM `PREFIX_product_attribute`); -/* First default attribute in stock */ -UPDATE `PREFIX_product` p SET `cache_default_attribute` = (SELECT `id_product_attribute` FROM `PREFIX_product_attribute` WHERE `id_product` = p.`id_product` AND default_on = 1 AND quantity > 0 LIMIT 1) WHERE `cache_default_attribute` IS NULL; -/* Then default attribute without stock if we don't care */ -UPDATE `PREFIX_product` p SET `cache_default_attribute` = (SELECT `id_product_attribute` FROM `PREFIX_product_attribute` WHERE `id_product` = p.`id_product` AND default_on = 1 LIMIT 1) WHERE `cache_default_attribute` IS NULL AND `out_of_stock` = 1 OR `out_of_stock` = IF(@defaultOOS = 1, 2, 1); -/* Next, the default attribute can be any attribute with stock */ -UPDATE `PREFIX_product` p SET `cache_default_attribute` = (SELECT `id_product_attribute` FROM `PREFIX_product_attribute` WHERE `id_product` = p.`id_product` AND quantity > 0 LIMIT 1) WHERE `cache_default_attribute` IS NULL; -/* If there is still no default attribute, then we go back to the default one */ -UPDATE `PREFIX_product` p SET `cache_default_attribute` = (SELECT `id_product_attribute` FROM `PREFIX_product_attribute` WHERE `id_product` = p.`id_product` AND default_on = 1 LIMIT 1) WHERE `cache_default_attribute` IS NULL; - -UPDATE `PREFIX_order_state_lang` SET `name` = 'Zahlung eingegangen' WHERE `PREFIX_order_state_lang`.`id_order_state` =2 AND `PREFIX_order_state_lang`.`id_lang` = (SELECT id_lang FROM `PREFIX_lang` WHERE `iso_code` = 'de'); -UPDATE `PREFIX_order_state_lang` SET `name` = 'Bestellung eingegangen' WHERE `PREFIX_order_state_lang`.`id_order_state` =3 AND `PREFIX_order_state_lang`.`id_lang` = (SELECT id_lang FROM `PREFIX_lang` WHERE `iso_code` = 'de'); -UPDATE `PREFIX_order_state_lang` SET `name` = 'Versendet' WHERE `PREFIX_order_state_lang`.`id_order_state` =4 AND `PREFIX_order_state_lang`.`id_lang` = (SELECT id_lang FROM `PREFIX_lang` WHERE `iso_code` = 'de'); -UPDATE `PREFIX_order_state_lang` SET `name` = 'Erfolgreich abgeschlossen' WHERE `PREFIX_order_state_lang`.`id_order_state` =5 AND `PREFIX_order_state_lang`.`id_lang` = (SELECT id_lang FROM `PREFIX_lang` WHERE `iso_code` = 'de'); -UPDATE `PREFIX_order_state_lang` SET `name` = 'Storniert' WHERE `PREFIX_order_state_lang`.`id_order_state` =6 AND `PREFIX_order_state_lang`.`id_lang` = (SELECT id_lang FROM `PREFIX_lang` WHERE `iso_code` = 'de'); -UPDATE `PREFIX_order_state_lang` SET `name` = 'Fehler bei der Bezahlung' WHERE `PREFIX_order_state_lang`.`id_order_state` =8 AND `PREFIX_order_state_lang`.`id_lang` = (SELECT id_lang FROM `PREFIX_lang` WHERE `iso_code` = 'de'); -UPDATE `PREFIX_order_state_lang` SET `name` = 'Artikel erwartet' WHERE `PREFIX_order_state_lang`.`id_order_state` =9 AND `PREFIX_order_state_lang`.`id_lang` = (SELECT id_lang FROM `PREFIX_lang` WHERE `iso_code` = 'de'); -UPDATE `PREFIX_order_state_lang` SET `name` = 'Warten auf Zahlungseingang' WHERE `PREFIX_order_state_lang`.`id_order_state` =10 AND `PREFIX_order_state_lang`.`id_lang` = (SELECT id_lang FROM `PREFIX_lang` WHERE `iso_code` = 'de'); -UPDATE `PREFIX_order_state_lang` SET `name` = 'Warten auf Zahlungseingang von PayPal' WHERE `PREFIX_order_state_lang`.`id_order_state` =11 AND `PREFIX_order_state_lang`.`id_lang` = (SELECT id_lang FROM `PREFIX_lang` WHERE `iso_code` = 'de'); -UPDATE `PREFIX_order_state_lang` SET `name` = 'PayPal Anmeldung erfolgreich' WHERE `PREFIX_order_state_lang`.`id_order_state` =12 AND `PREFIX_order_state_lang`.`id_lang` = (SELECT id_lang FROM `PREFIX_lang` WHERE `iso_code` = 'de'); - -UPDATE `PREFIX_meta_lang` SET `url_rewrite` = 'identita' WHERE `url_rewrite` = 'Identità'; - -/* PHP:add_missing_rewrite_value(); */; diff --git a/install-dev/sql/upgrade/1.4.2.4.sql b/install-dev/sql/upgrade/1.4.2.4.sql deleted file mode 100644 index 1d5c1fd1c..000000000 --- a/install-dev/sql/upgrade/1.4.2.4.sql +++ /dev/null @@ -1,10 +0,0 @@ -SET NAMES 'utf8'; - -INSERT IGNORE INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_BACKUP_DROP_TABLE', 1, NOW(), NOW()); - -UPDATE `PREFIX_tab_lang` SET `name` = 'SEO & URLs' WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` WHERE `class_name` = 'AdminMeta' LIMIT 1) AND `id_lang` IN (SELECT `id_lang` FROM `PREFIX_lang` WHERE `iso_code` IN ('en','fr','es','de','it')); - -/* These 3 lines (remove_duplicate, drop index, add unique) MUST stay together in this order */ -/* PHP:remove_duplicate_category_groups(); */; -ALTER TABLE `PREFIX_category_group` DROP INDEX `category_group_index`; -ALTER TABLE `PREFIX_category_group` ADD UNIQUE `category_group_index` (`id_category`,`id_group`); \ No newline at end of file diff --git a/install-dev/sql/upgrade/1.4.2.5.sql b/install-dev/sql/upgrade/1.4.2.5.sql deleted file mode 100644 index a5787c654..000000000 --- a/install-dev/sql/upgrade/1.4.2.5.sql +++ /dev/null @@ -1,4 +0,0 @@ -SET NAMES 'utf8'; - -/* Fix wrong category level_depth caused by bug in 1.4.0.13 upgrade script */ -/* PHP:regenerate_level_depth(); */; \ No newline at end of file diff --git a/install-dev/sql/upgrade/1.4.3.0.sql b/install-dev/sql/upgrade/1.4.3.0.sql deleted file mode 100644 index e5be50568..000000000 --- a/install-dev/sql/upgrade/1.4.3.0.sql +++ /dev/null @@ -1,16 +0,0 @@ -SET NAMES 'utf8'; - -UPDATE `PREFIX_address_format` SET `format`='firstname lastname -company -address1 -address2 -city -State:name -postcode -Country:name' -WHERE `id_country` = (SELECT `id_country` FROM `PREFIX_country` WHERE `iso_code`='GB'); - -UPDATE `PREFIX_country` SET `contains_states` = 1 WHERE `id_country` = 145; - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES -('PS_LEGACY_IMAGES', '1', NOW(), NOW()); \ No newline at end of file diff --git a/install-dev/sql/upgrade/1.4.4.0.sql b/install-dev/sql/upgrade/1.4.4.0.sql deleted file mode 100644 index 1c632dd83..000000000 --- a/install-dev/sql/upgrade/1.4.4.0.sql +++ /dev/null @@ -1,79 +0,0 @@ -SET NAMES 'utf8'; - -ALTER TABLE `PREFIX_image` MODIFY COLUMN `position` SMALLINT(2) UNSIGNED NOT NULL DEFAULT 0; - -INSERT IGNORE INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES -('PS_OS_CHEQUE', '1', NOW(), NOW()), -('PS_OS_PAYMENT', '2', NOW(), NOW()), -('PS_OS_PREPARATION', '3', NOW(), NOW()), -('PS_OS_SHIPPING', '4', NOW(), NOW()), -('PS_OS_DELIVERED', '5', NOW(), NOW()), -('PS_OS_CANCELED', '6', NOW(), NOW()), -('PS_OS_REFUND', '7', NOW(), NOW()), -('PS_OS_ERROR', '8', NOW(), NOW()), -('PS_OS_OUTOFSTOCK', '9', NOW(), NOW()), -('PS_OS_BANKWIRE', '10', NOW(), NOW()), -('PS_OS_PAYPAL', '11', NOW(), NOW()), -('PS_OS_WS_PAYMENT', '12', NOW(), NOW()), -('PS_IMAGE_QUALITY', 'jpg', NOW(), NOW()), -('PS_PNG_QUALITY', '7', NOW(), NOW()), -('PS_JPEG_QUALITY', '90', NOW(), NOW()), -('PS_COOKIE_LIFETIME_FO', '480', NOW(), NOW()), -('PS_COOKIE_LIFETIME_BO', '480', NOW(), NOW()); - -ALTER TABLE `PREFIX_lang` ADD `is_rtl` TINYINT(1) NOT NULL DEFAULT '0'; - -UPDATE `PREFIX_country_lang` -SET `name` = 'United States' -WHERE `name` = 'USA' -AND `id_lang` = ( - SELECT `id_lang` - FROM `PREFIX_lang` - WHERE `iso_code` = 'en' - LIMIT 1 -); - -UPDATE `PREFIX_hook` -SET `live_edit` = 1 -WHERE `name` = 'leftColumn' -OR `name` = 'home' -OR `name` = 'rightColumn' -OR `name` = 'productfooter' -OR `name` = 'payment'; - -ALTER TABLE `PREFIX_stock_mvt_reason` MODIFY `sign` TINYINT(1) NOT NULL DEFAULT '1' AFTER `id_stock_mvt_reason`; - -UPDATE `PREFIX_tab_lang` -SET `name` = 'Geolocation' -WHERE `name` = 'Geolocalization'; - -UPDATE `PREFIX_tab_lang` -SET `name` = 'Counties' -WHERE `name` = 'County'; - -ALTER TABLE `PREFIX_tax_rule` MODIFY `id_county` INT NOT NULL AFTER `id_country`; - -UPDATE `PREFIX_address_format` set `format`='firstname lastname -company -address1 address2 -city, State:name postcode -Country:name -phone' -WHERE `id_country` = (SELECT `id_country` FROM `PREFIX_country` WHERE `iso_code`='US'); - -ALTER TABLE `PREFIX_attachment` CHANGE `mime` `mime` VARCHAR(128) NOT NULL; - -CREATE TABLE IF NOT EXISTS `PREFIX_compare_product` ( - `id_compare_product` int(10) unsigned NOT NULL AUTO_INCREMENT, - `id_product` int(10) unsigned NOT NULL, - `id_guest` int(10) unsigned NOT NULL, - `id_customer` int(10) unsigned NOT NULL, - `date_add` datetime NOT NULL, - `date_upd` datetime NOT NULL, - PRIMARY KEY (`id_compare_product`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -DELETE FROM `PREFIX_configuration` WHERE name = 'PS_LAYERED_NAVIGATION_CHECKBOXES' LIMIT 1; - -/* PHP:alter_productcomments_guest_index(); */; - diff --git a/install-dev/sql/upgrade/1.4.4.1.sql b/install-dev/sql/upgrade/1.4.4.1.sql deleted file mode 100755 index 0b4cf1b2f..000000000 --- a/install-dev/sql/upgrade/1.4.4.1.sql +++ /dev/null @@ -1 +0,0 @@ -SET NAMES 'utf8'; diff --git a/install-dev/sql/upgrade/1.4.5.0.sql b/install-dev/sql/upgrade/1.4.5.0.sql deleted file mode 100644 index 43c3d5e1d..000000000 --- a/install-dev/sql/upgrade/1.4.5.0.sql +++ /dev/null @@ -1,55 +0,0 @@ -SET NAMES 'utf8'; - -INSERT IGNORE INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES -('PS_RESTRICT_DELIVERED_COUNTRIES', '0', NOW(), NOW()); - -UPDATE `PREFIX_country_lang` SET `name` = 'United States' WHERE `name` = 'United State'; - -ALTER TABLE `PREFIX_discount` ADD `include_tax` TINYINT(1) NOT NULL DEFAULT '0'; - -UPDATE `PREFIX_order_detail` SET `product_price` = `product_price` /( 1-(`group_reduction`/100)); - -DELETE FROM `PREFIX_configuration` WHERE name IN ('PS_LAYERED_BITLY_USERNAME', 'PS_LAYERED_BITLY_API_KEY', 'PS_LAYERED_SHARE') LIMIT 3; - -ALTER TABLE `PREFIX_delivery` CHANGE `price` `price` DECIMAL(20, 6) NOT NULL; - -ALTER TABLE `PREFIX_store` CHANGE `latitude` `latitude` DECIMAL(10, 8) NULL DEFAULT NULL; -ALTER TABLE `PREFIX_store` CHANGE `longitude` `longitude` DECIMAL(10, 8) NULL DEFAULT NULL; - -INSERT INTO `PREFIX_hook` (`name`, `title`, `description`, `position`, `live_edit`) VALUES -('attributeGroupForm', 'Add fields to the form "attribute group"', 'Add fields to the form "attribute group"', 0, 0), -('afterSaveAttributeGroup', 'On saving attribute group', 'On saving attribute group', 0, 0), -('afterDeleteAttributeGroup', 'On deleting attribute group', 'On deleting "attribute group', 0, 0), -('featureForm', 'Add fields to the form "feature"', 'Add fields to the form "feature"', 0, 0), -('afterSaveFeature', 'On saving attribute feature', 'On saving attribute feature', 0, 0), -('afterDeleteFeature', 'On deleting attribute feature', 'On deleting attribute feature', 0, 0), -('afterSaveProduct', 'On saving products', 'On saving products', 0, 0), -('productListAssign', 'Assign product list to a category', 'Assign product list to a category', 0, 0), -('postProcessAttributeGroup', 'On post-process in admin attribute group', 'On post-process in admin attribute group', 0, 0), -('postProcessFeature', 'On post-process in admin feature', 'On post-process in admin feature', 0, 0), -('featureValueForm', 'Add fields to the form "feature value"', 'Add fields to the form "feature value"', 0, 0), -('postProcessFeatureValue', 'On post-process in admin feature value', 'On post-process in admin feature value', 0, 0), -('afterDeleteFeatureValue', 'On deleting attribute feature value', 'On deleting attribute feature value', 0, 0), -('afterSaveFeatureValue', 'On saving attribute feature value', 'On saving attribute feature value', 0, 0), -('attributeForm', 'Add fields to the form "feature value"', 'Add fields to the form "feature value"', 0, 0), -('postProcessAttribute', 'On post-process in admin feature value', 'On post-process in admin feature value', 0, 0), -('afterDeleteAttribute', 'On deleting attribute feature value', 'On deleting attribute feature value', 0, 0), -('afterSaveAttribute', 'On saving attribute feature value', 'On saving attribute feature value', 0, 0); - -ALTER TABLE `PREFIX_employee` ADD `bo_show_screencast` TINYINT(1) NOT NULL DEFAULT '1' AFTER `bo_theme`; - -UPDATE `PREFIX_country` SET id_zone = (SELECT id_zone FROM `PREFIX_zone` WHERE name = 'Oceania' LIMIT 1) WHERE iso_code = 'KI' LIMIT 1; - -ALTER TABLE `PREFIX_lang` ADD `date_format_lite` char(32) NOT NULL DEFAULT 'Y-m-d' AFTER language_code; -ALTER TABLE `PREFIX_lang` ADD `date_format_full` char(32) NOT NULL DEFAULT 'Y-m-d H:i:s' AFTER date_format_lite; -UPDATE `PREFIX_lang` SET `date_format_lite` = 'd/m/Y' WHERE `iso_code` IN ('fr', 'es', 'it'); -UPDATE `PREFIX_lang` SET `date_format_full` = 'd/m/Y H:i:s' WHERE `iso_code` IN ('fr', 'es', 'it'); -UPDATE `PREFIX_lang` SET `date_format_lite` = 'd.m.Y' WHERE `iso_code` = 'de'; -UPDATE `PREFIX_lang` SET `date_format_full` = 'd.m.Y H:i:s' WHERE `iso_code` = 'de'; -UPDATE `PREFIX_lang` SET `date_format_lite` = 'm/d/Y' WHERE `iso_code` = 'en'; -UPDATE `PREFIX_lang` SET `date_format_full` = 'm/d/Y H:i:s' WHERE `iso_code` = 'en'; - -ALTER IGNORE TABLE `PREFIX_specific_price_priority` ADD UNIQUE ( -`id_product` -); - diff --git a/install-dev/sql/upgrade/1.4.5.1.sql b/install-dev/sql/upgrade/1.4.5.1.sql deleted file mode 100755 index 0b4cf1b2f..000000000 --- a/install-dev/sql/upgrade/1.4.5.1.sql +++ /dev/null @@ -1 +0,0 @@ -SET NAMES 'utf8'; diff --git a/install-dev/sql/upgrade/1.4.6.0.sql b/install-dev/sql/upgrade/1.4.6.0.sql deleted file mode 100644 index 11a9fee16..000000000 --- a/install-dev/sql/upgrade/1.4.6.0.sql +++ /dev/null @@ -1,25 +0,0 @@ -SET NAMES 'utf8'; - -/* PHP:update_order_canada(); */; - -CREATE TABLE IF NOT EXISTS `PREFIX_compare` ( - `id_compare` int(10) unsigned NOT NULL AUTO_INCREMENT, - `id_customer` int(10) unsigned NOT NULL, - PRIMARY KEY (`id_compare`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -ALTER TABLE `PREFIX_compare_product` DROP `id_compare_product` , DROP `id_guest` , DROP `id_customer` ; - -ALTER TABLE `PREFIX_compare_product` - ADD `id_compare` int(10) unsigned NOT NULL, - ADD PRIMARY KEY( - `id_compare`, - `id_product`); - -ALTER TABLE `PREFIX_store` CHANGE `latitude` `latitude` DECIMAL(11, 8) NULL DEFAULT NULL; -ALTER TABLE `PREFIX_store` CHANGE `longitude` `longitude` DECIMAL(11, 8) NULL DEFAULT NULL; - -ALTER TABLE `PREFIX_address_format` ADD PRIMARY KEY (`id_country`); -ALTER TABLE `PREFIX_address_format` DROP INDEX `country`; - -/* PHP:hook_blocksearch_on_header(); */; diff --git a/install-dev/sql/upgrade/1.5.0.0.sql b/install-dev/sql/upgrade/1.5.0.0.sql deleted file mode 100755 index 3e3e77da2..000000000 --- a/install-dev/sql/upgrade/1.5.0.0.sql +++ /dev/null @@ -1,317 +0,0 @@ -SET NAMES 'utf8'; -CREATE TABLE IF NOT EXISTS `PREFIX_group_shop` ( - `id_group_shop` int(11) unsigned NOT NULL AUTO_INCREMENT, - `name` varchar(64) CHARACTER SET utf8 NOT NULL, - `share_customer` TINYINT(1) NOT NULL, - `share_order` TINYINT(1) NOT NULL, - `share_stock` TINYINT(1) NOT NULL, - `active` tinyint(1) NOT NULL DEFAULT '1', - `deleted` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id_group_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; -INSERT INTO `PREFIX_group_shop` (`id_group_shop`, `name`, `active`, `deleted`, `share_stock`, `share_customer`, `share_order`) VALUES (1, 'Default', 1, 0, 0, 0, 0); - -CREATE TABLE IF NOT EXISTS `PREFIX_shop` ( - `id_shop` int(11) unsigned NOT NULL AUTO_INCREMENT, - `id_group_shop` int(11) unsigned NOT NULL, - `name` varchar(64) CHARACTER SET utf8 NOT NULL, - `id_category` INT(11) UNSIGNED NOT NULL DEFAULT '1', - `id_theme` INT(1) UNSIGNED NOT NULL, - `active` tinyint(1) NOT NULL DEFAULT '1', - `deleted` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id_shop`), - KEY `id_group_shop` (`id_group_shop`), - KEY `id_category` (`id_category`), - KEY `id_theme` (`id_theme`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -INSERT INTO `PREFIX_shop` - (`id_shop`, `id_group_shop`, `name`, `id_category`, `id_theme`, `active`, `deleted`) - VALUES - (1, 1, (SELECT value FROM `PREFIX_configuration` WHERE name = 'PS_SHOP_NAME'), 1, 1, 1, 0); - -ALTER TABLE `PREFIX_configuration` ADD `id_group_shop` INT(11) UNSIGNED DEFAULT NULL AFTER `id_configuration` , ADD `id_shop` INT(11) UNSIGNED DEFAULT NULL AFTER `id_group_shop`; -ALTER TABLE `PREFIX_configuration` DROP INDEX `name` , ADD INDEX `name` ( `name` ) ; -ALTER TABLE `PREFIX_configuration` ADD INDEX (`id_group_shop`); -ALTER TABLE `PREFIX_configuration` ADD INDEX (`id_shop`); -INSERT INTO `PREFIX_configuration` (`id_configuration`, `name`, `value`, `date_add`, `date_upd`) VALUES (NULL, 'PS_SHOP_DEFAULT', '1', NOW(), NOW()); - -CREATE TABLE IF NOT EXISTS `PREFIX_shop_url` ( - `id_shop_url` int(11) unsigned NOT NULL AUTO_INCREMENT, - `id_shop` int(11) unsigned NOT NULL, - `domain` varchar(255) NOT NULL, - `domain_ssl` varchar(255) NOT NULL, - `physical_uri` varchar(64) NOT NULL, - `virtual_uri` varchar(64) NOT NULL, - `main` TINYINT(1) NOT NULL, - `active` TINYINT(1) NOT NULL, - PRIMARY KEY (`id_shop_url`), - KEY `id_shop` (`id_shop`), - UNIQUE KEY `shop_url` (`domain`, `virtual_uri`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_theme` ( - `id_theme` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(64) NOT NULL, - PRIMARY KEY (`id_theme`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; -INSERT INTO `PREFIX_theme` (`id_theme`, `name`) VALUES (1, 'prestashop'); - -CREATE TABLE IF NOT EXISTS `PREFIX_theme_specific` ( - `id_theme` int(11) unsigned NOT NULL, - `id_shop` INT(11) UNSIGNED NOT NULL, - `entity` int(11) unsigned NOT NULL, - `id_object` int(11) unsigned NOT NULL, - PRIMARY KEY (`id_theme`,`id_shop`, `entity`,`id_object`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_stock` ( -`id_stock` INT( 11 ) UNSIGNED NOT NULL AUTO_INCREMENT, -`id_product` INT( 11 ) UNSIGNED NOT NULL, -`id_product_attribute` INT( 11 ) UNSIGNED NOT NULL, -`id_shop` INT(11) UNSIGNED NOT NULL, -`quantity` INT(11) NOT NULL, - PRIMARY KEY (`id_stock`), - KEY `id_product` (`id_product`), - KEY `id_product_attribute` (`id_product_attribute`), - KEY `id_shop` (`id_shop`), - UNIQUE KEY `product_stock` (`id_product` ,`id_product_attribute` ,`id_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -INSERT INTO `PREFIX_stock` (id_product, id_product_attribute, id_shop, quantity) (SELECT id_product, id_product_attribute, 1, quantity FROM PREFIX_product_attribute); -INSERT INTO `PREFIX_stock` (id_product, id_product_attribute, id_shop, quantity) (SELECT id_product, 0, 1, IF( - (SELECT COUNT(*) FROM PREFIX_product_attribute pa WHERE p.id_product = pa.id_product) > 0, - (SELECT SUM(pa2.quantity) FROM PREFIX_product_attribute pa2 WHERE p.id_product = pa2.id_product), - quantity -) FROM PREFIX_product p); - -ALTER TABLE PREFIX_stock_mvt ADD id_stock INT UNSIGNED NOT NULL AFTER id_stock_mvt; -UPDATE PREFIX_stock_mvt sm SET sm.id_stock = (SELECT s.id_stock FROM PREFIX_stock s WHERE s.id_product = sm.id_product AND s.id_product_attribute = sm.id_product_attribute ORDER BY s.id_shop LIMIT 1); -ALTER TABLE PREFIX_stock_mvt DROP id_product, DROP id_product_attribute; - -CREATE TABLE `PREFIX_country_shop` ( -`id_country` INT( 11 ) UNSIGNED NOT NULL, -`id_shop` INT( 11 ) UNSIGNED NOT NULL , - PRIMARY KEY (`id_country`, `id_shop`), - KEY `id_shop` (`id_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; -INSERT INTO `PREFIX_country_shop` (id_shop, id_country) (SELECT 1, id_country FROM PREFIX_country); - -CREATE TABLE `PREFIX_carrier_shop` ( -`id_carrier` INT( 11 ) UNSIGNED NOT NULL , -`id_shop` INT( 11 ) UNSIGNED NOT NULL , - PRIMARY KEY (`id_carrier`, `id_shop`), - KEY `id_shop` (`id_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; -INSERT INTO `PREFIX_carrier_shop` (id_shop, id_carrier) (SELECT 1, id_carrier FROM PREFIX_carrier); - -CREATE TABLE `PREFIX_cms_shop` ( -`id_cms` INT( 11 ) UNSIGNED NOT NULL, -`id_shop` INT( 11 ) UNSIGNED NOT NULL , - PRIMARY KEY (`id_cms`, `id_shop`), - KEY `id_shop` (`id_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; -INSERT INTO `PREFIX_cms_shop` (id_shop, id_cms) (SELECT 1, id_cms FROM PREFIX_cms); - -ALTER TABLE `PREFIX_cms_block` ADD `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1' AFTER `id_cms_block`; - -CREATE TABLE `PREFIX_lang_shop` ( -`id_lang` INT( 11 ) UNSIGNED NOT NULL, -`id_shop` INT( 11 ) UNSIGNED NOT NULL, - PRIMARY KEY (`id_lang`, `id_shop`), - KEY `id_shop` (`id_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; -INSERT INTO `PREFIX_lang_shop` (id_shop, id_lang) (SELECT 1, id_lang FROM PREFIX_lang); - -CREATE TABLE `PREFIX_currency_shop` ( -`id_currency` INT( 11 ) UNSIGNED NOT NULL, -`id_shop` INT( 11 ) UNSIGNED NOT NULL, - PRIMARY KEY (`id_currency`, `id_shop`), - KEY `id_shop` (`id_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; -INSERT INTO `PREFIX_currency_shop` (id_shop, id_currency) (SELECT 1, id_currency FROM PREFIX_currency); - -ALTER TABLE `PREFIX_cart` ADD `id_group_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1' AFTER `id_cart` , ADD `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1' AFTER `id_group_shop`, ADD INDEX `id_group_shop` (`id_group_shop`), ADD INDEX `id_shop` (`id_shop`); - -ALTER TABLE `PREFIX_customer` ADD `id_group_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1' AFTER `id_customer` , ADD `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1' AFTER `id_group_shop`, ADD INDEX `id_group_shop` (`id_group_shop`), ADD INDEX `id_shop` (`id_shop`); - -ALTER TABLE `PREFIX_orders` ADD `id_group_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1' AFTER `id_order` , ADD `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1' AFTER `id_group_shop`, ADD INDEX `id_group_shop` (`id_group_shop`), ADD INDEX `id_shop` (`id_shop`); - -ALTER TABLE `PREFIX_customer_thread` ADD `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1' AFTER `id_customer_thread`; -ALTER TABLE `PREFIX_customer_thread` ADD INDEX `id_shop` (`id_shop`), ADD INDEX `id_lang` (`id_lang`), ADD INDEX `id_contact` (`id_contact`), ADD INDEX `id_customer` (`id_customer`), ADD INDEX `id_order` (`id_order`), ADD INDEX `id_product` (`id_product`); - -ALTER TABLE `PREFIX_customer_message` ADD INDEX `id_employee` (`id_employee`); - -ALTER TABLE `PREFIX_meta_lang` ADD `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1' AFTER `id_meta`; -ALTER TABLE `PREFIX_meta_lang` DROP PRIMARY KEY, ADD PRIMARY KEY (`id_meta`, `id_shop`, `id_lang`), ADD INDEX `id_shop` (`id_shop`), ADD INDEX `id_lang` (`id_lang`); - -CREATE TABLE `PREFIX_contact_shop` ( - `id_contact` INT(11) UNSIGNED NOT NULL, - `id_shop` INT(11) UNSIGNED NOT NULL, - PRIMARY KEY (`id_contact`, `id_shop`), - KEY `id_shop` (`id_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; -INSERT INTO `PREFIX_contact_shop` (id_shop, id_contact) (SELECT 1, id_contact FROM `PREFIX_contact`); - -CREATE TABLE `PREFIX_image_shop` ( -`id_image` INT( 11 ) UNSIGNED NOT NULL, -`id_shop` INT( 11 ) UNSIGNED NOT NULL, - PRIMARY KEY (`id_image`, `id_shop`), - KEY `id_shop` (`id_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; -INSERT INTO `PREFIX_image_shop` (id_shop, id_image) (SELECT 1, id_image FROM PREFIX_image); - -CREATE TABLE `PREFIX_attribute_group_shop` ( -`id_attribute` INT(11) UNSIGNED NOT NULL, -`id_group_shop` INT(11) UNSIGNED NOT NULL, - PRIMARY KEY (`id_attribute`, `id_group_shop`), - KEY `id_group_shop` (`id_group_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; -INSERT INTO `PREFIX_attribute_group_shop` (id_group_shop, id_attribute) (SELECT 1, id_attribute FROM PREFIX_attribute); - -CREATE TABLE `PREFIX_feature_group_shop` ( -`id_feature` INT(11) UNSIGNED NOT NULL, -`id_group_shop` INT(11) UNSIGNED NOT NULL , - PRIMARY KEY (`id_feature`, `id_group_shop`), - KEY `id_group_shop` (`id_group_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; -INSERT INTO `PREFIX_feature_group_shop` (id_group_shop, id_feature) (SELECT 1, id_feature FROM PREFIX_feature); - -CREATE TABLE `PREFIX_group_group_shop` ( -`id_group` INT( 11 ) UNSIGNED NOT NULL, -`id_group_shop` INT( 11 ) UNSIGNED NOT NULL, - PRIMARY KEY (`id_group`, `id_group_shop`), - KEY `id_group_shop` (`id_group_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; -INSERT INTO `PREFIX_group_group_shop` (id_group_shop, id_group) (SELECT 1, id_group FROM PREFIX_group); - -CREATE TABLE `PREFIX_attribute_group_group_shop` ( -`id_attribute_group` INT( 11 ) UNSIGNED NOT NULL , -`id_group_shop` INT( 11 ) UNSIGNED NOT NULL , - PRIMARY KEY (`id_attribute_group`, `id_group_shop`), - KEY `id_group_shop` (`id_group_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; -INSERT INTO `PREFIX_attribute_group_group_shop` (id_group_shop, id_attribute_group) (SELECT 1, id_attribute_group FROM PREFIX_attribute_group); - -CREATE TABLE `PREFIX_tax_rules_group_group_shop` ( - `id_tax_rules_group` INT( 11 ) UNSIGNED NOT NULL, - `id_group_shop` INT( 11 ) UNSIGNED NOT NULL, - PRIMARY KEY (`id_tax_rules_group`, `id_group_shop`), - KEY `id_group_shop` (`id_group_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; -INSERT INTO `PREFIX_tax_rules_group_group_shop` (`id_tax_rules_group`, `id_group_shop`) (SELECT `id_tax_rules_group`, 1 FROM `PREFIX_tax_rules_group`); - -CREATE TABLE `PREFIX_zone_group_shop` ( -`id_zone` INT( 11 ) UNSIGNED NOT NULL , -`id_group_shop` INT( 11 ) UNSIGNED NOT NULL , - PRIMARY KEY (`id_zone`, `id_group_shop`), - KEY `id_group_shop` (`id_group_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; -INSERT INTO `PREFIX_zone_group_shop` (id_group_shop, id_zone) (SELECT 1, id_zone FROM PREFIX_zone); - -CREATE TABLE `PREFIX_manufacturer_group_shop` ( -`id_manufacturer` INT( 11 ) UNSIGNED NOT NULL , -`id_group_shop` INT( 11 ) UNSIGNED NOT NULL , - PRIMARY KEY (`id_manufacturer`, `id_group_shop`), - KEY `id_group_shop` (`id_group_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; -INSERT INTO `PREFIX_manufacturer_group_shop` (id_group_shop, id_manufacturer) (SELECT 1, id_manufacturer FROM PREFIX_manufacturer); - -CREATE TABLE `PREFIX_supplier_group_shop` ( -`id_supplier` INT( 11 ) UNSIGNED NOT NULL, -`id_group_shop` INT( 11 ) UNSIGNED NOT NULL, -PRIMARY KEY (`id_supplier`, `id_group_shop`), - KEY `id_group_shop` (`id_group_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; -INSERT INTO `PREFIX_supplier_group_shop` (id_group_shop, id_supplier) (SELECT 1, id_supplier FROM PREFIX_supplier); - -CREATE TABLE `PREFIX_store_shop` ( -`id_store` INT( 11 ) UNSIGNED NOT NULL , -`id_shop` INT( 11 ) UNSIGNED NOT NULL, -PRIMARY KEY (`id_store`, `id_shop`), - KEY `id_shop` (`id_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; -INSERT INTO `PREFIX_store_shop` (id_shop, id_store) (SELECT 1, id_store FROM PREFIX_store); - -CREATE TABLE `PREFIX_product_shop` ( -`id_product` INT( 11 ) UNSIGNED NOT NULL, -`id_shop` INT( 11 ) UNSIGNED NOT NULL, -PRIMARY KEY ( `id_shop` , `id_product` ), - KEY `id_shop` (`id_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; -INSERT INTO `PREFIX_product_shop` (id_shop, id_product) (SELECT 1, id_product FROM PREFIX_product); - -ALTER TABLE `PREFIX_category_lang` ADD `id_shop` INT( 11 ) UNSIGNED NOT NULL DEFAULT '1' AFTER `id_category`; -ALTER TABLE `PREFIX_category_lang` ADD UNIQUE KEY( `id_category`, `id_shop`, `id_lang`); - -ALTER TABLE `PREFIX_product_lang` ADD `id_shop` INT( 11 ) UNSIGNED NOT NULL DEFAULT '1' AFTER `id_product`; -ALTER TABLE `PREFIX_product_lang` ADD UNIQUE KEY ( `id_product`, `id_shop` , `id_lang`); - -ALTER TABLE `PREFIX_specific_price` CHANGE `id_shop` `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1'; - -ALTER TABLE `PREFIX_hook_module` ADD `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1' AFTER `id_hook`; -ALTER TABLE `PREFIX_hook_module` DROP PRIMARY KEY; -ALTER TABLE `PREFIX_hook_module` ADD PRIMARY KEY (`id_module`,`id_hook`,`id_shop` ); -ALTER TABLE `PREFIX_hook_module_exceptions` ADD `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1' AFTER `id_hook`; - -ALTER TABLE `PREFIX_connections` ADD `id_group_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1', ADD `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1'; -ALTER TABLE `PREFIX_page_viewed` ADD `id_group_shop` INT UNSIGNED NOT NULL DEFAULT '1' AFTER `id_page`, ADD `id_shop` INT UNSIGNED NOT NULL DEFAULT '1' AFTER `id_group_shop`; -ALTER TABLE `PREFIX_page_viewed` DROP PRIMARY KEY, ADD PRIMARY KEY (`id_page`, `id_date_range`, `id_shop`); - -CREATE TABLE `PREFIX_module_shop` ( -`id_module` INT( 11 ) UNSIGNED NOT NULL, -`id_shop` INT( 11 ) UNSIGNED NOT NULL, -PRIMARY KEY (`id_module` , `id_shop`), - KEY `id_shop` (`id_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; -INSERT INTO `PREFIX_module_shop` (`id_module`, `id_shop`) (SELECT `id_module`, 1 FROM `PREFIX_module`); - -ALTER TABLE `PREFIX_module_currency` ADD `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1' AFTER `id_module`; -ALTER TABLE `PREFIX_module_currency` DROP PRIMARY KEY; -ALTER TABLE `PREFIX_module_currency` ADD PRIMARY KEY (`id_module`, `id_shop`, `id_currency`); - -ALTER TABLE `PREFIX_module_country` ADD `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1' AFTER `id_module`; -ALTER TABLE `PREFIX_module_country` DROP PRIMARY KEY; -ALTER TABLE `PREFIX_module_country` ADD PRIMARY KEY (`id_module`, `id_shop`, `id_country`); - -ALTER TABLE `PREFIX_module_group` ADD `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1' AFTER `id_module`; -ALTER TABLE `PREFIX_module_group` DROP PRIMARY KEY; -ALTER TABLE `PREFIX_module_group` ADD PRIMARY KEY (`id_module`, `id_shop`, `id_group`); - -ALTER TABLE `PREFIX_carrier_lang` ADD `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1' AFTER `id_carrier`; -ALTER TABLE `PREFIX_carrier_lang` ADD UNIQUE `shipper_lang_index` (`id_carrier`, `id_shop`, `id_lang`); - -ALTER TABLE `PREFIX_search_word` ADD `id_shop` INT(11) NOT NULL DEFAULT '1' AFTER `id_word`; -ALTER TABLE `PREFIX_search_word` DROP INDEX `id_lang`, ADD UNIQUE `id_lang` (`id_lang`,`id_shop`,`word`); - -CREATE TABLE `PREFIX_referrer_shop` ( - `id_referrer` int(10) unsigned NOT NULL auto_increment, - `id_shop` int(10) unsigned NOT NULL default '1', - `cache_visitors` int(11) default NULL, - `cache_visits` int(11) default NULL, - `cache_pages` int(11) default NULL, - `cache_registrations` int(11) default NULL, - `cache_orders` int(11) default NULL, - `cache_sales` decimal(17,2) default NULL, - `cache_reg_rate` decimal(5,4) default NULL, - `cache_order_rate` decimal(5,4) default NULL, - PRIMARY KEY (`id_referrer`, `id_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; -INSERT INTO `PREFIX_referrer_shop` (`id_referrer`, `id_shop`) SELECT `id_referrer`, 1 FROM `PREFIX_referrer`; -ALTER TABLE `PREFIX_referrer` DROP `cache_visitors`, DROP `cache_visits`, DROP `cache_pages`, DROP `cache_registrations`, DROP `cache_orders`, DROP `cache_sales`, DROP `cache_reg_rate`, DROP `cache_order_rate`; - -ALTER TABLE `PREFIX_cart_product` ADD `id_shop` INT NOT NULL DEFAULT '1' AFTER `id_product`; - -ALTER TABLE `PREFIX_customization` ADD `in_cart` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0'; - -CREATE TABLE `PREFIX_scene_shop` ( -`id_scene` INT( 11 ) UNSIGNED NOT NULL , -`id_shop` INT( 11 ) UNSIGNED NOT NULL, -PRIMARY KEY (`id_scene`, `id_shop`), - KEY `id_shop` (`id_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; -INSERT INTO `PREFIX_scene_shop` (id_shop, id_scene) (SELECT 1, id_scene FROM PREFIX_scene); - -ALTER TABLE `PREFIX_delivery` ADD `id_shop` INT UNSIGNED NULL DEFAULT NULL AFTER `id_delivery`, ADD `id_group_shop` INT UNSIGNED NULL DEFAULT NULL AFTER `id_shop`; - -/* PHP:create_multistore(); */; diff --git a/install-dev/sql/upgrade/1.5.0.1.sql b/install-dev/sql/upgrade/1.5.0.1.sql deleted file mode 100644 index 52473655b..000000000 --- a/install-dev/sql/upgrade/1.5.0.1.sql +++ /dev/null @@ -1,685 +0,0 @@ -SET NAMES 'utf8'; - -CREATE TABLE IF NOT EXISTS `PREFIX_module_access` ( - `id_profile` int(10) unsigned NOT NULL, - `id_module` int(10) unsigned NOT NULL, - `view` tinyint(1) NOT NULL, - `configure` tinyint(1) NOT NULL, - PRIMARY KEY (`id_profile`,`id_module`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -/* Create SuperAdmin */ -UPDATE `PREFIX_profile_lang` SET `name` = 'SuperAdmin' WHERE `id_profile` = 1; - -CREATE TABLE IF NOT EXISTS `PREFIX_accounting_zone_shop` ( - `id_accounting_zone_shop` int(11) NOT NULL AUTO_INCREMENT, - `id_zone` int(11) NOT NULL, - `id_shop` int(11) NOT NULL, - `account_number` varchar(64) NOT NULL, - PRIMARY KEY (`id_accounting_zone_shop`), - UNIQUE KEY `id_zone` (`id_zone`,`id_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_accounting_product_zone_shop` ( - `id_accounting_product_zone_shop` int(11) NOT NULL AUTO_INCREMENT, - `id_product` int(11) NOT NULL, - `id_shop` int(11) NOT NULL, - `id_zone` int(11) NOT NULL, - `account_number` varchar(64) NOT NULL, - PRIMARY KEY (`id_accounting_product_zone_shop`), - UNIQUE KEY `id_product` (`id_product`,`id_shop`,`id_zone`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -/* PHP:add_accounting_tab(); */; - - --- INSERT INTO `PREFIX_module_access` (`id_profile`, `id_module`, `configure`, `view`) ( --- SELECT `id_profile`, `id_module`, 0, 1 --- FROM `PREFIX_access` a, PREFIX_module m --- WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` WHERE `class_name` = 'AdminModules' LIMIT 1) --- AND a.`view` = 0 --- ); --- --- INSERT INTO `PREFIX_module_access` (`id_profile`, `id_module`, `configure`, `view`) ( --- SELECT `id_profile`, `id_module`, 1, 1 --- FROM `PREFIX_access` a, PREFIX_module m --- WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` WHERE `class_name` = 'AdminModules' LIMIT 1) --- AND a.`view` = 1 --- ); - - -UPDATE `PREFIX_tab` SET `class_name` = 'AdminThemes' WHERE `class_name` = 'AdminAppearance'; - -INSERT INTO `PREFIX_hook` ( -`name` , -`title` , -`description` , -`position` , -`live_edit` -) -VALUES ('taxmanager', 'taxmanager', NULL , '1', '0'); - -ALTER TABLE `PREFIX_tax_rule` - ADD `zipcode_from` INT NOT NULL AFTER `id_state` , - ADD `zipcode_to` INT NOT NULL AFTER `zipcode_from` , - ADD `behavior` INT NOT NULL AFTER `zipcode_to`, - ADD `description` VARCHAR( 100 ) NOT NULL AFTER `id_tax`; - -ALTER TABLE `PREFIX_tax_rule` DROP INDEX tax_rule; - -INSERT INTO `PREFIX_tax_rule` - (`id_tax_rules_group`, `id_country`, `id_state`, `id_tax`, - `behavior`, `zipcode_from`, `zipcode_to`, `id_county`, - `description`, `state_behavior`, `county_behavior`) - SELECT r.`id_tax_rules_group`, r.`id_country`, r.`id_state`, r.`id_tax`, - 0, z.`from_zip_code`, z.`to_zip_code`, r.`id_county`, - r.`description`, r.`state_behavior`, r.county_behavior - FROM - `PREFIX_tax_rule` r - INNER JOIN - `PREFIX_county_zip_code` z - ON (z.`id_county` = r.`id_county`); - -UPDATE `PREFIX_tax_rule` SET `behavior` = GREATEST(`state_behavior`, `county_behavior`); - -DELETE FROM `PREFIX_tax_rule` -WHERE `id_county` != 0 -AND `zipcode_from` = 0; - -ALTER TABLE `PREFIX_tax_rule` - DROP `id_county`, - DROP `state_behavior`, - DROP `county_behavior`; - -/* PHP:remove_tab(AdminCounty); */; -DROP TABLE `PREFIX_county_zip_code`; -DROP TABLE `PREFIX_county`; - -ALTER TABLE `PREFIX_employee` - ADD `id_last_order` tinyint(1) unsigned NOT NULL default '0', - ADD `id_last_customer_message` tinyint(1) unsigned NOT NULL default '0', - ADD `id_last_customer` tinyint(1) unsigned NOT NULL default '0'; - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES -('PS_SHOW_NEW_ORDERS', '1', NOW(), NOW()), -('PS_SHOW_NEW_CUSTOMERS', '1', NOW(), NOW()), -('PS_SHOW_NEW_MESSAGES', '1', NOW(), NOW()), -('PS_FEATURE_FEATURE_ACTIVE', '1', NOW(), NOW()), -('PS_COMBINATION_FEATURE_ACTIVE', '1', NOW(), NOW()), -('PS_ADMINREFRESH_NOTIFICATION', '1', NOW(), NOW()); - -/* PHP:update_feature_detachable_cache(); */; - -ALTER TABLE `PREFIX_product` ADD `available_date` DATE NOT NULL AFTER `available_for_order`; - -ALTER TABLE `PREFIX_product_attribute` ADD `available_date` DATE NOT NULL; - -/* Index was only used by deprecated function Image::positionImage() */ -ALTER TABLE `PREFIX_image` DROP INDEX `product_position`; - -CREATE TABLE IF NOT EXISTS `PREFIX_gender` ( - `id_gender` int(11) NOT NULL AUTO_INCREMENT, - `type` tinyint(1) NOT NULL, - PRIMARY KEY (`id_gender`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_gender_lang` ( - `id_gender` int(10) unsigned NOT NULL, - `id_lang` int(10) unsigned NOT NULL, - `name` varchar(20) NOT NULL, - PRIMARY KEY (`id_gender`,`id_lang`), - KEY `id_gender` (`id_gender`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -INSERT INTO `PREFIX_gender` (`id_gender`, `type`) VALUES -(1, 0), -(2, 1), -(3, 1); - -INSERT INTO `PREFIX_gender_lang` (`id_gender`, `id_lang`, `name`) VALUES -(1, 1, 'Mr.'), -(1, 2, 'M.'), -(1, 3, 'Sr.'), -(1, 4, 'Herr'), -(1, 5, 'Sig.'), -(2, 1, 'Ms.'), -(2, 2, 'Mme'), -(2, 3, 'Sra.'), -(2, 4, 'Frau'), -(2, 5, 'Sig.ra'), -(3, 1, 'Miss'), -(3, 2, 'Melle'), -(3, 3, 'Miss'), -(3, 4, 'Miss'), -(3, 5, 'Miss'); - -DELETE FROM `PREFIX_configuration` WHERE `name` = 'PS_FORCE_SMARTY_2'; - -CREATE TABLE IF NOT EXISTS `PREFIX_order_detail_tax` ( -`id_order_detail` INT NOT NULL , -`id_tax` INT NOT NULL -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -ALTER TABLE `PREFIX_tax` ADD `deleted` INT NOT NULL AFTER `active`; - -/* PHP:update_order_detail_taxes(); */; - -CREATE TABLE `PREFIX_customer_message_sync_imap` ( - `md5_header` varbinary(32) NOT NULL, - KEY `md5_header_index` (`md5_header`(4)) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -ALTER TABLE `PREFIX_customer_message` ADD `private` TINYINT NOT NULL DEFAULT '0' AFTER `user_agent`; - -/* PHP:add_new_tab(AdminGenders, fr:Genres|es:Genders|en:Genders|de:Genders|it:Genders, 2); */; - -ALTER TABLE `PREFIX_attribute` ADD `position` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0'; - -/* PHP:add_attribute_position(); */; - -ALTER TABLE `PREFIX_product_download` CHANGE `date_deposit` `date_add` DATETIME NOT NULL ; -ALTER TABLE `PREFIX_product_download` CHANGE `physically_filename` `filename` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; -ALTER TABLE `PREFIX_product_download` ADD `id_product_attribute` INT( 10 ) UNSIGNED NOT NULL AFTER `id_product` , ADD INDEX ( `id_product_attribute` ); -ALTER TABLE `PREFIX_product_download` ADD `is_shareable` TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT '0' AFTER `active`; - -ALTER TABLE `PREFIX_attribute_group` ADD `position` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0'; - -ALTER TABLE `PREFIX_attribute_group` ADD `group_type` ENUM('select', 'radio', 'color') NOT NULL DEFAULT 'select'; -UPDATE `PREFIX_attribute_group` SET `group_type`='color' WHERE `is_color_group` = 1; -ALTER TABLE `PREFIX_product` DROP `id_color_default`; - -/* PHP:add_group_attribute_position(); */; - -ALTER TABLE `PREFIX_feature` ADD `position` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0'; - -/* PHP:add_feature_position(); */; - -CREATE TABLE IF NOT EXISTS `PREFIX_request_sql` ( - `id_request_sql` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(200) NOT NULL, - `sql` text NOT NULL, - PRIMARY KEY (`id_request_sql`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -/* PHP:add_new_tab(AdminRequestSql, fr:SQL Manager|es:SQL Manager|en:SQL Manager|de:Wunsh|it:SQL Manager, 9); */; - -ALTER TABLE `PREFIX_carrier` ADD COLUMN `id_reference` int(10) NOT NULL AFTER `id_carrier`; -UPDATE `PREFIX_carrier` SET id_reference = id_carrier; - -ALTER TABLE `PREFIX_product` ADD `is_virtual` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `cache_has_attachments`; - -/* PHP:add_new_tab(AdminProducts, fr:Products|es:Products|en:Products|de:Products|it:Products, 1); */; -/* PHP:add_new_tab(AdminCategories, fr:Categories|es:Categories|en:Categories|de:Categories|it:Categories, 1); */; -/* PHP:add_default_restrictions_modules_groups(); */; - -CREATE TABLE IF NOT EXISTS `PREFIX_employee_shop` ( -`id_employee` INT( 11 ) UNSIGNED NOT NULL , -`id_shop` INT( 11 ) UNSIGNED NOT NULL , -PRIMARY KEY ( `id_employee` , `id_shop` ) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -INSERT INTO `PREFIX_employee_shop` (`id_employee`, `id_shop`) (SELECT `id_employee`, 1 FROM `PREFIX_employee`); - -UPDATE `PREFIX_access` SET `view` = 0, `add` = 0, `edit` = 0, `delete` = 0 WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.`class_name` = 'AdminShop' LIMIT 1) AND `id_profile` != 1; - -ALTER TABLE `PREFIX_carrier` ADD `position` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0'; - -/* PHP:add_carrier_position(); */; - -ALTER TABLE `PREFIX_order_state` ADD COLUMN `shipped` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0 AFTER `delivery`; -UPDATE `PREFIX_order_state` SET `shipped` = 1 WHERE id_order_state IN (4, 5); - -CREATE TABLE `PREFIX_order_invoice` ( - `id_order_invoice` int(11) NOT NULL AUTO_INCREMENT, - `id_order` int(11) NOT NULL, - `number` int(11) NOT NULL, - `total_discount_tax_excl` decimal(17,2) NOT NULL DEFAULT '0.00', - `total_discount_tax_incl` decimal(17,2) NOT NULL DEFAULT '0.00', - `total_paid_tax_excl` decimal(17,2) NOT NULL DEFAULT '0.00', - `total_paid_tax_incl` decimal(17,2) NOT NULL DEFAULT '0.00', - `total_products` decimal(17,2) NOT NULL DEFAULT '0.00', - `total_products_wt` decimal(17,2) NOT NULL DEFAULT '0.00', - `total_shipping_tax_excl` decimal(17,2) NOT NULL DEFAULT '0.00', - `total_shipping_tax_incl` decimal(17,2) NOT NULL DEFAULT '0.00', - `total_wrapping_tax_excl` decimal(17,2) NOT NULL DEFAULT '0.00', - `total_wrapping_tax_incl` decimal(17,2) NOT NULL DEFAULT '0.00', - `date_add` datetime NOT NULL, - PRIMARY KEY (`id_order_invoice`), - KEY `id_order` (`id_order`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -ALTER TABLE `PREFIX_order_detail` ADD `id_order_invoice` int(11) NULL AFTER `id_order`; - -ALTER TABLE `PREFIX_payment_cc` CHANGE `id_payment_cc` `id_order_payment` INT NOT NULL auto_increment; -ALTER TABLE `PREFIX_payment_cc` ADD `id_order_invoice` varchar(255) NOT NULL AFTER `id_order_payment`; -ALTER TABLE `PREFIX_payment_cc` ADD `payment_method` varchar(255) NOT NULL AFTER `amount`; -ALTER TABLE `PREFIX_payment_cc` ADD `conversion_rate` decimal(13,6) NOT NULL DEFAULT 1 AFTER `payment_method`; - -RENAME TABLE `PREFIX_payment_cc` TO `PREFIX_order_payment`; - -ALTER TABLE `PREFIX_carrier` - ADD COLUMN `max_width` int(10) DEFAULT 0 AFTER `position`, - ADD COLUMN `max_height` int(10) DEFAULT 0 AFTER `max_width`, - ADD COLUMN `max_depth` int(10) DEFAULT 0 AFTER `max_height`, - ADD COLUMN `max_weight` int(10) DEFAULT 0 AFTER `max_depth`, - ADD COLUMN `grade` int(10) DEFAULT 0 AFTER `max_weight`; - -ALTER TABLE `PREFIX_cart_product` - ADD COLUMN `id_address_delivery` int(10) UNSIGNED DEFAULT 0 AFTER `date_add`; - -UPDATE `PREFIX_cart_product` SET id_address_delivery = 0; - -ALTER TABLE `PREFIX_cart` ADD COLUMN `allow_seperated_package` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0 AFTER `gift_message`; -CREATE TABLE `PREFIX_product_carrier` ( - `id_product` int(10) unsigned NOT NULL, - `id_carrier_reference` int(10) unsigned NOT NULL, - `id_shop` int(10) unsigned NOT NULL, - PRIMARY KEY (`id_product`, `id_carrier_reference`, `id_shop`) -) ENGINE = ENGINE_TYPE DEFAULT CHARSET=utf8; - -ALTER TABLE `PREFIX_customization` ADD COLUMN `id_address_delivery` int(10) UNSIGNED NOT NULL DEFAULT 0 AFTER `id_product_attribute`, - DROP PRIMARY KEY, - ADD PRIMARY KEY USING BTREE(`id_customization`, `id_cart`, `id_product`, `id_address_delivery`); - -CREATE TABLE `PREFIX_cart_rule` ( - `id_cart_rule` int(10) unsigned NOT NULL auto_increment, - `id_customer` int unsigned NOT NULL default 0, - `date_from` datetime NOT NULL, - `date_to` datetime NOT NULL, - `description` text, - `quantity` int(10) unsigned NOT NULL default 0, - `quantity_per_user` int(10) unsigned NOT NULL default 0, - `priority` int(10) unsigned NOT NULL default 1, - `code` varchar(254) NOT NULL, - `minimum_amount` decimal(17,2) NOT NULL default 0, - `minimum_amount_tax` tinyint(1) NOT NULL default 0, - `minimum_amount_currency` int unsigned NOT NULL default 0, - `minimum_amount_shipping` tinyint(1) NOT NULL default 0, - `country_restriction` tinyint(1) unsigned NOT NULL default 0, - `carrier_restriction` tinyint(1) unsigned NOT NULL default 0, - `group_restriction` tinyint(1) unsigned NOT NULL default 0, - `cart_rule_restriction` tinyint(1) unsigned NOT NULL default 0, - `product_restriction` tinyint(1) unsigned NOT NULL default 0, - `free_shipping` tinyint(1) NOT NULL default 0, - `reduction_percent` decimal(5,2) NOT NULL default 0, - `reduction_amount` decimal(17,2) NOT NULL default 0, - `reduction_tax` tinyint(1) unsigned NOT NULL default 0, - `reduction_currency` int(10) unsigned NOT NULL default 0, - `reduction_product` int(10) NOT NULL default 0, - `gift_product` int(10) unsigned NOT NULL default 0, - `active` tinyint(1) unsigned NOT NULL default 0, - `date_add` datetime NOT NULL, - `date_upd` datetime NOT NULL, - PRIMARY KEY (`id_cart_rule`) -); - -CREATE TABLE `PREFIX_cart_rule_country` ( - `id_cart_rule` int(10) unsigned NOT NULL, - `id_country` int(10) unsigned NOT NULL, - PRIMARY KEY (`id_cart_rule`, `id_country`) -); - -CREATE TABLE `PREFIX_cart_rule_group` ( - `id_cart_rule` int(10) unsigned NOT NULL, - `id_group` int(10) unsigned NOT NULL, - PRIMARY KEY (`id_cart_rule`, `id_group`) -); - -CREATE TABLE `PREFIX_cart_rule_carrier` ( - `id_cart_rule` int(10) unsigned NOT NULL, - `id_carrier` int(10) unsigned NOT NULL, - PRIMARY KEY (`id_cart_rule`, `id_carrier`) -); - -CREATE TABLE `PREFIX_cart_rule_combination` ( - `id_cart_rule_1` int(10) unsigned NOT NULL, - `id_cart_rule_2` int(10) unsigned NOT NULL, - PRIMARY KEY (`id_cart_rule_1`, `id_cart_rule_2`) -); - -CREATE TABLE `PREFIX_cart_rule_product_rule` ( - `id_product_rule` int(10) unsigned NOT NULL auto_increment, - `id_cart_rule` int(10) unsigned NOT NULL, - `quantity` int(10) unsigned NOT NULL default 1, - `type` ENUM('products', 'categories', 'attributes') NOT NULL, - PRIMARY KEY (`id_product_rule`) -); - -SET @id_currency_default = (SELECT value FROM `PREFIX_configuration` WHERE name = 'PS_CURRENCY_DEFAULT' LIMIT 1); -INSERT INTO `PREFIX_cart_rule` ( - `id_cart_rule`, - `id_customer`, - `date_from`, - `date_to`, - `description`, - `quantity`, - `quantity_per_user`, - `priority`, - `code`, - `minimum_amount`, - `minimum_amount_tax`, - `minimum_amount_currency`, - `minimum_amount_shipping`, - `country_restriction`, - `carrier_restriction`, - `group_restriction`, - `cart_rule_restriction`, - `product_restriction`, - `free_shipping`, - `reduction_percent`, - `reduction_amount`, - `reduction_tax`, - `reduction_currency`, - `reduction_product`, - `gift_product`, - `active`, - `date_add`, - `date_upd` -) ( - SELECT - `id_discount`, - `id_customer`, - `date_from`, - `date_to`, - `name`, - `quantity`, - `quantity_per_user`, - 1, - `name`, - `minimal`, - 1, - @id_currency_default, - 1, - 0, - 0, - IF(id_group = 0, 0, 1), - IF(cumulable = 1, 0, 1), - 0, - IF(id_discount_type = 3, 1, 0), - IF(id_discount_type = 1, value, 0), - IF(id_discount_type = 2, value, 0), - 1, - `id_currency`, - 0, - 0, - `active`, - `date_add`, - `date_upd` - FROM `PREFIX_discount` -); - -RENAME TABLE `PREFIX_discount_lang` TO `PREFIX_cart_rule_lang`; -ALTER TABLE `PREFIX_cart_rule_lang` CHANGE `id_discount` `id_cart_rule` int(10) unsigned NOT NULL; -ALTER TABLE `PREFIX_cart_rule_lang` CHANGE `description` `name` varchar(254) NOT NULL; -RENAME TABLE `PREFIX_discount_category` TO `PREFIX_cart_rule_product_rule_value`; -ALTER TABLE `PREFIX_cart_rule_product_rule_value` CHANGE `id_category` `id_item` int(10) unsigned NOT NULL; -ALTER TABLE `PREFIX_cart_rule_product_rule_value` CHANGE `id_discount` `id_product_rule` int(10) unsigned NOT NULL; -INSERT INTO `PREFIX_cart_rule_product_rule` (`id_product_rule`, `id_cart_rule`, `quantity`, `type`) ( - SELECT DISTINCT `id_product_rule`, `id_product_rule`, 1, 'categories' FROM `PREFIX_cart_rule_product_rule_value` -); -UPDATE `PREFIX_cart_rule` SET product_restriction = 1 WHERE `id_cart_rule` IN (SELECT `id_cart_rule` FROM `PREFIX_cart_rule_product_rule`); - -ALTER TABLE `PREFIX_cart_discount` CHANGE `id_discount` `id_cart_rule` int(10) unsigned NOT NULL; -ALTER TABLE `PREFIX_order_discount` CHANGE `id_discount` `id_cart_rule` int(10) unsigned NOT NULL; -ALTER TABLE `PREFIX_order_discount` CHANGE `id_order_discount` `id_order_cart_rule` int(10) unsigned NOT NULL; - -RENAME TABLE `PREFIX_order_discount` TO `PREFIX_order_cart_rule`; -RENAME TABLE `PREFIX_cart_discount` TO `PREFIX_cart_cart_rule`; - -CREATE VIEW `PREFIX_order_discount` AS SELECT *, id_cart_rule as id_discount FROM `PREFIX_order_cart_rule`; -CREATE VIEW `PREFIX_cart_discount` AS SELECT *, id_cart_rule as id_discount FROM `PREFIX_cart_cart_rule`; - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) ( - SELECT 'PS_CART_RULE_FEATURE_ACTIVE', `value`, NOW(), NOW() FROM `PREFIX_configuration` WHERE `name` = 'PS_DISCOUNT_FEATURE_ACTIVE' LIMIT 1 -); - -UPDATE `PREFIX_tab` SET class_name = 'AdminCartRules' WHERE class_name = 'AdminDiscounts'; - -UPDATE `PREFIX_hook` SET `name` = 'displayPayment' WHERE `name` = 'payment'; -UPDATE `PREFIX_hook` SET `name` = 'actionValidateOrder' WHERE `name` = 'newOrder'; -UPDATE `PREFIX_hook` SET `name` = 'actionPaymentConfirmation' WHERE `name` = 'paymentConfirm'; -UPDATE `PREFIX_hook` SET `name` = 'displayPaymentReturn' WHERE `name` = 'paymentReturn'; -UPDATE `PREFIX_hook` SET `name` = 'actionUpdateQuantity' WHERE `name` = 'updateQuantity'; -UPDATE `PREFIX_hook` SET `name` = 'displayRightColumn' WHERE `name` = 'rightColumn'; -UPDATE `PREFIX_hook` SET `name` = 'displayLeftColumn' WHERE `name` = 'leftColumn'; -UPDATE `PREFIX_hook` SET `name` = 'displayHome' WHERE `name` = 'home'; -UPDATE `PREFIX_hook` SET `name` = 'displayHeader' WHERE `name` = 'header'; -UPDATE `PREFIX_hook` SET `name` = 'actionCartSave' WHERE `name` = 'cart'; -UPDATE `PREFIX_hook` SET `name` = 'actionAuthentication' WHERE `name` = 'authentication'; -UPDATE `PREFIX_hook` SET `name` = 'actionProductAdd' WHERE `name` = 'addproduct'; -UPDATE `PREFIX_hook` SET `name` = 'actionProductUpdate' WHERE `name` = 'updateproduct'; -UPDATE `PREFIX_hook` SET `name` = 'displayTop' WHERE `name` = 'top'; -UPDATE `PREFIX_hook` SET `name` = 'displayRightColumnProduct' WHERE `name` = 'extraRight'; -UPDATE `PREFIX_hook` SET `name` = 'actionProductDelete' WHERE `name` = 'deleteproduct'; -UPDATE `PREFIX_hook` SET `name` = 'displayFooterProduct' WHERE `name` = 'productfooter'; -UPDATE `PREFIX_hook` SET `name` = 'displayInvoice' WHERE `name` = 'invoice'; -UPDATE `PREFIX_hook` SET `name` = 'actionOrderStatusUpdate' WHERE `name` = 'updateOrderStatus'; -UPDATE `PREFIX_hook` SET `name` = 'displayAdminOrder' WHERE `name` = 'adminOrder'; -UPDATE `PREFIX_hook` SET `name` = 'displayFooter' WHERE `name` = 'footer'; -UPDATE `PREFIX_hook` SET `name` = 'displayPDFInvoice' WHERE `name` = 'PDFInvoice'; -UPDATE `PREFIX_hook` SET `name` = 'displayAdminCustomers' WHERE `name` = 'adminCustomers'; -UPDATE `PREFIX_hook` SET `name` = 'displayOrderConfirmation' WHERE `name` = 'orderConfirmation'; -UPDATE `PREFIX_hook` SET `name` = 'actionCustomerAccountAdd' WHERE `name` = 'createAccount'; -UPDATE `PREFIX_hook` SET `name` = 'displayCustomerAccount' WHERE `name` = 'customerAccount'; -UPDATE `PREFIX_hook` SET `name` = 'actionOrderSlipAdd' WHERE `name` = 'orderSlip'; -UPDATE `PREFIX_hook` SET `name` = 'displayProductTab' WHERE `name` = 'productTab'; -UPDATE `PREFIX_hook` SET `name` = 'displayProductTabContent' WHERE `name` = 'productTabContent'; -UPDATE `PREFIX_hook` SET `name` = 'displayShoppingCartFooter' WHERE `name` = 'shoppingCart'; -UPDATE `PREFIX_hook` SET `name` = 'displayCustomerAccountForm' WHERE `name` = 'createAccountForm'; -UPDATE `PREFIX_hook` SET `name` = 'displayAdminStatsModules' WHERE `name` = 'AdminStatsModules'; -UPDATE `PREFIX_hook` SET `name` = 'displayAdminStatsGraphEngine' WHERE `name` = 'GraphEngine'; -UPDATE `PREFIX_hook` SET `name` = 'actionOrderReturn' WHERE `name` = 'orderReturn'; -UPDATE `PREFIX_hook` SET `name` = 'displayProductButtons' WHERE `name` = 'productActions'; -UPDATE `PREFIX_hook` SET `name` = 'displayBackOfficeHome' WHERE `name` = 'backOfficeHome'; -UPDATE `PREFIX_hook` SET `name` = 'displayAdminStatsGridEngine' WHERE `name` = 'GridEngine'; -UPDATE `PREFIX_hook` SET `name` = 'actionWatermark' WHERE `name` = 'watermark'; -UPDATE `PREFIX_hook` SET `name` = 'actionProductCancel' WHERE `name` = 'cancelProduct'; -UPDATE `PREFIX_hook` SET `name` = 'displayLeftColumnProduct' WHERE `name` = 'extraLeft'; -UPDATE `PREFIX_hook` SET `name` = 'actionProductOutOfStock' WHERE `name` = 'productOutOfStock'; -UPDATE `PREFIX_hook` SET `name` = 'actionProductAttributeUpdate' WHERE `name` = 'updateProductAttribute'; -UPDATE `PREFIX_hook` SET `name` = 'displayCarrierList' WHERE `name` = 'extraCarrier'; -UPDATE `PREFIX_hook` SET `name` = 'displayShoppingCart' WHERE `name` = 'shoppingCartExtra'; -UPDATE `PREFIX_hook` SET `name` = 'actionSearch' WHERE `name` = 'search'; -UPDATE `PREFIX_hook` SET `name` = 'displayBeforePayment' WHERE `name` = 'backBeforePayment'; -UPDATE `PREFIX_hook` SET `name` = 'actionCarrierUpdate' WHERE `name` = 'updateCarrier'; -UPDATE `PREFIX_hook` SET `name` = 'actionOrderStatusPostUpdate' WHERE `name` = 'postUpdateOrderStatus'; -UPDATE `PREFIX_hook` SET `name` = 'displayCustomerAccountFormTop' WHERE `name` = 'createAccountTop'; -UPDATE `PREFIX_hook` SET `name` = 'displayBackOfficeHeader' WHERE `name` = 'backOfficeHeader'; -UPDATE `PREFIX_hook` SET `name` = 'displayBackOfficeTop' WHERE `name` = 'backOfficeTop'; -UPDATE `PREFIX_hook` SET `name` = 'displayBackOfficeFooter' WHERE `name` = 'backOfficeFooter'; -UPDATE `PREFIX_hook` SET `name` = 'actionProductAttributeDelete' WHERE `name` = 'deleteProductAttribute'; -UPDATE `PREFIX_hook` SET `name` = 'actionCarrierProcess' WHERE `name` = 'processCarrier'; -UPDATE `PREFIX_hook` SET `name` = 'actionOrderDetail' WHERE `name` = 'orderDetail'; -UPDATE `PREFIX_hook` SET `name` = 'displayBeforeCarrier' WHERE `name` = 'beforeCarrier'; -UPDATE `PREFIX_hook` SET `name` = 'displayOrderDetail' WHERE `name` = 'orderDetailDisplayed'; -UPDATE `PREFIX_hook` SET `name` = 'actionPaymentCCAdd' WHERE `name` = 'paymentCCAdded'; -UPDATE `PREFIX_hook` SET `name` = 'displayProductComparison' WHERE `name` = 'extraProductComparison'; -UPDATE `PREFIX_hook` SET `name` = 'actionCategoryAdd' WHERE `name` = 'categoryAddition'; -UPDATE `PREFIX_hook` SET `name` = 'actionCategoryUpdate' WHERE `name` = 'categoryUpdate'; -UPDATE `PREFIX_hook` SET `name` = 'actionCategoryDelete' WHERE `name` = 'categoryDeletion'; -UPDATE `PREFIX_hook` SET `name` = 'actionBeforeAuthentication' WHERE `name` = 'beforeAuthentication'; -UPDATE `PREFIX_hook` SET `name` = 'displayPaymentTop' WHERE `name` = 'paymentTop'; -UPDATE `PREFIX_hook` SET `name` = 'actionHtaccessCreate' WHERE `name` = 'afterCreateHtaccess'; -UPDATE `PREFIX_hook` SET `name` = 'actionAdminMetaSave' WHERE `name` = 'afterSaveAdminMeta'; -UPDATE `PREFIX_hook` SET `name` = 'displayAttributeGroupForm' WHERE `name` = 'attributeGroupForm'; -UPDATE `PREFIX_hook` SET `name` = 'actionAttributeGroupSave' WHERE `name` = 'afterSaveAttributeGroup'; -UPDATE `PREFIX_hook` SET `name` = 'actionAttributeGroupDelete' WHERE `name` = 'afterDeleteAttributeGroup'; -UPDATE `PREFIX_hook` SET `name` = 'displayFeatureForm' WHERE `name` = 'featureForm'; -UPDATE `PREFIX_hook` SET `name` = 'actionFeatureSave' WHERE `name` = 'afterSaveFeature'; -UPDATE `PREFIX_hook` SET `name` = 'actionFeatureDelete' WHERE `name` = 'afterDeleteFeature'; -UPDATE `PREFIX_hook` SET `name` = 'actionProductSave' WHERE `name` = 'afterSaveProduct'; -UPDATE `PREFIX_hook` SET `name` = 'actionProductListOverride' WHERE `name` = 'productListAssign'; -UPDATE `PREFIX_hook` SET `name` = 'displayAttributeGroupPostProcess' WHERE `name` = 'postProcessAttributeGroup'; -UPDATE `PREFIX_hook` SET `name` = 'displayFeaturePostProcess' WHERE `name` = 'postProcessFeature'; -UPDATE `PREFIX_hook` SET `name` = 'displayFeatureValueForm' WHERE `name` = 'featureValueForm'; -UPDATE `PREFIX_hook` SET `name` = 'displayFeatureValuePostProcess' WHERE `name` = 'postProcessFeatureValue'; -UPDATE `PREFIX_hook` SET `name` = 'actionFeatureValueDelete' WHERE `name` = 'afterDeleteFeatureValue'; -UPDATE `PREFIX_hook` SET `name` = 'actionFeatureValueSave' WHERE `name` = 'afterSaveFeatureValue'; -UPDATE `PREFIX_hook` SET `name` = 'displayAttributeForm' WHERE `name` = 'attributeForm'; -UPDATE `PREFIX_hook` SET `name` = 'actionAttributePostProcess' WHERE `name` = 'postProcessAttribute'; -UPDATE `PREFIX_hook` SET `name` = 'actionAttributeDelete' WHERE `name` = 'afterDeleteAttribute'; -UPDATE `PREFIX_hook` SET `name` = 'actionAttributeSave' WHERE `name` = 'afterSaveAttribute'; -UPDATE `PREFIX_hook` SET `name` = 'actionTaxManager' WHERE `name` = 'taxManager'; - -ALTER TABLE `PREFIX_order_detail_tax` -ADD `unit_amount` DECIMAL( 10, 6 ) NOT NULL AFTER `id_tax` , -ADD `total_amount` DECIMAL( 10, 6 ) NOT NULL AFTER `unit_amount`; - - -ALTER TABLE `PREFIX_specific_price` ADD `id_product_attribute` INT UNSIGNED NOT NULL AFTER `id_product`; -ALTER TABLE `PREFIX_specific_price` DROP INDEX `id_product`; -ALTER TABLE `PREFIX_specific_price` ADD INDEX `id_product` (`id_product`, `id_product_attribute`, `id_shop`, `id_currency`, `id_country`, `id_group`, `from_quantity`, `from`, `to`); - - -ALTER TABLE `PREFIX_orders` ADD COLUMN `reference` varchar(9) AFTER `id_order`; -ALTER TABLE `PREFIX_orders` ADD COLUMN `id_warehouse` int(10) unsigned DEFAULT 0 AFTER `id_carrier`; - -ALTER TABLE `PREFIX_cart` ADD COLUMN `order_reference` varchar(9) AFTER `id_cart`; -ALTER TABLE `PREFIX_cart` ADD COLUMN `delivery_option` varchar(100) AFTER `id_carrier`; - -ALTER TABLE `PREFIX_tax` ADD COLUMN `account_number` VARCHAR(64) NOT NULL; - -/* PHP:add_new_tab(AdminAttributeGenerator, fr:Générateur de déclinaisons|es:Combinations generator|en:Combinations generator|de:Combinations generator|it:Combinations generator, -1); */; -/* PHP:add_new_tab(AdminCMSCategories, fr:Catégories CMS|es:CMS categories|en:CMS categories|de:CMS categories|it:CMS categories, -1); */; -/* PHP:add_new_tab(AdminCMS, fr:Pages CMS|es:CMS pages|en:CMS pages|de:CMS pages|it:CMS pages, -1); */; - -UPDATE `PREFIX_quick_access` SET `link` = 'index.php?controller=AdminCategories&addcategory' WHERE `id_quick_access` = 3; - -UPDATE `PREFIX_quick_access` SET `link` = 'index.php?controller=AdminProducts&addproduct' WHERE `id_quick_access` = 4; - -UPDATE `PREFIX_access` SET `view` = '0', `add` = '0', `edit` = '0', `delete` = '0' WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.`class_name` = 'AdminCmsCategories' LIMIT 1) AND `id_profile` = '3'; -UPDATE `PREFIX_access` SET `view` = '0', `add` = '0', `edit` = '0', `delete` = '0' WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.`class_name` = 'AdminCmsCategories' LIMIT 1) AND `id_profile` = '5'; - -UPDATE `PREFIX_access` SET `view` = '0', `add` = '0', `edit` = '0', `delete` = '0' WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.`class_name` = 'AdminCms' LIMIT 1) AND `id_profile` = '3'; -UPDATE `PREFIX_access` SET `view` = '0', `add` = '0', `edit` = '0', `delete` = '0' WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.`class_name` = 'AdminCms' LIMIT 1) AND `id_profile` = '5'; - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_CUSTOMER_GROUP', '1', NOW(), NOW()); - -/* PHP:add_new_groups('Visiteur', 'Visitor'); */; -/* PHP:add_new_groups('Invité', 'Guest'); */; - -UPDATE `PREFIX_employee` SET `bo_theme` = 'default'; - -UPDATE `PREFIX_tab` SET `class_name` = 'AdminCmsContent' WHERE `class_name` = 'AdminCMSContent'; -UPDATE `PREFIX_tab` SET `class_name` = 'AdminCms' WHERE `class_name` = 'AdminCMS'; -UPDATE `PREFIX_tab` SET `class_name` = 'AdminCmsCategories' WHERE `class_name` = 'AdminCMSCategories'; -UPDATE `PREFIX_tab` SET `class_name` = 'AdminPdf' WHERE `class_name` = 'AdminPDF'; - -CREATE TABLE `PREFIX_order_carrier` ( - `id_order_carrier` int(11) NOT NULL AUTO_INCREMENT, - `id_order` int(11) unsigned NOT NULL, - `id_carrier` int(11) unsigned NOT NULL, - `id_order_invoice` int(11) unsigned DEFAULT NULL, - `weight` float DEFAULT NULL, - `shipping_cost_tax_excl` decimal(20,6) DEFAULT NULL, - `shipping_cost_tax_incl` decimal(20,6) DEFAULT NULL, - `tracking_number` varchar(64) DEFAULT NULL, - `date_add` datetime NOT NULL, - PRIMARY KEY (`id_order_carrier`), - KEY `id_order` (`id_order`), - KEY `id_carrier` (`id_carrier`), - KEY `id_order_invoice` (`id_order_invoice`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -ALTER TABLE `PREFIX_order_slip` ADD COLUMN `amount` DECIMAL(10,2) NOT NULL AFTER `shipping_cost`; -ALTER TABLE `PREFIX_order_slip` ADD COLUMN `shipping_cost_amount` DECIMAL(10,2) NOT NULL AFTER `amount`; -ALTER TABLE `PREFIX_order_slip` ADD COLUMN `partial` TINYINT(1) NOT NULL AFTER `shipping_cost_amount`; -ALTER TABLE `PREFIX_order_slip_detail` ADD COLUMN `amount` DECIMAL(10,2) NOT NULL AFTER `product_quantity`; - -INSERT INTO `PREFIX_tab` (`id_parent`, `class_name`, `position`) VALUES (-1, 'AdminLogin', 0); - -CREATE TABLE `PREFIX_hook_alias` ( - `id_hook_alias` int(10) unsigned NOT NULL auto_increment, - `alias` varchar(64) NOT NULL, - `name` varchar(64) NOT NULL, - PRIMARY KEY (`id_hook_alias`), - UNIQUE KEY `alias` (`alias`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -INSERT INTO `PREFIX_hook_alias` (`id_hook_alias`, `name`, `alias`) VALUES -(1, 'displayPayment', 'payment'), -(2, 'actionValidateOrder', 'newOrder'), -(3, 'actionPaymentConfirmation', 'paymentConfirm'), -(4, 'displayPaymentReturn', 'paymentReturn'), -(5, 'actionUpdateQuantity', 'updateQuantity'), -(6, 'displayRightColumn', 'rightColumn'), -(7, 'displayLeftColumn', 'leftColumn'), -(8, 'displayHome', 'home'), -(9, 'displayHeader', 'header'), -(10, 'actionCartSave', 'cart'), -(11, 'actionAuthentication', 'authentication'), -(12, 'actionProductAdd', 'addproduct'), -(13, 'actionProductUpdate', 'updateproduct'), -(14, 'displayTop', 'top'), -(15, 'displayRightColumnProduct', 'extraRight'), -(16, 'actionProductDelete', 'deleteproduct'), -(17, 'displayFooterProduct', 'productfooter'), -(18, 'displayInvoice', 'invoice'), -(19, 'actionOrderStatusUpdate', 'updateOrderStatus'), -(20, 'displayAdminOrder', 'adminOrder'), -(21, 'displayFooter', 'footer'), -(22, 'displayPDFInvoice', 'PDFInvoice'), -(23, 'displayAdminCustomers', 'adminCustomers'), -(24, 'displayOrderConfirmation', 'orderConfirmation'), -(25, 'actionCustomerAccountAdd', 'createAccount'), -(26, 'displayCustomerAccount', 'customerAccount'), -(27, 'actionOrderSlipAdd', 'orderSlip'), -(28, 'displayProductTab', 'productTab'), -(29, 'displayProductTabContent', 'productTabContent'), -(30, 'displayShoppingCartFooter', 'shoppingCart'), -(31, 'displayCustomerAccountForm', 'createAccountForm'), -(32, 'displayAdminStatsModules', 'AdminStatsModules'), -(33, 'displayAdminStatsGraphEngine', 'GraphEngine'), -(34, 'actionOrderReturn', 'orderReturn'), -(35, 'displayProductButtons', 'productActions'), -(36, 'displayBackOfficeHome', 'backOfficeHome'), -(37, 'displayAdminStatsGridEngine', 'GridEngine'), -(38, 'actionWatermark', 'watermark'), -(39, 'actionProductCancel', 'cancelProduct'), -(40, 'displayLeftColumnProduct', 'extraLeft'), -(41, 'actionProductOutOfStock', 'productOutOfStock'), -(42, 'actionProductAttributeUpdate', 'updateProductAttribute'), -(43, 'displayCarrierList', 'extraCarrier'), -(44, 'displayShoppingCart', 'shoppingCartExtra'), -(45, 'actionSearch', 'search'), -(46, 'displayBeforePayment', 'backBeforePayment'), -(47, 'actionCarrierUpdate', 'updateCarrier'), -(48, 'actionOrderStatusPostUpdate', 'postUpdateOrderStatus'), -(49, 'displayCustomerAccountFormTop', 'createAccountTop'), -(50, 'displayBackOfficeHeader', 'backOfficeHeader'), -(51, 'displayBackOfficeTop', 'backOfficeTop'), -(52, 'displayBackOfficeFooter', 'backOfficeFooter'), -(53, 'actionProductAttributeDelete', 'deleteProductAttribute'), -(54, 'actionCarrierProcess', 'processCarrier'), -(55, 'actionOrderDetail', 'orderDetail'), -(56, 'displayBeforeCarrier', 'beforeCarrier'), -(57, 'displayOrderDetail', 'orderDetailDisplayed'), -(58, 'actionPaymentCCAdd', 'paymentCCAdded'), -(59, 'displayProductComparison', 'extraProductComparison'), -(60, 'actionCategoryAdd', 'categoryAddition'), -(61, 'actionCategoryUpdate', 'categoryUpdate'), -(62, 'actionCategoryDelete', 'categoryDeletion'), -(63, 'actionBeforeAuthentication', 'beforeAuthentication'), -(64, 'displayPaymentTop', 'paymentTop'), -(65, 'actionHtaccessCreate', 'afterCreateHtaccess'), -(66, 'actionAdminMetaSave', 'afterSaveAdminMeta'), -(67, 'displayAttributeGroupForm', 'attributeGroupForm'), -(68, 'actionAttributeGroupSave', 'afterSaveAttributeGroup'), -(69, 'actionAttributeGroupDelete', 'afterDeleteAttributeGroup'), -(70, 'displayFeatureForm', 'featureForm'), -(71, 'actionFeatureSave', 'afterSaveFeature'), -(72, 'actionFeatureDelete', 'afterDeleteFeature'), -(73, 'actionProductSave', 'afterSaveProduct'), -(74, 'actionProductListOverride', 'productListAssign'), -(75, 'displayAttributeGroupPostProcess', 'postProcessAttributeGroup'), -(76, 'displayFeaturePostProcess', 'postProcessFeature'), -(77, 'displayFeatureValueForm', 'featureValueForm'), -(78, 'displayFeatureValuePostProcess', 'postProcessFeatureValue'), -(79, 'actionFeatureValueDelete', 'afterDeleteFeatureValue'), -(80, 'actionFeatureValueSave', 'afterSaveFeatureValue'), -(81, 'displayAttributeForm', 'attributeForm'), -(82, 'actionAttributePostProcess', 'postProcessAttribute'), -(83, 'actionAttributeDelete', 'afterDeleteAttribute'), -(84, 'actionAttributeSave', 'afterSaveAttribute'), -(85, 'actionTaxManager', 'taxManager'); - diff --git a/install-dev/sql/upgrade/1.5.0.2.sql b/install-dev/sql/upgrade/1.5.0.2.sql deleted file mode 100644 index ac59a133d..000000000 --- a/install-dev/sql/upgrade/1.5.0.2.sql +++ /dev/null @@ -1,438 +0,0 @@ -SET NAMES 'utf8'; - -DELETE FROM `PREFIX_tab` WHERE `id_tab` = 59; -DELETE FROM `PREFIX_tab_lang` WHERE `id_tab` = 59 AND `id_lang` = 1; -DELETE FROM `PREFIX_tab_lang` WHERE `id_tab` = 59 AND `id_lang` = 2; -DELETE FROM `PREFIX_tab_lang` WHERE `id_tab` = 59 AND `id_lang` = 3; -DELETE FROM `PREFIX_tab_lang` WHERE `id_tab` = 59 AND `id_lang` = 4; -DELETE FROM `PREFIX_tab_lang` WHERE `id_tab` = 59 AND `id_lang` = 5; - -ALTER TABLE `PREFIX_module` ADD `version` VARCHAR( 8 ) NOT NULL; - -CREATE TABLE IF NOT EXISTS `PREFIX_specific_price_rule` ( - `id_specific_price_rule` int(10) unsigned NOT NULL AUTO_INCREMENT, - `name` VARCHAR(255) NOT NULL, - `id_shop` int(11) unsigned NOT NULL DEFAULT '1', - `id_currency` int(10) unsigned NOT NULL, - `id_country` int(10) unsigned NOT NULL, - `id_group` int(10) unsigned NOT NULL, - `from_quantity` mediumint(8) unsigned NOT NULL, - `price` DECIMAL(20,6), - `reduction` decimal(20,6) NOT NULL, - `reduction_type` enum('amount','percentage') NOT NULL, - `from` datetime NOT NULL, - `to` datetime NOT NULL, - PRIMARY KEY (`id_specific_price_rule`), - KEY `id_product` (`id_shop`,`id_currency`,`id_country`,`id_group`,`from_quantity`,`from`,`to`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_specific_price_rule_condition_group` ( - `id_specific_price_rule_condition_group` INT(11) UNSIGNED NOT NULL, - `id_specific_price_rule` INT(11) UNSIGNED NOT NULL, - PRIMARY KEY ( `id_specific_price_rule_condition_group`, `id_specific_price_rule` ) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_specific_price_rule_condition` ( - `id_specific_price_rule_condition` INT(11) UNSIGNED NOT NULL, - `id_specific_price_rule_condition_group` INT(11) UNSIGNED NOT NULL, - `type` VARCHAR(255) NOT NULL, - `value` VARCHAR(255) NOT NULL, -PRIMARY KEY (`id_specific_price_rule_condition`), -INDEX (`id_specific_price_rule_condition_group`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -ALTER TABLE `PREFIX_specific_price` ADD `id_specific_price_rule` INT(11) UNSIGNED NOT NULL AFTER `id_specific_price`, ADD INDEX (`id_specific_price_rule`); -/* PHP:add_new_tab(AdminSpecificPriceRule, es:Catalog price rules|it:Catalog price rules|en:Catalog price rules|de:Catalog price rules|fr:Règles de prix catalogue, 1); */; - -ALTER TABLE `PREFIX_order_invoice` ADD `note` TEXT NOT NULL AFTER `total_wrapping_tax_incl`; - -/* ORDER STATES */ -ALTER TABLE `PREFIX_order_state` ADD `paid` TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT '0' AFTER `shipped`; -UPDATE `PREFIX_order_state` SET `paid` = 1 WHERE `id_order_state` IN (2, 3, 4, 5, 9, 12); - -/* SPECIFIC PRICE */ -ALTER TABLE `PREFIX_specific_price` ADD `id_customer` INT UNSIGNED NOT NULL AFTER `id_group`; -ALTER TABLE `PREFIX_specific_price` DROP INDEX `id_product` , -ADD INDEX `id_product` (`id_product`, `id_shop`, `id_currency`, `id_country`, `id_group`, `id_customer`, `from_quantity`, `from`, `to`); - -/************************ - * STOCK MANAGEMENT -*************************/ - -/* PHP:add_stock_tab(); */; - -UPDATE `PREFIX_access` SET `view` = '1' WHERE `id_profile` = 5 AND `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.`class_name` = 'AdminStock' LIMIT 1); - -UPDATE `PREFIX_access` SET `view` = '0', `add` = '0', `edit` = '0', `delete` = '0' WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.`class_name` = 'AdminSupplyOrders' LIMIT 1) AND `id_profile` = '4'; -UPDATE `PREFIX_access` SET `view` = '0', `add` = '0', `edit` = '0', `delete` = '0' WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.`class_name` = 'AdminSupplyOrders' LIMIT 1) AND `id_profile` = '5'; -UPDATE `PREFIX_access` SET `view` = '0', `add` = '0', `edit` = '0', `delete` = '0' WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.`class_name` = 'AdminStockConfiguration' LIMIT 1) AND `id_profile` = '4'; -UPDATE `PREFIX_access` SET `view` = '0', `add` = '0', `edit` = '0', `delete` = '0' WHERE `id_tab` = (SELECT `id_tab` FROM `PREFIX_tab` t WHERE t.`class_name` = 'AdminStockConfiguration' LIMIT 1) AND `id_profile` = '5'; - -/* New tables */ -CREATE TABLE IF NOT EXISTS `PREFIX_product_supplier` ( - `id_product_supplier` int(11) unsigned NOT NULL AUTO_INCREMENT, - `id_product` int(11) unsigned NOT NULL, - `id_product_attribute` int(11) unsigned NOT NULL DEFAULT '0', - `id_supplier` int(11) unsigned NOT NULL, - `product_supplier_reference` varchar(32) DEFAULT NULL, - `product_supplier_price_te` decimal(20,6) NOT NULL DEFAULT '0.000000', - `id_currency` int(11) unsigned NOT NULL, - PRIMARY KEY (`id_product_supplier`), - UNIQUE KEY `id_product` (`id_product`,`id_product_attribute`,`id_supplier`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_stock_available` ( - `id_stock_available` int(11) unsigned NOT NULL AUTO_INCREMENT, - `id_product` int(11) unsigned NOT NULL, - `id_product_attribute` int(11) unsigned NOT NULL, - `id_shop` int(11) unsigned NOT NULL, - `id_group_shop` int(11) unsigned NOT NULL, - `quantity` int(10) NOT NULL DEFAULT '0', - `depends_on_stock` tinyint(1) unsigned NOT NULL DEFAULT '0', - `out_of_stock` tinyint(1) unsigned NOT NULL DEFAULT '0', - PRIMARY KEY (`id_stock_available`), - KEY `id_shop` (`id_shop`), - KEY `id_group_shop` (`id_group_shop`), - KEY `id_product` (`id_product`), - KEY `id_product_attribute` (`id_product_attribute`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_supply_order` ( - `id_supply_order` int(11) unsigned NOT NULL AUTO_INCREMENT, - `id_supplier` int(11) unsigned NOT NULL, - `supplier_name` varchar(64) NOT NULL, - `id_lang` int(11) unsigned NOT NULL, - `id_warehouse` int(11) unsigned NOT NULL, - `id_supply_order_state` int(11) unsigned NOT NULL, - `id_currency` int(11) unsigned NOT NULL, - `id_ref_currency` int(11) unsigned NOT NULL, - `reference` varchar(32) NOT NULL, - `date_add` datetime NOT NULL, - `date_upd` datetime NOT NULL, - `date_delivery_expected` datetime DEFAULT NULL, - `total_te` decimal(20,6) DEFAULT '0.000000', - `total_with_discount_te` decimal(20,6) DEFAULT '0.000000', - `total_tax` decimal(20,6) DEFAULT '0.000000', - `total_ti` decimal(20,6) DEFAULT '0.000000', - `discount_rate` decimal(20,6) DEFAULT '0.000000', - `discount_value_te` decimal(20,6) DEFAULT '0.000000', - `is_template` tinyint(1) DEFAULT '0', - PRIMARY KEY (`id_supply_order`), - KEY `id_supplier` (`id_supplier`), - KEY `id_warehouse` (`id_warehouse`), - KEY `reference` (`reference`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_supply_order_detail` ( - `id_supply_order_detail` int(11) unsigned NOT NULL AUTO_INCREMENT, - `id_supply_order` int(11) unsigned NOT NULL, - `id_currency` int(11) unsigned NOT NULL, - `id_product` int(11) unsigned NOT NULL, - `id_product_attribute` int(11) unsigned NOT NULL, - `reference` varchar(32) NOT NULL, - `supplier_reference` varchar(32) NOT NULL, - `name` varchar(128) NOT NULL, - `ean13` varchar(13) DEFAULT NULL, - `upc` varchar(12) DEFAULT NULL, - `exchange_rate` decimal(20,6) DEFAULT '0.000000', - `unit_price_te` decimal(20,6) DEFAULT '0.000000', - `quantity_expected` int(11) unsigned NOT NULL, - `quantity_received` int(11) unsigned NOT NULL, - `price_te` decimal(20,6) DEFAULT '0.000000', - `discount_rate` decimal(20,6) DEFAULT '0.000000', - `discount_value_te` decimal(20,6) DEFAULT '0.000000', - `price_with_discount_te` decimal(20,6) DEFAULT '0.000000', - `tax_rate` decimal(20,6) DEFAULT '0.000000', - `tax_value` decimal(20,6) DEFAULT '0.000000', - `price_ti` decimal(20,6) DEFAULT '0.000000', - `tax_value_with_order_discount` decimal(20,6) DEFAULT '0.000000', - `price_with_order_discount_te` decimal(20,6) DEFAULT '0.000000', - PRIMARY KEY (`id_supply_order_detail`), - KEY `id_supply_order` (`id_supply_order`), - KEY `id_product` (`id_product`), - KEY `id_product_attribute` (`id_product_attribute`), - KEY `id_product_product_attribute` (`id_product`,`id_product_attribute`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_supply_order_history` ( - `id_supply_order_history` int(11) unsigned NOT NULL AUTO_INCREMENT, - `id_supply_order` int(11) unsigned NOT NULL, - `id_employee` int(11) unsigned NOT NULL, - `employee_lastname` varchar(32) DEFAULT '', - `employee_firstname` varchar(32) DEFAULT '', - `id_state` int(11) unsigned NOT NULL, - `date_add` datetime NOT NULL, - PRIMARY KEY (`id_supply_order_history`), - KEY `id_supply_order` (`id_supply_order`), - KEY `id_employee` (`id_employee`), - KEY `id_state` (`id_state`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_supply_order_receipt_history` ( - `id_supply_order_receipt_history` int(11) unsigned NOT NULL AUTO_INCREMENT, - `id_supply_order_detail` int(11) unsigned NOT NULL, - `id_employee` int(11) unsigned NOT NULL, - `employee_lastname` varchar(32) DEFAULT '', - `employee_firstname` varchar(32) DEFAULT '', - `id_supply_order_state` int(11) unsigned NOT NULL, - `quantity` int(11) unsigned NOT NULL, - `date_add` datetime NOT NULL, - PRIMARY KEY (`id_supply_order_receipt_history`), - KEY `id_supply_order_detail` (`id_supply_order_detail`), - KEY `id_supply_order_state` (`id_supply_order_state`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_supply_order_state` ( - `id_supply_order_state` int(11) unsigned NOT NULL AUTO_INCREMENT, - `delivery_note` tinyint(1) NOT NULL DEFAULT '0', - `editable` tinyint(1) NOT NULL DEFAULT '0', - `receipt_state` tinyint(1) NOT NULL DEFAULT '0', - `pending_receipt` tinyint(1) NOT NULL DEFAULT '0', - `enclosed` tinyint(1) NOT NULL DEFAULT '0', - `color` varchar(32) DEFAULT NULL, - PRIMARY KEY (`id_supply_order_state`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_supply_order_state_lang` ( - `id_supply_order_state` int(11) unsigned NOT NULL, - `id_lang` int(11) unsigned NOT NULL, - `name` varchar(128) DEFAULT NULL, - PRIMARY KEY (`id_supply_order_state`,`id_lang`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_warehouse` ( - `id_warehouse` int(11) unsigned NOT NULL AUTO_INCREMENT, - `id_currency` int(11) unsigned NOT NULL, - `id_address` int(11) unsigned NOT NULL, - `id_employee` int(11) unsigned NOT NULL, - `reference` varchar(32) DEFAULT NULL, - `name` varchar(45) NOT NULL, - `management_type` enum('WA','FIFO','LIFO') NOT NULL DEFAULT 'WA', - `deleted` tinyint(1) unsigned NOT NULL DEFAULT '0', - PRIMARY KEY (`id_warehouse`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_warehouse_carrier` ( - `id_carrier` int(11) unsigned NOT NULL, - `id_warehouse` int(11) unsigned NOT NULL, - PRIMARY KEY (`id_warehouse`,`id_carrier`), - KEY `id_warehouse` (`id_warehouse`), - KEY `id_carrier` (`id_carrier`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_warehouse_product_location` ( - `id_warehouse_product_location` int(11) unsigned NOT NULL AUTO_INCREMENT, - `id_product` int(11) unsigned NOT NULL, - `id_product_attribute` int(11) unsigned NOT NULL, - `id_warehouse` int(11) unsigned NOT NULL, - `location` varchar(64) DEFAULT NULL, - PRIMARY KEY (`id_warehouse_product_location`), - UNIQUE KEY `id_product` (`id_product`,`id_product_attribute`,`id_warehouse`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_warehouse_shop` ( - `id_shop` int(11) unsigned NOT NULL, - `id_warehouse` int(11) unsigned NOT NULL, - PRIMARY KEY (`id_warehouse`,`id_shop`), - KEY `id_warehouse` (`id_warehouse`), - KEY `id_shop` (`id_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -/* Update records before alter tables */ -/* PHP:set_stock_available(); */; -/* PHP:set_product_suppliers(); */; - -/* Update tables */ -DROP TABLE IF EXISTS `PREFIX_stock`; -CREATE TABLE IF NOT EXISTS `PREFIX_stock` ( -`id_stock` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, -`id_warehouse` INT(11) UNSIGNED NOT NULL, -`id_product` INT(11) UNSIGNED NOT NULL, -`id_product_attribute` INT(11) UNSIGNED NOT NULL, -`reference` VARCHAR(32) NOT NULL, -`ean13` VARCHAR(13) DEFAULT NULL, -`upc` VARCHAR(12) DEFAULT NULL, -`physical_quantity` INT(11) UNSIGNED NOT NULL, -`usable_quantity` INT(11) UNSIGNED NOT NULL, -`price_te` DECIMAL(20,6) DEFAULT '0.000000', - PRIMARY KEY (`id_stock`), - KEY `id_warehouse` (`id_warehouse`), - KEY `id_product` (`id_product`), - KEY `id_product_attribute` (`id_product_attribute`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -DROP TABLE IF EXISTS `PREFIX_stock_mvt`; -CREATE TABLE IF NOT EXISTS `PREFIX_stock_mvt` ( - `id_stock_mvt` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, - `id_stock` INT(11) UNSIGNED NOT NULL, - `id_order` INT(11) UNSIGNED DEFAULT NULL, - `id_supply_order` INT(11) UNSIGNED DEFAULT NULL, - `id_stock_mvt_reason` INT(11) UNSIGNED NOT NULL, - `id_employee` INT(11) UNSIGNED NOT NULL, - `employee_lastname` varchar(32) DEFAULT '', - `employee_firstname` varchar(32) DEFAULT '', - `physical_quantity` INT(11) UNSIGNED NOT NULL, - `date_add` DATETIME NOT NULL, - `sign` tinyint(1) NOT NULL DEFAULT 1, - `price_te` DECIMAL(20,6) DEFAULT '0.000000', - `last_wa` DECIMAL(20,6) DEFAULT '0.000000', - `current_wa` DECIMAL(20,6) DEFAULT '0.000000', - `referer` bigint UNSIGNED DEFAULT NULL, - PRIMARY KEY (`id_stock_mvt`), - KEY `id_stock` (`id_stock`), - KEY `id_stock_mvt_reason` (`id_stock_mvt_reason`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -ALTER TABLE `PREFIX_orders` DROP COLUMN `id_warehouse`; -ALTER TABLE `PREFIX_supplier` ADD COLUMN `id_address` int(10) unsigned NOT NULL default '0' AFTER `id_supplier`; -ALTER TABLE `PREFIX_address` ADD COLUMN `id_warehouse` int(10) unsigned NOT NULL DEFAULT 0 AFTER `id_supplier`; -ALTER TABLE `PREFIX_order_detail` -ADD COLUMN `id_warehouse` int(10) unsigned NOT NULL default '0' AFTER `id_order_invoice`; - - -ALTER TABLE `PREFIX_stock_mvt_reason` ADD COLUMN `deleted` tinyint(1) unsigned NOT NULL default '0' AFTER `date_upd`; -ALTER TABLE `PREFIX_product` ADD COLUMN `advanced_stock_management` tinyint(1) default '0' NOT NULL; - -/* Update records after alter tables */ -/* PHP:update_stock_mvt_reason(); */; - -DELETE FROM `PREFIX_configuration` WHERE `name` = 'PS_PDF_ENCODING'; -DELETE FROM `PREFIX_configuration` WHERE `name` = 'PS_PDF_FONT'; - - -ALTER TABLE `PREFIX_order_detail` -ADD `reduction_amount_tax_incl` FLOAT( 20.6 ) NOT NULL AFTER `reduction_amount` , -ADD `reduction_amount_tax_excl` FLOAT( 20.6 ) NOT NULL AFTER `reduction_amount_tax_incl`, -ADD `total_price_tax_incl` DECIMAL(20, 6) NOT NULL AFTER `download_deadline`, -ADD `total_price_tax_excl` DECIMAL(20, 6) NOT NULL AFTER `total_price_tax_incl`, -ADD `unit_price_tax_incl` DECIMAL(20, 6) NOT NULL AFTER `total_price_tax_excl`, -ADD `unit_price_tax_excl` DECIMAL(20, 6) NOT NULL AFTER `unit_price_tax_incl`, -ADD `total_shipping_price_tax_incl` DECIMAL(20, 6) NOT NULL AFTER `unit_price_tax_excl`, -ADD `total_shipping_price_tax_excl` DECIMAL(20, 6) NOT NULL AFTER `total_shipping_price_tax_incl`, -ADD `purchase_supplier_price` DECIMAL(20, 6) NOT NULL AFTER `total_shipping_price_tax_excl`, -ADD `original_product_price` DECIMAL(20, 6) NOT NULL AFTER `purchase_supplier_price`; - -ALTER TABLE `PREFIX_orders` -ADD `total_discounts_tax_excl` decimal(17,2) NOT NULL AFTER `total_discounts`, -ADD `total_discounts_tax_incl` decimal(17,2) NOT NULL AFTER `total_discounts_tax_excl`, -ADD `total_paid_tax_excl` decimal(17,2) NOT NULL AFTER `total_paid`, -ADD `total_paid_tax_incl` decimal(17,2) NOT NULL AFTER `total_paid_tax_excl`, -ADD `total_shipping_tax_excl` decimal(17,2) NOT NULL AFTER `total_shipping`, -ADD `total_shipping_tax_incl` decimal(17,2) NOT NULL AFTER `total_shipping_tax_excl`, -ADD `total_wrapping_tax_excl` decimal(17,2) NOT NULL AFTER `total_wrapping`, -ADD `total_wrapping_tax_incl` decimal(17,2) NOT NULL AFTER `total_wrapping_tax_excl`; - -ALTER TABLE `PREFIX_order_cart_rule` ADD `value_tax_excl` DECIMAL(17, 2) NOT NULL DEFAULT '0.00'; -ALTER TABLE `PREFIX_order_cart_rule` ADD `id_order_invoice` INT NOT NULL DEFAULT '0' AFTER `id_cart_rule`; - -ALTER TABLE `PREFIX_specific_price` ADD `id_group_shop` INT(11) UNSIGNED NOT NULL AFTER `id_shop`; - -/* Generate order references */ -/* PHP:generate_order_reference(); */; - -ALTER TABLE `PREFIX_order_detail` ADD `tax_computation_method` tinyint(1) unsigned NOT NULL default '0' AFTER `product_weight`; - -/* PHP:migrate_orders(); */; - -CREATE TABLE IF NOT EXISTS `PREFIX_linksmenutop` ( - `id_link` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, - `id_shop` INT UNSIGNED NOT NULL, - `new_window` TINYINT( 1 ) NOT NULL, - `link` VARCHAR( 128 ) NOT NULL, - INDEX (`id_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_linksmenutop_lang` ( - `id_link` INT NOT NULL, - `id_lang` INT NOT NULL, - `id_shop` INT NOT NULL, - `label` VARCHAR( 128 ) NOT NULL , - INDEX ( `id_link` , `id_lang`, `id_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -ALTER TABLE `PREFIX_order_invoice` ADD `delivery_number` int(0) NOT NULL DEFAULT '0' AFTER `number`; -ALTER TABLE `PREFIX_order_invoice` ADD `delivery_date` datetime AFTER `delivery_number`; - -INSERT INTO `PREFIX_order_invoice` (`id_order`, `number`, `total_discount_tax_excl`, `total_discount_tax_incl`, `total_paid_tax_excl`, `total_paid_tax_incl`, `total_products`, `total_products_wt`, `total_shipping_tax_excl`, `total_shipping_tax_incl`, `total_wrapping_tax_excl`, `total_wrapping_tax_incl`, `note`, `date_add`) ( - SELECT `id_order`, `invoice_number`, `total_discounts_tax_excl`, `total_discounts_tax_incl`, `total_paid_tax_excl`, `total_paid_tax_incl`, `total_products`, `total_products_wt`, `total_shipping_tax_excl`, `total_shipping_tax_incl`, `total_wrapping_tax_excl`, `total_wrapping_tax_incl`, '', `invoice_date` - FROM `PREFIX_orders` - WHERE `invoice_number` != 0 -); - -ALTER TABLE `PREFIX_tab` ADD `active` TINYINT(1) UNSIGNED NOT NULL DEFAULT '1'; - -UPDATE `PREFIX_order_detail` od -SET od.`id_order_invoice` = ( - SELECT oi.`id_order_invoice` - FROM `PREFIX_order_invoice` oi - WHERE oi.`id_order` = od.`id_order` -); - -INSERT INTO `PREFIX_order_carrier` (`id_order`, `id_carrier`, `id_order_invoice`, `weight`, `shipping_cost_tax_excl`, `shipping_cost_tax_incl`, `tracking_number`, `date_add`) ( - SELECT `id_order`, `id_carrier`, ( - SELECT oi.`id_order_invoice` - FROM `PREFIX_order_invoice` oi - WHERE oi.`id_order` = o.`id_order` - ), ( - SELECT SUM(`product_weight`) - FROM `PREFIX_order_detail` od - WHERE od.`id_order` = o.`id_order` - ), `total_shipping_tax_excl`, `total_shipping_tax_incl`, `shipping_number`, `date_add` - FROM `PREFIX_orders` o -); - -INSERT IGNORE INTO `PREFIX_order_payment` (`id_order_invoice`, `id_order`, `id_currency`, `amount`, `payment_method`, `conversion_rate`, `date_add`) - ( - SELECT - ( - SELECT oi.`id_order_invoice` - FROM `PREFIX_order_invoice` oi - WHERE oi.`id_order` = o.`id_order` - ), - o.`id_order`, o.`id_currency`, o.`total_paid_real`, o.`payment`, o.`conversion_rate`, o.`date_add` - FROM `PREFIX_orders` o - LEFT JOIN `PREFIX_order_payment` op ON (op.`id_order` = o.`id_order`) - WHERE op.`id_order_payment` IS NULL - ); - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES -('PS_SMARTY_CONSOLE', '0', NOW(), NOW()),('PS_INVOICE_MODEL', 'invoice', NOW(), NOW()); -ALTER TABLE `PREFIX_specific_price` ADD `id_cart` INT(11) UNSIGNED NOT NULL AFTER `id_specific_price_rule`; -ALTER TABLE `PREFIX_specific_price` ADD INDEX `id_cart` (`id_cart`); -/* PHP:update_modules_multishop(); */; - -UPDATE `ps_tab` -SET `position` = ( - SELECT `position` FROM ( - SELECT MAX(`position`)+1 as `position` - FROM `ps_tab` - WHERE `id_parent` = 0 - ) tmp -) -WHERE `class_name` = 'AdminStock'; - -UPDATE `ps_tab` -SET `position` = ( - SELECT `position` FROM ( - SELECT MAX(`position`)+1 as `position` - FROM `ps_tab` - WHERE `id_parent` = 0 - ) tmp -) -WHERE `class_name` = 'AdminAccounting'; - -ALTER TABLE `PREFIX_order_slip_detail` CHANGE `amount` `amount_tax_excl` DECIMAL( 10, 2 ) default NULL; -ALTER TABLE `PREFIX_order_slip_detail` ADD COLUMN `amount_tax_incl` DECIMAL(10,2) default NULL AFTER `amount_tax_excl`; -/* PHP:drop_image_type_non_unique_index(); */; -ALTER TABLE `PREFIX_image_type` ADD `id_theme` INT(11) NOT NULL AFTER `id_image_type`; -ALTER TABLE `PREFIX_image_type` ADD UNIQUE (`id_theme` ,`name`); -UPDATE `PREFIX_image_type` SET `id_theme`=1; - -CREATE TABLE `PREFIX_webservice_account_shop` ( -`id_webservice_account` INT( 11 ) UNSIGNED NOT NULL, -`id_shop` INT( 11 ) UNSIGNED NOT NULL, -PRIMARY KEY (`id_webservice_account` , `id_shop`), - KEY `id_shop` (`id_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -ALTER TABLE `PREFIX_group` ADD `show_prices` tinyint(1) unsigned NOT NULL DEFAULT '1' AFTER `price_display_method`; diff --git a/install-dev/sql/upgrade/1.5.0.3.sql b/install-dev/sql/upgrade/1.5.0.3.sql deleted file mode 100644 index 2caa8222e..000000000 --- a/install-dev/sql/upgrade/1.5.0.3.sql +++ /dev/null @@ -1,8 +0,0 @@ -SET NAMES 'utf8'; - -ALTER TABLE PREFIX_theme ADD COLUMN directory varchar(64) NOT NULL; - -/* Supply Order modification as of 1.5.0.3 */ -ALTER TABLE `PREFIX_supply_order` DROP INDEX `reference`; -ALTER TABLE `PREFIX_supply_order` ADD UNIQUE (`reference`); - diff --git a/install-dev/sql/upgrade/1.5.0.4.sql b/install-dev/sql/upgrade/1.5.0.4.sql deleted file mode 100644 index 05b91d678..000000000 --- a/install-dev/sql/upgrade/1.5.0.4.sql +++ /dev/null @@ -1,21 +0,0 @@ -SET NAMES 'utf8'; - - -ALTER TABLE `PREFIX_order_state` ADD COLUMN `deleted` tinyint(1) UNSIGNED NOT NULL default '0' AFTER `paid`; - -ALTER TABLE `PREFIX_category` ADD COLUMN `is_root_category` tinyint(1) NOT NULL default '0' AFTER `position`; - -UPDATE `PREFIX_category` SET `is_root_category` = 1 WHERE `id_category` = 1; - -ALTER TABLE `PREFIX_image_type` DROP `id_theme`; - -ALTER TABLE `PREFIX_specific_price_rule_condition` CHANGE `id_specific_price_rule_condition` `id_specific_price_rule_condition` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT; -ALTER TABLE `PREFIX_specific_price_rule_condition_group` CHANGE `id_specific_price_rule_condition_group` `id_specific_price_rule_condition_group` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT; - -UPDATE `PREFIX_supply_order_state_lang` -SET `name` = "order canceled" -WHERE `name` = "order fenced" AND (`id_lang` = 1 OR `id_lang` = 3 OR `id_lang` = 4 OR `id_lang` = 5); - -UPDATE `PREFIX_supply_order_state_lang` -SET `name` = "Commande cloturée" -WHERE `name` = "order fenced" AND id_lang = 2; diff --git a/install-dev/sql/upgrade/index.php b/install-dev/sql/upgrade/index.php deleted file mode 100644 index 4e2611d37..000000000 --- a/install-dev/sql/upgrade/index.php +++ /dev/null @@ -1,36 +0,0 @@ - -* @copyright 2007-2011 PrestaShop SA -* @version Release: $Revision$ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file diff --git a/install-dev/view.css b/install-dev/view.css deleted file mode 100644 index 3025ab47b..000000000 --- a/install-dev/view.css +++ /dev/null @@ -1,763 +0,0 @@ -@CHARSET "UTF-8"; - -/* **************************************************************************** - reset -**************************************************************************** */ -html{color:#000;background:#FFF;} -body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;} -table{border-collapse:collapse;border-spacing:0;} -fieldset,img{border:0;} -address,caption,cite,code,dfn,em,th,var,optgroup{font-style:inherit;font-weight:inherit;} -del,ins{text-decoration:none;} -caption,th{text-align:left;} -h1,h2,h3,h4,h5,h6{font-size:100%;} -q:before,q:after{content:'';} -abbr,acronym{border:0;font-variant:normal;} -sup{vertical-align:baseline;} -sub{vertical-align:baseline;} -legend{color:#000;} -input,button,textarea,select,optgroup,option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;} -input,button,textarea,select{font-size:100%;} -a {cursor:pointer;} - -.installModuleList { display: none; } -.installModuleList.selected { display: block; } -.clearfix:before, -.clearfix:after { - content: "."; - display: block; - height: 0; - overflow: hidden; -} -.clearfix:after {clear: both;} -.clearfix {zoom: 1;} - - -/* **************************************************************************** - structure -**************************************************************************** */ -#container{ - position:relative; - display:none; - margin:0 auto; - padding:0; - width:990px; - background :#fff; -} - #header { - padding:6px 16px 16px 16px; - height:68px;/* 90 */ - background:#394049; - } - -#loaderSpace{ - display:none; - z-index: 100; - position: absolute; - top: 0; - left: 0; - height: 100%; - width: 100%; - background:transparent url(img/bg_loaderSpace.png) repeat 0 0; -} -div#loader{ - display:none; - margin: 450px 0 0 440px; - height:128px; - width:128px; - color:#fff; - background-image:url(img/ajax-loader.gif); -} - -div#leftpannel{ - float:left; - margin:65px 30px 0 30px; - width:220px; -} - - div#sheets { - float:left; - margin-top:65px; - min-height:400px; - width:700px; - background-color:#fff; -} - * html div#sheets { - height: 400px; -} - #sheets div.sheet{ - /*display:none;*/ - padding:1em; - width:650px; -} - - div#buttons{ - clear:both; - margin:0 0 0 295px; - height:70px; - width:650px; -} - * html div#buttons { - margin-bottom:60px; - margin-top:-30px; - } - #btNext {float:right;} - -ul#footer{ - margin-top:5px; - list-style-type:none; - text-align:center; - margin-bottom:2px; - color:#fff; -} - - -/* **************************************************************************** - generics styles -**************************************************************************** */ -body{ - font:normal 13px/18px Arial, Helvetica, sans-serif; - color:#333; - background:#e1e2e2; -} - -/* title */ -h1 {font-size:24px;} -h2 { - padding-bottom:20px; - font-size:18px; - line-height:20px; -} -h3 { - padding-bottom:20px; - font-size:16px; -} -h4 { - padding-bottom:20px; - font-size:14px; -} - -/* text */ -p {padding-bottom:20px;} -#sheets ul { - margin-left: 15px; - padding-bottom:20px; - list-style-type:square; -} - -/* link */ -a, a:active, a:visited { - color:#d41958; - text-decoration:none; -} - a:hover {text-decoration:underline;} - -sup.required {color: red;} - -/*buttons */ - - -/* form */ -input.button { - padding:0 30px; - height:31px; - line-height:31px; - font-weight:bold; - color:#fff; - text-shadow:0 1px 0 #0d7903; - background:#039701 url(img/bt.png) repeat-x 0 0; - border:1px solid #ccc; - -moz-border-radius: 5px; - -webkit-border-radius:5px; - border-radius: 5px; - box-shadow:0 1px #666; -} - input.button:hover { - background:#039701 url(img/bt-hover.png) repeat-x 0 0; - cursor:pointer; -} - input#btBack { - color:#666; - text-shadow:0 1px 0 #fff; - background-image:url(img/bt_off.png); -} - input#btBack:hover {background-image:url(img/bt_off_hover.png);} - -input.button.disabled { - color:#666; - text-shadow:0 1px 0 #fff; - background:#ccc url(img/bt-dsbl.png) repeat-x 0 0; -} - -input.text { - padding:0 6px; - height:22px; - width:218px;/* 230 */ - background:#fff url(img/bg_input_button.png) repeat-x 0 0; - border:1px solid #ccc; -} -select { - width: 232px; - border:1px solid #ccc; -} - -div.field { - padding:10px 0; - background:url(img/bg_field.png) repeat-x 0 100% transparent; -} - div.field label { - display:inline-block; - width:190px; - vertical-align: top; -} - div.field label.radiolabel {width:auto;} - div.field span.contentinput { - display:inline-block; - width:245px; - vertical-align: top; -} - div.field .userInfos { - display:inline-block; - width:200px; - font-size:11px; - font-family:Georgia; - font-style:italic; - color:#999; -} - -#uploadedImage {border:1px solid #ccc;} - -.okBlock { - padding:20px 20px 20px 38px; - background:#b7e2a7 url(img/pict_ok.png) no-repeat 15px 21px; - border:1px solid #85c10c; -} - -.errorBlock { - padding:20px 20px 20px 38px; - background:#ffebe8 url(img/pict_error.png) no-repeat 15px 21px; - border:1px solid #cc0000; -} - -.infosBlock { - padding:14px 25px 14px 35px; - font-weight:normal; - font-size:13px; - line-height:18px; - background:#f8f8f8 url(img/pict_h3_infos.png) no-repeat 10px 13px; - border:1px solid #ccc; -} - -.okBlock h1, -.okBlock h2, -.okBlock h3, -.errorBlock h1, -.errorBlock h2, -.errorBlock h3, -.infosBlock h1, -.infosBlock h2, -.infosBlock h3 { - padding-bottom:5px; -} - - -/* **************************************************************************** - HEADER -**************************************************************************** */ -#header #headerLinks {float:right;} - #header #headerLinks li { - display:inline-block; - padding:0 12px; - vertical-align: top; - background:transparent url(img/bg-li-headerLinks.png) no-repeat right 2px; -} - #header #headerLinks li.last {background:none;} - #header #headerLinks li a { - color:#fff; - text-decoration:none; -} - #header #headerLinks li a:hover {text-decoration:underline;} - #header #headerLinks #phone_block { - padding:0 0 0 46px; - line-height:14px; - color:#fff; - text-shadow:0 1px 0 #333; - background:transparent url(img/bg-phone_block.png) no-repeat 0 0; -} - #header #headerLinks #phone_block div { - padding:7px 15px 8px 0; - background:transparent url(img/bg-phone_block.png) no-repeat right top; -} - -#header #PrestaShopLogo { - float:left; - margin:5px 0 0 10px; - height: 51px; - width: 192px; - text-indent: -5000px; - background:transparent url(img/logo.png) no-repeat 0 0; -} - -#header #infosSup { - display:none; - float:left; - margin:10px 0 0 50px; -} - - -/* **************************************************************************** - LEFTPANEL -**************************************************************************** */ -div#leftpannel div#help{display:none;} - -ol#tabs{ - list-style-type:none; - margin:0; - padding:0; -} - - ol#tabs li{ - padding: 9px 0 9px 20px; - font-size:14px; - color:#adadad; - } - - ol#tabs li.selected{ - font-weight: bold; - color:#000; - background : url(img/bg-li-tabs.png) no-repeat 1px 15px; - } - - ol#tabs li.finished{ - color:#78a531; - background : url(img/bg-li-tabs-finished.png) no-repeat 0 12px; - } - -/* **************************************************************************** - FOOTER -**************************************************************************** */ -ul#footer li { - display:inline; - font-weight:bold; - font-size:12px; - color:#666; -} - -ul#footer a:link, ul#footer a:active, ul#footer a:visited { - color:#666; - text-decoration:none; -} - ul#footer a:hover{ - color:#333; - text-decoration:underline; -} - - -/* **************************************************************************** - SHEET -**************************************************************************** */ -#sheets div.sheet { - display: none; - padding: 14px; - width: 650px; -} -#sheets div#sheet_lang{ - display:block; -} - .sheet .contentTitle { - position:absolute; - top:90px; - left:0; - padding:15px 25px 10px 38px; - height:28px;/* 53 */ - width:927px;/* 990 */ - background:transparent url(img/bg-contentTitle.png) repeat-x 0 0; -} - .sheet .contentTitle .stepList { - position:absolute; - top:7px; - right:20px; - list-style-type:none !important; -} - .sheet .contentTitle .stepList li { - float:left; - margin:0 0 0 5px; - height:42px; - width:42px; - text-indent:-5000px; - background:transparent url(img/bg_li_stepList.png) no-repeat 0 0; - } - - .sheet .contentTitle .stepList li.ok {background-position:0 -50px;} - .sheet .contentTitle .stepList li.ko {background-position:0 -100px;} - .sheet .contentTitle h1 {text-shadow:0 1px 0 #fff;} - .sheet .contentTitle ul {list-style-type:none;} - - li.title { - margin:0; - font-weight:bold; -} - -/* INSTALLATION ***************************************************************************** */ -/* ETAPE 1 - lang ********************************************************** */ -#formSetMethod {padding-bottom:20px;} - #formSetMethod p {padding-bottom:0;} - -ul#langList {list-style-type:none;} - -/* ETAPE 2 - required ******************************************************* */ -#sheet_require #req_bt_refresh {float:right;} -#sheet_require #btTestDB {float:right;} - -/*h3#resultConfig { - padding:20px 20px 20px 38px; - background:#ffebe8 url(img/pict_error.png) no-repeat 15px 21px; - border:1px solid #cc0000; -}*/ - -ul#required, -ul#optional { - list-style-type: none; - margin: 0; -} - ul#required li, - ul#optional li { - padding:6px 8px 4px 8px; - font-size:12px; - background:#f8f8f8; -} - ul#required li.title, - ul#optional li.title { - margin-top: 20px; - padding:4px 8px; - font-size:13px; - background:#f8f8f8 url(img/bg_li_title.png) repeat-x 0 0; -} - ul#required li.required , - ul#optional li { - border-top:1px solid #fff; - border-bottom:1px solid #ccc; -} - ul#required li.ok, - ul#optional li.ok{ - background:#f8f8f8 url(img/pict_ok.png) no-repeat 99% 10px -} - ul#required li.fail, - ul#optional li.fail { - background:#f8f8f8 url(img/pict_error.png) no-repeat 99% 8px; -} - -/* ETAPE 3 - DB ************************************************************* */ -#sheet_db { - padding:0 !important; - width:678px !important; -} - -#formCheckSQL p, -#mailSMTPParam p { - padding:10px 0; - background:url(img/bg_field.png) repeat-x 0 100% transparent; -} -#formCheckSQL p.first {border-top:none;} -#formCheckSQL p.last {border-bottom:none;} -#formCheckSQL p#dbResultCheck {background:none;} -#formCheckSQL p#dbResultCheck.errorBlock { - background: url("img/pict_error.png") no-repeat scroll 15px 21px #FFEBE8; - border: 1px solid #CC0000; - padding: 20px 20px 20px 38px; -} -#formCheckSQL p#dbResultCheck.okBlock { - padding:20px 20px 20px 38px; - background:#b7e2a7 url(img/pict_ok.png) no-repeat 15px 21px; - border:1px solid #85c10c; -} -#formCheckSQL p label, -#mailSMTPParam p label { - display:inline-block; - width:230px; -} - -#dbPart, -#dbTableParam, -#mailPart { - margin-bottom:15px; - padding:14px; - width:650px; - background:#f8f8f8; -} - -#mailSMTPParam {margin-bottom:10px;} - #mailSMTPParam #configsmtp span { - padding-left:15px; - font-size:11px; - font-style:italic; - color:#999; -} - -#mailPart .userInfos { - padding-left:18px; - font:italic 11px Georgia, Arial, Sans-serif italic; - color:#999; -} - - -/* ETAPE 4 - infos ********************************************************* */ -#sheet_infos { - padding:0 !important; - width:678px !important; -} -#contentInfosNotification { - padding-left:190px; - border:none; -} -#contentInfosNotification label { - width:auto; - font-size:11px; -} - -#infosShopBlock, -#benefitsBlock { - margin-bottom:15px; - padding:14px; - width:650px; - background:#f8f8f8; -} - -#inputFileLogo {margin-left:190px;} - -.moduleTable { - padding: 5px; - width: 650px; - border: 1px solid #CCC; - border-bottom:none; -} - .moduleTable tr { - border-bottom: 1px solid #CCC; -} - .moduleTable th { - font-size:13; - color:#000; - text-shadow:0 1px 0 #fff; - background:#cfcfcf url(img/bg_moduleTable_th.png) repeat-x 0 0; -} - .moduleTable .field { - padding:10px 0; - border-bottom:none; -} - .moduleTable .field label { - display:inline-block; - padding-left:10px; - width:180px;/* 190 */ -} - .moduleTable .field label.radiolabel {width:auto;} - .moduleTable .field span.contentinput { - display:inline-block; - width:245px; - font-size: 11px; - font-style:italic; - color:#999; -} - -#paypal_uk_form_form_dateOfEstablishment_year, -#paypal_de_form_dateOfEstablishment_year, -#paypal_es_form_dateOfEstablishment_year, -#paypal_it_form_dateOfEstablishment_year, -#paypal_gb_form_dateOfEstablishment_year, -#paypal_se_form_dateOfEstablishment_year, -#paypal_fr_form_dateOfEstablishment_year - -#moneybookers_uk_form_dateOfBirth_year, -#moneybookers_de_form_dateOfBirth_year, -#moneybookers_es_form_dateOfBirth_year, -#moneybookers_it_form_dateOfBirth_year, -#moneybookers_gb_form_dateOfBirth_year, -#moneybookers_se_form_dateOfBirth_year, -#moneybookers_fr_form_dateOfBirth_year { - margin-right:10px; - width:60px !important; -} - -#paypal_uk_form_dateOfEstablishment_month, -#paypal_uk_form_dateOfEstablishment_day, -#paypal_de_form_dateOfEstablishment_month, -#paypal_de_form_dateOfEstablishment_day, -#paypal_es_form_dateOfEstablishment_month, -#paypal_es_form_dateOfEstablishment_day, -#paypal_it_form_dateOfEstablishment_month, -#paypal_it_form_dateOfEstablishment_day, -#paypal_gb_form_dateOfEstablishment_month, -#paypal_gb_form_dateOfEstablishment_day, -#paypal_se_form_dateOfEstablishment_month, -#paypal_se_form_dateOfEstablishment_day, - -#moneybookers_uk_form_dateOfBirth_month, -#moneybookers_uk_form_dateOfBirth_day, -#moneybookers_de_form_dateOfBirth_month, -#moneybookers_de_form_dateOfBirth_day, -#moneybookers_es_form_dateOfBirth_month, -#moneybookers_es_form_dateOfBirth_day, -#moneybookers_it_form_dateOfBirth_month, -#moneybookers_it_form_dateOfBirth_day, -#moneybookers_gb_form_dateOfBirth_month, -#moneybookers_gb_form_dateOfBirth_day, -#moneybookers_se_form_dateOfBirth_month, -#moneybookers_se_form_dateOfBirth_day, -#moneybookers_fr_form_dateOfBirth_month, -#moneybookers_fr_form_dateOfBirth_day { - margin-right:10px; - width:45px !important; -} - -#resultInfosPasswordRepeat {color:#cc0000;} - -/* ETAPE 5 - end *********************************************************** */ -#resultInstall {margin-bottom:25px;} - #resultInstall td {padding:7px 6px;} - #resultInstall tr.odd {background:#f8f8f8;} - #resultInstall td.resultEnd {color:#666;} - -.blockInfoEnd { - float:left; - margin:34px 20px 22px 0; - padding:10px; - width:292px;/* 312 */ - background:#fff url(img/bg_blockInfoEnd.png) repeat-x 0 0; - border:1px solid #ccc; - -moz-border-radius: 5px; - -webkit-border-radius:5px; - border-radius: 5px; - box-shadow:0 1px #d9d9d9; -} -.blockInfoEnd.last {margin-right:0;} - .blockInfoEnd p { - font:italic 11px/14px Georgia, Arial, Sans-serif; - color:#666; - min-height:58px; -} - .blockInfoEnd img { - float:left; - margin:0 10px 5px 0; -} - .blockInfoEnd a.BO, - .blockInfoEnd a.FO { - float:right; - padding:0 0 0 10px; - height:33px; - line-height:33px; - color:#fff; - background:#039701 url(img/bg_bt_blockInfoEnd.png) no-repeat 0 0; - border:1px solid #019700; - -moz-border-radius: 5px; - -webkit-border-radius:5px; - border-radius: 5px; -} - .blockInfoEnd a.BO span , - .blockInfoEnd a.FO span { - display:inline-block; - padding:0 32px 0 0; - height:33px; - line-height:33px; - color:#fff; - background:#039701 url(img/bg_bt_blockInfoEnd.png) no-repeat 100% 0; - } - -#prestastore, -#prestastore_update { - height:210px; - width:645px; - border:none; - /*-moz-border-radius: 5px; - -webkit-border-radius:5px; - border-radius: 5px*/ -} - -/* MISE A JOUR ********************************************************************************* */ - -/* ETAPE 1 - disclaimer **************************************************** */ - -/* ETAPE 2 - require_update ************************************************ */ -#disclaimerDivCertify {margin-bottom:20px;} - -#upgradeProcess table { - padding: 5px; - width: 650px; - background:#fff; - border: 1px solid #CCC; - border-bottom:none; -} - #upgradeProcess tr { - border-bottom: 1px solid #CCC; -} - #upgradeProcess th, - #upgradeProcess td{padding:3px 5px;} - #upgradeProcess th { - font-size:13; - color:#000; - text-shadow:0 1px 0 #fff; - background:#cfcfcf url(img/bg_moduleTable_th.png) repeat-x 0 0; -} - -#upgradeProcess .infosBlock { - margin:20px 0; - padding:14px 25px; - background:#F8F8F8; -} - -ul#required_update, -ul#optional_update {list-style-type:none;} - ul#required_update li, - ul#optional_update li { - padding:6px 8px 4px 8px; - background:#f8f8f8; -} - ul#required_update li.title, - ul#optional_update li.title { - margin-top: 20px; - padding:4px 8px; - background:#f8f8f8 url(img/bg_li_title.png) repeat-x 0 0; -} - ul#required_update li.required , - ul#optional_update li.optional{ - border-top:1px solid #fff; - border-bottom:1px solid #ccc; -} - ul#required_update li.fail, - ul#optional_update li.fail { - background:#f8f8f8 url(img/pict_error.png) no-repeat 100% 8px; - } - ul#required_update li.ok, - ul#optional_update li.ok{ - background:#f8f8f8 url(img/pict_ok.png) no-repeat 100% 10px; - } -#sheet_require_update #req_bt_refresh_update {float:right;} - -/* ETAPE 3 - updateErrors ************************************************** */ - -/* ETAPE 4 - end_update **************************************************** */ -#updateLog { - height: 200px; - overflow: scroll; - border: 1px solid #E1E2E2; -} -#updateLog .fail { - font-weight:bold; - color: red; -} -.request { - border-bottom: 1px solid #E1E2E2; -} - - -/* **************************************************************************** - xxxxx -**************************************************************************** */ - - - - - - - - - - diff --git a/install-dev/xml/checkConfig.php b/install-dev/xml/checkConfig.php deleted file mode 100644 index 2e0aec3f1..000000000 --- a/install-dev/xml/checkConfig.php +++ /dev/null @@ -1,89 +0,0 @@ - -* @copyright 2007-2011 PrestaShop SA -* @version Release: $Revision: 7040 $ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ -header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 -header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date dans le passé -if (!class_exists('ConfigurationTest',false)) - require_once(INSTALL_PATH.'/../classes/ConfigurationTest.php'); - -// Functions list to test with 'test_system' -$funcs = array('fopen', 'fclose', 'fread', 'fwrite', 'rename', 'file_exists', 'unlink', 'rmdir', 'mkdir', 'getcwd', 'chdir', 'chmod'); - -// Test list to execute (function/args) -$tests = array( - 'phpversion' => false, - 'upload' => false, - 'system' => $funcs, - 'gd' => false, - 'mysql_support' => false, - 'config_dir' => 'config', - 'cache_dir' => 'cache', - 'sitemap' => 'sitemap.xml', - 'log_dir' => 'log', - 'img_dir' => 'img', - 'mails_dir' => 'mails/', - 'module_dir' => 'modules/', - 'theme_lang_dir' => 'themes/prestashop/lang', - 'theme_cache_dir' => 'themes/prestashop/cache', - 'translations_dir' => 'translations', - 'customizable_products_dir' => 'upload', - 'virtual_products_dir' => 'download', -); -$tests_op = array( - 'fopen' => false, - 'register_globals' => false, - 'gz' => false, - 'mcrypt' => false, - 'magicquotes' => false, - 'dom' => false, -); - -// Execute tests -$res = ConfigurationTest::check($tests); -$res_op = ConfigurationTest::check($tests_op); - -$has_error = false; - -// Building XML Tree... -echo '