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 = ' -
- -
-
- '.$this->l('Choose language:').'

'; - foreach ($languages as $language) - $output .= ''.$language['name'].' '; - $output .= '
'; - - if ($return) - return $output; - echo $output; - } - - /** - * Unregister module from hook - * - * @param int $id_hook Hook id - * @return boolean result - */ - public function unregisterHook($hook_id) - { - return Db::getInstance()->execute(' - DELETE - FROM `'._DB_PREFIX_.'hook_module` - WHERE `id_module` = '.(int)($this->id).' - AND `id_hook` = '.(int)($hook_id)); - } - - /** - * Unregister exceptions linked to module - * - * @param int $id_hook Hook id - * @return boolean result - */ - public function unregisterExceptions($hook_id) - { - return Db::getInstance()->execute(' - DELETE - FROM `'._DB_PREFIX_.'hook_module_exceptions` - WHERE `id_module` = '.(int)($this->id).' - AND `id_hook` = '.(int)($hook_id)); - } - - /** - * Add exceptions for module->Hook - * - * @param int $id_hook Hook id - * @param array $excepts List of file name - * @return boolean result - */ - public function registerExceptions($id_hook, $excepts) - { - foreach ($excepts AS $except) - { - if (!empty($except)) - { - $result = Db::getInstance()->execute(' - INSERT INTO `'._DB_PREFIX_.'hook_module_exceptions` (`id_module`, `id_hook`, `file_name`) - VALUES ('.(int)($this->id).', '.(int)($id_hook).', \''.pSQL(strval($except)).'\')'); - if (!$result) - return false; - } - } - return true; - } - - public function editExceptions($id_hook, $excepts) - { - // Cleaning... - Db::getInstance()->execute(' - DELETE FROM `'._DB_PREFIX_.'hook_module_exceptions` - WHERE `id_module` = '.(int)($this->id).' AND `id_hook` ='.(int)($id_hook)); - return $this->registerExceptions($id_hook, $excepts); - } - - - /** - * This function is used to determine the module name - * of an AdminTab which belongs to a module, in order to keep translation - * related to a module in its directory (instead of $_LANGADM) - * - * @param mixed $currentClass the - * @return boolean|string if the class belongs to a module, will return the module name. Otherwise, return false. - */ - public static function getModuleNameFromClass($currentClass) - { - // Module can now define AdminTab keeping the module translations method, - // i.e. in modules/[module name]/[iso_code].php - if (!isset(self::$classInModule[$currentClass])) - { - global $_MODULES; - $_MODULE = array(); - $reflectionClass = new ReflectionClass($currentClass); - $filePath = realpath($reflectionClass->getFileName()); - $realpathModuleDir = realpath(_PS_MODULE_DIR_); - if (substr(realpath($filePath), 0, strlen($realpathModuleDir)) == $realpathModuleDir) - { - self::$classInModule[$currentClass] = substr(dirname($filePath), strlen($realpathModuleDir)+1); - - $id_lang = (!isset($cookie) OR !is_object($cookie)) ? (int)(Configuration::get('PS_LANG_DEFAULT')) : (int)($cookie->id_lang); - $file = _PS_MODULE_DIR_.self::$classInModule[$currentClass].'/'.Language::getIsoById($id_lang).'.php'; - if (Tools::file_exists_cache($file) AND include_once($file)) - $_MODULES = !empty($_MODULES) ? array_merge($_MODULES, $_MODULE) : $_MODULE; - } - else - self::$classInModule[$currentClass] = false; - } - // return name of the module, or false - return self::$classInModule[$currentClass]; - } - - /** - * Return an instance of the specified module - * - * @param string $moduleName Module name - * @return Module instance - */ - static public function getInstanceByName($moduleName) - { - if (!Tools::file_exists_cache(_PS_MODULE_DIR_.$moduleName.'/'.$moduleName.'.php')) - return false; - include_once(_PS_MODULE_DIR_.$moduleName.'/'.$moduleName.'.php'); - if (!class_exists($moduleName, false)) - return false; - - if (!isset(self::$_INSTANCE[$moduleName])) - self::$_INSTANCE[$moduleName] = new $moduleName; - return self::$_INSTANCE[$moduleName]; - } - - /** - * Load modules Ids from Ids - * - * @param array|int $ids Modules ID - * @return Array of module name - */ - static public function preloadModuleNameFromId($ids) - { - static $preloadedModuleNameFromId; - if(!isset($preloadedModuleNameFromId)) { - $preloadedModuleNameFromId = array(); - } - - if(is_array($ids)) - { - foreach($ids as $id) - $preloadedModuleNameFromId[$id] = false; - - $results = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(' - SELECT `name`,`id_module` - FROM `'._DB_PREFIX_.'module` - WHERE `id_module` IN ('.join(',',$ids) .');'); - foreach($results as $result) - $preloadedModuleNameFromId[$result['id_module']] = $result['name']; - } - elseif(!isset($preloadedModuleNameFromId[$ids])) - { - $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow(' - SELECT `name` - FROM `'._DB_PREFIX_.'module` - WHERE `id_module` = '.(int)($ids)); - if($result) - $preloadedModuleNameFromId[$ids] = $result['name']; - else - $preloadedModuleNameFromId[$ids] = false; - } - - - if(is_array($ids)) { - return $preloadedModuleNameFromId; - } else { - if(!isset($preloadedModuleNameFromId[$ids])) - return false; - return $preloadedModuleNameFromId[$ids]; - } - } - - /** - * Return an instance of the specified module - * - * @param integer $id_module Module ID - * @return Module instance - */ - static public function getInstanceById($id_module) - { - $moduleName = Module::preloadModuleNameFromId($id_module); - return ($moduleName ? Module::getInstanceByName($moduleName) : false); - } - - /** - * Return available modules - * - * @param boolean $useConfig in order to use config.xml file in module dir - * @return array Modules - */ - public static function getModulesOnDisk($useConfig = false) - { - global $cookie, $_MODULES; - - $moduleList = array(); - $moduleListCursor = 0; - $moduleNameList = array(); - $modulesNameToCursor = array(); - $errors = array(); - $modules_dir = self::getModulesDirOnDisk(); - foreach ($modules_dir AS $module) - { - $configFile = _PS_MODULE_DIR_.$module.'/config.xml'; - $xml_exist = file_exists($configFile); - if ($xml_exist) - $needNewConfigFile = (filemtime($configFile) < filemtime(_PS_MODULE_DIR_.$module.'/'.$module.'.php')); - else - $needNewConfigFile = true; - if ($useConfig AND $xml_exist) - { - libxml_use_internal_errors(true); - $xml_module = simplexml_load_file($configFile); - foreach (libxml_get_errors() as $error) - $errors[] = '['.$module.'] '.Tools::displayError('Error found in config file:').' '.htmlentities($error->message); - libxml_clear_errors(); - - if (!count($errors) AND (int)$xml_module->need_instance == 0 AND !$needNewConfigFile) - { - $file = _PS_MODULE_DIR_.$module.'/'.Language::getIsoById($cookie->id_lang).'.php'; - if (Tools::file_exists_cache($file) AND include_once($file)) - if(isset($_MODULE) AND is_array($_MODULE)) - $_MODULES = !empty($_MODULES) ? array_merge($_MODULES, $_MODULE) : $_MODULE; - - $xml_module->displayName = Module::findTranslation($xml_module->name, $xml_module->displayName, (string)$xml_module->name); - $xml_module->description = Module::findTranslation($xml_module->name, $xml_module->description, (string)$xml_module->name); - $xml_module->author = Module::findTranslation($xml_module->name, $xml_module->author, (string)$xml_module->name); - - if(isset($xml_module->confirmUninstall)) - $xml_module->confirmUninstall = Module::findTranslation($xml_module->name, $xml_module->confirmUninstall, (string)$xml_module->name); - - - $moduleList[$moduleListCursor] = $xml_module; - $moduleNameList[$moduleListCursor] = '\''.strval($xml_module->name).'\''; - $modulesNameToCursor[strval($xml_module->name)] = $moduleListCursor; - $moduleListCursor++; - } - } - if (!$useConfig OR !$xml_exist OR (isset($xml_module->need_instance) AND (int)$xml_module->need_instance == 1) OR $needNewConfigFile) - { - $file = trim(file_get_contents(_PS_MODULE_DIR_.$module.'/'.$module.'.php')); - if (substr($file, 0, 5) == '') - $file = substr($file, 0, -2); - if (class_exists($module, false) OR eval($file) !== false) - { - $moduleList[$moduleListCursor++] = new $module; - if (!$xml_exist OR $needNewConfigFile) - { - self::$_generateConfigXmlMode = true; - $tmpModule = new $module; - $tmpModule->_generateConfigXml(); - self::$_generateConfigXmlMode = false; - } - } - else - $errors[] = $module; - } - } - - // Get modules information from database - if(!empty($moduleNameList)) - { - $results = Db::getInstance()->executeS('SELECT `id_module`, `active`, `name` FROM `'._DB_PREFIX_.'module` WHERE `name` IN ('.join(',',$moduleNameList).')'); - foreach($results as $result) - { - $moduleCursor = $modulesNameToCursor[$result['name']]; - if (isset($result['active']) AND $result['active']) - $moduleList[$moduleCursor]->active = $result['active']; - if (isset($result['id_module']) AND $result['id_module']) - $moduleList[$moduleCursor]->id = $result['id_module']; - } - } - - if (sizeof($errors)) - { - echo '

'.Tools::displayError('Parse error(s) in module(s)').'

    '; - foreach ($errors AS $error) - echo '
  1. '.$error.'
  2. '; - echo '
'; - } - - return $moduleList; - } - - public static function getModulesDirOnDisk() - { - $moduleList = array(); - $modules = scandir(_PS_MODULE_DIR_); - foreach ($modules AS $name) - { - if (Tools::file_exists_cache(_PS_MODULE_DIR_.$name.'/'.$name.'.php')) - { - if (!Validate::isModuleName($name)) - die(Tools::displayError().' (Module '.$name.')'); - $moduleList[] = $name; - } - } - return $moduleList; - } - - /** - * Return non native module - * - * @param int $position Take only positionnables modules - * @return array Modules - */ - public static function getNonNativeModuleList() - { - $db = Db::getInstance(); - - $module_list_xml = _PS_ROOT_DIR_.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'xml'.DIRECTORY_SEPARATOR.'modules_list.xml'; - $nativeModules = simplexml_load_file($module_list_xml); - $nativeModules = $nativeModules->modules; - foreach ($nativeModules as $nativeModulesType) - if (in_array($nativeModulesType['type'],array('native','partner'))) - { - $arrNativeModules[] = '""'; - foreach ($nativeModulesType->module as $module) - $arrNativeModules[] = '"'.pSQL($module['name']).'"'; - } - - return $db->executeS(' - SELECT * - FROM `'._DB_PREFIX_.'module` m - WHERE name NOT IN ('.implode(',',$arrNativeModules).') '); - } - - /** - * Return installed modules - * - * @param int $position Take only positionnables modules - * @return array Modules - */ - public static function getModulesInstalled($position = 0) - { - return Db::getInstance()->executeS(' - SELECT * - FROM `'._DB_PREFIX_.'module` m - '.($position ? ' - LEFT JOIN `'._DB_PREFIX_.'hook_module` hm ON m.`id_module` = hm.`id_module` - LEFT JOIN `'._DB_PREFIX_.'hook` k ON hm.`id_hook` = k.`id_hook` - WHERE k.`position` = 1' : '')); - } - - /* - * Execute modules for specified hook - * - * @param string $hook_name Hook Name - * @param array $hookArgs Parameters for the functions - * @return string modules output - */ - public static function hookExec($hook_name, $hookArgs = array(), $id_module = NULL) - { - global $cookie; - if ((!empty($id_module) AND !Validate::isUnsignedId($id_module)) OR !Validate::isHookName($hook_name)) - die(Tools::displayError()); - - global $cart, $cookie; - $live_edit = false; - if (!isset($hookArgs['cookie']) OR !$hookArgs['cookie']) - $hookArgs['cookie'] = $cookie; - if (!isset($hookArgs['cart']) OR !$hookArgs['cart']) - $hookArgs['cart'] = $cart; - $hook_name = strtolower($hook_name); - - if (!isset(self::$_hookModulesCache)) - { - $db = Db::getInstance(_PS_USE_SQL_SLAVE_); - $results = $db->executeS(' - SELECT h.`name` as hook, m.`id_module`, h.`id_hook`, m.`name` as module, h.`live_edit` - FROM `'._DB_PREFIX_.'module` m - LEFT JOIN `'._DB_PREFIX_.'hook_module` hm ON hm.`id_module` = m.`id_module` - LEFT JOIN `'._DB_PREFIX_.'hook` h ON hm.`id_hook` = h.`id_hook` - AND m.`active` = 1 - ORDER BY hm.`position`'); - self::$_hookModulesCache = array(); - - if ($results) - foreach ($results as $row) - { - $row['hook'] = strtolower($row['hook']); - if (!isset(self::$_hookModulesCache[$row['hook']])) - self::$_hookModulesCache[$row['hook']] = array(); - self::$_hookModulesCache[$row['hook']][] = array('id_hook' => $row['id_hook'], 'module' => $row['module'], 'id_module' => $row['id_module'], 'live_edit' => $row['live_edit']); - } - } - - if (!isset(self::$_hookModulesCache[$hook_name])) - return; - - $altern = 0; - $output = ''; - foreach (self::$_hookModulesCache[$hook_name] AS $array) - { - if ($id_module AND $id_module != $array['id_module']) - continue; - if (!($moduleInstance = Module::getInstanceByName($array['module']))) - continue; - - $exceptions = $moduleInstance->getExceptions((int)$array['id_hook'], (int)$array['id_module']); - foreach ($exceptions AS $exception) - if (strstr(basename($_SERVER['PHP_SELF']).'?'.$_SERVER['QUERY_STRING'], $exception['file_name']) && !strstr($_SERVER['QUERY_STRING'], $exception['file_name'])) - continue 2; - - if (is_callable(array($moduleInstance, 'hook'.$hook_name))) - { - $hookArgs['altern'] = ++$altern; - - $display = call_user_func(array($moduleInstance, 'hook'.$hook_name), $hookArgs); - if ($array['live_edit'] && ((Tools::isSubmit('live_edit') AND Tools::getValue('ad') AND (Tools::getValue('liveToken') == sha1(Tools::getValue('ad')._COOKIE_KEY_))))) - { - $live_edit = true; - $output .= ' -
- ' - .$moduleInstance->displayName.' - - - - - '.$display.'
'; - } - else - $output .= $display; - } - } - return ($live_edit ? '
' : '').$output.($live_edit ? '
' : ''); - } - - public static function hookExecPayment() - { - global $cart, $cookie; - $hookArgs = array('cookie' => $cookie, 'cart' => $cart); - $id_customer = (int)($cookie->id_customer); - $billing = new Address((int)($cart->id_address_invoice)); - $output = ''; - - $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(' - SELECT DISTINCT h.`id_hook`, m.`name`, hm.`position` - FROM `'._DB_PREFIX_.'module_country` mc - LEFT JOIN `'._DB_PREFIX_.'module` m ON m.`id_module` = mc.`id_module` - INNER JOIN `'._DB_PREFIX_.'module_group` mg ON (m.`id_module` = mg.`id_module`) - INNER JOIN `'._DB_PREFIX_.'customer_group` cg on (cg.`id_group` = mg.`id_group` AND cg.`id_customer` = '.(int)($id_customer).') - LEFT JOIN `'._DB_PREFIX_.'hook_module` hm ON hm.`id_module` = m.`id_module` - LEFT JOIN `'._DB_PREFIX_.'hook` h ON hm.`id_hook` = h.`id_hook` - WHERE h.`name` = \'payment\' - AND mc.id_country = '.(int)($billing->id_country).' - AND m.`active` = 1 - ORDER BY hm.`position`, m.`name` DESC'); - if ($result) - foreach ($result AS $module) - if (($moduleInstance = Module::getInstanceByName($module['name'])) AND is_callable(array($moduleInstance, 'hookpayment'))) - if (!$moduleInstance->currencies OR ($moduleInstance->currencies AND sizeof(Currency::checkPaymentCurrencies($moduleInstance->id)))) - $output .= call_user_func(array($moduleInstance, 'hookpayment'), $hookArgs); - return $output; - } - - /** - * find translation from $_MODULES and put it in self::$l_cache if not already exist - * and return it. - * - * @param string $name name of the module - * @param string $string term to find - * @param string $source additional param for building translation key - * @return string - */ - public static function findTranslation($name, $string, $source) - { - global $_MODULES; - - $cache_key = $name . '|' . $string . '|' . $source; - - if (!isset(self::$l_cache[$cache_key])) - { - if (!is_array($_MODULES)) - return str_replace('"', '"', $string); - // set array key to lowercase for 1.3 compatibility - $_MODULES = array_change_key_case($_MODULES); - $currentKey = '<{'.strtolower($name).'}'.strtolower(_THEME_NAME_).'>'.strtolower($source).'_'.md5($string); - $defaultKey = '<{'.strtolower($name).'}prestashop>'.strtolower($source).'_'.md5($string); - - if (isset($_MODULES[$currentKey])) - $ret = stripslashes($_MODULES[$currentKey]); - elseif (isset($_MODULES[Tools::strtolower($currentKey)])) - $ret = stripslashes($_MODULES[Tools::strtolower($currentKey)]); - elseif (isset($_MODULES[$defaultKey])) - $ret = stripslashes($_MODULES[$defaultKey]); - elseif (isset($_MODULES[Tools::strtolower($defaultKey)])) - $ret = stripslashes($_MODULES[Tools::strtolower($defaultKey)]); - else - $ret = stripslashes($string); - - self::$l_cache[$cache_key] = str_replace('"', '"', $ret); - } - return self::$l_cache[$cache_key]; - } - /** - * Get translation for a given module text - * - * Note: $specific parameter is mandatory for library files. - * Otherwise, translation key will not match for Module library - * when module is loaded with eval() Module::getModulesOnDisk() - * - * @param string $string String to translate - * @param boolean|string $specific filename to use in translation key - * @return string Translation - */ - public function l($string, $specific = false) - { - if (self::$_generateConfigXmlMode) - return $string; - - global $_MODULES, $_MODULE, $cookie; - - $id_lang = (!isset($cookie) OR !is_object($cookie)) ? (int)(Configuration::get('PS_LANG_DEFAULT')) : (int)($cookie->id_lang); - $file = _PS_MODULE_DIR_.$this->name.'/'.Language::getIsoById($id_lang).'.php'; - if (Tools::file_exists_cache($file) AND include_once($file)) - $_MODULES = !empty($_MODULES) ? array_merge($_MODULES, $_MODULE) : $_MODULE; - - $source = $specific ? $specific : $this->name; - $string = str_replace('\'', '\\\'', $string); - $ret = $this->findTranslation($this->name, $string, $source); - return $ret; - } - - /* - * Reposition module - * - * @param boolean $id_hook Hook ID - * @param boolean $way Up (1) or Down (0) - * @param intger $position - */ - public function updatePosition($id_hook, $way, $position = NULL) - { - if (!$res = Db::getInstance()->executeS(' - SELECT hm.`id_module`, hm.`position`, hm.`id_hook` - FROM `'._DB_PREFIX_.'hook_module` hm - WHERE hm.`id_hook` = '.(int)($id_hook).' - ORDER BY hm.`position` '.((int)($way) ? 'ASC' : 'DESC'))) - return false; - foreach ($res AS $key => $values) - if ((int)($values[$this->identifier]) == (int)($this->id)) - { - $k = $key ; - break ; - } - if (!isset($k) OR !isset($res[$k]) OR !isset($res[$k + 1])) - return false; - $from = $res[$k]; - $to = $res[$k + 1]; - - if (isset($position) and !empty($position)) - $to['position'] = (int)($position); - - return (Db::getInstance()->execute(' - UPDATE `'._DB_PREFIX_.'hook_module` - SET `position`= position '.($way ? '-1' : '+1').' - WHERE position between '.(int)(min(array($from['position'], $to['position']))) .' AND '.(int)(max(array($from['position'], $to['position']))).' - AND `id_hook`='.(int)($from['id_hook'])) - AND - Db::getInstance()->execute(' - UPDATE `'._DB_PREFIX_.'hook_module` - SET `position`='.(int)($to['position']).' - WHERE `'.pSQL($this->identifier).'` = '.(int)($from[$this->identifier]).' AND `id_hook`='.(int)($to['id_hook'])) - ); - } - - /* - * Reorder modules position - * - * @param boolean $id_hook Hook ID - */ - public function cleanPositions($id_hook) - { - $result = Db::getInstance()->executeS(' - SELECT `id_module` - FROM `'._DB_PREFIX_.'hook_module` - WHERE `id_hook` = '.(int)($id_hook).' - ORDER BY `position`'); - $sizeof = sizeof($result); - for ($i = 0; $i < $sizeof; ++$i) - Db::getInstance()->execute(' - UPDATE `'._DB_PREFIX_.'hook_module` - SET `position` = '.(int)($i + 1).' - WHERE `id_hook` = '.(int)($id_hook).' - AND `id_module` = '.(int)($result[$i]['id_module'])); - return true; - } - - /* - * Return module position for a given hook - * - * @param boolean $id_hook Hook ID - * @return integer position - */ - public function getPosition($id_hook) - { - if(isset(Hook::$preloadModulesFromHooks)) - if(isset(Hook::$preloadModulesFromHooks[$id_hook])) - if(isset(Hook::$preloadModulesFromHooks[$id_hook]['module_position'][$this->id])) - return Hook::$preloadModulesFromHooks[$id_hook]['module_position'][$this->id]; - else - return 0; - $result = Db::getInstance()->getRow(' - SELECT `position` - FROM `'._DB_PREFIX_.'hook_module` - WHERE `id_hook` = '.(int)($id_hook).' - AND `id_module` = '.(int)($this->id)); - return $result['position']; - } - - public function displayError($error) - { - $output = ' -
- '.$error.' -
'; - $this->error = true; - return $output; - } - - public function displayConfirmation($string) - { - $output = ' -
- '.$string.' -
'; - return $output; - } - - /* - * Return exceptions for module in hook - * - * @param int $id_hook Hook ID - * @return array Exceptions - */ - protected static $exceptionsCache = NULL; - public function getExceptions($id_hook) - { - if (self::$exceptionsCache == NULL AND !is_array(self::$exceptionsCache)) - { - self::$exceptionsCache = array(); - $result = Db::getInstance()->executeS(' - SELECT CONCAT(id_hook, \'-\', id_module) as `key`, `file_name` as value - FROM `'._DB_PREFIX_.'hook_module_exceptions`'); - foreach ($result as $row) - { - if (empty($row['value'])) - continue; - if (!array_key_exists($row['key'], self::$exceptionsCache)) - self::$exceptionsCache[$row['key']] = array(); - self::$exceptionsCache[$row['key']][] = array('file_name' => $row['value']); - } - } - return (array_key_exists((int)($id_hook).'-'.(int)($this->id), self::$exceptionsCache) ? self::$exceptionsCache[(int)($id_hook).'-'.(int)($this->id)] : array()); - } - - public static function isInstalled($moduleName) - { - Db::getInstance()->executeS('SELECT `id_module` FROM `'._DB_PREFIX_.'module` WHERE `name` = \''.pSQL($moduleName).'\''); - return (bool)Db::getInstance()->NumRows(); - } - - public function isRegisteredInHook($hook) - { - if (!$this->id) - return false; - - return Db::getInstance()->getValue(' - SELECT COUNT(*) - FROM `'._DB_PREFIX_.'hook_module` hm - LEFT JOIN `'._DB_PREFIX_.'hook` h ON (h.`id_hook` = hm.`id_hook`) - WHERE h.`name` = \''.pSQL($hook).'\' - AND hm.`id_module` = '.(int)($this->id) - ); - } - - /* - ** Template management (display, overload, cache) - */ - protected static function _isTemplateOverloadedStatic($moduleName, $template) - { - if (Tools::file_exists_cache(_PS_THEME_DIR_.'modules/'.$moduleName.'/'.$template)) - return true; - elseif (Tools::file_exists_cache(_PS_MODULE_DIR_.$moduleName.'/'.$template)) - return false; - return NULL; - } - - protected function _isTemplateOverloaded($template) - { - return self::_isTemplateOverloadedStatic($this->name, $template); - } - - public static function display($file, $template, $cacheId = NULL, $compileId = NULL) - { - global $smarty; - - $smarty->assign('module_dir', __PS_BASE_URI__.'modules/'.basename($file, '.php').'/'); - if (($overloaded = self::_isTemplateOverloadedStatic(basename($file, '.php'), $template)) === NULL) - $result = Tools::displayError('No template found for module').' '.basename($file,'.php'); - else - { - $smarty->assign('module_template_dir', ($overloaded ? _THEME_DIR_ : __PS_BASE_URI__).'modules/'.basename($file, '.php').'/'); - $result = $smarty->fetch(($overloaded ? _PS_THEME_DIR_.'modules/'.basename($file, '.php') : _PS_MODULE_DIR_.basename($file, '.php')).'/'.$template, $cacheId, $compileId); - } - return $result; - } - - protected function _getApplicableTemplateDir($template) - { - return $this->_isTemplateOverloaded($template) ? _PS_THEME_DIR_ : _PS_MODULE_DIR_.$this->name.'/'; - } - - public function isCached($template, $cacheId = NULL, $compileId = NULL) - { - global $smarty; - - return $smarty->isCached($this->_getApplicableTemplateDir($template).$template, $cacheId, $compileId); - } - - protected function _clearCache($template, $cacheId = NULL, $compileId = NULL) - { - global $smarty; - - return $smarty->clearCache($template ? $this->_getApplicableTemplateDir($template).$template : NULL, $cacheId, $compileId); - } - - protected function _generateConfigXml() - { - $xml = ' - - '.$this->name.' - displayName).']]> - version.']]> - description).']]> - author).']]> - tab).']]>'.(isset($this->confirmUninstall) ? "\n\t".''.$this->confirmUninstall.'' : '').' - '.(int)method_exists($this, 'getContent').' - '.(int)$this->need_instance.''.(isset($this->limited_countries) ? "\n\t".''.(sizeof($this->limited_countries) == 1 ? $this->limited_countries[0] : '').'' : '').' -'; - if (is_writable(_PS_MODULE_DIR_.$this->name.'/')) - file_put_contents(_PS_MODULE_DIR_.$this->name.'/config.xml', utf8_encode($xml)); - } - - /** - * @param string $hook_name - * @return bool if module can be transplanted on hook - */ - public function isHookableOn($hook_name) - { - return is_callable(array($this, 'hook'.ucfirst($hook_name))); - } -} - diff --git a/install-dev/classes/ToolsInstall.php b/install-dev/classes/ToolsInstall.php deleted file mode 100644 index 208c76253..000000000 --- a/install-dev/classes/ToolsInstall.php +++ /dev/null @@ -1,208 +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 ToolsInstall -{ - /** - * checkDB will call to the - * - * @param string $srv - * @param string $login - * @param string $password - * @param string $name - * @param string $posted - * @return void - */ - public static function checkDB ($srv, $login, $password, $name, $posted = true) - { - // Don't include theses files if classes are already defined - if (!class_exists('Validate', false)) - { - include_once(INSTALL_PATH.'/../classes/Validate.php'); - eval('class Validate extends ValidateCore{}'); - } - - if (!class_exists('Db', false)) - { - include_once(INSTALL_PATH.'/../classes/db/Db.php'); - eval('abstract class Db extends DbCore{}'); - } - - if (!class_exists('MySQL', false)) - { - include_once(INSTALL_PATH.'/../classes/db/MySQL.php'); - eval('class MySQL extends MySQLCore{}'); - } - - if ($posted) - { - // Check POST data... - $data_check = array( - !isset($_GET['server']) OR empty($_GET['server']) OR !Validate::isUrl($_GET['server']), - !isset($_GET['engine']) OR empty($_GET['engine']) OR !Validate::isMySQLEngine($_GET['engine']), - !isset($_GET['name']) OR empty($_GET['name']) OR !Validate::isUnixName($_GET['name']), - !isset($_GET['login']) OR empty($_GET['login']) OR !Validate::isUnixName($_GET['login']), - !isset($_GET['password']), - (!isset($_GET['tablePrefix']) OR !Validate::isTablePrefix($_GET['tablePrefix'])) && !empty($_GET['tablePrefix']), - ); - - foreach ($data_check AS $data) - if ($data) - return 8; - } - - switch (Db::checkConnection(trim($srv), trim($login), trim($password), trim($name))) - { - case 0: - if (Db::checkEncoding(trim($srv), trim($login), trim($password))) - return true; - return 49; - break; - case 1: - return 25; - break; - case 2: - return 24; - break; - case 3: - return 50; - break; - } - } - - public static function getHttpHost($http = false, $entities = false, $ignore_port = false) - { - $host = (isset($_SERVER['HTTP_X_FORWARDED_HOST']) ? $_SERVER['HTTP_X_FORWARDED_HOST'] : $_SERVER['HTTP_HOST']); - if ($ignore_port && $pos = strpos($host, ':')) - $host = substr($host, 0, $pos); - if ($entities) - $host = htmlspecialchars($host, ENT_COMPAT, 'UTF-8'); - if ($http) - $host = 'http://'.$host; - return $host; - } - - public static function sendMail($smtpChecked, $smtpServer, $content, $subject, $type, $to, $from, $smtpLogin, $smtpPassword, $smtpPort = 25, $smtpEncryption) - { - require_once(INSTALL_PATH.'/../tools/swift/Swift.php'); - require_once(INSTALL_PATH.'/../tools/swift/Swift/Connection/SMTP.php'); - require_once(INSTALL_PATH.'/../tools/swift/Swift/Connection/NativeMail.php'); - - $swift = NULL; - $result = NULL; - try - { - if($smtpChecked) - { - - $smtp = new Swift_Connection_SMTP($smtpServer, $smtpPort, ($smtpEncryption == "off") ? Swift_Connection_SMTP::ENC_OFF : (($smtpEncryption == "tls") ? Swift_Connection_SMTP::ENC_TLS : Swift_Connection_SMTP::ENC_SSL)); - $smtp->setUsername($smtpLogin); - $smtp->setpassword($smtpPassword); - $smtp->setTimeout(5); - $swift = new Swift($smtp); - } - else - $swift = new Swift(new Swift_Connection_NativeMail()); - - $message = new Swift_Message($subject, $content, $type); - - if ($swift->send($message, $to, $from)) - $result = true; - else - $result = 999; - - $swift->disconnect(); - } - catch (Swift_Connection_Exception $e) - { - $result = $e->getCode(); - } - catch (Swift_Message_MimeException $e) - { - $result = $e->getCode(); - } - return $result; - } - - public static function getNotificationMail($shopName, $shopUrl, $shopLogo, $firstname, $lastname, $password, $email) - { - $iso_code = $_GET['isoCodeLocalLanguage']; - $pathTpl = INSTALL_PATH.'/../mails/en/employee_password.html'; - $pathTplLocal = INSTALL_PATH.'/../mails/'.$iso_code.'/employee_password.html'; - - $content = (file_exists($pathTplLocal)) ? file_get_contents($pathTplLocal) : file_get_contents($pathTpl); - $content = str_replace('{shop_name}', $shopName, $content); - $content = str_replace('{shop_url}', $shopUrl, $content); - $content = str_replace('{shop_logo}', $shopLogo, $content); - $content = str_replace('{firstname}', $firstname, $content); - $content = str_replace('{lastname}', $lastname, $content); - $content = str_replace('{passwd}', $password, $content); - $content = str_replace('{email}', $email, $content); - return $content; - } - - public static function getLangString($idLang) - { - switch ($idLang) - { - case 'en' : return 'English (English)'; - case 'fr' : return 'Français (French)'; - } - } - - static function strtolower($str) - { - if (function_exists('mb_strtolower')) - return mb_strtolower($str, 'utf-8'); - return strtolower($str); - } - - static function strtoupper($str) - { - if (function_exists('mb_strtoupper')) - return mb_strtoupper($str, 'utf-8'); - return strtoupper($str); - } - - static function ucfirst($str) - { - return self::strtoupper(self::substr($str, 0, 1)).self::substr($str, 1); - } - - static function substr($str, $start, $length = false, $encoding = 'utf-8') - { - if (function_exists('mb_substr')) - return mb_substr($str, $start, ($length === false ? self::strlen($str) : $length), $encoding); - return substr($str, $start, $length); - } - - static function strlen($str) - { - if (function_exists('mb_strlen')) - return mb_strlen($str, 'utf-8'); - return strlen($str); - } -} diff --git a/install-dev/classes/index.php b/install-dev/classes/index.php deleted file mode 100644 index 4e2611d37..000000000 --- a/install-dev/classes/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/controller.js b/install-dev/controller.js deleted file mode 100644 index 5a3590b8e..000000000 --- a/install-dev/controller.js +++ /dev/null @@ -1,1070 +0,0 @@ -/* -* 2007-2011 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Open Software License (OSL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/osl-3.0.php -* If you did not receive a copy of the license and are unable to -* obtain it through the world-wide-web, please send an email -* to license@prestashop.com so we can send you a copy immediately. -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade PrestaShop to newer -* versions in the future. If you wish to customize PrestaShop for your -* needs please refer to http://www.prestashop.com for more information. -* -* @author PrestaShop SA -* @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 -*/ - -//constant -verifMailREGEX = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/; -verifNameREGEX = /^[^0-9!<>,;?=+()@#"°{}_$%:]*$/; - -var errorOccured = false; - -//params -configIsOk = false; -createdBase = false; -mailIsOk = false; -smtpChecked = false; -validShopInfos = false; -upgradeCertify = false; -dropdb=false; -application="install"; -customModule="desactivate"; - -function nextTab() -{ - if(verifyThisStep()) - { - showStep(step+1, 'next'); - } -} -function backTab() -{ - if (step != 6) { - showStep(step - 1, 'back'); - } - else { - constructInstallerTabs(); - showStep(1, 'back'); - } -} - -function showStep(aStep, way) -{ - step = aStep; - - //show the sheet - $('div.sheet.shown').fadeOut('fast', function() { - $($('div.sheet')[(step-1)]).fadeIn('slow').addClass('shown'); - }).removeClass('shown'); - - //upgrade the tab - $('#tabs li') - .removeClass("selected") - .removeClass("finished"); - if (step < 6) { - if (step == 5) - $('#tabs li:nth-child(' + step + ')').addClass("finished"); - else - $('#tabs li:nth-child(' + step + ')').addClass("selected"); - $('#tabs li:lt(' + (step - 1) + ')').addClass("finished"); - } - else - { - switch (step) - { - - case 6 : - $('#tabs li:nth-child(1)').removeClass("selected").addClass("finished"); - $('#tabs li:nth-child(2)').addClass("selected").removeClass("finished"); - $('#tabs li:nth-child(3)').removeClass("selected").removeClass("finished"); - $('#tabs li:nth-child(4)').removeClass("selected").removeClass("finished"); - break; - - case 7 : - $('#tabs li:nth-child(1)').removeClass("selected").addClass("finished"); - $('#tabs li:nth-child(2)').removeClass("selected").addClass("finished"); - $('#tabs li:nth-child(3)').addClass("selected").removeClass("finished"); - $('#tabs li:nth-child(4)').removeClass("selected").removeClass("finished"); - break; - - case 8 : - $('#tabs li:nth-child(1)').removeClass("selected").addClass("finished"); - $('#tabs li:nth-child(2)').removeClass("selected").addClass("finished"); - $('#tabs li:nth-child(3)').addClass("selected").removeClass("finished"); - $('#tabs li:nth-child(4)').removeClass("selected").removeClass("finished"); - break; - - case 9 : - $('#tabs li:nth-child(1)').removeClass("selected").addClass("finished"); - $('#tabs li:nth-child(2)').removeClass("selected").addClass("finished"); - $('#tabs li:nth-child(3)').removeClass("selected").addClass("finished"); - $('#tabs li:nth-child(4)').addClass("finished"); - break; - - } - } - - //title of the window and buttons - switch(step) - { - case 1 : - document.title = Step1Title; - $("#btBack") - .attr("disabled", "disabled") - .addClass("disabled") - .show('slow'); - $("#btNext") - .removeAttr("disabled") - .removeClass("disabled") - .show('slow'); - break; - - case 2: - document.title = step2title; - application = "install"; - if (way == 'next') - verifyAndSetRequire(1); - else - verifyAndSetRequire(0); - $("#btBack") - .removeAttr("disabled") - .removeClass("disabled") - .show('slow'); - break; - - case 3: - document.title = step3title; - $("#btBack") - .removeAttr("disabled") - .removeClass("disabled") - .show('slow'); - break; - - case 4: - document.title = step4title; - $("#btBack") - .attr("disabled", "disabled") - .addClass("disabled") - .hide('slow'); - break; - - case 5 : - document.title = step5title; - $("#btBack") - .attr("disabled", "disabled") - .addClass("disabled") - .hide('slow'); - $("#btNext").hide('slow'); - break; - - case 6 : - document.title = step6title; - application = "update"; - if (!upgradeCertify) { - $("#btNext") - .attr("disabled", "disabled") - .addClass("disabled"); - } else { - $("#btNext") - .removeAttr("disabled") - .removeClass("disabled"); - } - $("#btBack") - .removeAttr("disabled") - .removeClass("disabled") - .show('slow'); - break; - - case 7: - document.title = step7title; - verifyAndSetRequire(0); - $("#btBack") - .removeAttr("disabled") - .removeClass("disabled") - .show('slow'); - break; - - case 8 : - document.title = step8title; - $("#btNext") - .attr("disabled", "disabled") - .addClass("disabled"); - $("#btBack") - .removeAttr("disabled") - .removeClass("disabled") - .show('slow'); - break; - - case 9 : - document.title = step9title; - $("#btBack").hide(); - $("#btNext").hide(); - break; - } -} - -function verifyThisStep() -{ - switch (step) - { - case 1 : - if($("#formSetMethod input[type=radio]:checked").val() == "install" ){ - showStep(2, 'next'); - } - else - { - constructUpdaterTabs(); - showStep(6, 'next'); - } - return false; - break; - - case 2 : - return configIsOk; - break; - - case 3 : - createDB(); - return false; - break; - - case 4 : - verifyShopInfos(); - return validShopInfos; - break; - - case 6 : - return true; - break; - - case 7 : - doUpgrade(); - break; - - } - -} - -function setInstallerLanguage () -{ - $('#formSetInstallerLanguage').submit(); -} - -function verifyAndSetRequire(firsttime) -{ - $("div#"+(application == "install" ? "sheet_require" : "sheet_require_update")+" > ul").slideUp("1500"); - $.ajax( - { - url: "model.php", - data: "method=checkConfig&firsttime="+firsttime, - success: function(ret) - { - isUpdate = application == "install" ? "" : "_update"; - testLists = ret.getElementsByTagName('testList'); - - configIsOk = true; - - testListRequired = testLists[0].getElementsByTagName('test'); - for (i = 0; i < testListRequired.length; i++){ - result = testListRequired[i].getAttribute("result"); - $($("div#sheet_require"+isUpdate+" > ul#required"+isUpdate+" .required")[i]) - .removeClass( (result == "fail") ? "ok" : "fail" ) - .addClass(result); - if (result == "fail") configIsOk = false; - } - - testListOptional = testLists[1].getElementsByTagName('test'); - optionalIsOk = true - - for (i = 0; i < testListOptional.length; i++){ - result = testListOptional[i].getAttribute("result"); - $($("div#sheet_require"+isUpdate+" > ul#optional"+isUpdate+" li.optional")[i]) - .removeClass( (result == "fail") ? "ok" : "fail" ) - .addClass(result); - if (result == "fail") optionalIsOk = false; - } - - if (!configIsOk) { - $('#btNext').attr({'disabled':'disabled','class':'button little disabled'}); - $('h3#resultConfig'+isUpdate).html(txtConfigIsNotOk).removeClass('okBlock').addClass('errorBlock').slideDown('slow'); - $('h3#resultConfigHelper').show(); - $("div#sheet_require"+isUpdate+" > ul").slideDown("1500"); - $('#stepList_2 li:contains("Etape 2")').addClass('ko'); - } else { - $("#btNext").removeAttr('disabled'); - $('#btNext').removeClass('disabled'); - $("input#btNext").focus(); - var firsttime = ret.getElementsByTagName('firsttime'); - if (firsttime && firsttime[0].getAttribute("value") == 1 && optionalIsOk) - $("input#btNext").click(); - else - { - $('h3#resultConfig'+isUpdate).html(txtConfigIsOk).removeClass('errorBlock').addClass('okBlock').slideDown('slow'); - $('h3#resultConfigHelper').hide(); - $("div#sheet_require"+isUpdate+" > ul").slideDown("1500"); - $('#stepList_2 li:contains("Etape 2")').removeClass('ko'); - } - } - } - } - ); -} - -function verifyDbAccess () -{ - //local verifications - if($("#dbServer[value=]").length > 0) - { - $("#dbResultCheck").addClass("errorBlock").removeClass("okBlock").removeClass('infosBlock').html(txtDbServerEmpty).slideDown('slow'); - $('#stepList_3 li:contains("Etape 3")').addClass('ko'); - return false; - } - else - { - $("#dbResultCheck").removeClass("errorBlock").removeClass("okBlock").removeClass('infosBlock').html(''); - $('#stepList_3 li:contains("Etape 3")').removeClass('ko'); - } - - if($("#dbLogin[value=]").length > 0) - { - $("#dbResultCheck").addClass("errorBlock").removeClass("okBlock").removeClass('infosBlock').html(txtDbLoginEmpty).slideDown('slow'); - $('#stepList_3 li:contains("Etape 3")').addClass('ko'); - return false; - } - else - { - $("#dbResultCheck").removeClass("errorBlock").removeClass("okBlock").removeClass('infosBlock').html(''); - $('#stepList_3 li:contains("Etape 3")').removeClass('ko'); - } - - if($("#dbName[value=]").length > 0) - { - $("#dbResultCheck").addClass("errorBlock").removeClass("okBlock").removeClass('infosBlock').html(txtDbNameEmpty).slideDown('slow'); - $('#stepList_3 li:contains("Etape 3")').addClass('ko'); - return false; - } - else - { - $("#dbResultCheck").removeClass("errorBlock").removeClass("okBlock").removeClass('infosBlock').html(''); - $('#stepList_3 li:contains("Etape 3")').removeClass('ko'); - } - - //external verifications and sets - $.ajax( - { - cache: false, - url: "model.php", - data: - "method=checkDB" - +"&server="+ $("#dbServer").val() - +"&login="+ $("#dbLogin").val() - +"&password="+encodeURIComponent($("#dbPassword").val()) - +"&engine="+$("#dbEngine option:selected").val() - + "&name=" + $("#dbName").val() - + "&tablePrefix=" + encodeURIComponent($("#db_prefix").val()), - success: function(ret) - { - ret = ret.getElementsByTagName('action')[0]; - if (ret.getAttribute("result") == "ok") - { - $("#dbResultCheck") - .addClass("okBlock") - .removeClass("errorBlock") - .html(txtError[23]) - .slideDown('slow'); - $("#dbCreateResultCheck") - .slideUp('slow'); - $('#stepList_3 li:contains("Etape 3")').removeClass('ko'); - } else - { - $("#dbResultCheck") - .addClass("errorBlock") - .removeClass("okBlock") - .html(txtError[parseInt(ret.getAttribute("error"))]) - .slideDown('slow'); - $("#dbCreateResultCheck") - .slideUp('slow'); - $('#stepList_3 li:contains("Etape 3")').addClass('ko'); - } - } - } - ); - -} - -function createDB() -{ - $("#dbResultCheck").hide(); - $.ajax( - { - url: "model.php", - cache: false, - data: - "method=createDB" - +"&tablePrefix="+ $("#db_prefix").val() - +"&mode="+ $("#dbTableParam input[type=radio]:checked").val()+ - "&type=MySQL"+ - "&server="+ $("#dbServer").val()+ - "&login="+ $("#dbLogin").val()+ - "&password="+encodeURIComponent($("#dbPassword").val())+ - "&engine="+$("#dbEngine option:selected").val()+ - "&name="+ $("#dbName").val()+ - "&language="+ id_lang+ - (dropdb ? "&dropAndCreate=true" : '') - , - success: function(ret) - { - var action_ret; - try { - action_ret = ret.getElementsByTagName('action')[0]; - } catch (e) { - $("#dbCreateResultCheck") - .addClass("errorBlock") - .removeClass("okBlock") - .removeClass('infosBlock') - .html(ret) - .show(); - $('#stepList_3 li:contains("Etape 3")').addClass('ko'); - return; - } - if (action_ret.getAttribute("result") == "ok") - { - var countries_ret = ret.getElementsByTagName('country'); - var timezone_ret = ret.getElementsByTagName('timezone'); - var html = ''; - for (i = 0; countries_ret[i]; i=i+1) - { - html = html + ''; - } - $('#infosCountry').append(html); - html = ''; - for (i = 0; timezone_ret[i]; i=i+1) - { - html = html + ''; - } - $('#infosTimezone').append(html); - showStep(step+1, 'next'); - } - else - { - if (action_ret.getAttribute("error") == "11") - { - $("#dbCreateResultCheck") - .addClass("errorBlock") - .removeClass("okBlock") - .removeClass('infosBlock') - .html( - txtError[11]+ "
\'"+ - action_ret.getAttribute("sqlQuery") + "\'
"+ - action_ret.getAttribute("sqlMsgError") + "(" + txtError[18] + " : " + action_ret.getAttribute("sqlNumberError") +")" - ) - .show(); - } - else - { - $("#dbCreateResultCheck") - .addClass("errorBlock") - .removeClass("okBlock") - .removeClass('infosBlock') - .html(txtError[parseInt(action_ret.getAttribute("error"))]) - .show(); - } - $('#stepList_3 li:contains("Etape 3")').addClass('ko'); - } - } - }); -} - - -function verifyMail() -{ - //local verifications - if ($("#testEmail[value=]").length > 0) - { - $("#mailResultCheck").addClass("errorBlock").removeClass("okBlock").removeClass('infosBlock').html(txtError[0]); - return false; - } - else if (!verifMailREGEX.test( $("#testEmail").val() )) - { - $("#mailResultCheck").addClass("errorBlock").removeClass("okBlock").removeClass('infosBlock').html(txtError[3]); - return false; - } - else - { - if (smtpChecked) - { - //local verifications - if($("#smtpSrv[value=]").length > 0) - { - $("#mailResultCheck").addClass("errorBlock").removeClass("okBlock").removeClass('infosBlock').html(txtSmtpSrvEmpty); - smtpIsOk = false; - return false; - } - } - - //external verifications and sets - $.ajax( - { - url: "model.php", - cache: false, - data: - "method=checkMail"+ - "&mailMethod= "+(smtpChecked ? "smtp" : "native")+ - "&smtpSrv="+ $("input#smtpSrv").val()+ - "&testEmail="+ $("#testEmail").val()+ - "&smtpLogin="+ $("input#smtpLogin").val()+ - "&smtpPassword="+ $("input#smtpPassword").val()+ - "&smtpPort="+ $("input#smtpPort").val()+ - "&smtpEnc="+ $("select#smtpEnc option:selected").val()+ - "&testMsg="+testMsg+ - "&testSubject="+testSubject - , - success: function(ret) - { - ret = ret.getElementsByTagName('action')[0]; - - if (ret.getAttribute("result") == "ok") - { - $('#mailResultCheck').addClass("okBlock").removeClass("errorBlock").removeClass('infosBlock').html(mailSended+' '+$('#testEmail').val()); - $('#mailResultCheck').css('margin-top', '10px'); - mailIsOk = true; - } - else - { - mailIsOk = false; - $("#mailResultCheck").addClass("errorBlock").removeClass("okBlock").removeClass('infosBlock').html(txtError[26]); - $('#mailResultCheck').css('margin-top', '10px'); - } - } - } - ); - } -} - -function uploadLogo () -{ - $.ajaxFileUpload - ( - { - url:'xml/uploadLogo.php', - secureuri:false, - fileElementId:'fileToUpload', - dataType: 'json', - success: function (data, status) - { - if(typeof(data.error) != 'undefined') - { - $("#uploadedImage").slideUp('slow', function() - { - if(data.error != '') - { - $("#resultInfosLogo").html( txtError[parseInt(data.error)] ).addClass("errorBlock").show(); - } - else - { - $(this).attr('src', ps_base_uri + 'img/logo.jpg?' + (new Date())) - $(this).show('slow'); - $("#resultInfosLogo").html("").removeClass("errorBlock").hide(); - } - }); - } - }, - error: function (data, status, e) - { - $("#uploadedImage").attr('src', ps_base_uri + 'img/logo.jpg?' + (new Date())); - $("#resultInfosLogo").html("").addClass("errorBlock"); - } - } - ) -} - -function moveLanguage(direction) -{ - - switch (direction) - { - - case "al2wl" : - $("#aLList option:selected").each( - function() - { - $(this).appendTo("#wLList"); - $(this).clone().prependTo("#dLList"); - } - ); - - break; - - case "wl2al" : - if ($("#wLList option").length > 1) - { - $("#wLList option:selected").each( - function() - { - if($(this).val() != "en" ) - { - $(this).appendTo("#aLList"); - $("#dLList option[value = '" + $(this).attr('value') + "']").remove(); - } - } - ); - } - break; - } -} - -function ajaxRefreshField(ret, idResultField, fieldMsg) -{ - var pattern = 'field[id='+idResultField+']'; - var result = $(ret).children().find(pattern).attr('result'); - var error = $(ret).children().find(pattern).attr('error'); - - if (error === undefined || result === undefined) - return true; - - if (result != 'ok') - { - $('#'+fieldMsg).html(txtError[parseInt(error)]).addClass('errorBlock').show('slow'); - if (validShopInfos) - $('#'+idResultField).focus(); - return false; - } - else - { - $('#'+fieldMsg).html('').removeClass('errorBlock').show('slow'); - return true; - } -} - -function verifyShopInfos() -{ - urlLanguages = ""; - $("#wLList option").each( - function() - { - urlLanguages += "&infosWL[]=" + $(this).val(); - } - ); - urlLanguages += "&infosDL[]=" + $("#dLList option:selected").val(); - - $.ajax( - { - url: 'model.php', - async: true, - cache: false, - data: - "method=checkShopInfos"+ - "&isoCode="+isoCodeLocalLanguage+ - "&infosActivity="+ encodeURIComponent($("select#infosActivity").val())+ - "&infosCountry="+ encodeURIComponent($("select#infosCountry").val())+ - "&infosTimezone="+ encodeURIComponent($("select#infosTimezone").val())+ - "&infosShop="+ encodeURIComponent($("input#infosShop").val())+ - "&infosFirstname="+ encodeURIComponent($("input#infosFirstname").val())+ - "&infosName="+ encodeURIComponent($("input#infosName").val())+ - "&infosEmail="+ encodeURIComponent($("input#infosEmail").val())+ - "&infosPassword="+ encodeURIComponent($("input#infosPassword").val())+ - "&infosPasswordRepeat="+ encodeURIComponent($("input#infosPasswordRepeat").val())+ - "&infosNotification="+ ( ($("#infosNotification:checked").length > 0) ? "on" : "off" )+ - "&countryName="+encodeURIComponent($("select#infosCountry option:selected").attr('rel'))+ - urlLanguages+ - "&catalogMode="+ encodeURIComponent($("input[name=catalogMode]:checked").val())+ - "&infosMailMethod=" + ((smtpChecked) ? "smtp" : "native")+ - "&smtpSrv="+ encodeURIComponent($("input#smtpSrv").val())+ - "&smtpLogin="+ encodeURIComponent($("input#smtpLogin").val())+ - "&smtpPassword="+ encodeURIComponent($("input#smtpPassword").val())+ - "&smtpPort="+ encodeURIComponent($("input#smtpPort").val())+ - "&smtpEnc="+ encodeURIComponent($("select#smtpEnc option:selected").val())+ - "&mailSubject="+ encodeURIComponent(mailSubject)+ - "&isoCodeLocalLanguage="+isoCodeLocalLanguage, - success: function(ret) - { - validShopInfos = true; - if (!ajaxRefreshField(ret, 'infosShop', 'resultInfosShop')) validShopInfos = false; - else if (!ajaxRefreshField(ret, 'infosCountry', 'resultInfosCountry')) validShopInfos = false; - else if (!ajaxRefreshField(ret, 'infosTimezone', 'resultInfosTimezone')) validShopInfos = false; - else if (!ajaxRefreshField(ret, 'validateShop', 'resultInfosShop')) validShopInfos = false; - else if (!ajaxRefreshField(ret, 'infosFirstname', 'resultInfosFirstname')) validShopInfos = false; - else if (!ajaxRefreshField(ret, 'infosName', 'resultInfosName')) validShopInfos = false; - else if (!ajaxRefreshField(ret, 'infosEmail', 'resultInfosEmail')) validShopInfos = false; - else if (!ajaxRefreshField(ret, 'infosPassword', 'resultInfosPassword')) validShopInfos = false; - else if (!ajaxRefreshField(ret, 'infosPasswordRepeat', 'resultInfosPasswordRepeat')) validShopInfos = false; - else if (!ajaxRefreshField(ret, 'infosLanguages', 'resultInfosLanguages')) validShopInfos = false; - else if (!ajaxRefreshField(ret, 'infosSQL', 'resultInfosSQL')) validShopInfos = false; - else if (!ajaxRefreshField(ret, 'infosNotification', 'resultInfosNotification')) validShopInfos = false; - else if (!ajaxRefreshField(ret, 'validateFirstname', 'resultInfosFirstname')) validShopInfos = false; - else if (!ajaxRefreshField(ret, 'validateName', 'resultInfosName')) validShopInfos = false; - else if (!ajaxRefreshField(ret, 'validateCatalogMode', 'resultCatalogMode')) validCatalogMode = false; - else - { - $('#endShopName').html($('input#infosShop').val()); - $('#endFirstName').html($('input#infosFirstname').val()); - $('#endName').html($('input#infosName').val()); - $('#endEmail').html($('input#infosEmail').val()); - showStep(5); - } - } - } - ); -} - -function checkRequired(idResultSpan, resValue) -{ - if(resValue == "") - { - $(idResultSpan) - .show("slow") - .addClass("errorBlock") - .html(txtError[0]); - } - else - { - $(idResultSpan) - .hide("slow") - .removeClass("errorBlock") - .html(""); - } - } - -function autoCheckField(idField, idResultSpan, typeVerif) -{ - switch (typeVerif) - { - case "required" : - $(idField).blur(function() { checkRequired(idResultSpan, $(this).val()); }); - if (idField == '#infosCountry' || idField == '#infosTimezone') - $(idField).change(function() { checkRequired(idResultSpan, $(this).val()); }); - break; - - case "mailFormat" : - $(idField).blur( - function() - { - if (!verifMailREGEX.test( $(this).val() )) - { - $(idResultSpan) - .show("slow") - .addClass("errorBlock") - .html(txtError[3]); - } - else - { - $(idResultSpan) - .hide("slow") - .removeClass("errorBlock") - .html(""); - } - } - ); - break; - - case "firstnameFormat" : - $(idField).blur( - function() - { - if (!verifNameREGEX.test( $(this).val() )) - { - $(idResultSpan) - .show("slow") - .addClass("errorBlock") - .html(txtError[47]); - } - else - { - $(idResultSpan) - .hide("slow") - .removeClass("errorBlock") - .html(""); - } - } - ); - break; - - case "nameFormat" : - $(idField).blur( - function() - { - if (!verifNameREGEX.test( $(this).val() )) - { - $(idResultSpan) - .show("slow") - .addClass("errorBlock") - .html(txtError[48]); - } - else - { - $(idResultSpan) - .hide("slow") - .removeClass("errorBlock") - .html(""); - } - } - ); - break; - - default : return false; - } -} - -//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -//upgrader -//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -function constructUpdaterTabs() -{ - $("#tabs") - .empty() - .append("
  • "+txtTabUpdater1+"
  • ") - .append("
  • "+txtTabUpdater2+"
  • ") - .append("
  • "+txtTabUpdater3+"
  • ") - .append("
  • "+txtTabUpdater4+"
  • ") - ; - $(".installerVersion").hide(); - $(".updaterVersion").show(); -} - -function constructInstallerTabs() -{ - $("#tabs") - .empty() - .append("
  • "+txtTabInstaller1+"
  • ") - .append("
  • "+txtTabInstaller2+"
  • ") - .append("
  • "+txtTabInstaller3+"
  • ") - .append("
  • "+txtTabInstaller4+"
  • ") - .append("
  • "+txtTabInstaller5+"
  • ") - ; - $(".installerVersion").show(); - $(".updaterVersion").hide(); -} - -function doUpgrade() -{ - $.ajax( - { - url: "model.php", - cache: false, - data: - "method=doUpgrade&customModule=" + customModule+ "", - success: function(ret) - { - var ret; - try { - ret = ret.getElementsByTagName('action')[0]; - } catch (e) { - $("#resultUpdate").html(ret); - showStep(8); - return; - } - - var countSqlError = 0; - if (ret.getAttribute("result") == "ok" || (ret.getAttribute("result") == "fail" && (ret.getAttribute("error") == "34"))) - { - requests = ret.getElementsByTagName('request'); - $("#updateLog").empty(); - $("#updateLog").hide(); - $(requests).each(function() - { - var html = "
    " + $(this).children("sqlQuery").text(); - if($(this).attr("result") == "fail") - { - countSqlError++; - html += "
    (" + $(this).children("sqlNumberError").text() + ") " + $(this).children("sqlMsgError").text() + "
    "; - } - $("#updateLog").append(html+"

    "); - }); - if (ret.getAttribute("error") == "34") - $("#txtErrorUpdateSQL").html(txtError[35]+" "+countSqlError+" "+txtError[36]).show(); - showStep(9); - } - else - { - $("#resultUpdate").html(txtError[parseInt(ret.getAttribute("error"))]); - showStep(8); - } - }, - error: function (data, status, e) - { - $('#resultUpdate').html('

    Error during install/upgrade: '+data.responseText.replace(/<\/?[^>]+>/gi, '')+'

    You may have to:

    1. Fix the error(s) displayed
    2. Put your database backup
    3. Modify the file settings.inc.php to put the old version for the line with _PS_VERSION_
    4. Restart the upgrade process from the begining

    '); - $('#detailsError').html(data); - showStep(8); - } - }); -} - -function showUpdateLog(){ - $("div#updateLog").toggle('slow'); -} - - -//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// end upgrader -//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -//when ready.... -$(document).ready( - function() - { - //show container only if JS is available - $("#noJavaScript").hide(); - $("#container").show(); - - //ajax animation - $("#loaderSpace").ajaxStart( - function() - { - $(this).fadeIn('slow'); - $(this).children('div').fadeIn('slow'); - } - ); - $("#loaderSpace").ajaxComplete( - function(e, xhr, settings) - { - $(this).fadeOut('slow'); - $(this).children('div').fadeOut('slow'); - errorOccured = false; - } - ); - //set actions on clicks - $('#btNext').bind("click",nextTab); - $('#btBack').bind("click",backTab); - $('#btVerifyMail').bind("click",verifyMail); - - $('#al2wl, #wl2al').click( - function() - { - moveLanguage(this.id); - } - ); - $('#req_bt_refresh, #req_bt_refresh_update').click( - function() - { - verifyAndSetRequire(0); - } - ); - - //set SMTP pannels states - $("div#mailSMTPParam").hide(); - $("#set_stmp").bind("click", - function() - { - switch ($("input#set_stmp:checked").length) - { - case 0 : - $("div#mailSMTPParam").slideUp('slow'); - smtpChecked = false; - break; - case 1 : - $("div#mailSMTPParam").slideDown('slow'); - smtpChecked = true; - break; - } - } - ); - - //preset mail step 4 - $("#testEmail").change( - function() - { - $('#infosEmail').val( $(this).val() ); - } - ); - - //certification needed for upgrade - $('#btDisclaimerOk').click(function() - { - if ($(this).attr('checked')) - { - upgradeCertify = true; - $('#btNext').removeAttr('disabled').removeClass('disabled'); - $('#upgradeProcess').slideDown(500); - } - else - { - upgradeCertify = false; - $('#btNext').attr('disabled', 'disabled').addClass('disabled'); - $('#upgradeProcess').slideUp(500); - } - }); - - //autocheck fields - autoCheckField("#infosShop", "#resultInfosShop", "required"); - autoCheckField("#infosFirstname", "#resultInfosFirstname", "firstnameFormat"); - autoCheckField("#infosCountry", "#resultInfosCountry", "required"); - autoCheckField("#infosTimezone", "#resultInfosTimezone", "required"); - autoCheckField("#infosName", "#resultInfosName", "nameFormat"); - autoCheckField("#infosEmail", "#resultInfosEmail", "mailFormat"); - autoCheckField("#infosPassword", "#resultInfosPassword", "required"); - autoCheckField("#infosPasswordRepeat", "#resultInfosPasswordRepeat", "required"); - autoCheckField("#infosPasswordRepeat", "#resultInfosPassword", "required"); - - constructInstallerTabs(); - - //show 1st step - step=1; - $("input#btNext").focus(); - - // hide next button for licence validation - $("#btNext") - .attr("disabled", "disabled") - .addClass("disabled"); - - function checkLicenseButton(elt) - { - if ($(elt).is(':checked')) - { - $("#btNext") - .removeAttr('disabled') - .removeClass('disabled'); - } - else - { - $("#btNext") - .attr("disabled", "disabled") - .addClass("disabled"); - } - } - - $('#set_license').click(function() { - checkLicenseButton(this); - }); - $("#customModuleDesactivation").bind('click', - function(){ - if($("#customModuleDesactivation")[0].checked) - customModule = 'desactivate'; - else - customModule = 'take the risk'; - } - ) - } -); diff --git a/install-dev/img/01-gd100.png b/install-dev/img/01-gd100.png deleted file mode 100644 index 973481997..000000000 Binary files a/install-dev/img/01-gd100.png and /dev/null differ diff --git a/install-dev/img/01-pt100.png b/install-dev/img/01-pt100.png deleted file mode 100644 index a04e370c4..000000000 Binary files a/install-dev/img/01-pt100.png and /dev/null differ diff --git a/install-dev/img/01-pt70.png b/install-dev/img/01-pt70.png deleted file mode 100644 index ad00a8ee0..000000000 Binary files a/install-dev/img/01-pt70.png and /dev/null differ diff --git a/install-dev/img/02-gd100.png b/install-dev/img/02-gd100.png deleted file mode 100644 index 48eb1bb30..000000000 Binary files a/install-dev/img/02-gd100.png and /dev/null differ diff --git a/install-dev/img/02-pt100.png b/install-dev/img/02-pt100.png deleted file mode 100644 index ab6a27c00..000000000 Binary files a/install-dev/img/02-pt100.png and /dev/null differ diff --git a/install-dev/img/02-pt70.png b/install-dev/img/02-pt70.png deleted file mode 100644 index d84e1b7ec..000000000 Binary files a/install-dev/img/02-pt70.png and /dev/null differ diff --git a/install-dev/img/03-gd100.png b/install-dev/img/03-gd100.png deleted file mode 100644 index b4a20bafb..000000000 Binary files a/install-dev/img/03-gd100.png and /dev/null differ diff --git a/install-dev/img/03-pt100.png b/install-dev/img/03-pt100.png deleted file mode 100644 index 1b74f7d6a..000000000 Binary files a/install-dev/img/03-pt100.png and /dev/null differ diff --git a/install-dev/img/03-pt70.png b/install-dev/img/03-pt70.png deleted file mode 100644 index 7c63ad1c4..000000000 Binary files a/install-dev/img/03-pt70.png and /dev/null differ diff --git a/install-dev/img/04-gd100.png b/install-dev/img/04-gd100.png deleted file mode 100644 index 4eabafbbd..000000000 Binary files a/install-dev/img/04-gd100.png and /dev/null differ diff --git a/install-dev/img/04-pt100.png b/install-dev/img/04-pt100.png deleted file mode 100644 index 317ab7c97..000000000 Binary files a/install-dev/img/04-pt100.png and /dev/null differ diff --git a/install-dev/img/04-pt70.png b/install-dev/img/04-pt70.png deleted file mode 100644 index 5bcd74e8c..000000000 Binary files a/install-dev/img/04-pt70.png and /dev/null differ diff --git a/install-dev/img/05-gd100.png b/install-dev/img/05-gd100.png deleted file mode 100644 index 761328841..000000000 Binary files a/install-dev/img/05-gd100.png and /dev/null differ diff --git a/install-dev/img/05-pt100.png b/install-dev/img/05-pt100.png deleted file mode 100644 index efede9454..000000000 Binary files a/install-dev/img/05-pt100.png and /dev/null differ diff --git a/install-dev/img/05-pt70.png b/install-dev/img/05-pt70.png deleted file mode 100644 index 97b6180de..000000000 Binary files a/install-dev/img/05-pt70.png and /dev/null differ diff --git a/install-dev/img/ajax-loader.gif b/install-dev/img/ajax-loader.gif deleted file mode 100644 index d2afc328e..000000000 Binary files a/install-dev/img/ajax-loader.gif and /dev/null differ diff --git a/install-dev/img/bad.gif b/install-dev/img/bad.gif deleted file mode 100644 index adcfa44bb..000000000 Binary files a/install-dev/img/bad.gif and /dev/null differ diff --git a/install-dev/img/bg-body.png b/install-dev/img/bg-body.png deleted file mode 100644 index ce9aa4c97..000000000 Binary files a/install-dev/img/bg-body.png and /dev/null differ diff --git a/install-dev/img/bg-contentTitle.png b/install-dev/img/bg-contentTitle.png deleted file mode 100755 index db326df21..000000000 Binary files a/install-dev/img/bg-contentTitle.png and /dev/null differ diff --git a/install-dev/img/bg-ctnr.png b/install-dev/img/bg-ctnr.png deleted file mode 100644 index 431a99ea3..000000000 Binary files a/install-dev/img/bg-ctnr.png and /dev/null differ diff --git a/install-dev/img/bg-input-text.png b/install-dev/img/bg-input-text.png deleted file mode 100755 index 777517706..000000000 Binary files a/install-dev/img/bg-input-text.png and /dev/null differ diff --git a/install-dev/img/bg-li-headerLinks.png b/install-dev/img/bg-li-headerLinks.png deleted file mode 100755 index da414a8dd..000000000 Binary files a/install-dev/img/bg-li-headerLinks.png and /dev/null differ diff --git a/install-dev/img/bg-li-tabs-finished.png b/install-dev/img/bg-li-tabs-finished.png deleted file mode 100755 index 2a3e99d96..000000000 Binary files a/install-dev/img/bg-li-tabs-finished.png and /dev/null differ diff --git a/install-dev/img/bg-li-tabs.png b/install-dev/img/bg-li-tabs.png deleted file mode 100755 index 621237b7b..000000000 Binary files a/install-dev/img/bg-li-tabs.png and /dev/null differ diff --git a/install-dev/img/bg-phone_block.png b/install-dev/img/bg-phone_block.png deleted file mode 100755 index df8088484..000000000 Binary files a/install-dev/img/bg-phone_block.png and /dev/null differ diff --git a/install-dev/img/bg-tab.png b/install-dev/img/bg-tab.png deleted file mode 100644 index 20d2f2c1a..000000000 Binary files a/install-dev/img/bg-tab.png and /dev/null differ diff --git a/install-dev/img/bg_blockInfoEnd.png b/install-dev/img/bg_blockInfoEnd.png deleted file mode 100755 index fcc8d9a2a..000000000 Binary files a/install-dev/img/bg_blockInfoEnd.png and /dev/null differ diff --git a/install-dev/img/bg_bt_blockInfoEnd.png b/install-dev/img/bg_bt_blockInfoEnd.png deleted file mode 100755 index b23dd7c65..000000000 Binary files a/install-dev/img/bg_bt_blockInfoEnd.png and /dev/null differ diff --git a/install-dev/img/bg_field.png b/install-dev/img/bg_field.png deleted file mode 100644 index e1f4ecc10..000000000 Binary files a/install-dev/img/bg_field.png and /dev/null differ diff --git a/install-dev/img/bg_help.png b/install-dev/img/bg_help.png deleted file mode 100644 index f87116b86..000000000 Binary files a/install-dev/img/bg_help.png and /dev/null differ diff --git a/install-dev/img/bg_input_button.png b/install-dev/img/bg_input_button.png deleted file mode 100755 index 777517706..000000000 Binary files a/install-dev/img/bg_input_button.png and /dev/null differ diff --git a/install-dev/img/bg_li_stepList.png b/install-dev/img/bg_li_stepList.png deleted file mode 100755 index 98615f41d..000000000 Binary files a/install-dev/img/bg_li_stepList.png and /dev/null differ diff --git a/install-dev/img/bg_li_title.png b/install-dev/img/bg_li_title.png deleted file mode 100755 index 86b2c833c..000000000 Binary files a/install-dev/img/bg_li_title.png and /dev/null differ diff --git a/install-dev/img/bg_loaderSpace.png b/install-dev/img/bg_loaderSpace.png deleted file mode 100755 index f9da304b5..000000000 Binary files a/install-dev/img/bg_loaderSpace.png and /dev/null differ diff --git a/install-dev/img/bg_moduleTable_th.png b/install-dev/img/bg_moduleTable_th.png deleted file mode 100755 index 3c5db2d44..000000000 Binary files a/install-dev/img/bg_moduleTable_th.png and /dev/null differ diff --git a/install-dev/img/boutonpt-disabled.png b/install-dev/img/boutonpt-disabled.png deleted file mode 100644 index 8e5a14c19..000000000 Binary files a/install-dev/img/boutonpt-disabled.png and /dev/null differ diff --git a/install-dev/img/boutonpt-on.png b/install-dev/img/boutonpt-on.png deleted file mode 100644 index 17106acfd..000000000 Binary files a/install-dev/img/boutonpt-on.png and /dev/null differ diff --git a/install-dev/img/boutonpt-over.png b/install-dev/img/boutonpt-over.png deleted file mode 100644 index 851be19fe..000000000 Binary files a/install-dev/img/boutonpt-over.png and /dev/null differ diff --git a/install-dev/img/bt - Copie.png b/install-dev/img/bt - Copie.png deleted file mode 100755 index 291c6f85f..000000000 Binary files a/install-dev/img/bt - Copie.png and /dev/null differ diff --git a/install-dev/img/bt-dsbl - Copie.png b/install-dev/img/bt-dsbl - Copie.png deleted file mode 100755 index cb87b5c87..000000000 Binary files a/install-dev/img/bt-dsbl - Copie.png and /dev/null differ diff --git a/install-dev/img/bt-dsbl.png b/install-dev/img/bt-dsbl.png deleted file mode 100644 index 4be0c2aef..000000000 Binary files a/install-dev/img/bt-dsbl.png and /dev/null differ diff --git a/install-dev/img/bt-hover.png b/install-dev/img/bt-hover.png deleted file mode 100644 index 36859ca9b..000000000 Binary files a/install-dev/img/bt-hover.png and /dev/null differ diff --git a/install-dev/img/bt.png b/install-dev/img/bt.png deleted file mode 100644 index b877cfe9a..000000000 Binary files a/install-dev/img/bt.png and /dev/null differ diff --git a/install-dev/img/bt_off.png b/install-dev/img/bt_off.png deleted file mode 100755 index 9de735db7..000000000 Binary files a/install-dev/img/bt_off.png and /dev/null differ diff --git a/install-dev/img/bt_off_hover.png b/install-dev/img/bt_off_hover.png deleted file mode 100755 index a8507e95d..000000000 Binary files a/install-dev/img/bt_off_hover.png and /dev/null differ diff --git a/install-dev/img/btn-installeur.png b/install-dev/img/btn-installeur.png deleted file mode 100644 index cfc4709cc..000000000 Binary files a/install-dev/img/btn-installeur.png and /dev/null differ diff --git a/install-dev/img/bullet.png b/install-dev/img/bullet.png deleted file mode 100644 index 1da7af138..000000000 Binary files a/install-dev/img/bullet.png and /dev/null differ diff --git a/install-dev/img/ico_help.gif b/install-dev/img/ico_help.gif deleted file mode 100644 index 511538f8e..000000000 Binary files a/install-dev/img/ico_help.gif and /dev/null differ diff --git a/install-dev/img/index.php b/install-dev/img/index.php deleted file mode 100644 index 4e2611d37..000000000 --- a/install-dev/img/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/img/logo.png b/install-dev/img/logo.png deleted file mode 100644 index 8275cd876..000000000 Binary files a/install-dev/img/logo.png and /dev/null differ diff --git a/install-dev/img/ok.gif b/install-dev/img/ok.gif deleted file mode 100644 index 113588016..000000000 Binary files a/install-dev/img/ok.gif and /dev/null differ diff --git a/install-dev/img/ombrage-bas.png b/install-dev/img/ombrage-bas.png deleted file mode 100644 index 0451e3be5..000000000 Binary files a/install-dev/img/ombrage-bas.png and /dev/null differ diff --git a/install-dev/img/ombrage-droit.png b/install-dev/img/ombrage-droit.png deleted file mode 100644 index 60cee9e05..000000000 Binary files a/install-dev/img/ombrage-droit.png and /dev/null differ diff --git a/install-dev/img/phone.png b/install-dev/img/phone.png deleted file mode 100644 index 862e85be9..000000000 Binary files a/install-dev/img/phone.png and /dev/null differ diff --git a/install-dev/img/pict_error.png b/install-dev/img/pict_error.png deleted file mode 100755 index 1995f4523..000000000 Binary files a/install-dev/img/pict_error.png and /dev/null differ diff --git a/install-dev/img/pict_h3_infos.png b/install-dev/img/pict_h3_infos.png deleted file mode 100755 index 0d027aa06..000000000 Binary files a/install-dev/img/pict_h3_infos.png and /dev/null differ diff --git a/install-dev/img/pict_ok.png b/install-dev/img/pict_ok.png deleted file mode 100755 index 429fc1656..000000000 Binary files a/install-dev/img/pict_ok.png and /dev/null differ diff --git a/install-dev/img/puce.gif b/install-dev/img/puce.gif deleted file mode 100644 index d32f60750..000000000 Binary files a/install-dev/img/puce.gif and /dev/null differ diff --git a/install-dev/img/shadow-left.png b/install-dev/img/shadow-left.png deleted file mode 100644 index f3122811f..000000000 Binary files a/install-dev/img/shadow-left.png and /dev/null differ diff --git a/install-dev/img/visu_boBlock.png b/install-dev/img/visu_boBlock.png deleted file mode 100755 index cf892cc2a..000000000 Binary files a/install-dev/img/visu_boBlock.png and /dev/null differ diff --git a/install-dev/img/visu_foBlock.png b/install-dev/img/visu_foBlock.png deleted file mode 100755 index 8c09791dc..000000000 Binary files a/install-dev/img/visu_foBlock.png and /dev/null differ diff --git a/install-dev/index.php b/install-dev/index.php deleted file mode 100644 index 46548c4d8..000000000 --- a/install-dev/index.php +++ /dev/null @@ -1,1367 +0,0 @@ - -* @copyright 2007-2011 PrestaShop SA -* @version Release: $Revision: 7091 $ -* @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 in the past - -if (function_exists('date_default_timezone_set')) - date_default_timezone_set('Europe/Paris'); - -/* Redefine REQUEST_URI if empty (on some webservers...) */ -$_SERVER['REQUEST_URI'] = str_replace('//', '/', $_SERVER['REQUEST_URI']); -if (!isset($_SERVER['REQUEST_URI']) || $_SERVER['REQUEST_URI'] == '') - $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME']; -if ($tmp = strpos($_SERVER['REQUEST_URI'], '?')) - $_SERVER['REQUEST_URI'] = substr($_SERVER['REQUEST_URI'], 0, $tmp); - -define('INSTALL_VERSION', '1.5.0.4'); -define('MINIMUM_VERSION_TO_UPDATE', '0.8.5'); -define('INSTALL_PATH', dirname(__FILE__)); -if (version_compare(phpversion(), '5.0.0', '<')) -{ - echo ' - - - - - -

    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.

    - '; - die; -} - -require_once(dirname(__FILE__).'/../config/autoload.php'); -require_once(INSTALL_PATH.'/classes/ToolsInstall.php'); -require_once(INSTALL_PATH.'/classes/GetVersionFromDb.php'); - -/* Prevent from bad URI parsing when using index.php */ -$requestUri = str_replace('index.php', '', $_SERVER['REQUEST_URI']); -$tmpBaseUri = substr($requestUri, 0, -1 * (strlen($requestUri) - strrpos($requestUri, '/')) - strlen(substr(substr($requestUri,0,-1), strrpos( substr($requestUri,0,-1),"/" )+1))); -define('PS_BASE_URI', $tmpBaseUri[strlen($tmpBaseUri) - 1] == '/' ? $tmpBaseUri : $tmpBaseUri.'/'); -define('PS_BASE_URI_ABSOLUTE', 'http://'.ToolsInstall::getHttpHost(false, true).PS_BASE_URI); - -/* Old version detection */ -$oldversion = false; -$sameVersions = false; -$tooOld = true; -$installOfOldVersion = false; -if (file_exists(INSTALL_PATH.'/../config/settings.inc.php')) -{ - require_once(INSTALL_PATH.'/../config/settings.inc.php'); - $oldversion =_PS_VERSION_; - - // fix : complete version number if there is not all 4 numbers - // for example replace 1.4.3 by 1.4.3.0 - // consequences : file 1.4.3.0.sql will be skipped if oldversion = 1.4.3 - // @since 1.4.4.0 - $arrayVersion = preg_split('#\.#', $oldversion); - $versionNumbers = sizeof($arrayVersion); - - if ($versionNumbers != 4) - $arrayVersion = array_pad($arrayVersion, 4, '0'); - - $oldversion = implode('.', $arrayVersion); - // end of fix - - $tooOld = (version_compare($oldversion, MINIMUM_VERSION_TO_UPDATE) == -1); - $sameVersions = (version_compare($oldversion, INSTALL_VERSION) == 0); - $installOfOldVersion = (version_compare($oldversion, INSTALL_VERSION) == 1); -} - -require_once(INSTALL_PATH.'/classes/LanguagesManager.php'); -$lm = new LanguageManager(dirname(__FILE__).'/langs/list.xml'); -$_LANG = array(); -$_LIST_WORDS = array(); -function lang($txt) { - global $_LANG , $_LIST_WORDS; - return (isset($_LANG[$txt]) ? $_LANG[$txt] : $txt); -} -if ($lm->getIncludeTradFilename()) - require_once($lm->getIncludeTradFilename()); - -?> - - - - - - - - - - - <?php echo sprintf(lang('PrestaShop %s Installer'), INSTALL_VERSION); ?> - - - - - - - - - - - - - - -
    - -
    - -
    - - -
    -
     
    -
    - -
    -
    1.  
    - -
    - help - -
    -

    -

    -
    -
    -
    - - -
    - -
    -
    -

    - -
      -
    • Etape 1
    • -
    • Etape 2
    • -
    • Etape 3
    • -
    • Etape 4
    • -
    • Etape 5
    • -
    -
    - -

    - -

    -



    -

    -
      -
    • -
    • -
    -

    - . -

    - -

    -
    -
      - getAvailableLangs() AS $lang): ?> -
    • getIdSelectedLang() ) ? "checked=\"checked\"" : '' ?> id="lang_" name="language" style="vertical-align: middle; margin-right: 0;" />
    • - - -
    -
    -

    -

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

    - -

    -
    -

    type="radio" value="install" name="typeInstall" id="typeInstallInstall" style="vertical-align: middle;" />

    -

    -

    > type="radio" value="upgrade" name="typeInstall" id="typeInstallUpgrade" style="vertical-align: middle;" />

    -
    -

    -
    - -

    Core: Open Software License ("OSL") v. 3.0

    -

    This Open Software License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work:

    -

    Licensed under the Open Software License version 3.0

    -

    1. Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following:

    -
      -
    1. to reproduce the Original Work in copies, either alone or as part of a collective work
    2. -
    3. to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating derivative works ("Derivative Works") based upon the Original Work
    4. -
    5. to distribute or communicate copies of the Original Work and Derivative Works to the public, with the proviso that copies of Original Work or Derivative Works that You distribute or communicate shall be licensed under this Open Software License
    6. -
    7. to perform the Original Work publicly
    8. -
    9. to display the Original Work publicly
    10. -
    -

    2. Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works.

    -

    3. Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work.

    -

    4. Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor's trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license.

    -

    5. External Deployment. The term "External Deployment" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c).

    -

    6. Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work.

    -

    7. Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer.

    -

    8. Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation.

    -

    9. Acceptance and Termination. If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including 'fair use' or 'fair dealing'). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c).

    -

    10. Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware.

    -

    11. Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License.

    -

    12. Attorneys Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License.

    -

    13. Miscellaneous. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable.

    -

    14. Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.

    -

    15. Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.

    -

    16. Modification of This License. This License is Copyright © 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Open Software License" or "OSL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under Open Software License ("OSL") v. 3.0" or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.

    - -

    Modules and Themes: Academic Free License ("AFL") v. 3.0

    -

    This Academic Free License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work:

    -

    Licensed under the Academic Free License version 3.0

    -

    1. Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following:

    -
      -
    1. to reproduce the Original Work in copies, either alone or as part of a collective work;
    2. -
    3. to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating derivative works ("Derivative Works") based upon the Original Work;
    4. -
    5. to distribute or communicate copies of the Original Work and Derivative Works to the public, under any license of your choice that does not contradict the terms and conditions, including Licensor's reserved rights and remedies, in this Academic Free License;
    6. -
    7. to perform the Original Work publicly; and
    8. -
    9. to display the Original Work publicly.
    10. -
    -

    2. Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works.

    -

    3. Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work.

    -

    4. Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor's trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license.

    -

    5. External Deployment. The term "External Deployment" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c).

    -

    6. Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work.

    -

    7. Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer.

    -

    8. Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation.

    -

    9. Acceptance and Termination. If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including "fair use" or "fair dealing"). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c).

    -

    10. Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware.

    -

    11. Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License.

    -

    12. Attorneys' Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License.

    -

    13. Miscellaneous. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable.

    -

    14. Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.

    -

    15. Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.

    -

    16. Modification of This License. This License is Copyright © 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Academic Free License" or "AFL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under " or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.

    -
    -

    -
    -

    -
    - -
    -
    -

    - -
      -
    • Etape 1
    • -
    • Etape 2
    • -
    • Etape 3
    • -
    • Etape 4
    • -
    • Etape 5
    • -
    -
    - -

    - -

    - - - - -

    - -

    -
      -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • /config
    • -
    • /cache
    • -
    • /sitemap.xml
    • -
    • /log
    • -
    • -
    • /img
    • -
    • /mails
    • -
    • /modules
    • -
    • /themes/prestashop/lang
    • -
    • /themes/prestashop/cache
    • -
    • /translations
    • -
    • /upload
    • -
    • /download
    • -
    - -

    -
      -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    - -



    -
    -
    -
    -

    - -
      -
    • Etape 1
    • -
    • Etape 2
    • -
    • Etape 3
    • -
    • Etape 4
    • -
    • Etape 5
    • -
    -
    - -
    -

    -

    -
    -

    - - -

    -

    - - -

    -

    - - -

    -

    - - -

    -

    - - -

    -

    - - -

    -

    - -

    - -
    -
    - -
    -
    -

    -

    -
    -
    - -

    -
    -

    -
    - -
    -

    - -

    -
    - -

    - -
    -
    -

    - - -

    -

    - - -

    - -

    - - -

    - -

    - - -

    - -

    - - -

    - -
    -
    -

    -   - -

    -

    -
    -
    - -
    -
    -
    -

    - -
      -
    • Etape 1 ok
    • -
    • Etape 2 ok
    • -
    • Etape 3 ok
    • -
    • Etape 4
    • -
    • Etape 5
    • -
    -
    - -
    -

    -
    - - - * - - -
    -
    - - - - -

    -
    -
    - - - * - - -
    -
    - - - * - - -
    -
    - - - - -


    230px x 75px

    - - - -
    -
    - - - -     - - - -

    -
    - -
    - - - * - - -
    - -
    - - - * - - -
    - -
    - - - * - - -
    - -
    - - - * - - -
    -
    - - - * - - -
    -
    - -
    - -
    -

    -
    -
    - -
    - -
    - - -
    -
    - -
    - -
    -

    - -
      -
    • Etape 1 ok
    • -
    • Etape 2 ok
    • -
    • Etape 3 ok
    • -
    • Etape 4 ok
    • -
    • Etape 5
    • -
    -
    - -
    -

    -

    -

    - - - - - - - - - - - - - - - - - -
     
     
     
     
    - -

    - -
    - -

    -

    - -
    -
    - -

    -

    - -
    - -
    -
    - - - - -
    - -
    -
    -

    - -
      -
    • Etape 1
    • -
    • Etape 2
    • -
    • Etape 3
    • -
    • Etape 4
    • -
    -
    -

    -

    -



    - - - -
    - - -
    - - -
    - -
    -
    -

    - -
      -
    • Etape 1 ok
    • -
    • Etape 2 ok
    • -
    • Etape 3
    • -
    • Etape 4
    • -
    -
    -

    - -

    - - - - -

    - -

    -
      -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • /config
    • -
    • /cache
    • -
    • /sitemap.xml
    • -
    • /log
    • -
    • -
    • /img
    • -
    • /mails
    • -
    • /modules
    • -
    • /themes/prestashop/lang
    • -
    • /themes/prestashop/cache
    • -
    • /translations
    • -
    • /upload
    • -
    • /download
    • -
    - -

    -
      -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    - -

    - -
    - -
    -
    -

    - -
      -
    • Etape 1 ok
    • -
    • Etape 2 ok
    • -
    • Etape 3
    • -
    • Etape 4
    • -
    -
    - -

    - -

    -
    -

    -
    - -
    -
    -
    -

    - -
      -
    • Etape 1 ok
    • -
    • Etape 2 ok
    • -
    • Etape 3
    • -
    • Etape 4
    • -
    -
    -
    - -
    - -

    -
    -

    - - '.lang('New features in PrestaShop v').INSTALL_VERSION.' - '; - } - - ?> - -
    - -
    - -
    - -

    -

    - -
    -
    - - - -
    - -
    - -
    - - -
    - -
    - - - - diff --git a/install-dev/langs/de.php b/install-dev/langs/de.php deleted file mode 100644 index b7d5a366e..000000000 --- a/install-dev/langs/de.php +++ /dev/null @@ -1,290 +0,0 @@ - klicken Sie auf Weiter zum Fortfahren!'; -$_LANG['Your configuration is invalid. Please fix the issues below:'] = 'Ihre Konfiguration ist nicht gültig,
    bitte beheben Sie diese Probleme:'; -$_LANG['Warning: If you check this box and your e-mail configuration is incorrect, you might not be able to continue the installation.'] = 'Diese Option kann hinderlich sein, wenn Ihre E-Mail-Konfiguration falsch ist, bitte deaktivieren Sie sie, wenn Sie nicht zum n√§chsten Schritt gehen k√∂nnen.'; -$_LANG['Mcrypt is available (recommended)'] = 'Mcrypt ist verf√ºgbar (empfohlen)'; -$_LANG['Your MySQL server doesn\'t support this engine, please use another one like MyISAM'] = 'Diese Datenbank-Engine wird nicht unterst√ºtzt, bitte w√§hlen Sie eine andere als MyISAM'; -$_LANG['Adult'] = 'Erotik und Dessous'; -$_LANG['Animals and Pets'] = 'Tiere'; -$_LANG['Art and Culture'] = 'Kultur und Freizeit'; -$_LANG['Babies'] = 'Baby-Artikel'; -$_LANG['Beauty and Personal Care'] = 'Gesundheit und Sch√∂nheit'; -$_LANG['Cars'] = 'Auto und Motorrad'; -$_LANG['Computer Hardware and Software'] = 'Computer & Software'; -$_LANG['Download'] = 'Download'; -$_LANG['Fashion and accessories'] = 'Kleidung und Accessoires'; -$_LANG['Flowers, Gifts and Crafts'] = 'Blumen und Geschenke'; -$_LANG['Food and beverage'] = 'Lebensmittel und Gastronomie'; -$_LANG['HiFi, Photo and Video'] = 'Hifi, Foto und Video'; -$_LANG['Home and Garden'] = 'Haus & Garten'; -$_LANG['Home Appliances'] = 'Haushaltsger√§te'; -$_LANG['Jewelry'] = 'Schmuck'; -$_LANG['Mobile and Telecom'] = 'Telefonie und Kommunikation'; -$_LANG['Services'] = 'Dienstleistungen'; -$_LANG['Shoes and accessories'] = 'Schuhe und Accessoires'; -$_LANG['Sports and Entertainment'] = 'Sport und Freizeit'; -$_LANG['Travel'] = 'Reise und Tourismus'; -$_LANG['Main activity:'] = 'Hauptt√§tigkeit'; -$_LANG['-- Please choose your main activity --'] = '- W√§hlen Sie eine T√§tigkeit --'; -$_LANG['Invalid catalog mode'] = 'Feld Katalog-Modus ung√ºltig'; -$_LANG['Catalog mode only:'] = 'Katalog-Modus:'; -$_LANG['Yes'] = 'Ja'; -$_LANG['No'] = 'Nein'; -$_LANG['If you activate this feature, all purchasing will be disabled. However, you will be able to enable purchasing later in your Back Office.'] = 'Wenn Sie diese Option aktivieren, werden alle Kauf-Funktionen deaktiviert. Sie k√∂nnen diese Option sp√§ter in Ihrem Back-Office aktivieren'; -$_LANG['Your current version is already up-to-date'] = 'Die bereits installierte Version, die erkannt wurde, ist neu, keine Updates verf√ºgbar'; -$_LANG['This information is not required, it will only be used for statistical purposes. This information does not change anything in your store.'] = 'Diese Information ist nicht erforderlich, sie wird zu statistischen Zwecken verwendet. Diese Information √§ndert nichts in Ihrem Shop.'; -$_LANG['Invalid shop name'] = 'Ung√ºltiger Shopname'; -$_LANG['Your firstname contains some invalid characters'] = 'Ihr Vorname enth√§lt ung√ºltige Zeichen'; -$_LANG['Your lastname contains some invalid characters'] = 'Ihr Nachname enth√§lt ung√ºltige Zeichen'; -$_LANG['(FREE)'] = '(KOSTENLOS)'; -$_LANG['Shop configuration'] = 'Shop-Konfiguration'; -$_LANG['Database Engine:'] = 'Datenbank-Engine'; -$_LANG['I certify that I backed up my database and application files. I assume all responsibility for any data loss or damage related to this upgrade.'] = 'Ich best√§tige, dass ich meine Datenbank und meine Anwendungsdateien durch ein Backup gesichert habe. Ich √ºbernehme die volle Verantwortung f√ºr jeglichen Datenverlust oder jegliche Datenbesch√§digung, die im Zusammenhang mit diesem Upgrade stehen.'; -$_LANG['The file /img/logo.jpg is not writable, please CHMOD 755 this file or CHMOD 777'] = 'Die Datei /img/logo.jpg kann nicht geschrieben werden, bitte √§ndern Sie die Dateirechte mit CHMOD 755 oder CHMOD 777'; -$_LANG['If you do not know how to enable it, use our turnkey solution PrestaBox at'] = 'Wenn Sie nicht wissen, wie Sie es aktivieren m√ºssen, nutzen Sie unsere Fertigl√∂sung PrestaBox'; -$_LANG['If you do not know how to fix these issues, use turnkey solution PrestaBox at'] = 'Wenn Sie nicht wissen, wie Sie diese Themen festlegen k√∂nnen, nutzen Sie die Fertigl√∂sung PrestaBox'; -$_LANG['Lite mode: Basic installation'] = 'Einfacher Modus: Grundinstallation'; -$_LANG['Full mode: includes core modules,'] = 'Komplettmodus: beinhaltet'; -$_LANG['100+ additional modules'] = '√ºber 100 zus√§tzliche Module'; -$_LANG['and demo products'] = 'und Demo-Produkte'; -$_LANG['Installation type'] = 'Installationstyp'; -$_LANG['Upgrade in progress'] = 'Upgrade l√§uft'; -$_LANG['Current query:'] = 'Aktueller Satz:'; -$_LANG['Details about this upgrade'] = 'Mehr √ºber das Upgrade'; -$_LANG['Thank you, you will be able to continue the upgrade process by clicking on the "Next" button.'] = ''; -$_LANG['PrestaShop is upgrading your shop one version after the other, the following upgrade files will be processed:'] = ''; -$_LANG['Upgrade file'] = 'Upgrade-Datei'; -$_LANG['Modifications to process'] = '√Ñnderungen zum Durchf√ºhren'; -$_LANG['(major)'] = '(wichtig)'; -$_LANG['TOTAL'] = '(GESAMT)'; -$_LANG['Estimated time to complete the'] = 'Verbliebene Zeit zum Abschlu√ü von'; -$_LANG['modifications:'] = 'Modifikationen'; -$_LANG['minutes'] = 'Minuten'; -$_LANG['minute'] = 'Minute'; -$_LANG['seconds'] = 'Sekunden'; -$_LANG['second'] = 'Sekunde'; -$_LANG['Depending on your server and the size of your shop'] = 'Anh√§ngig vom Server und der Gr√∂√üer Ihres Shops'; -$_LANG['You have not updated your shop in a while,'] = 'Sie haben Ihren Shop seit L√§ngerem nicht upgedatet,'; -$_LANG['stable releases have been made ‚Äã‚Äãavailable since.'] = 'wichtige Neuerungen wurden implementiert seit'; -$_LANG['This is not a problem however the update may take several minutes, try to update your shop more frequently.'] = 'Das ist unwesentlich, das Upgrade kann einige Minuten dauern, versuchen Sie, Ihren Shop √∂fert zu updaten.'; -$_LANG['No files to process, this might be an error.'] = 'Keine Dateien zum Verarbeiten, wom√∂glich ein Fehler'; -$_LANG['Hosting parameters'] = 'Hosting Eigenschaften'; -$_LANG['PrestaShop tries to automatically set the best settings for your server in order for the update to be successful.'] = 'Prestashop versucht automatisch, die besten Einstellungen auf dem Server zu machen, damit das Update erfolgreich verl√§uft.'; -$_LANG['PHP parameter'] = 'PHP Parameter'; -$_LANG['Description'] = 'Beschreibung'; -$_LANG['Current value'] = 'Aktueller Wert'; -$_LANG['Maximum allowed time for the upgrade'] = 'Maximale zugelassene Zeit f√ºr das Update'; -$_LANG['Maximum memory allowed for the upgrade'] = 'Maximal zugelassener Speichern f√ºr das Update'; -$_LANG['All your settings seem to be OK, go for it!'] = 'Alle Einstellungen scheinen zu stimmen, es kann losgehen!'; -$_LANG['Let\'s go!'] = 'Los!'; -$_LANG['Click on the "Next" button to start the upgrade, this can take several minutes,'] = 'Klicken Sie das "Weiter"-Button um das Upgrade zu starten, es k√∂nne einige Minuten dauern.'; -$_LANG['please be patient and do not close this window.'] = 'bitte schlie√üen Sie das Fenster nicht.'; -$_LANG['Your update is complete!'] = 'Ihr Upgrade ist abgeschlossen!'; -$_LANG['Your shop version is now'] = 'Ihre Shopversion ist nun'; -$_LANG['New features in PrestaShop v'] = 'Neue Features in Prestashop v'; -$_LANG['Beware, your settings look correct but are not optimal, if you encounter problems (upgrade too long, memory error...), please ask your hosting provider to increase the values of these parameters: "max_execution_time" and "memory_limit".'] = 'Achtung, Ihre Einstellungen sind zwar korrekt, aber nicht optimal. Sollten w√§hrend des Updates Probleme auftreten (Ausf√ºhrungszeit, Speicherlimit usw.) kontaktieren Sie bitte Ihr Hostingunternehmen, damit diese Einstellungen angepasst werden (max_execution_time & memory_limit) '; -$_LANG['We strongly recommend that you inform your hosting provider to modify the settings before process to the update.'] = 'Wir empfehlen ausdr√ºcklich, Ihren Hostingprovider zu kontaktieren, um die Einstellungen f√ºr das Update anzupassen'; -$_LANG['Module compatibility'] = 'Modulkompatibilit√§t'; -$_LANG['It\'s dangerous to keep non-native modules activated during the update. If you really want to take this risk, uncheck the following box.'] = 'Es wird nicht empfohlen, fremde Module w√§hrend des Updates aktiviert zu lassen. Wenn Sie trotzdem fortfahren wollen, entfernen Sie die Markierung in der Checkbox'; -$_LANG['You will be able to manually reactivate them in your Back Office once the update process has succeeded.'] = 'Sie k√∂nnen sie sp√§ter im Adminbereich aktivieren, nachdem das Update abgeschlossen ist.'; -$_LANG['Ok, please deactivate the following modules, I will reactivate them later:'] = 'ok, bitte folgende Module deaktivieren (sie werden sp√§ter wieder aktiviert):'; -$_LANG['Theme compatibility'] = 'Themenkompatibilit√§t'; -$_LANG['Before updating, you need to check that your theme is compatible with version'] = 'Um fortzufahren m√ºssen Sie best√§tigen, dass Ihr Thema mit der aktuellen Version kompatibel ist'; -$_LANG['of PrestaShop.'] = 'von Prestashop'; -$_LANG['Link to the validator'] = 'Link zum Validator'; -$_LANG['Online Theme Validator'] = 'Online Themenvalidator'; -$_LANG['If your theme is invalid, you may experience some problems in your Front Office layout, but do not panic! To resolve this, you can make it compatible by fixing the validator errors or by using a theme compatible with '] = 'Sollte Ihr Thema nicht kompatibel sein, k√∂nnten einige Probleme im Front-End auftreten. Sie k√∂nnen die Kompatibilit√§t wieder einstellen, indem Sie im Backend Unter Einstellungen die entsprechende Einstellung treffen'; -$_LANG['version'] = 'Version'; -$_LANG['To do this, use our'] = 'Verwenden Sie dazu unseren'; -$_LANG['Additional Benefits'] = 'Exklusiv Angebot'; -$_LANG['Exclusive offers dedicated to PrestaShop merchants'] = 'Exklusiv Angebot f√ºr die Verk√§ufer PrestaShop'; -$_LANG['PHP magic quotes option is off (recommended)'] = 'Die PHP-Option "magic quotes" ist deaktiviert (empfohlen)'; -$_LANG['Other activity...'] = 'Andere activiteit...'; -$_LANG['Modules'] = 'Módulos'; -$_LANG['Benefits'] = 'Vorteile'; -$_LANG['Create a MySQL database using phpMyAdmin (or by asking your hosting provider)'] = ''; -$_LANG['- or -'] = '- oder -'; -$_LANG['I want to install a new online shop with PrestaShop'] = 'Ich möchte einen neuen PrestaShop installieren'; -$_LANG['I want to update my existing PrestaShop to a newer version'] = 'Ich möchte meinen aktuellen PrestaShop mit einer neueren Version aktualisieren'; -$_LANG['Your current version is too old, updates are possible only from version'] = ''; -$_LANG['and higher'] = ''; -$_LANG['PHP settings (for assistance, ask your hosting provider):'] = ''; -$_LANG['Database Configuration'] = ''; -$_LANG['Database login:'] = ''; -$_LANG['Database password:'] = ''; -$_LANG['Please create a MySQL database and then verify your settings below. If you need assistance, please ask your hosting provider for this information.'] = ''; -$_LANG['No more information'] = ''; diff --git a/install-dev/langs/es.php b/install-dev/langs/es.php deleted file mode 100644 index 8587e4dd8..000000000 --- a/install-dev/langs/es.php +++ /dev/null @@ -1,293 +0,0 @@ -gracias por corregir la configuración:'; -$_LANG['You have to create a database, help available in readme_en.txt'] = 'Debe crear una base de datos, puede encontrar ayuda en el archivo readme_es.txt'; -$_LANG['Discover your store'] = 'Descubra su tienda'; -$_LANG['Warning: If you check this box and your e-mail configuration is incorrect, you might not be able to continue the installation.'] = 'Esta opción se puede bloquear si su configuración de correo electrónico está incorrecta, por favor desactivarla si usted no puede moverse a la siguiente etapa.'; -$_LANG['Invalid catalog mode'] = 'Campo modo catálogo no válido'; -$_LANG['Catalog mode only:'] = 'Modo Catálogo:'; -$_LANG['Yes'] = 'Sí'; -$_LANG['No'] = 'No'; -$_LANG['If you activate this feature, all purchasing will be disabled. However, you will be able to enable purchasing later in your Back Office.'] = 'Si activa esta opción, se desactivarán todas las aplicaciones de compra. Puede activar dicha opción posteriormente en el panel de administración.'; -$_LANG['Your current version is already up-to-date'] = 'la versi‚àö‚â•n instalada que se ha detectado es demasiado reciente, no hay ninguna actualizaci‚àö‚â•n disponible'; -$_LANG['If you do not know how to enable it, use our turnkey solution PrestaBox at'] = 'Si no sabe activarla, utilice nuestra solución PrestaBox en'; -$_LANG['Invalid shop name'] = 'Nombre de la tienda no válido'; -$_LANG['Your firstname contains some invalid characters'] = 'Su nombre contiene caracteres no válidos'; -$_LANG['Your lastname contains some invalid characters'] = 'Su apellido contiene caracteres no válidos'; -$_LANG['Your MySQL server doesn\'t support this engine, please use another one like MyISAM'] = 'El soporte de este motor de base de datos no se puede soportar, elija otro como por ejemplo MyISAM'; -$_LANG['The file /img/logo.jpg is not writable, please CHMOD 755 this file or CHMOD 777'] = 'El archivo /img/logo.jpg no tiene derechos de escritura, por favor efectúe un CHMOD 755 o 777 en el archivo'; -$_LANG['The config/defines.inc.php file was not found. Where did you move it?'] = 'El archivo config/defines.inc.php no se ha encontrado. ¿Dónde se encuentra?'; -$_LANG['PrestaShop tips and advice'] = 'Todos los trucos y consejos sobre PrestaShop'; -$_LANG['+33 (0)1.40.18.30.04'] = '+33 (0)1.40.18.30.04'; -$_LANG['Mcrypt is available (recommended)'] = 'Mcrypt está disponible (aconsejable)'; -$_LANG['If you do not know how to fix these issues, use turnkey solution PrestaBox at'] = 'Si no puede solucionar estos problemas, utilice nuestra solución PrestaBox en'; -$_LANG['Database Engine:'] = 'Tipo de base de datos:'; -$_LANG['Installation type'] = 'Tipo de instalación'; -$_LANG['Lite mode: Basic installation'] = 'Modo básico: instalación simplificada'; -$_LANG['(FREE)'] = '(GRATIS)'; -$_LANG['Full mode: includes core modules,'] = 'Modo completo: con'; -$_LANG['100+ additional modules'] = '100 módulos includidos'; -$_LANG['and demo products'] = 'y productos de demostración'; -$_LANG['Shop configuration'] = 'Configuración de la tienda'; -$_LANG['Main activity:'] = 'Actividad principal'; -$_LANG['-- Please choose your main activity --'] = '-- Elija una actividad --'; -$_LANG['Adult'] = 'Adulto y lencería'; -$_LANG['Animals and Pets'] = 'Animales'; -$_LANG['Art and Culture'] = 'Cultura y ocio'; -$_LANG['Babies'] = 'Artículos para bebés'; -$_LANG['Beauty and Personal Care'] = 'Salud y belleza'; -$_LANG['Cars'] = 'Automóvil y motos'; -$_LANG['Computer Hardware and Software'] = 'Informática y programas'; -$_LANG['Download'] = 'Descargas'; -$_LANG['Fashion and accessories'] = 'Ropa y complementos'; -$_LANG['Flowers, Gifts and Crafts'] = 'Flores y regalos'; -$_LANG['Food and beverage'] = 'Alimentación y gastronomía'; -$_LANG['HiFi, Photo and Video'] = 'Hifi, foto y vídeo'; -$_LANG['Home and Garden'] = 'Casa y jardín'; -$_LANG['Home Appliances'] = 'Electrodomésticos'; -$_LANG['Jewelry'] = 'Joyería'; -$_LANG['Mobile and Telecom'] = 'Telefonía y comunicación'; -$_LANG['Services'] = 'Servicios'; -$_LANG['Shoes and accessories'] = 'Calzado y complementos'; -$_LANG['Sports and Entertainment'] = 'Deporte y ocio'; -$_LANG['Travel'] = 'Viajes y turismo'; -$_LANG['This information is not required, it will only be used for statistical purposes. This information does not change anything in your store.'] = 'Esta información no es obligatoria, solo se utilizará para estadísticas. Proporcionarla o no, no cambiará nada en su tienda.'; -$_LANG['E-mail:'] = 'Email :'; -$_LANG['I certify that I backed up my database and application files. I assume all responsibility for any data loss or damage related to this upgrade.'] = 'Certifico que he efectuado una copia de seguridad de mi base de datos y de mis archivos. Asumo plenamente la responsabilidad en caso en que se pierdan los datos o se produzca un error relacionado con esta actualización.'; -$_LANG['Upgrade in progress'] = 'Actualización en curso'; -$_LANG['Current query:'] = 'Búsqueda actual:'; -$_LANG['Details about this upgrade'] = 'Detalles sobre esta actualización'; -$_LANG['Thank you, you will be able to continue the upgrade process by clicking on the "Next" button.'] = 'Gracias, puede continuar la actualización, pulsando en "Siguiente".'; -$_LANG['PrestaShop is upgrading your shop one version after the other, the following upgrade files will be processed:'] = 'PrestaShop actualiza las versiones de su tienda de una en una, los siguientes archivos de actualización van a ser tratados:'; -$_LANG['Upgrade file'] = 'Archivo de actualizaciones'; -$_LANG['Modifications to process'] = 'Modificaciones que deben tenerse en cuenta'; -$_LANG['(major)'] = '(majeure)'; -$_LANG['TOTAL'] = 'TOTAL'; -$_LANG['Estimated time to complete the'] = 'Tiempo estimado para realizar la'; -$_LANG['modifications:'] = 'modificaciones :'; -$_LANG['minutes'] = 'minutos'; -$_LANG['minute'] = 'minuto'; -$_LANG['seconds'] = 'segundos'; -$_LANG['second'] = 'segundo'; -$_LANG['Depending on your server and the size of your shop'] = 'En función de la potencia de su servidor y el tamaño de su tienda...'; -$_LANG['You have not updated your shop in a while,'] = 'No ha actualizado su tienda desde hace algún tiempo,'; -$_LANG['stable releases have been made ‚Äã‚Äãavailable since.'] = 'hay versiones mayores a disposición desde entonces.'; -$_LANG['This is not a problem however the update may take several minutes, try to update your shop more frequently.'] = 'No es un problema pero la actualización puede durar algunos minutos. Intente actualizar su tienda más a menudo.'; -$_LANG['No files to process, this might be an error.'] = 'No hay ningún archivo para tratar, se trata sin duda de un error'; -$_LANG['Hosting parameters'] = 'Parámetros hosting'; -$_LANG['PrestaShop tries to automatically set the best settings for your server in order for the update to be successful.'] = 'PrestaShop intenta configurar por usted los parámetros de su servidor para que la actualización se efectúe de manera correcta.'; -$_LANG['PHP parameter'] = 'Parámetro PHP'; -$_LANG['Description'] = 'Descripción'; -$_LANG['Current value'] = 'Valor actual'; -$_LANG['Maximum allowed time for the upgrade'] = 'Tiempo máximo autorizado para la actualización'; -$_LANG['Maximum memory allowed for the upgrade'] = 'Memoria máxima autorizada para la actualización'; -$_LANG['All your settings seem to be OK, go for it!'] = 'Todos los parámetros son correctos, ¡adelante!'; -$_LANG['Beware, your settings look correct but are not optimal, if you encounter problems (upgrade too long, memory error...), please ask your hosting provider to increase the values of these parameters: "max_execution_time" and "memory_limit".'] = 'Atención, los parámetros parecen correctos pero no son óptimos, si encuentra una dificultad (actualización bloqueada antes de su finalización, error de memoria...), pida a su hosting que aumente los valores de dichos parámetros (max_execution_time & memory_limit).'; -$_LANG['We strongly recommend that you inform your hosting provider to modify the settings before process to the update.'] = 'Le aconsejamos que avise a su hosting antes de comenzar la actualización para que modifique los parámetros PHP.'; -$_LANG['Let\'s go!'] = 'El proceso ha comenzado'; -$_LANG['Click on the "Next" button to start the upgrade, this can take several minutes,'] = 'Pulse en "Siguiente" para comenzar la actualización, esto puede llevar unos minutos,'; -$_LANG['please be patient and do not close this window.'] = 'no cierre la ventana y espere.'; -$_LANG['Your update is complete!'] = 'La actualización ha concluido con éxito'; -$_LANG['Your shop version is now'] = 'La versión de su tienda ya está'; -$_LANG['New features in PrestaShop v'] = 'Nuevas aplicaciones en dans PrestaShop v'; -$_LANG['Module compatibility'] = 'Compatibilidad Módulos'; -$_LANG['It\'s dangerous to keep non-native modules activated during the update. If you really want to take this risk, uncheck the following box.'] = 'Se desaconseja dejar los módulos no nativos activos durante la actualización. Si realmente desea correr ese riesgo, desactive la siguiente casilla.'; -$_LANG['You will be able to manually reactivate them in your Back Office once the update process has succeeded.'] = 'Después podrá reactivarlos manualmente en el back-office, una vez la actualización haya terminado.'; -$_LANG['Ok, please deactivate the following modules, I will reactivate them later:'] = 'De acuerdo, desactive automáticamente los siguientes módulos, los activaré yo mismo más tarde:'; -$_LANG['Theme compatibility'] = 'Compatibilidad del tema'; -$_LANG['Before updating, you need to check that your theme is compatible with version'] = 'Antes de la actualización, debe comprobar que su tema es compatible con la versión'; -$_LANG['of PrestaShop.'] = 'de PrestaShop'; -$_LANG['Link to the validator'] = 'Link hacia el validador'; -$_LANG['Online Theme Validator'] = 'Validador del tema online'; -$_LANG['If your theme is invalid, you may experience some problems in your Front Office layout, but do not panic! To resolve this, you can make it compatible by fixing the validator errors or by using a theme compatible with '] = 'Si su tema no es válido, podría tener problemas en la página de su sitio Web, pero no se preocupe, ¡puede hacerlo compatible corrigiendo los errores señalados por el validador o utilizando un tema compatible con la versión!' ; -$_LANG['version'] = 'versión'; -$_LANG['To do this, use our'] = 'En este objetivo, utilice nuestro'; -$_LANG['Additional Benefits'] = 'Otros beneficios'; -$_LANG['Exclusive offers dedicated to PrestaShop merchants'] = 'Ofertas exclusivas dedicadas a los comerciantes PrestaShop'; -$_LANG['PHP magic quotes option is off (recommended)'] = 'La opción PHP "magic quotes" está desactivada (aconsejable)'; -$_LANG['Other activity...'] = 'Otra actividad...'; -$_LANG['Modules'] = 'Módulos'; -$_LANG['Benefits'] = 'Beneficios'; -$_LANG['Create a MySQL database using phpMyAdmin (or by asking your hosting provider)'] = 'Crear un base de datos MySQL usando phpMyAdmin (o preguntele a su proveedor de alojamiento web)'; -$_LANG['- or -'] = ' - o -'; -$_LANG['I want to install a new online shop with PrestaShop'] = 'Yo quiero installar una nueva tienda online con PrestaShop'; -$_LANG['I want to update my existing PrestaShop to a newer version'] = 'Quiero actualizar mi actual PrestaShop, a una nueva versión más reciente'; -$_LANG['Your current version is too old, updates are possible only from version'] = 'Su version actual esta antigua, actualizaciones solo estan disponibles desde la version'; -$_LANG['and higher'] = 'y en adelante'; -$_LANG['PHP settings (for assistance, ask your hosting provider):'] = 'PHP parámetros (para assistencia, preguntale a su proveedor de alojamiento web)'; -$_LANG['Database Configuration'] = 'Configuración de base de datos'; -$_LANG['Database login:'] = 'Inicio de la base de datos'; -$_LANG['Database password:'] = 'Contraseña de la base de datos'; -$_LANG['Please create a MySQL database and then verify your settings below. If you need assistance, please ask your hosting provider for this information.'] = 'Por favor crear un base de datos MySQL y despues verifique sus parámetros debajo, para assistencia por favor preguntale a su proveedor de alojamiento web.'; -$_LANG['No more information'] = 'No mas informacion'; \ No newline at end of file diff --git a/install-dev/langs/fr.php b/install-dev/langs/fr.php deleted file mode 100644 index cb3568619..000000000 --- a/install-dev/langs/fr.php +++ /dev/null @@ -1,299 +0,0 @@ -File config/settings.inc.php indicates: %1$s
    Our automatic detection tool has detected version: %2$s

    You should edit your config/settings.inc.php file to replace %1$s by %2$s.
    Failure to fix this issue before upgrading may result in severe complications.
    Do not forget to relaunch the installer after this modification by pressing F5 on your web browser.'] = "Attention, nous avons détecté que la version spécifiée dans votre fichier config/settings.inc.php ne correspond pas à celle de la structure de votre base de donnée.
    Le fichier config/settings.inc.php indique : %1\$s
    Notre script de détection de version indique : %2\$s

    Vous devriez éditer votre fichier config/settings.inc.php pour remplacer %1\$s par %2\$s.
    Ne pas résoudre ce problème risque d'entrainer de sévères complications durant la mise à jour.
    N'oubliez pas de relancer l'installeur après ces modifications en appuyant sur F5 sur votre navigateur internet."; -$_LANG['Warning, we detected that the version specified in your config/settings.inc.php does not match your SQL database structure.
    File config/settings.inc.php indicates: %1$s
    Our automatic detection tool has detected a version between %2$s and %3$s

    You should edit your config/settings.inc.php file to replace %1$s by your real shop version.
    Failure to fix this issue before upgrading may result in severe complications.
    Do not forget to relaunch the installer after this modification by pressing F5 on your web browser.'] = "Attention, nous avons détecté que la version spécifiée dans votre fichier config/settings.inc.php ne correspond pas à celle de la structure de votre base de donnée.
    Le fichier config/settings.inc.php indique : %1\$s
    Notre script de détection de version indique une version entre %2\$s et %3\$s

    Vous devriez éditer votre fichier config/settings.inc.php pour remplacer %1\$s par la vraie version de votre magasin.
    Ne pas résoudre ce problème risque d'entrainer de sévères complications durant la mise à jour.
    N'oubliez pas de relancer l'installeur après ces modifications en appuyant sur F5 sur votre navigateur internet."; -$_LANG['Warning, the installer was unable to detect what is your current PrestaShop version from a database structure analysis. This means some fields or tables are missing, and upgrade is under your own risk.'] = "Attention, l'installateur n'a pas été capable de détecter votre version de PrestaShop à partir de l'analyse de votre base de donnée. Cela signifie que certains champs ou tables sont manquants. La mise à jour est à vos risques et périls."; -$_LANG['However the installer has detected that the version stored in your configuration table is %1$s'] = "Cependant l'installeur a détecté que la version sauvée dans votre table de configuration est %1\$s"; -$_LANG['Additional Benefits'] = 'Avantages exclusifs PrestaShop'; -$_LANG['Exclusive offers dedicated to PrestaShop merchants'] = 'Offres réservées aux marchands PrestaShop'; -$_LANG['PHP magic quotes option is off (recommended)'] = 'L\'option PHP "magic quotes" est désactivée (recommandé)'; -$_LANG['Dom extension loaded'] = 'L\'extension Dom est activée'; -$_LANG['Other activity...'] = 'Autre activité..'; -$_LANG['Modules'] = 'Modules'; -$_LANG['Benefits'] = 'Avantages'; -$_LANG['Create a MySQL database using phpMyAdmin (or by asking your hosting provider)'] = 'Créer une base de données MySQL en utilisant phpMyAdmin (ou en demandant à votre hébergeur)'; -$_LANG['- or -'] = '- ou -'; -$_LANG['I want to install a new online shop with PrestaShop'] = 'Je souhaite installer une nouvelle boutique avec PrestaShop'; -$_LANG['I want to update my existing PrestaShop to a newer version'] = 'Je veux mettre à jour ma boutique PrestaShop vers une nouvelle version'; -$_LANG['Your current version is too old, updates are possible only from version'] = 'Votre version actuelle est trop ancienne, les mises à jour sont autorisées à partir de la version'; -$_LANG['and higher'] = 'et versions supérieures'; -$_LANG['PHP settings (for assistance, ask your hosting provider):'] = 'Paramètres PHP (Demandez de l\'aide à votre hébergeur si nécessaire)'; -$_LANG['Database Configuration'] = 'Configuration base de données'; -$_LANG['Database login:'] = 'Identifiant base de données'; -$_LANG['Database password:'] = 'Mot de passe base de données'; -$_LANG['Please create a MySQL database and then verify your settings below. If you need assistance, please ask your hosting provider for this information.'] = 'Merci de créer une base de données MySQL puis de saisir et vérifier les paramètres ci-dessous. Si vous avez besoin d\'aide pour ces paramètres, demandez à votre hébergeur.'; -$_LANG['No more information'] = 'Pas d\'autres informations'; \ No newline at end of file diff --git a/install-dev/langs/index.php b/install-dev/langs/index.php deleted file mode 100644 index 4e2611d37..000000000 --- a/install-dev/langs/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/langs/it.php b/install-dev/langs/it.php deleted file mode 100644 index fc60f8e75..000000000 --- a/install-dev/langs/it.php +++ /dev/null @@ -1,284 +0,0 @@ -clicca su successivo per continuare!'; -$_LANG['Your configuration is invalid. Please fix the issues below:'] = 'La tua configurazione non è valida,
    correggi questi problemi:'; -$_LANG['Warning: If you check this box and your e-mail configuration is incorrect, you might not be able to continue the installation.'] = 'Se la tua configurazione e-mail è errata, questa opzione può essere bloccata; disattivala se non puoi passare alla fase successiva.'; -$_LANG['Mcrypt is available (recommended)'] = 'Mcrypt è disponibile (consigliato)'; -$_LANG['Your MySQL server doesn\'t support this engine, please use another one like MyISAM'] = 'Il supporto di questo motore di database non è supportato, scegline un altro come MyISAM'; -$_LANG['Adult'] = 'Adulti e indumenti intimi'; -$_LANG['Animals and Pets'] = 'Animali'; -$_LANG['Art and Culture'] = 'Cultura e svaghi'; -$_LANG['Babies'] = 'Articoli per bambini'; -$_LANG['Beauty and Personal Care'] = 'Salute e bellezza'; -$_LANG['Cars'] = 'Auto e moto'; -$_LANG['Computer Hardware and Software'] = 'Informatica e software'; -$_LANG['Download'] = 'Download'; -$_LANG['Fashion and accessories'] = 'Abiti e accessori'; -$_LANG['Flowers, Gifts and Crafts'] = 'Fiori e regali'; -$_LANG['Food and beverage'] = 'Alimentazione e gastronomia'; -$_LANG['HiFi, Photo and Video'] = 'Hifi, foto e video'; -$_LANG['Home and Garden'] = 'Casa e giardinaggio'; -$_LANG['Home Appliances'] = 'Elettrodomestici'; -$_LANG['Jewelry'] = 'Gioielleria'; -$_LANG['Mobile and Telecom'] = 'Telefonia e comunicazioni'; -$_LANG['Services'] = 'Servizi'; -$_LANG['Shoes and accessories'] = 'Scarpe e accessori'; -$_LANG['Sports and Entertainment'] = 'Sport e divertimenti'; -$_LANG['Travel'] = 'Viaggi e turismo'; -$_LANG['Main activity:'] = 'Attività principale'; -$_LANG['-- Please choose your main activity --'] = '-- Scegli un\'attività --'; -$_LANG['Invalid catalog mode'] = 'Campo modalità catalogo non valido'; -$_LANG['Catalog mode only:'] = 'Modalità catalogo:'; -$_LANG['Yes'] = 'Sì'; -$_LANG['No'] = 'No'; -$_LANG['If you activate this feature, all purchasing will be disabled. However, you will be able to enable purchasing later in your Back Office.'] = 'Se attivi questa opzione, tutte le funzioni di acquisto saranno disattivate. Potrai attivare questa opzione più tardi nel tuo back-office'; -$_LANG['Your current version is already up-to-date'] = 'la versione già installata individuata è troppo recente, nessun aggiornamento disponibile'; -$_LANG['This information is not required, it will only be used for statistical purposes. This information does not change anything in your store.'] = 'Queste informazioni non sono obbligatorie, saranno utilizzate a fini statistici. Queste informazioni non cambieranno nulla nel tuo negozio.'; -$_LANG['If you do not know how to enable it, use our turnkey solution PrestaBox at'] = 'Se non sai come abilitarlo, usa la nostra soluzione innovativa PrestaBox su'; -$_LANG['Invalid shop name'] = 'nome negozio non valido'; -$_LANG['Your firstname contains some invalid characters'] = 'Il tuo nome contiene dei caratteri non validi'; -$_LANG['Your lastname contains some invalid characters'] = 'Il tuo cognome contiene dei caratteri non validi'; -$_LANG['The file /img/logo.jpg is not writable, please CHMOD 755 this file or CHMOD 777'] = 'Il file /img/logo.jpg non ?scrivibile, ti preghiamo di effettuare CHMOD 755 oppure CHMOD 777'; -$_LANG['If you do not know how to fix these issues, use turnkey solution PrestaBox at'] = 'Se non sai come correggere questi problemi, usa la soluzione innovativa PrestaBox su'; -$_LANG['Database Engine:'] = 'Motore database'; -$_LANG['Installation type'] = 'Tipo di installazione'; -$_LANG['Lite mode: Basic installation'] = 'Modalità semplice: installazione base'; -$_LANG['(FREE)'] = '(GRATUITO)'; -$_LANG['Full mode: includes core modules,'] = 'Modalità completa: include'; -$_LANG['100+ additional modules'] = 'Più di 100 moduli aggiuntivi'; -$_LANG['and demo products'] = 'e prodotti demo'; -$_LANG['Shop configuration'] = 'Configurazione negozio'; -$_LANG['I certify that I backed up my database and application files. I assume all responsibility for any data loss or damage related to this upgrade.'] = 'Dichiaro di aver effettuato il backup del mio database e dei file di applicazione. Mi assumo tutte le responsabilità per qualsiasi perdita dei dati o danni relativi a questo aggiornamento'; -$_LANG['Upgrade in progress'] = 'Aggiornamento in corso'; -$_LANG['Current query:'] = 'Domanda attuale'; -$_LANG['Details about this upgrade'] = 'Dettagli su questo aggiornamento'; -$_LANG['Thank you, you will be able to continue the upgrade process by clicking on the "Next" button.'] = 'Grazie, potrai continuare il processo di aggiornamento cliccando sul tasto “Successivo”.'; -$_LANG['PrestaShop is upgrading your shop one version after the other, the following upgrade files will be processed:'] = 'Prestashop sta aggiornando il tuo negozio una versione dopo l\'altra; saranno elaborati i seguenti file di aggiornamento:'; -$_LANG['Upgrade file'] = 'Aggiorna file'; -$_LANG['Modifications to process'] = 'Modifiche da elaborare'; -$_LANG['(major)'] = '(maggiore)'; -$_LANG['TOTAL'] = 'TOTALE'; -$_LANG['Estimated time to complete the'] = 'Tempo previsto per completare'; -$_LANG['modifications:'] = 'modifiche:'; -$_LANG['minutes'] = 'minuti'; -$_LANG['minute'] = 'minuto'; -$_LANG['seconds'] = 'secondi'; -$_LANG['second'] = 'secondo'; -$_LANG['Depending on your server and the size of your shop'] = 'In base al tuo server e alle dimensioni del tuo negozio'; -$_LANG['You have not updated your shop in a while,'] = 'E\' da un po\' di tempo che non aggiorni il tuo negozio'; -$_LANG['stable releases have been made ​​available since.'] = 'Sono state messe a disposizione importanti novità'; -$_LANG['This is not a problem however the update may take several minutes, try to update your shop more frequently.'] = 'Questo non è un problema, comunque l’aggiornamento può impiegare diversi minuti: cerca di aggiornare il tuo negozio più spesso'; -$_LANG['No files to process, this might be an error.'] = 'Nessun file da elaborare, potrebbe esserci un errore'; -$_LANG['Hosting parameters'] = 'Parametri host'; -$_LANG['PrestaShop tries to automatically set the best settings for your server in order for the update to be successful.'] = 'PrestaShop cerca di impostare automaticamente le migliori configurazioni per il tuo server in modo che l’aggiornamento riesca con successo.'; -$_LANG['PHP parameter'] = 'Parametro PHP'; -$_LANG['Description'] = 'Descrizione'; -$_LANG['Current value'] = 'Valuta attuale'; -$_LANG['Maximum allowed time for the upgrade'] = 'Tempo massimo concesso per l\'aggiornamento'; -$_LANG['Maximum memory allowed for the upgrade'] = 'Memoria massima concessa per l\'aggiornamento'; -$_LANG['All your settings seem to be OK, go for it!'] = 'Tutte le impostazioni sembrano OK, procedi pure!'; -$_LANG['Beware, your settings look correct but are not optimal, if you encounter problems (upgrade too long, memory error...), please ask your hosting provider to increase the values of these parameters: "max_execution_time" and "memory_limit".'] = 'Attenzione, le tue impostazioni sembrano corrette ma non ottimali; se incontrassi dei problemi (aggiornamento troppo lungo, errore di memoria...), chiedi al tuo host di aumentare i valori di questi parametri (tempo massimo di esecuzione e limite di memoria).'; -$_LANG['We strongly recommend that you inform your hosting provider to modify the settings before process to the update.'] = 'Ti suggeriamo di informare il tuo host in modo da modificare le impostazioni prima di iniziare l’aggiornamento.'; -$_LANG['Let\'s go!'] = 'Via!'; -$_LANG['Click on the "Next" button to start the upgrade, this can take several minutes,'] = 'Clicca sul tasto “Successivo” per iniziare l’aggiornamento; potrebbero volerci alcuni minuti,'; -$_LANG['please be patient and do not close this window.'] = 'non chiudere la finestra e attendi'; -$_LANG['Your update is complete!'] = 'L\'aggiornamento è completo!'; -$_LANG['Your shop version is now'] = 'La tua versione adesso è'; -$_LANG['New features in PrestaShop v'] = 'Nuove caratteristiche in PrestaShop v'; -$_LANG['To do this, use our'] = 'A questo scopo, utilizzare il nostro'; -$_LANG['Additional Benefits'] = 'Ulteriori vantaggi'; -$_LANG['Exclusive offers dedicated to PrestaShop merchants'] = 'Offerte esclusivo dedicato ai venditori PrestaShop'; -$_LANG['PHP magic quotes option is off (recommended)'] = 'Opzione magic quotes PHP è disattivata (consigliato)'; -$_LANG['Other activity...'] = 'Altre attività ...'; -$_LANG['Modules'] = 'Moduli'; -$_LANG['Benefits'] = 'Vantaggi'; -$_LANG['Create a MySQL database using phpMyAdmin (or by asking your hosting provider)'] = ''; -$_LANG['- or -'] = '- o -'; -$_LANG['I want to install a new online shop with PrestaShop'] = 'Voglio installare un nuovo shop con PrestaShop'; -$_LANG['I want to update my existing PrestaShop to a newer version'] = 'Voglio aggiornare il mio PrestaShop esistente alla nuova versione'; -$_LANG['Your current version is too old, updates are possible only from version'] = ''; -$_LANG['and higher'] = ''; -$_LANG['PHP settings (for assistance, ask your hosting provider):'] = ''; -$_LANG['Database Configuration'] = ''; -$_LANG['Database login:'] = ''; -$_LANG['Database password:'] = ''; -$_LANG['Please create a MySQL database and then verify your settings below. If you need assistance, please ask your hosting provider for this information.'] = ''; -$_LANG['Ok, please deactivate the following modules, I will reactivate them later:'] = ''; -$_LANG['You will be able to manually reactivate them in your Back Office once the update process has succeeded.'] = ''; -$_LANG['No more information'] = ''; -$_LANG['If your theme is not valid, you may experience some problems in your front-office aspect, but don\'t panic ! To solve this, you can make it compatible by correcting the validators errors or by using a theme compatible with '] = ''; -$_LANG['-- Select your country --'] = '-- scegliere il paese --'; -$_LANG['-- Select your timezone --'] = '-- Scegli il fuso orario --'; \ No newline at end of file diff --git a/install-dev/langs/list.xml b/install-dev/langs/list.xml deleted file mode 100644 index 0e9c067a1..000000000 --- a/install-dev/langs/list.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - ../img/l/1.jpg - - - en-us - - en - - - - ../img/l/2.jpg - - - fr-fr - fr - - fr - - - - ../img/l/3.jpg - - - es-es - es - - es - - - - ../img/l/4.jpg - - - de-de - de - - de - - - - ../img/l/5.jpg - - - it-it - it - - it - - diff --git a/install-dev/langs/us.php b/install-dev/langs/us.php deleted file mode 100644 index aca7e2e58..000000000 --- a/install-dev/langs/us.php +++ /dev/null @@ -1,76 +0,0 @@ - -* @copyright 2007-2011 PrestaShop SA -* @version Release: $Revision: 7520 $ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -@set_time_limit(0); -@ini_set('max_execution_time', '0'); - -define('INSTALL_PATH', dirname(__FILE__)); -require(dirname(__FILE__).'/../config/autoload.php'); - -if (file_exists(INSTALL_PATH.'/../config/settings.inc.php')) -{ - // We don't include this file to avoid a conflict with a new install - $content = file_get_contents(INSTALL_PATH.'/../config/settings.inc.php'); - if (preg_match('#define\(\'_PS_VERSION_\',\s*\'([0-9\.]+)\'\);#', $content, $m)) - { - $oldversion = $m[1]; - if (version_compare($oldversion, '1.5.0.0', '<') == 1) - { - include(INSTALL_PATH.'/classes/Module.php'); - include(INSTALL_PATH.'/classes/Language.php'); - } - } -} - -// setting the memory limit to 128M only if current is lower -$memory_limit = ini_get('memory_limit'); -if ( substr($memory_limit,-1) != 'G' - AND ((substr($memory_limit,-1) == 'M' AND substr($memory_limit,0,-1) < 128) - OR is_numeric($memory_limit) AND (intval($memory_limit) < 131072)) -){ - @ini_set('memory_limit','128M'); -} -require_once(dirname(__FILE__).'/../config/autoload.php'); - -/* Redefine REQUEST_URI if empty (on some webservers...) */ -if (!isset($_SERVER['REQUEST_URI']) || $_SERVER['REQUEST_URI'] == '') - $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME']; -if ($tmp = strpos($_SERVER['REQUEST_URI'], '?')) - $_SERVER['REQUEST_URI'] = substr($_SERVER['REQUEST_URI'], 0, $tmp); -$_SERVER['REQUEST_URI'] = str_replace('//', '/', $_SERVER['REQUEST_URI']); - -define('INSTALL_VERSION', '1.5.0.4'); -define('PS_INSTALLATION_IN_PROGRESS', true); -require_once(INSTALL_PATH.'/classes/ToolsInstall.php'); -define('SETTINGS_FILE', INSTALL_PATH.'/../config/settings.inc.php'); -define('DEFINES_FILE', INSTALL_PATH.'/../config/defines.inc.php'); -define('INSTALLER__PS_BASE_URI', substr($_SERVER['REQUEST_URI'], 0, -1 * (strlen($_SERVER['REQUEST_URI']) - strrpos($_SERVER['REQUEST_URI'], '/')) - strlen(substr(dirname($_SERVER['REQUEST_URI']), strrpos(dirname($_SERVER['REQUEST_URI']), '/')+1)))); -define('INSTALLER__PS_BASE_URI_ABSOLUTE', 'http://'.ToolsInstall::getHttpHost(false, true).INSTALLER__PS_BASE_URI); - -// XML Header -header('Content-Type: text/xml'); - -// Switching method -if (isset($_GET['method'])) -{ - if (in_array($_GET['method'], array('doUpgrade', 'createDB', 'checkShopInfos'))) - { - global $logger; - $logger = new FileLogger(); - $logger->setFilename(dirname(__FILE__).'/../log/'.@date('Ymd').'_installation.log'); - } - switch ($_GET['method']) - { - case 'checkConfig' : - define('_PS_ROOT_DIR_', realpath(INSTALL_PATH.'/../')); - require_once('xml/checkConfig.php'); - break; - - case 'checkDB' : - require_once('xml/checkDB.php'); - break; - - case 'createDB' : - require_once('xml/createDB.php'); - break; - - case 'checkMail' : - require_once('xml/checkMail.php'); - break; - - case 'checkShopInfos' : - require_once('xml/checkShopInfos.php'); - break; - - case 'doUpgrade' : - require_once('xml/doUpgrade.php'); - break; - - case 'getVersionFromDb' : - require_once('xml/getVersionFromDb.php'); - break; - } -} - diff --git a/install-dev/module_tools.php b/install-dev/module_tools.php deleted file mode 100644 index 246699f3c..000000000 --- a/install-dev/module_tools.php +++ /dev/null @@ -1,37 +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 -*/ - -function moduleReinstaller($moduleName, $force = false) -{ - $module = Module::getInstanceByName($moduleName); - if (!is_object($module)) - die(Tools::displayError()); - if ($module->id AND ($module->uninstall() OR $force)) - return $module->install(); - return false; -} - diff --git a/install-dev/php/add_accounting_tab.php b/install-dev/php/add_accounting_tab.php deleted file mode 100644 index 31ff6ef63..000000000 --- a/install-dev/php/add_accounting_tab.php +++ /dev/null @@ -1,20 +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 -*/ - -function add_attribute_position() -{ - $groups = Db::getInstance()->executeS(' - SELECT DISTINCT `id_attribute_group` - FROM `'._DB_PREFIX_.'attribute`'); - if (count($groups) && is_array($groups)) - foreach ($groups as $group) - { - $attributes = Db::getInstance()->executeS(' - SELECT * - FROM `'._DB_PREFIX_.'attribute` - WHERE `id_attribute_group` = '. (int)($group['id_attribute_group'])); - $i = 0; - if (count($attributes) && is_array($attributes)) - foreach ($attributes as $attribute) - { - Db::getInstance()->execute(' - UPDATE `'._DB_PREFIX_.'attribute` - SET `position` = '.$i++.' - WHERE `id_attribute` = '.(int)$attribute['id_attribute'].' - AND `id_attribute_group` = '.(int)$attribute['id_attribute_group']); - } - } -} \ No newline at end of file diff --git a/install-dev/php/add_carrier_position.php b/install-dev/php/add_carrier_position.php deleted file mode 100755 index 2aef8b0ea..000000000 --- a/install-dev/php/add_carrier_position.php +++ /dev/null @@ -1,45 +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 -*/ - -function add_carrier_position() -{ - $carriers = Db::getInstance()->executeS(' - SELECT `id_carrier` - FROM `'._DB_PREFIX_.'carrier` - WHERE `deleted` = 0'); - if (count($carriers) && is_array($carriers)) - { - $i = 0; - foreach ($carriers as $carrier) - { - Db::getInstance()->execute(' - UPDATE `'._DB_PREFIX_.'carrier` - SET `position` = '.$i++.' - WHERE `id_carrier` = '.(int)$carrier['id_carrier']); - } - } -} \ No newline at end of file diff --git a/install-dev/php/add_default_restrictions_modules_groups.php b/install-dev/php/add_default_restrictions_modules_groups.php deleted file mode 100644 index 296df0289..000000000 --- a/install-dev/php/add_default_restrictions_modules_groups.php +++ /dev/null @@ -1,54 +0,0 @@ - -* @copyright 2007-2011 PrestaShop SA -* @version Release: $Revision: 10056 $ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -function add_default_restrictions_modules_groups() -{ - $groups = Db::getInstance()->executeS(' - SELECT `id_group` - FROM `'._DB_PREFIX_.'group`'); - $modules = Db::getInstance()->executeS(' - SELECT m.* - FROM `'._DB_PREFIX_.'module` m'); - $shops = Db::getInstance()->executeS(' - SELECT `id_shop` - FROM `'._DB_PREFIX_.'shop`'); - foreach ($groups as $group) - { - if (!is_array($modules)) - return false; - else - { - $sql = 'INSERT INTO `'._DB_PREFIX_.'module_group` (`id_module`, `id_shop`, `id_group`) VALUES '; - foreach ($modules as $mod) - foreach ($shops as $s) - $sql .= '("'.(int)$mod['id_module'].'", "'.(int)$s.'", "'.(int)$group['id_group'].'"),'; - // removing last comma to avoid SQL error - $sql = substr($sql, 0, strlen($sql) - 1); - Db::getInstance()->execute($sql); - } - } -} \ No newline at end of file diff --git a/install-dev/php/add_feature_position.php b/install-dev/php/add_feature_position.php deleted file mode 100644 index d105ba75d..000000000 --- a/install-dev/php/add_feature_position.php +++ /dev/null @@ -1,42 +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 -*/ - -function add_feature_position() -{ - $features = Db::getInstance()->executeS(' - SELECT `id_feature` - FROM `'._DB_PREFIX_.'feature`'); - $i = 0; - if (sizeof($features) && is_array($features)) - foreach ($features as $feature) - { - Db::getInstance()->execute(' - UPDATE `'._DB_PREFIX_.'feature` - SET `position` = '.$i++.' - WHERE `id_feature` = '.(int)$feature['id_feature']); - } -} \ No newline at end of file diff --git a/install-dev/php/add_group_attribute_position.php b/install-dev/php/add_group_attribute_position.php deleted file mode 100644 index 3c2e25b21..000000000 --- a/install-dev/php/add_group_attribute_position.php +++ /dev/null @@ -1,42 +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 -*/ - -function add_group_attribute_position() -{ - $groups = Db::getInstance()->executeS(' - SELECT * - FROM `'._DB_PREFIX_.'attribute_group`'); - $i = 0; - if (sizeof($groups) && is_array($groups)) - foreach ($groups as $group) - { - Db::getInstance()->execute(' - UPDATE `'._DB_PREFIX_.'attribute_group` - SET `position` = '.$i++.' - WHERE `id_attribute_group` = '.(int)$group['id_attribute_group']); - } -} \ No newline at end of file diff --git a/install-dev/php/add_missing_rewrite_value.php b/install-dev/php/add_missing_rewrite_value.php deleted file mode 100644 index 0c7eeb5bf..000000000 --- a/install-dev/php/add_missing_rewrite_value.php +++ /dev/null @@ -1,46 +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 -*/ - -function add_missing_rewrite_value() -{ - $pages = Db::getInstance()->executeS(' - SELECT * - FROM `'._DB_PREFIX_.'meta` m - LEFT JOIN `'._DB_PREFIX_.'meta_lang` ml ON (m.`id_meta` = ml.`id_meta`) - WHERE ml.`url_rewrite` = \'\' - AND m.`page` != "index" - '); - if (sizeof($pages) && is_array($pages)) - foreach ($pages as $page) - { - Db::getInstance()->execute(' - UPDATE `'._DB_PREFIX_.'meta_lang` - SET `url_rewrite` = "'.pSQL(Tools::str2url($page['title'])).'" - WHERE `id_meta` = '.(int)$page['id_meta'].' - AND `id_lang` = '.(int)$page['id_lang']); - } -} \ No newline at end of file diff --git a/install-dev/php/add_module_to_hook.php b/install-dev/php/add_module_to_hook.php deleted file mode 100644 index 078fb9952..000000000 --- a/install-dev/php/add_module_to_hook.php +++ /dev/null @@ -1,58 +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 -*/ - -function add_module_to_hook($module_name, $hook_name) -{ - $result = false; - - $id_module = Db::getInstance()->getValue(' - SELECT `id_module` FROM `'._DB_PREFIX_.'module` - WHERE `name` = \''.pSQL($module_name).'\'' - ); - - if ((int)$id_module > 0) - { - $id_hook = Db::getInstance()->getValue(' - SELECT `id_hook` FROM `'._DB_PREFIX_.'hook` WHERE `name` = \''.pSQL($hook_name).'\' - '); - - if ((int)$id_hook > 0) - { - $result = Db::getInstance()->execute(' - INSERT IGNORE INTO `'._DB_PREFIX_.'hook_module` (`id_module`, `id_hook`, `position`) - VALUES ( - '.(int)$id_module.', - '.(int)$id_hook.', - (SELECT IFNULL( - (SELECT max_position from (SELECT MAX(position)+1 as max_position FROM `'._DB_PREFIX_.'hook_module` WHERE `id_hook` = '.(int)$id_hook.') AS max_position), 1)) - )'); - } - } - - return $result; -} - diff --git a/install-dev/php/add_new_groups.php b/install-dev/php/add_new_groups.php deleted file mode 100644 index 137aad3e2..000000000 --- a/install-dev/php/add_new_groups.php +++ /dev/null @@ -1,50 +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 -*/ - -function add_new_groups($french, $standard) -{ - Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'group` (`id_group`, `date_add`, `date_upd`) VALUES (NULL, NOW(), NOW())'); - $last_id = Db::getInstance()->Insert_ID(); - - $languages = Db::getInstance()->executeS('SELECT id_lang, iso_code FROM `'._DB_PREFIX_.'lang`'); - - $sql = ''; - foreach ($languages as $lang) - if (strtolower($lang['iso_code']) == 'fr') - $sql .= '('.(int)$last_id.', '.(int)$lang['id_lang'].', "'.pSQL($french).'"),'; - else - $sql .= '('.(int)$last_id.', '.(int)$lang['id_lang'].', "'.pSQL($standard).'"),'; - $sql = substr($sql, 0, strlen($sql) - 1); - Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'group_lang` (`id_group`, `id_lang`, `name`) VALUES '.$sql); - // we add the different id_group in the configuration - if (strtolower($standard) == 'unidentified') - Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'configuration` (`id_configuration`, `name`, `value`, `date_add`, `date_upd`) VALUES (NULL, "PS_UNIDENTIFIED_GROUP", "'.(int)$last_id.'", NOW(), NOW())'); - else if (strtolower($standard) == 'guest') - Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'configuration` (`id_configuration`, `name`, `value`, `date_add`, `date_upd`) VALUES (NULL, "PS_GUEST_GROUP", "'.(int)$last_id.'", NOW(), NOW())'); - else if (strtolower($standard) == 'test') - Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'configuration` (`id_configuration`, `name`, `value`, `date_add`, `date_upd`) VALUES (NULL, "PS_TEST", "'.(int)$last_id.'", NOW(), NOW())'); -} diff --git a/install-dev/php/add_new_tab.php b/install-dev/php/add_new_tab.php deleted file mode 100644 index 3f44c165f..000000000 --- a/install-dev/php/add_new_tab.php +++ /dev/null @@ -1,66 +0,0 @@ - -* @copyright 2007-2011 PrestaShop SA -* @version Release: $Revision: 7450 $ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -function add_new_tab($className, $name, $id_parent, $returnId = false) -{ - $array = array(); - foreach (explode('|', $name) AS $item) - { - $temp = explode(':', $item); - $array[$temp[0]] = $temp[1]; - } - - if (!(int)Db::getInstance()->getValue('SELECT count(id_tab) FROM `'._DB_PREFIX_.'tab` WHERE `class_name` = \''.pSQL($className).'\' ')) - Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'tab` (`id_parent`, `class_name`, `module`, `position`) VALUES ('.(int)$id_parent.', \''.pSQL($className).'\', \'\', - (SELECT IFNULL(MAX(t.position),0)+ 1 FROM `'._DB_PREFIX_.'tab` t WHERE t.id_parent = '.(int)$id_parent.'))'); - - $languages = Db::getInstance()->executeS('SELECT id_lang, iso_code FROM `'._DB_PREFIX_.'lang`'); - foreach ($languages AS $lang) - { - Db::getInstance()->execute(' - INSERT IGNORE INTO `'._DB_PREFIX_.'tab_lang` (`id_lang`, `id_tab`, `name`) - VALUES ('.(int)$lang['id_lang'].', ( - SELECT `id_tab` - FROM `'._DB_PREFIX_.'tab` - WHERE `class_name` = \''.pSQL($className).'\' LIMIT 0,1 - ), \''.pSQL(isset($array[$lang['iso_code']]) ? $array[$lang['iso_code']] : $array['en']).'\') - '); - } - - Db::getInstance()->execute('INSERT IGNORE INTO `'._DB_PREFIX_.'access` (`id_profile`, `id_tab`, `view`, `add`, `edit`, `delete`) - (SELECT `id_profile`, ( - SELECT `id_tab` - FROM `'._DB_PREFIX_.'tab` - WHERE `class_name` = \''.pSQL($className).'\' LIMIT 0,1 - ), 1, 1, 1, 1 FROM `'._DB_PREFIX_.'profile` )'); - - if($returnId) { - return (int)Db::getInstance()->getValue('SELECT `id_tab` - FROM `'._DB_PREFIX_.'tab` - WHERE `class_name` = \''.pSQL($className).'\''); - } -} diff --git a/install-dev/php/add_order_state.php b/install-dev/php/add_order_state.php deleted file mode 100644 index 2cf0c6a69..000000000 --- a/install-dev/php/add_order_state.php +++ /dev/null @@ -1,63 +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 -*/ - -function add_order_state($conf_name, $name, $invoice, $send_email, $color, $unremovable, $logable, $delivery, $template = null) -{ - $name_lang = array(); - $template_lang = array(); - foreach (explode('|', $name) AS $item) - { - $temp = explode(':', $item); - $name_lang[$temp[0]] = $temp[1]; - } - - if ($template) - foreach (explode('|', $template) AS $item) - { - $temp = explode(':', $item); - $template_lang[$temp[0]] = $temp[1]; - } - - Db::getInstance()->execute(' - INSERT INTO `'._DB_PREFIX_.'order_state` (`invoice`, `send_email`, `color`, `unremovable`, `logable`, `delivery`) - VALUES ('.(int)$invoice.', '.(int)$send_email.', \''.pSQL($color).'\', '.(int)$unremovable.', '.(int)$logable.', '.(int)$delivery.')'); - - $id_order_state = Db::getInstance()->getValue(' - SELECT MAX(`id_order_state`) - FROM `'._DB_PREFIX_.'order_state` - '); - - foreach (Language::getLanguages() AS $lang) - { - Db::getInstance()->execute(' - INSERT IGNORE INTO `'._DB_PREFIX_.'order_state_lang` (`id_lang`, `id_order_state`, `name`, `template`) - VALUES ('.(int)$lang['id_lang'].', '.(int)$id_order_state.', \''.pSQL(isset($name_lang[$lang['iso_code']]) ? $name_lang[$lang['iso_code']] : $name_lang['en']).'\', \''.pSQL(isset($template_lang[$lang['iso_code']]) ? $template_lang[$lang['iso_code']] : (isset($template_lang['en']) ? $template_lang['en'] : '')).'\') - '); - } - - Configuration::updateValue($conf_name, $id_order_state); -} \ No newline at end of file diff --git a/install-dev/php/add_stock_tab.php b/install-dev/php/add_stock_tab.php deleted file mode 100644 index 01e61820a..000000000 --- a/install-dev/php/add_stock_tab.php +++ /dev/null @@ -1,80 +0,0 @@ - -* @copyright 2007-2011 PrestaShop SA -* @version Release: $Revision: 7387 $ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -require_once(_PS_INSTALLER_PHP_UPGRADE_DIR_.'add_new_tab.php'); - -function add_stock_tab() -{ - // Patch for the 1.0.1 sql update - Db::getInstance()->query(' - DELETE - FROM `'._DB_PREFIX_.'tab` - WHERE id_parent = 1 - AND class_name = "AdminStocks"'); - - // Create new tabs - $id_parent = add_new_tab( - 'AdminStock', - 'en:Stock|fr:Stock|es:Stock|de:Stock|it:Stock', - 0, - true); - - add_new_tab( - 'AdminWarehouses', - 'en:Warehouses|fr:Entrepôts|es:Warehouses|de:Warehouses|it:Warehouses', - $id_parent); - - add_new_tab( - 'AdminStockManagement', - 'en:Stock Management|fr:Gestion du stock|es:Stock Management|de:Stock Management|it:Stock Management', - $id_parent); - - add_new_tab( - 'AdminStockMvt', - 'en:Stock Movement|fr:Mouvements de Stock|es:Stock Movement|de:Stock Movement|it:Stock Movement', - $id_parent); - - add_new_tab( - 'AdminStockInstantState', - 'en:Stock instant state|fr:Etat instantané du stock|es:Stock instant state|de:Stock instant state|it:Stock instant state', - $id_parent); - - add_new_tab( - 'AdminStockCover', - 'en:Stock cover|fr:Couverture du stock|es:Stock cover|de:Stock cover|it:Stock cover', - $id_parent); - - add_new_tab( - 'AdminSupplyOrders', - 'en:Supply orders|fr:Commandes fournisseurs|es:Supply orders|de:Supply orders|it:Supply orders', - $id_parent); - - add_new_tab( - 'AdminStockConfiguration', - 'en:Configuration|fr:Configuration|es:Configuration|de:Configuration|it:Configuration', - $id_parent); -} diff --git a/install-dev/php/alter_blocklink.php b/install-dev/php/alter_blocklink.php deleted file mode 100644 index e7ff185e2..000000000 --- a/install-dev/php/alter_blocklink.php +++ /dev/null @@ -1,36 +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 -*/ - -function alter_blocklink() -{ - // No one will know if the table does not exist :] Thanks Damien for your solution ;) - DB::getInstance()->Execute('ALTER TABLE `'._DB_PREFIX_.'blocklink_lang` CHANGE `id_link` `id_blocklink` INT( 10 ) UNSIGNED NOT NULL'); - - DB::getInstance()->Execute('ALTER TABLE `'._DB_PREFIX_.'blocklink` CHANGE `id_link` `id_blocklink` INT( 10 ) UNSIGNED NOT NULL'); - -} - diff --git a/install-dev/php/alter_cms_block.php b/install-dev/php/alter_cms_block.php deleted file mode 100644 index a338f15f6..000000000 --- a/install-dev/php/alter_cms_block.php +++ /dev/null @@ -1,40 +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 -*/ - -function alter_cms_block() -{ - // No one will know if the table does not exist :] Thanks Damien for your solution ;) - DB::getInstance()->Execute('ALTER TABLE `'._DB_PREFIX_.'cms_block_lang` CHANGE `id_block_cms` `id_cms_block` INT( 10 ) UNSIGNED NOT NULL'); - - DB::getInstance()->Execute('ALTER TABLE `'._DB_PREFIX_.'cms_block` CHANGE `id_block_cms` `id_cms_block` INT( 10 ) UNSIGNED NOT NULL'); - - DB::getInstance()->Execute('ALTER TABLE `'._DB_PREFIX_.'cms_block_page` CHANGE `id_block_cms` `id_cms_block` INT( 10 ) UNSIGNED NOT NULL'); - - DB::getInstance()->Execute('ALTER TABLE `'._DB_PREFIX_.'cms_block_page` CHANGE `id_block_cms_page` `id_cms_block_page` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT'); - -} - diff --git a/install-dev/php/alter_productcomments_guest_index.php b/install-dev/php/alter_productcomments_guest_index.php deleted file mode 100644 index 56324547b..000000000 --- a/install-dev/php/alter_productcomments_guest_index.php +++ /dev/null @@ -1,39 +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 -*/ - -function alter_productcomments_guest_index() -{ - Configuration::loadConfiguration(); - $productcomments = Module::getInstanceByName('productcomments'); - if (!$productcomments->id) - return; - - DB::getInstance()->Execute(' - ALTER TABLE `'._DB_PREFIX_.'product_comment` - DROP INDEX `id_guest`, ADD INDEX `id_guest` (`id_guest`);'); -} - diff --git a/install-dev/php/blocknewsletter.php b/install-dev/php/blocknewsletter.php deleted file mode 100644 index 3be86d866..000000000 --- a/install-dev/php/blocknewsletter.php +++ /dev/null @@ -1,33 +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 -*/ - -function blocknewsletter() -{ - // No one will know if the table does not exist :] - DB::getInstance()->Execute('ALTER TABLE '._DB_PREFIX_.'newsletter ADD `http_referer` VARCHAR(255) NULL'); -} - diff --git a/install-dev/php/check_webservice_account_table.php b/install-dev/php/check_webservice_account_table.php deleted file mode 100644 index 5fdf89b2e..000000000 --- a/install-dev/php/check_webservice_account_table.php +++ /dev/null @@ -1,44 +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 -*/ - -/** - * Check if all needed columns in webservice_account table exists. - * These columns are used for the WebserviceRequest overriding. - * - * @return void - */ -function check_webservice_account_table() -{ - $sql = 'SHOW COLUMNS FROM '._DB_PREFIX_.'webservice_account'; - $return = DB::getInstance()->executeS($sql); - if (count($return) < 7) - { - $sql = 'ALTER TABLE `'._DB_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`'; - DB::getInstance()->executeS($sql); - } -} \ No newline at end of file diff --git a/install-dev/php/cms_block.php b/install-dev/php/cms_block.php deleted file mode 100644 index 242d95de3..000000000 --- a/install-dev/php/cms_block.php +++ /dev/null @@ -1,33 +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 -*/ -function cms_block() -{ - if (!Db::getInstance()->execute('SELECT `display_store` FROM `'._DB_PREFIX_.'cms_block` LIMIT 1')) - return Db::getInstance()->execute('ALTER TABLE `'._DB_PREFIX_.'cms_block` ADD `display_store` TINYINT NOT NULL DEFAULT \'1\''); - return true; -} - diff --git a/install-dev/php/confcleaner.php b/install-dev/php/confcleaner.php deleted file mode 100644 index 81cf63364..000000000 --- a/install-dev/php/confcleaner.php +++ /dev/null @@ -1,48 +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 -*/ - -function configuration_double_cleaner() -{ - $result = Db::getInstance()->executeS(' - SELECT name, MIN(id_configuration) AS minid - FROM '._DB_PREFIX_.'configuration - GROUP BY name - HAVING count(name) > 1'); - foreach ($result as $row) - { - DB::getInstance()->Execute(' - DELETE FROM '._DB_PREFIX_.'configuration - WHERE name = \''.addslashes($row['name']).'\' - AND id_configuration != '.(int)($row['minid'])); - } - DB::getInstance()->Execute(' - DELETE FROM '._DB_PREFIX_.'configuration_lang - WHERE id_configuration NOT IN ( - SELECT id_configuration - FROM '._DB_PREFIX_.'configuration)'); -} - diff --git a/install-dev/php/country_to_timezone.php b/install-dev/php/country_to_timezone.php deleted file mode 100644 index 40f619a34..000000000 --- a/install-dev/php/country_to_timezone.php +++ /dev/null @@ -1,278 +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 -*/ - -$timezones = array( - 'AD' => 'Europe/Andorra', - 'AE' => 'Asia/Dubai', - 'AF' => 'Asia/Kabul', - 'AG' => 'America/Antigua', - 'AI' => 'America/Anguilla', - 'AL' => 'Europe/Tirane', - 'AM' => 'Asia/Yerevan', - 'AN' => 'America/Curacao', - 'AO' => 'Africa/Luanda', - 'AQ' => 'Antarctica/McMurdo', - 'AR' => 'America/Argentina/Buenos_Aires', - 'AS' => 'Pacific/Pago_Pago', - 'AT' => 'Europe/Vienna', - 'AU' => 'Australia/Lord_Howe', - 'AW' => 'America/Aruba', - 'AX' => 'Europe/Mariehamn', - 'AZ' => 'Asia/Baku', - 'BA' => 'Europe/Sarajevo', - 'BB' => 'America/Barbados', - 'BD' => 'Asia/Dhaka', - 'BE' => 'Europe/Brussels', - 'BF' => 'Africa/Ouagadougou', - 'BG' => 'Europe/Sofia', - 'BH' => 'Asia/Bahrain', - 'BI' => 'Africa/Bujumbura', - 'BJ' => 'Africa/Porto-Novo', - 'BL' => 'America/St_Barthelemy', - 'BM' => 'Atlantic/Bermuda', - 'BN' => 'Asia/Brunei', - 'BO' => 'America/La_Paz', - 'BR' => 'America/Noronha', - 'BS' => 'America/Nassau', - 'BT' => 'Asia/Thimphu', - 'BV' => '', - 'BW' => 'Africa/Gaborone', - 'BY' => 'Europe/Minsk', - 'BZ' => 'America/Belize', - 'CA' => 'America/Toronto', - 'CC' => 'Indian/Cocos', - 'CD' => 'Africa/Kinshasa', - 'CF' => 'Africa/Bangui', - 'CG' => 'Africa/Brazzaville', - 'CH' => 'Europe/Zurich', - 'CI' => 'Africa/Abidjan', - 'CK' => 'Pacific/Rarotonga', - 'CL' => 'America/Santiago', - 'CM' => 'Africa/Douala', - 'CN' => 'Asia/Shanghai', - 'CO' => 'America/Bogota', - 'CR' => 'America/Costa_Rica', - 'CU' => 'America/Havana', - 'CV' => 'Atlantic/Cape_Verde', - 'CX' => 'Indian/Christmas', - 'CY' => 'Asia/Nicosia', - 'CZ' => 'Europe/Prague', - 'DE' => 'Europe/Berlin', - 'DJ' => 'Africa/Djibouti', - 'DK' => 'Europe/Copenhagen', - 'DM' => 'America/Dominica', - 'DO' => 'America/Santo_Domingo', - 'DZ' => 'Africa/Algiers', - 'EC' => 'America/Guayaquil', - 'EE' => 'Europe/Tallinn', - 'EG' => 'Africa/Cairo', - 'EH' => 'Africa/El_Aaiun', - 'ER' => 'Africa/Asmara', - 'ES' => 'Europe/Madrid', - 'ET' => 'Africa/Addis_Ababa', - 'FI' => 'Europe/Helsinki', - 'FJ' => 'Pacific/Fiji', - 'FK' => 'Atlantic/Stanley', - 'FM' => 'Pacific/Chuuk', - 'FO' => 'Atlantic/Faroe', - 'FR' => 'Europe/Paris', - 'GA' => 'Africa/Libreville', - 'GB' => 'Europe/London', - 'GD' => 'America/Grenada', - 'GE' => 'Asia/Tbilisi', - 'GF' => 'America/Cayenne', - 'GG' => 'Europe/Guernsey', - 'GH' => 'Africa/Accra', - 'GI' => 'Europe/Gibraltar', - 'GL' => 'America/Godthab', - 'GM' => 'Africa/Banjul', - 'GN' => 'Africa/Conakry', - 'GP' => 'America/Guadeloupe', - 'GQ' => 'Africa/Malabo', - 'GR' => 'Europe/Athens', - 'GS' => 'Atlantic/South_Georgia', - 'GT' => 'America/Guatemala', - 'GU' => 'Pacific/Guam', - 'GW' => 'Africa/Bissau', - 'GY' => 'America/Guyana', - 'HK' => 'Asia/Hong_Kong', - 'HM' => '', - 'HN' => 'America/Tegucigalpa', - 'HR' => 'Europe/Zagreb', - 'HT' => 'America/Port-au-Prince', - 'HU' => 'Europe/Budapest', - 'ID' => 'Asia/Jakarta', - 'IE' => 'Europe/Dublin', - 'IL' => 'Asia/Jerusalem', - 'IM' => 'Europe/Isle_of_Man', - 'IN' => 'Asia/Kolkata', - 'IO' => 'Indian/Chagos', - 'IQ' => 'Asia/Baghdad', - 'IR' => 'Asia/Tehran', - 'IS' => 'Atlantic/Reykjavik', - 'IT' => 'Europe/Rome', - 'JE' => 'Europe/Jersey', - 'JM' => 'America/Jamaica', - 'JO' => 'Asia/Amman', - 'JP' => 'Asia/Tokyo', - 'KE' => 'Africa/Nairobi', - 'KG' => 'Asia/Bishkek', - 'KH' => 'Asia/Phnom_Penh', - 'KI' => 'Pacific/Tarawa', - 'KM' => 'Indian/Comoro', - 'KN' => 'America/St_Kitts', - 'KP' => 'Asia/Pyongyang', - 'KR' => 'Asia/Seoul', - 'KW' => 'Asia/Kuwait', - 'KY' => 'America/Cayman', - 'KZ' => 'Asia/Almaty', - 'LA' => 'Asia/Vientiane', - 'LB' => 'Asia/Beirut', - 'LC' => 'America/St_Lucia', - 'LI' => 'Europe/Vaduz', - 'LK' => 'Asia/Colombo', - 'LR' => 'Africa/Monrovia', - 'LS' => 'Africa/Maseru', - 'LT' => 'Europe/Vilnius', - 'LU' => 'Europe/Luxembourg', - 'LV' => 'Europe/Riga', - 'LY' => 'Africa/Tripoli', - 'MA' => 'Africa/Casablanca', - 'MC' => 'Europe/Monaco', - 'MD' => 'Europe/Chisinau', - 'ME' => 'Europe/Podgorica', - 'MF' => 'America/Marigot', - 'MG' => 'Indian/Antananarivo', - 'MH' => 'Pacific/Majuro', - 'MK' => 'Europe/Skopje', - 'ML' => 'Africa/Bamako', - 'MM' => 'Asia/Rangoon', - 'MN' => 'Asia/Ulaanbaatar', - 'MO' => 'Asia/Macau', - 'MP' => 'Pacific/Saipan', - 'MQ' => 'America/Martinique', - 'MR' => 'Africa/Nouakchott', - 'MS' => 'America/Montserrat', - 'MT' => 'Europe/Malta', - 'MU' => 'Indian/Mauritius', - 'MV' => 'Indian/Maldives', - 'MW' => 'Africa/Blantyre', - 'MX' => 'America/Mexico_City', - 'MY' => 'Asia/Kuala_Lumpur', - 'MZ' => 'Africa/Maputo', - 'NA' => 'Africa/Windhoek', - 'NC' => 'Pacific/Noumea', - 'NE' => 'Africa/Niamey', - 'NF' => 'Pacific/Norfolk', - 'NG' => 'Africa/Lagos', - 'NI' => 'America/Managua', - 'NL' => 'Europe/Amsterdam', - 'NO' => 'Europe/Oslo', - 'NP' => 'Asia/Kathmandu', - 'NR' => 'Pacific/Nauru', - 'NU' => 'Pacific/Niue', - 'NZ' => 'Pacific/Auckland', - 'OM' => 'Asia/Muscat', - 'PA' => 'America/Panama', - 'PE' => 'America/Lima', - 'PF' => 'Pacific/Tahiti', - 'PG' => 'Pacific/Port_Moresby', - 'PH' => 'Asia/Manila', - 'PK' => 'Asia/Karachi', - 'PL' => 'Europe/Warsaw', - 'PM' => 'America/Miquelon', - 'PN' => 'Pacific/Pitcairn', - 'PR' => 'America/Puerto_Rico', - 'PS' => 'Asia/Gaza', - 'PT' => 'Europe/Lisbon', - 'PW' => 'Pacific/Palau', - 'PY' => 'America/Asuncion', - 'QA' => 'Asia/Qatar', - 'RE' => 'Indian/Reunion', - 'RO' => 'Europe/Bucharest', - 'RS' => 'Europe/Belgrade', - 'RU' => 'Europe/Moscow', - 'RW' => 'Africa/Kigali', - 'SA' => 'Asia/Riyadh', - 'SB' => 'Pacific/Guadalcanal', - 'SC' => 'Indian/Mahe', - 'SD' => 'Africa/Khartoum', - 'SE' => 'Europe/Stockholm', - 'SG' => 'Asia/Singapore', - 'SI' => 'Europe/Ljubljana', - 'SJ' => 'Arctic/Longyearbyen', - 'SK' => 'Europe/Bratislava', - 'SL' => 'Africa/Freetown', - 'SM' => 'Europe/San_Marino', - 'SN' => 'Africa/Dakar', - 'SO' => 'Africa/Mogadishu', - 'SR' => 'America/Paramaribo', - 'ST' => 'Africa/Sao_Tome', - 'SV' => 'America/El_Salvador', - 'SY' => 'Asia/Damascus', - 'SZ' => 'Africa/Mbabane', - 'TC' => 'America/Grand_Turk', - 'TD' => 'Africa/Ndjamena', - 'TF' => 'Indian/Kerguelen', - 'TG' => 'Africa/Lome', - 'TH' => 'Asia/Bangkok', - 'TJ' => 'Asia/Dushanbe', - 'TK' => 'Pacific/Fakaofo', - 'TL' => 'Asia/Dili', - 'TM' => 'Asia/Ashgabat', - 'TN' => 'Africa/Tunis', - 'TO' => 'Pacific/Tongatapu', - 'TR' => 'Europe/Istanbul', - 'TT' => 'America/Port_of_Spain', - 'TV' => 'Pacific/Funafuti', - 'TW' => 'Asia/Taipei', - 'TZ' => 'Africa/Dar_es_Salaam', - 'UA' => 'Europe/Kiev', - 'UG' => 'Africa/Kampala', - 'US' => 'US/Eastern', - 'UY' => 'America/Montevideo', - 'UZ' => 'Asia/Samarkand', - 'VA' => 'Europe/Vatican', - 'VC' => 'America/St_Vincent', - 'VE' => 'America/Caracas', - 'VG' => 'America/Tortola', - 'VI' => 'America/St_Thomas', - 'VN' => 'Asia/Ho_Chi_Minh', - 'VU' => 'Pacific/Efate', - 'WF' => 'Pacific/Wallis', - 'WS' => 'Pacific/Apia', - 'YE' => 'Asia/Aden', - 'YT' => 'Indian/Mayotte', - 'ZA' => 'Africa/Johannesburg', - 'ZM' => 'Africa/Lusaka', - 'ZW' => 'Africa/Harare', -); - - -if (isset($timezones[$_GET['country']]) && $timezones[$_GET['country']]) - die($timezones[$_GET['country']]); -die(''); \ No newline at end of file diff --git a/install-dev/php/create_multistore.php b/install-dev/php/create_multistore.php deleted file mode 100755 index 0938100da..000000000 --- a/install-dev/php/create_multistore.php +++ /dev/null @@ -1,53 +0,0 @@ -execute('INSERT INTO '._DB_PREFIX_.'theme (`id_theme`, `name`) VALUES(\'\', \''.pSQL($theme).'\')'); - $res &= Db::getInstance()->execute('UPDATE '._DB_PREFIX_.'shop - SET - name = (SELECT value - FROM '._DB_PREFIX_.'configuration - WHERE name = "PS_SHOP_NAME" - ), - id_theme = (SELECT id_theme FROM '._DB_PREFIX_.'theme WHERE name=\''.pSQL(_THEME_NAME_).'\') - WHERE id_shop = 1'); - $shop_domain = Db::getInstance()->getValue('SELECT `value` - FROM `'._DB_PREFIX_.'_configuration` - WHERE `name`=\'PS_SHOP_DOMAIN\''); - $shop_domain_ssl = Db::getInstance()->getValue('SELECT `value` - FROM `'._DB_PREFIX_.'_configuration` - WHERE `name`=\'PS_SHOP_DOMAIN_SSL\''); - if(empty($shop_domain)) - { - $shop_domain = Tools::getHttpHost(); - $shop_domain_ssl = Tools::getHttpHost(); - } - - $_PS_DIRECTORY_ = trim(str_replace(' ', '%20', INSTALLER__PS_BASE_URI), '/'); - $_PS_DIRECTORY_ = ($_PS_DIRECTORY_) ? '/'.$_PS_DIRECTORY_.'/' : '/'; - $res &= Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'shop_url` (`id_shop`, `domain`, `domain_ssl`, `physical_uri`, `virtual_uri`, `main`, `active`) - VALUES(1, \''.pSQL($shop_domain).'\', \''.pSQL($shop_domain_ssl).'\', \''.pSQL($_PS_DIRECTORY_).'\', \'\', 1, 1)'); - - // Stock conversion - $sql = 'INSERT INTO `'._DB_PREFIX_.'.stock` (`id_product`, `id_product_attribute`, `id_group_shop`, `id_shop`, `quantity`) - VALUES (SELECT `p.id_product`, 0, 1, 1, `p.quantity` FROM `'._DB_PREFIX_.'.product` p);'; - $res &= Db::getInstance()->execute($sql); - - $sql = 'INSERT INTO `'._DB_PREFIX_.'.stock` (`id_product`, `id_product_attribute`, `id_group_shop`, `id_shop`, `quantity`) - VALUES (SELECT `id_product`, `id_product_attribute`, 1, 1, `quantity` FROM `'._DB_PREFIX_.'product_attribute` p);'; - $res &= Db::getInstance()->execute($sql); - - // Add admin tabs - $shopTabId = add_new_tab('AdminShop', 'it:Shops|es:Shops|fr:Boutiques|de:Shops|en:Shops', 0, true); - add_new_tab('AdminGroupShop', 'it:Group Shops|es:Group Shops|fr:Groupes de boutique|de:Group Shops|en:Group Shops', $shopTabId); - add_new_tab('AdminShopUrl', 'it:Shop Urls|es:Shop Urls|fr:URLs de boutique|de:Shop Urls|en:Shop Urls', $shopTabId); - - return $res; -} diff --git a/install-dev/php/customizations.php b/install-dev/php/customizations.php deleted file mode 100644 index 0cc176c62..000000000 --- a/install-dev/php/customizations.php +++ /dev/null @@ -1,44 +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 -*/ - -define('_CONTAINS_REQUIRED_FIELD_', 2); - -function add_required_customization_field_flag() -{ - if (($result = Db::getInstance()->executeS('SELECT `id_product` FROM `'._DB_PREFIX_.'customization_field` WHERE `required` = 1')) === false) - return false; - if (Db::getInstance()->numRows()) - { - $productIds = array(); - foreach ($result AS $row) - $productIds[] = (int)($row['id_product']); - if (!Db::getInstance()->execute('UPDATE `'._DB_PREFIX_.'product` SET `customizable` = '._CONTAINS_REQUIRED_FIELD_.' WHERE `id_product` IN ('.implode(', ', $productIds).')')) - return false; - } - return true; -} - diff --git a/install-dev/php/database_structure.php b/install-dev/php/database_structure.php deleted file mode 100644 index 1cccf5456..000000000 --- a/install-dev/php/database_structure.php +++ /dev/null @@ -1,47 +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 -*/ - -function group_reduction_column_fix() -{ - if (!Db::getInstance()->execute('SELECT `group_reduction` FROM `'._DB_PREFIX_.'order_detail` LIMIT 1')) - return Db::getInstance()->execute('ALTER TABLE `'._DB_PREFIX_.'order_detail` ADD `group_reduction` DECIMAL(10, 2) NOT NULL AFTER `reduction_amount`'); - return true; -} - -function ecotax_tax_application_fix() -{ - if (!Db::getInstance()->execute('SELECT `ecotax_tax_rate` FROM `'._DB_PREFIX_.'order_detail` LIMIT 1')) - return Db::getInstance()->execute('ALTER TABLE `'._DB_PREFIX_.'order_detail` ADD `ecotax_tax_rate` DECIMAL(5, 3) NOT NULL AFTER `ecotax`'); - return true; -} - -function id_currency_country_fix() -{ - if (!Db::getInstance()->execute('SELECT `id_currency` FROM `'._DB_PREFIX_.'country` LIMIT 1')) - return Db::getInstance()->execute('ALTER TABLE `'._DB_PREFIX_.'country` ADD `id_currency` INT NOT NULL DEFAULT \'0\' AFTER `id_zone`'); - return true; -} \ No newline at end of file diff --git a/install-dev/php/deactivate_custom_modules.php b/install-dev/php/deactivate_custom_modules.php deleted file mode 100644 index 2b861950c..000000000 --- a/install-dev/php/deactivate_custom_modules.php +++ /dev/null @@ -1,65 +0,0 @@ - -* @copyright 2007-2011 PrestaShop SA -* @version Release: $Revision: 7389 $ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -function deactivate_custom_modules() -{ - $db = Db::getInstance(); - $modulesDirOnDisk = Module::getModulesDirOnDisk(); - - $module_list_xml = _PS_ROOT_DIR_.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'xml'.DIRECTORY_SEPARATOR.'modules_list.xml'; - $nativeModules = simplexml_load_file($module_list_xml); - $nativeModules = $nativeModules->modules; - foreach ($nativeModules as $nativeModulesType) - if (in_array($nativeModulesType['type'],array('native','partner'))) - { - $arrNativeModules[] = '""'; - foreach ($nativeModulesType->module as $module) - $arrNativeModules[] = '"'.pSQL($module['name']).'"'; - } - - $arrNonNative = $db->executeS(' - SELECT * - FROM `'._DB_PREFIX_.'module` m - WHERE name NOT IN ('.implode(',',$arrNativeModules).') '); - - $uninstallMe = array("undefined-modules"); - if (is_array($arrNonNative)) - foreach($arrNonNative as $aModule) - $uninstallMe[] = $aModule['name']; - - if (!is_array($uninstallMe)) - $uninstallMe = array($uninstallMe); - - foreach ($uninstallMe as $k=>$v) - $uninstallMe[$k] = '"'.pSQL($v).'"'; - - return Db::getInstance()->execute(' - UPDATE `'._DB_PREFIX_.'module` - SET `active`= 0 - WHERE `name` IN ('.implode(',',$uninstallMe).')'); -} - diff --git a/install-dev/php/deliverynumber.php b/install-dev/php/deliverynumber.php deleted file mode 100644 index d4b51f315..000000000 --- a/install-dev/php/deliverynumber.php +++ /dev/null @@ -1,55 +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 -*/ - -function delivery_number_set() -{ - Configuration::loadConfiguration(); - $number = 1; - - // Update each order with a number - $result = Db::getInstance()->executeS(' - SELECT id_order - FROM '._DB_PREFIX_.'orders - ORDER BY id_order'); - foreach ($result as $row) - { - $order = new Order((int)($row['id_order'])); - $history = $order->getHistory(false); - foreach ($history as $row2) - { - $oS = new OrderState((int)($row2['id_order_state']), Configuration::get('PS_LANG_DEFAULT')); - if ($oS->delivery) - { - Db::getInstance()->execute('UPDATE '._DB_PREFIX_.'orders SET delivery_number = '.(int)($number++).', `delivery_date` = `date_add` WHERE id_order = '.(int)($order->id)); - break ; - } - } - } - // Add configuration var - Configuration::updateValue('PS_DELIVERY_NUMBER', (int)($number)); -} - diff --git a/install-dev/php/drop_image_type_non_unique_index.php b/install-dev/php/drop_image_type_non_unique_index.php deleted file mode 100644 index 4f316b43e..000000000 --- a/install-dev/php/drop_image_type_non_unique_index.php +++ /dev/null @@ -1,8 +0,0 @@ -executeS('SHOW index FROM ps_image_type where column_name = "name" and non_unique=1'); - // do not use pSql, this function is not defined - Db::getInstance()->execute('ALTER TABLE `PREFIX_image_type` DROP INDEX "'.$index.'"'); -} diff --git a/install-dev/php/editorial_update.php b/install-dev/php/editorial_update.php deleted file mode 100644 index 205c26798..000000000 --- a/install-dev/php/editorial_update.php +++ /dev/null @@ -1,73 +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 -*/ - -function editorial_update() -{ - /*Table creation*/ - - if (Db::getInstance()->getValue('SELECT `id_module` FROM `'._DB_PREFIX_.'module` WHERE `name`="editorial"')) - { - Db::getInstance()->execute(' - CREATE TABLE `'._DB_PREFIX_.'editorial` ( - `id_editorial` int(10) unsigned NOT NULL auto_increment, - `body_home_logo_link` varchar(255) NOT NULL, - PRIMARY KEY (`id_editorial`)) - ENGINE=MyISAM DEFAULT CHARSET=utf8'); - - Db::getInstance()->execute(' - CREATE TABLE `'._DB_PREFIX_.'editorial_lang` ( - `id_editorial` int(10) unsigned NOT NULL, - `id_lang` int(10) unsigned NOT NULL, - `body_title` varchar(255) NOT NULL, - `body_subheading` varchar(255) NOT NULL, - `body_paragraph` text NOT NULL, - `body_logo_subheading` varchar(255) NOT NULL, - PRIMARY KEY (`id_editorial`, `id_lang`)) - ENGINE=MyISAM DEFAULT CHARSET=utf8'); - - if (file_exists(dirname(__FILE__).'/../../modules/editorial/editorial.xml')) - { - $xml = simplexml_load_file(dirname(__FILE__).'/../../modules/editorial/editorial.xml'); - Db::getInstance()->execute(' - INSERT INTO `'._DB_PREFIX_.'editorial`(`id_editorial`, `body_home_logo_link`) VALUES(1, "'.(isset($xml->body->home_logo_link) ? pSQL($xml->body->home_logo_link) : '').'")'); - - - $languages = Db::getInstance()->executeS('SELECT * FROM `'._DB_PREFIX_.'lang`'); - foreach ($languages as $language) - Db::getInstance()->execute(' - INSERT INTO `'._DB_PREFIX_.'editorial_lang` (`id_editorial`, `id_lang`, `body_title`, `body_subheading`, `body_paragraph`, `body_logo_subheading`) - VALUES (1, '.(int)($language['id_lang']).', - "'.(isset($xml->body->{'title_'.$language['id_lang']}) ? pSQL($xml->body->{'title_'.$language['id_lang']}) : '').'", - "'.(isset($xml->body->{'subheading_'.$language['id_lang']}) ? pSQL($xml->body->{'subheading_'.$language['id_lang']}) : '').'", - "'.(isset($xml->body->{'paragraph_'.$language['id_lang']}) ? pSQL($xml->body->{'paragraph_'.$language['id_lang']}, true) : '').'", - "'.(isset($xml->body->{'logo_subheading_'.$language['id_lang']}) ? pSQL($xml->body->{'logo_subheading_'.$language['id_lang']}) : '').'")'); - - unlink(dirname(__FILE__).'/../../modules/editorial/editorial.xml'); - } - } -} - diff --git a/install-dev/php/generate_ntree.php b/install-dev/php/generate_ntree.php deleted file mode 100644 index 5ebc37d7b..000000000 --- a/install-dev/php/generate_ntree.php +++ /dev/null @@ -1,31 +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 -*/ - -function generate_ntree() -{ - Category::regenerateEntireNtree(); -} diff --git a/install-dev/php/generate_order_reference.php b/install-dev/php/generate_order_reference.php deleted file mode 100644 index 4245f9b1f..000000000 --- a/install-dev/php/generate_order_reference.php +++ /dev/null @@ -1,17 +0,0 @@ -executeS('SELECT id_order FROM '._DB_PREFIX_.'orders'); - foreach ($orders as $order) - { - $random_ref = ''; - for ($i = 0, $passwd = ''; $i < 9; $i++) - $random_ref .= substr('ABCDEFGHIJKLMNOPQRSTUVWXYZ', mt_rand(0,25), 1); - Db::getInstance()->execute(' - UPDATE '._DB_PREFIX_.'orders - SET reference = \''.$random_ref.'\' - WHERE id_order = '.(int)$order['id_order']); - } -} diff --git a/install-dev/php/generate_tax_rules.php b/install-dev/php/generate_tax_rules.php deleted file mode 100644 index a107d12ce..000000000 --- a/install-dev/php/generate_tax_rules.php +++ /dev/null @@ -1,87 +0,0 @@ -active = 1; - $group->name = 'Rule '.$tax['rate'].'%'; - $group->save(); - $id_tax_rules_group = $group->id; - - - $countries = Db::getInstance()->executeS(' - SELECT * FROM `'._DB_PREFIX_.'country` c - LEFT JOIN `'._DB_PREFIX_.'zone` z ON (c.`id_zone` = z.`id_zone`) - LEFT JOIN `'._DB_PREFIX_.'tax_zone` tz ON (tz.`id_zone` = z.`id_zone`) - WHERE `id_tax` = '.(int)$id_tax - ); - if ($countries) - { - foreach ($countries AS $country) - { - $res = Db::getInstance()->execute(' - INSERT INTO `'._DB_PREFIX_.'tax_rule` (`id_tax_rules_group`, `id_country`, `id_state`, `state_behavior`, `id_tax`) - VALUES ( - '.(int)$group->id.', - '.(int)$country['id_country'].', - 0, - 0, - '.(int)$id_tax. - ')'); - - } - } - - $states = Db::getInstance()->executeS(' - SELECT * FROM `'._DB_PREFIX_.'states s - LEFT JOIN `'._DB_PREFIX_.'tax_state ts ON (ts.`id_state` = s.`id_state`) - WHERE `id_tax` = '.(int)$id_tax - ); - - if ($states) - { - foreach ($states AS $state) - { - if (!in_array($state['tax_behavior'], array(PS_PRODUCT_TAX, PS_STATE_TAX, PS_BOTH_TAX))) - $tax_behavior = PS_PRODUCT_TAX; - else - $tax_behavior = $state['tax_behavior']; - - $res = Db::getInstance()->execute(' - INSERT INTO `'._DB_PREFIX_.'tax_rule` (`id_tax_rules_group`, `id_country`, `id_state`, `state_behavior`, `id_tax`) - VALUES ( - '.(int)$group->id.', - '.(int)$state['id_country'].', - '.(int)$state['id_state'].', - '.(int)$tax_behavior.', - '.(int)$id_tax. - ')'); - } - } - - Db::getInstance()->execute(' - UPDATE `'._DB_PREFIX_.'product` - SET `id_tax_rules_group` = '.(int)$group->id.' - WHERE `id_tax` = '.(int)$id_tax - ); - - Db::getInstance()->execute(' - UPDATE `'._DB_PREFIX_.'carrier` - SET `id_tax_rules_group` = '.(int)$group->id.' - WHERE `id_tax` = '.(int)$id_tax - ); - - - if (Configuration::get('SOCOLISSIMO_OVERCOST_TAX') == $id_tax) - Configuration::updateValue('SOCOLISSIMO_OVERCOST_TAX', $group->id); - } -} - diff --git a/install-dev/php/gridextjs_deprecated.php b/install-dev/php/gridextjs_deprecated.php deleted file mode 100644 index 82b635efe..000000000 --- a/install-dev/php/gridextjs_deprecated.php +++ /dev/null @@ -1,47 +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 -*/ - -/** remove the uncompatible module gridextjs (1.4.0.8 upgrade) - */ -function gridextjs_deprecated() -{ - // if exists, use _PS_MODULE_DIR_ or _PS_ROOT_DIR_ - // instead of guessing the modules dir - if (defined('_PS_MODULE_DIR_')) - $gridextjs_path = _PS_MODULE_DIR_ . 'gridextjs'; - else - if (defined('_PS_ROOT_DIR_')) - $gridextjs_path = _PS_ROOT_DIR_ . '/modules/gridextjs'; - else - $gridextjs_path = dirname(__FILE__).'/../../modules/gridextjs'; - - if (file_exists($gridextjs_path)) - return rename($gridextjs_path, str_replace('gridextjs', 'gridextjs.deprecated', $gridextjs_path)); - - return true; -} - diff --git a/install-dev/php/hook_blocksearch_on_header.php b/install-dev/php/hook_blocksearch_on_header.php deleted file mode 100644 index 8a89f44bc..000000000 --- a/install-dev/php/hook_blocksearch_on_header.php +++ /dev/null @@ -1,49 +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 -*/ - -function hook_blocksearch_on_header() -{ - if ($id_module = Db::getInstance()->getValue('SELECT `id_module` FROM `'._DB_PREFIX_.'module` WHERE `name` = \'blocksearch\'')) - { - $id_hook = Db::getInstance()->getValue(' - SELECT `id_hook` - FROM `'._DB_PREFIX_.'hook` - WHERE `name` = \'header\' - '); - - $position = Db::getInstance()->getValue(' - SELECT MAX(`position`) - FROM `'._DB_PREFIX_.'hook_module` - WHERE `id_hook` = '.(int)$id_hook.' - '); - - Db::getInstance()->Execute(' - INSERT INTO `'._DB_PREFIX_.'hook_module` (`id_module`, `id_hook`, `position`) - VALUES ('.(int)$id_module.', '.(int)$id_hook.', '.($position+1).') - '); - } -} \ No newline at end of file diff --git a/install-dev/php/index.php b/install-dev/php/index.php deleted file mode 100644 index 4e2611d37..000000000 --- a/install-dev/php/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/php/invoicenumber.php b/install-dev/php/invoicenumber.php deleted file mode 100644 index e1f3af103..000000000 --- a/install-dev/php/invoicenumber.php +++ /dev/null @@ -1,55 +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 -*/ - -function invoice_number_set() -{ - Configuration::loadConfiguration(); - $number = 1; - - // Update each order with a number - $result = Db::getInstance()->executeS(' - SELECT id_order - FROM '._DB_PREFIX_.'orders - ORDER BY id_order'); - foreach ($result as $row) - { - $order = new Order((int)($row['id_order'])); - $history = $order->getHistory(false); - foreach ($history as $row2) - { - $oS = new OrderState((int)($row2['id_order_state']), Configuration::get('PS_LANG_DEFAULT')); - if ($oS->invoice) - { - Db::getInstance()->execute('UPDATE '._DB_PREFIX_.'orders SET invoice_number = '.(int)($number++).', `invoice_date` = `date_add` WHERE id_order = '.(int)($order->id)); - break ; - } - } - } - // Add configuration var - Configuration::updateValue('PS_INVOICE_NUMBER', (int)($number)); -} - diff --git a/install-dev/php/migrate_block_info_to_cms_block.php b/install-dev/php/migrate_block_info_to_cms_block.php deleted file mode 100644 index b723119ce..000000000 --- a/install-dev/php/migrate_block_info_to_cms_block.php +++ /dev/null @@ -1,57 +0,0 @@ - -* @copyright 2007-2011 PrestaShop SA -* @version Release: $Revision: 6594 $ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -function migrate_block_info_to_cms_block() -{ - //get ids cms of block information - $id_blockinfos = Db::getInstance()->getValue('SELECT id_module FROM `'._DB_PREFIX_.'module` WHERE name = \'blockinfos\''); - //get ids cms of block information - $ids_cms = Db::getInstance()->executeS('SELECT * FROM `'._DB_PREFIX_.'block_cms` WHERE `id_block` = '.(int)$id_blockinfos); - //check if block info is installed and active - if (sizeof($ids_cms)) - { - //install module blockcms - if (Module::getInstanceByName('blockcms')->install()) - { - //add new block in new cms block - Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'cms_block` (`id_cms_category`, `name`, `location`, `position`) VALUES( 1, \'\', 0, 0)'); - $id_block = Db::getInstance()->Insert_ID(); - - $languages = Language::getLanguages(false); - foreach($languages AS $language) - Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'cms_block_lang` (`id_cms_block`, `id_lang`, `name`) VALUES ('.(int)$id_block.', '.(int)$language['id_lang'].', \'Information\')'); - - //save ids cms of block information in new module cms bloc - foreach($ids_cms AS $id_cms) - Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'cms_block_page` (`id_cms_block`, `id_cms`, `is_category`) VALUES ('.(int)$id_block.', '.(int)$id_cms['id_cms'].', 0)'); - } - else - return true; - } - else - return true; -} \ No newline at end of file diff --git a/install-dev/php/migrate_orders.php b/install-dev/php/migrate_orders.php deleted file mode 100644 index 132958985..000000000 --- a/install-dev/php/migrate_orders.php +++ /dev/null @@ -1,251 +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 -*/ - -function migrate_orders() -{ - if (!defined('PS_TAX_EXC')) - define('PS_TAX_EXC', 1); - - if (!defined('PS_TAX_INC')) - define('PS_TAX_INC', 0); - - $values_order_detail = array(); - $insert_order_detail = 'INSERT INTO `'._DB_PREFIX_.'order_detail_2` - (`id_order_detail`, `id_order`, `id_order_invoice`, `id_warehouse`, `product_id`, `product_attribute_id`, `product_name`, `product_quantity`, `product_quantity_in_stock`, `product_quantity_refunded`, `product_quantity_return`, `product_quantity_reinjected`, `product_price`, `reduction_percent`, `reduction_amount`, `reduction_amount_tax_incl`, `reduction_amount_tax_excl`, `group_reduction`, `product_quantity_discount`, `product_ean13`, `product_upc`, `product_reference`, `product_supplier_reference`, `product_weight`, `tax_computation_method`, `tax_name`, `tax_rate`, `ecotax`, `ecotax_tax_rate`, `discount_quantity_applied`, `download_hash`, `download_nb`, `download_deadline`, `total_price_tax_incl`, `total_price_tax_excl`, `unit_price_tax_incl`, `unit_price_tax_excl`, `total_shipping_price_tax_incl`, `total_shipping_price_tax_excl`, `purchase_supplier_price`, `original_product_price`) - VALUES '; - - $values_order = array(); - $insert_order = 'INSERT INTO `'._DB_PREFIX_.'orders_2` (`id_order`, `reference`, `id_group_shop`, `id_shop`, `id_carrier`, `id_lang`, `id_customer`, `id_cart`, `id_currency`, `id_address_delivery`, `id_address_invoice`, `secure_key`, `payment`, `conversion_rate`, `module`, `recyclable`, `gift`, `gift_message`, `shipping_number`, `total_discounts`, `total_discounts_tax_incl`, `total_discounts_tax_excl`, `total_paid`, `total_paid_tax_incl`, `total_paid_tax_excl`, `total_paid_real`, `total_products`, `total_products_wt`, `total_shipping`, `total_shipping_tax_incl`, `total_shipping_tax_excl`, `carrier_tax_rate`, `total_wrapping`, `total_wrapping_tax_incl`, `total_wrapping_tax_excl`, `invoice_number`, `delivery_number`, `invoice_date`, `delivery_date`, `valid`, `date_add`, `date_upd`) VALUES '; - - // create temporary tables - mo_duplicateTables(); - - $order_res = Db::getInstance()->query( - 'SELECT * - FROM `'._DB_PREFIX_.'orders`'); - - $cpt = 0; - $flush_limit = 1000; - while ($order = Db::getInstance()->nextRow($order_res)) - { - $sum_total_products = 0; - $sum_tax_amount = 0; - $default_group_id = mo_getCustomerDefaultGroup((int)$order['id_customer']); - $price_display_method = mo_getPriceDisplayMethod((int)$default_group_id); - - $order_details_list = Db::getInstance()->executeS(' - SELECT * - FROM `'._DB_PREFIX_.'order_detail` od - LEFT JOIN `'._DB_PREFIX_.'product` p - ON p.id_product = od.product_id - WHERE od.`id_order` = '.(int)($order['id_order'])); - - foreach ($order_details_list as $order_details) - { - // we don't want to erase order_details data in order to create the insert query - $products = mo_setProductPrices($order_details, $price_display_method); - $tax_rate = 1 + ((float)$products['tax_rate'] / 100); - $reduction_amount_tax_incl = (float)$products['reduction_amount']; - - // cart::getTaxesAverageUsed equivalent - $sum_total_products += $products['total_wt']; - $sum_tax_amount += $products['total_wt'] - $products['total_price']; - - $order_details['reduction_amount_tax_incl']= $reduction_amount_tax_incl; - $order_details['reduction_amount_tax_excl']= (float)mo_ps_round($reduction_amount_tax_incl / $tax_rate); - $order_details['total_price_tax_incl']= (float)$products['total_wt']; - $order_details['total_price_tax_excl']= (float)$products['total_price']; - $order_details['unit_price_tax_incl']= (float)$products['product_price_wt']; - $order_details['unit_price_tax_excl']= (float)$products['product_price']; - $values_order_detail[] = '(\''.$order_details['id_order_detail'].'\', \''.$order_details['id_order'].'\', \''.$order_details['id_order_invoice'].'\', \''.$order_details['id_warehouse'].'\', \''.$order_details['product_id'].'\', \''.$order_details['product_attribute_id'].'\', \''.$order_details['product_name'].'\', \''.$order_details['product_quantity'].'\', \''.$order_details['product_quantity_in_stock'].'\', \''.$order_details['product_quantity_refunded'].'\', \''.$order_details['product_quantity_return'].'\', \''.$order_details['product_quantity_reinjected'].'\', \''.$order_details['product_price'].'\', \''.$order_details['reduction_percent'].'\', \''.$order_details['reduction_amount'].'\', \''.$order_details['reduction_amount_tax_incl'].'\', \''.$order_details['reduction_amount_tax_excl'].'\', \''.$order_details['group_reduction'].'\', \''.$order_details['product_quantity_discount'].'\', \''.$order_details['product_ean13'].'\', \''.$order_details['product_upc'].'\', \''.$order_details['product_reference'].'\', \''.$order_details['product_supplier_reference'].'\', \''.$order_details['product_weight'].'\', \''.$order_details['tax_computation_method'].'\', \''.$order_details['tax_name'].'\', \''.$order_details['tax_rate'].'\', \''.$order_details['ecotax'].'\', \''.$order_details['ecotax_tax_rate'].'\', \''.$order_details['discount_quantity_applied'].'\', \''.$order_details['download_hash'].'\', \''.$order_details['download_nb'].'\', \''.$order_details['download_deadline'].'\', \''.$order_details['total_price_tax_incl'].'\', \''.$order_details['total_price_tax_excl'].'\', \''.$order_details['unit_price_tax_incl'].'\', \''.$order_details['unit_price_tax_excl'].'\', \''.$order_details['total_shipping_price_tax_incl'].'\', \''.$order_details['total_shipping_price_tax_excl'].'\', \''.$order_details['purchase_supplier_price'].'\', \''.$order_details['original_product_price'].'\')'; - } - - $average_tax_used = 1; - if ($sum_total_products > 0) - $average_tax_used += ($sum_tax_amount / $sum_total_products) * 0.01; - - // this was done like that previously - $wrapping_tax_rate = 1 + (float)Db::getInstance()->getValue('SELECT value - FROM `'._DB_PREFIX_.'configuration` - WHERE name = "PS_GIFT_WRAPPING_TAX"') / 100; - $carrier_tax_rate = 1 + ((float)$order['carrier_tax_rate'] / 100); - - $total_discount_tax_excl = $order['total_discounts'] / $average_tax_used; - - $order['total_discounts_tax_incl'] = (float)$order['total_discounts']; - $order['total_discounts_tax_excl'] = (float)$total_discount_tax_excl; - $order['total_paid_tax_incl'] = (float)$order['total_paid']; - $order['total_paid_tax_excl'] = (float)$order['total_paid']; - $order['total_shipping_tax_incl'] = (float)$order['total_shipping']; - $order['total_shipping_tax_excl'] = (float)($order['total_shipping'] / $carrier_tax_rate); - $order['total_wrapping_tax_incl'] = (float)$order['total_wrapping']; - $order['total_wrapping_tax_excl'] = ((float)$order['total_wrapping'] / $wrapping_tax_rate); - $values_order[] = '(\''.$order['id_order'].'\', \''.$order['reference'].'\', \''.$order['id_group_shop'].'\', \''.$order['id_shop'].'\', \''.$order['id_carrier'].'\', \''.$order['id_lang'].'\', \''.$order['id_customer'].'\', \''.$order['id_cart'].'\', \''.$order['id_currency'].'\', \''.$order['id_address_delivery'].'\', \''.$order['id_address_invoice'].'\', \''.$order['secure_key'].'\', \''.$order['payment'].'\', \''.$order['conversion_rate'].'\', \''.$order['module'].'\', \''.$order['recyclable'].'\', \''.$order['gift'].'\', \''.$order['gift_message'].'\', \''.$order['shipping_number'].'\', \''.$order['total_discounts'].'\', \''.$order['total_discounts_tax_incl'].'\', \''.$order['total_discounts_tax_excl'].'\', \''.$order['total_paid'].'\', \''.$order['total_paid_tax_incl'].'\', \''.$order['total_paid_tax_excl'].'\', \''.$order['total_paid_real'].'\', \''.$order['total_products'].'\', \''.$order['total_products_wt'].'\', \''.$order['total_shipping'].'\', \''.$order['total_shipping_tax_incl'].'\', \''.$order['total_shipping_tax_excl'].'\', \''.$order['carrier_tax_rate'].'\', \''.$order['total_wrapping'].'\', \''.$order['total_wrapping_tax_incl'].'\', \''.$order['total_wrapping_tax_excl'].'\', \''.$order['invoice_number'].'\', \''.$order['delivery_number'].'\', \''.$order['invoice_date'].'\', \''.$order['delivery_date'].'\', \''.$order['valid'].'\', \''.$order['date_add'].'\', \''.$order['date_upd'].'\')'; - - unset($order); - $cpt++; - - if ($cpt >= $flush_limit) - { - $cpt = 0; - Db::getInstance()->execute($insert_order_detail. implode(',', $values_order_detail)); - Db::getInstance()->execute($insert_order. implode(',', $values_order)); - $values_order = array(); - $values_order_detail = array(); - } - } - - if ($cpt> 0) - { - Db::getInstance()->execute($insert_order_detail. implode(',', $values_order_detail)); - Db::getInstance()->execute($insert_order. implode(',', $values_order)); - } - - mo_renameTables(); -} - - -/** - * mo_ps_round is a simplification of Tools::ps_round: - * - round is always 2 - * - no call to Configuration class - * - * @param mixed $val - * @return void - */ -function mo_ps_round($val){ - static $ps_price_round_mode; - if (empty($ps_price_round_mode)) - { - $ps_price_round_mode = Db::getInstance()->getValue('SELECT value - FROM `'._DB_PREFIX_.'configuration` - WHERE name = "PS_PRICE_ROUND_MODE"'); - } - - switch ($ps_price_round_mode) - { - case PS_ROUND_UP: - return ceil($val * 100)/100; - case PS_ROUND_DOWN: - return floor($val * 100)/100; - default: - return round($val, 2); - } -} - -function mo_duplicateTables() -{ - Db::getInstance()->execute('CREATE TABLE `'._DB_PREFIX_.'orders_2` LIKE `'._DB_PREFIX_.'orders`'); - Db::getInstance()->execute('CREATE TABLE `'._DB_PREFIX_.'order_detail_2` LIKE `'._DB_PREFIX_.'order_detail`'); -} - -function mo_renameTables() -{ - Db::getInstance()->execute('DROP TABLE `'._DB_PREFIX_.'orders`'); - Db::getInstance()->execute('DROP TABLE `'._DB_PREFIX_.'order_detail`'); - - Db::getInstance()->execute('RENAME TABLE `'._DB_PREFIX_.'orders_2` TO `'._DB_PREFIX_.'orders`'); - Db::getInstance()->execute('RENAME TABLE `'._DB_PREFIX_.'order_detail_2` TO `'._DB_PREFIX_.'order_detail`'); -} - -function mo_getCustomerDefaultGroup($id_customer) -{ - static $cache; - if (!isset($cache[$id_customer])) - $cache[$id_customer] = Db::getInstance()->getValue('SELECT `id_default_group` FROM `'._DB_PREFIX_.'customer` WHERE `id_customer` = '.(int)$id_customer); - - return $cache[$id_customer]; -} - -function mo_getPriceDisplayMethod($id_group) -{ - static $cache; - - if (!isset($cache[$id_group])) - $cache[$id_group] = Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue(' - SELECT `price_display_method` - FROM `'._DB_PREFIX_.'group` - WHERE `id_group` = '.(int)$id_group); - - return $cache[$id_group]; -} - -function mo_setProductPrices($row, $tax_calculation_method) -{ - if ($tax_calculation_method == PS_TAX_EXC) - $row['product_price'] = mo_ps_round($row['product_price']); - else - $row['product_price_wt'] = mo_ps_round($row['product_price'] * (1 + $row['tax_rate'] / 100)); - - $group_reduction = 1; - if ($row['group_reduction'] > 0) - $group_reduction = 1 - $row['group_reduction'] / 100; - - if ($row['reduction_percent'] != 0) - { - if ($tax_calculation_method == PS_TAX_EXC) - $row['product_price'] = ($row['product_price'] - $row['product_price'] * ($row['reduction_percent'] * 0.01)); - else - { - $reduction = mo_ps_round($row['product_price_wt'] * ($row['reduction_percent'] * 0.01)); - $row['product_price_wt'] = mo_ps_round(($row['product_price_wt'] - $reduction)); - } - } - - if ($row['reduction_amount'] != 0) - { - if ($tax_calculation_method == PS_TAX_EXC) - $row['product_price'] = ($row['product_price'] - ($row['reduction_amount'] / (1 + $row['tax_rate'] / 100))); - else - $row['product_price_wt'] = mo_ps_round(($row['product_price_wt'] - $row['reduction_amount'])); - } - - if ($row['group_reduction'] > 0) - { - if ($tax_calculation_method == PS_TAX_EXC) - $row['product_price'] = $row['product_price'] * $group_reduction; - else - $row['product_price_wt'] = mo_ps_round($row['product_price_wt'] * $group_reduction); - } - - if (($row['reduction_percent'] OR $row['reduction_amount'] OR $row['group_reduction']) AND $tax_calculation_method == PS_TAX_EXC) - $row['product_price'] = mo_ps_round($row['product_price']); - - if ($tax_calculation_method == PS_TAX_EXC) - $row['product_price_wt'] = mo_ps_round($row['product_price'] * (1 + ($row['tax_rate'] * 0.01))) + mo_ps_round($row['ecotax'] * (1 + $row['ecotax_tax_rate'] / 100)); - else - { - $row['product_price_wt_but_ecotax'] = $row['product_price_wt']; - $row['product_price_wt'] = mo_ps_round($row['product_price_wt'] + $row['ecotax'] * (1 + $row['ecotax_tax_rate'] / 100)); - } - - $row['total_wt'] = $row['product_quantity'] * $row['product_price_wt']; - $row['total_price'] = $row['product_quantity'] * $row['product_price']; - - return $row; -} - diff --git a/install-dev/php/module_tools.php b/install-dev/php/module_tools.php deleted file mode 100644 index aef5f4cf3..000000000 --- a/install-dev/php/module_tools.php +++ /dev/null @@ -1,37 +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 -*/ - -function moduleReinstaller($moduleName, $force = false) -{ - $module = Module::getInstanceByName($moduleName); - if (!is_object($module)) - die(Tools::displayError()); - if ($module->uninstall() OR $force) - return $module->install(); - return false; -} - diff --git a/install-dev/php/move_crossselling.php b/install-dev/php/move_crossselling.php deleted file mode 100644 index 53d37601d..000000000 --- a/install-dev/php/move_crossselling.php +++ /dev/null @@ -1,14 +0,0 @@ -executeS('SELECT FROM `'._DB_PREFIX_.'module` WHERE `name` = \'crossselling\'')) -{ -Db::getInstance()->execute(' -INSERT INTO `'._DB_PREFIX_.'hook_module` (`id_module`, `id_hook`, `position`) -VALUES ((SELECT `id_module` FROM `'._DB_PREFIX_.'module` WHERE `name` = \'crossselling\'), 9, (SELECT max_position FROM (SELECT MAX(position)+1 as max_position FROM `'._DB_PREFIX_.'hook_module` WHERE `id_hook` = 9) tmp))'); -} - -} - diff --git a/install-dev/php/price_converter.php b/install-dev/php/price_converter.php deleted file mode 100644 index 7e1e1e1ca..000000000 --- a/install-dev/php/price_converter.php +++ /dev/null @@ -1,48 +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 -*/ - -/* Convert product prices from the PS < 1.3 wrong rounding system to the new 1.3 one */ -function convert_product_price() -{ - $taxes = Tax::getTaxes(); - $taxRates = array(); - foreach ($taxes as $data) - $taxRates[$data['id_tax']] = (float)($data['rate']) / 100; - $results = DB::getInstance()->executeS('SELECT `id_product`, `price`, `id_tax` FROM `'._DB_PREFIX_.'product`'); - foreach ($results as $row) - if ($row['id_tax']) - { - $price = $row['price'] * (1 + $taxRates[$row['id_tax']]); - $decimalPart = $price - (int)$price; - if ($decimalPart < 0.000001) - { - $newPrice = (float)(number_format($price, 6, '.', '')); - $newPrice = Tools::floorf($newPrice / (1 + $taxRates[$row['id_tax']]), 6); - DB::getInstance()->Execute('UPDATE `'._DB_PREFIX_.'product` SET `price` = '.$newPrice.' WHERE `id_product` = '.(int)$row['id_product']); - } - } -} diff --git a/install-dev/php/regenerate_level_depth.php b/install-dev/php/regenerate_level_depth.php deleted file mode 100644 index bd27cbbd8..000000000 --- a/install-dev/php/regenerate_level_depth.php +++ /dev/null @@ -1,58 +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 -*/ - -/** - * Regenerate the entire category tree level_depth - */ -function regenerate_level_depth() -{ - Db::getInstance()->execute('UPDATE `'._DB_PREFIX_.'category` SET `level_depth` = 0 WHERE `id_category` = 1'); - regenerate_children_categories(1, 0); -} - -/** - * Recursively regenerate the level_depth of this category's children - * - * @param int $id_category - * @param int $level_depth - */ -function regenerate_children_categories($id_category, $level_depth) - { - $categories = Db::getInstance()->executeS('SELECT `id_category` FROM `'._DB_PREFIX_.'category` WHERE `id_parent` = '.(int)$id_category); - if (!$categories) - return; - $new_depth = (int)$level_depth + 1; - $cat_ids = ""; - foreach($categories as $category) - { - $cat_ids .= (string)$category['id_category'].','; - regenerate_children_categories($category['id_category'], $new_depth); - } - $cat_ids = substr($cat_ids, 0, -1); - - Db::getInstance()->execute('UPDATE `'._DB_PREFIX_.'category` SET `level_depth` = '.(int)$new_depth.' WHERE `id_category` IN ('.$cat_ids.')'); - } diff --git a/install-dev/php/remove_duplicate_category_groups.php b/install-dev/php/remove_duplicate_category_groups.php deleted file mode 100644 index 31c4b5085..000000000 --- a/install-dev/php/remove_duplicate_category_groups.php +++ /dev/null @@ -1,52 +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 -*/ - -/** - * Removes duplicates from table category_group caused by a bug in category importing in PS < 1.4.2 - */ -function remove_duplicate_category_groups() -{ - $result = Db::getInstance()->executeS(' - SELECT `id_category`, `id_group`, COUNT(*) as `count` - FROM `'._DB_PREFIX_.'category_group` - GROUP BY `id_category`, `id_group` - ORDER BY `count` DESC'); - - foreach($result as $row) - { - if ((int)$row['count'] > 1) - { - $limit = (int)$row['count'] - 1; - $result = Db::getInstance()->execute(' - DELETE FROM `'._DB_PREFIX_.'category_group` - WHERE `id_category` = '.$row['id_category'].' AND `id_group` = '.$row['id_group'].' - LIMIT '.$limit); - } - else - return; - } -} \ No newline at end of file diff --git a/install-dev/php/remove_module_from_hook.php b/install-dev/php/remove_module_from_hook.php deleted file mode 100644 index cfc67e9fc..000000000 --- a/install-dev/php/remove_module_from_hook.php +++ /dev/null @@ -1,53 +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 -*/ - -function remove_module_from_hook($module_name, $hook_name) -{ - $result = false; - - $id_module = Db::getInstance()->getValue(' - SELECT `id_module` FROM `'._DB_PREFIX_.'module` - WHERE `name` = \''.pSQL($module_name).'\'' - ); - - if ((int)$id_module > 0) - { - $id_hook = Db::getInstance()->getValue(' - SELECT `id_hook` FROM `'._DB_PREFIX_.'hook` WHERE `name` = \''.pSQL($hook_name).'\' - '); - - if ((int)$id_hook > 0) - { - $result = Db::getInstance()->execute(' - DELETE FROM `'._DB_PREFIX_.'hook_module` - WHERE `id_module` = '.(int)$id_module.' AND `id_hook` = '.(int)$id_hook); - } - } - - return $result; -} - diff --git a/install-dev/php/remove_tab.php b/install-dev/php/remove_tab.php deleted file mode 100644 index aed55c88d..000000000 --- a/install-dev/php/remove_tab.php +++ /dev/null @@ -1,11 +0,0 @@ -execute(' - DELETE t, l - FROM `'._DB_PREFIX_.'tab` t LEFT JOIN `'._DB_PREFIX_.'tab_lang` l ON (t.id_tab = l.id_tab) - WHERE t.`class_name` = '.pSQL($tabname)); -} - diff --git a/install-dev/php/reorderpositions.php b/install-dev/php/reorderpositions.php deleted file mode 100644 index 97ad86df1..000000000 --- a/install-dev/php/reorderpositions.php +++ /dev/null @@ -1,75 +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 -*/ - -function reorderpositions() -{ - /* Clean products positions */ - if ($cat = Category::getCategories(1, false, false)) - foreach($cat AS $i => $categ) - Product::cleanPositions((int)$categ['id_category']); - - //clean Category position and delete old position system - Language::loadLanguages(); - $language = Language::getLanguages(); - $cat_parent = Db::getInstance()->executeS('SELECT DISTINCT c.id_parent FROM `'._DB_PREFIX_.'category` c WHERE id_category != 1'); - foreach($cat_parent AS $parent) - { - $result = Db::getInstance()->executeS(' - SELECT DISTINCT c.*, cl.* - FROM `'._DB_PREFIX_.'category` c - LEFT JOIN `'._DB_PREFIX_.'category_lang` cl ON (c.`id_category` = cl.`id_category` AND `id_lang` = '.(int)(Configuration::get('PS_LANG_DEFAULT')).') - WHERE c.id_parent = '.(int)($parent['id_parent']).' - ORDER BY name ASC'); - foreach($result AS $i => $categ) - { - Db::getInstance()->execute(' - UPDATE `'._DB_PREFIX_.'category` - SET `position` = '.(int)($i).' - WHERE `id_parent` = '.(int)($categ['id_parent']).' - AND `id_category` = '.(int)($categ['id_category'])); - } - - $result = Db::getInstance()->executeS(' - SELECT DISTINCT c.*, cl.* - FROM `'._DB_PREFIX_.'category` c - LEFT JOIN `'._DB_PREFIX_.'category_lang` cl ON (c.`id_category` = cl.`id_category`) - WHERE c.id_parent = '.(int)($parent['id_parent']).' - ORDER BY name ASC'); - - // Remove number from category name - foreach($result AS $i => $categ) - Db::getInstance()->execute('UPDATE `'._DB_PREFIX_.'category` c - LEFT JOIN `'._DB_PREFIX_.'category_lang` cl ON (c.`id_category` = cl.`id_category`) - SET `name` = \''.preg_replace('/^[0-9]+\./', '',$categ['name']).'\' - WHERE c.id_category = '.(int)($categ['id_category']).' AND id_lang = \''.(int)($categ['id_lang']).'\''); - } - - /* Clean CMS positions */ - if ($cms_cat = CMSCategory::getCategories(1, false, false)) - foreach($cms_cat AS $i => $categ) - CMS::cleanPositions((int)($categ['id_cms_category'])); -} \ No newline at end of file diff --git a/install-dev/php/set_product_suppliers.php b/install-dev/php/set_product_suppliers.php deleted file mode 100644 index f2b6882a7..000000000 --- a/install-dev/php/set_product_suppliers.php +++ /dev/null @@ -1,51 +0,0 @@ -getValue('SELECT value - FROM `'._DB_PREFIX_.'configuration` WHERE name="PS_CURRENCY_DEFAULT"'); - - //Get all products with positive quantity - $resource = Db::getInstance(_PS_USE_SQL_SLAVE_)->query(' - SELECT id_supplier, id_product, supplier_reference, wholesale_price - FROM `'._DB_PREFIX_.'product` - WHERE `id_supplier` > 0 - '); - - while ($row = Db::getInstance()->nextRow($resource)) - { - //Set default supplier for product - Db::getInstance()->execute(' - INSERT INTO `'._DB_PREFIX_.'product_supplier` - (`id_product`, `id_product_attribute`, `id_supplier`, - `product_supplier_reference`, `product_supplier_price_te`, - `id_currency`) - VALUES - ("'.(int)$row['id_product'].'", "0", "'.(int)$row['id_supplier'].'", - "'.(int)$row['supplier_reference'].'", "'.(int)$row['wholesale_price'].'", - "'.(int)$ps_currency_default.'" - '); - - //Try to get product attribues - $attributes = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(' - SELECT id_product_attribute, supplier_reference, wholesale_price - FROM `'._DB_PREFIX_.'product_attribute` - WHERE `id_product` = '.(int)$row['id_product'] - ); - - //Add each attribute to stock_available - foreach ($attributes as $attribute) - { - // set supplier for attribute - Db::getInstance()->execute(' - INSERT INTO `'._DB_PREFIX_.'product_supplier` - (`id_product`, `id_product_attribute`, - `id_supplier`, `product_supplier_reference`, - `product_supplier_price_te`, `id_currency`) - VALUES - ("'.(int)$row['id_product'].'", "'.(int)$attribute['id_product_attribute'].'", - "'.(int)$row['id_supplier'].'", "'.(int)$attribute['supplier_reference'].'", - "'.(int)$attribute['wholesale_price'].'", "'.(int)$ps_currency_default.'") - '); - } - } -} diff --git a/install-dev/php/set_stock_available.php b/install-dev/php/set_stock_available.php deleted file mode 100644 index 60d16a2e9..000000000 --- a/install-dev/php/set_stock_available.php +++ /dev/null @@ -1,51 +0,0 @@ -query(' - SELECT quantity, id_product, out_of_stock - FROM `'._DB_PREFIX_.'product` - WHERE `active` = 1 - '); - - while ($row = Db::getInstance()->nextRow($resource)) - { - $quantity = 0; - - //Try to get product attribues - $attributes = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(' - SELECT quantity, id_product_attribute - FROM `'._DB_PREFIX_.'product_attribute` - WHERE `id_product` = '.(int)$row['id_product'] - ); - - //Add each attribute to stock_available - foreach ($attributes as $attribute) - { - // add to global quantity - $quantity += $attribute['quantity']; - - //add stock available for attributes - Db::getInstance()->execute(' - INSERT INTO `'._DB_PREFIX_.'stock_available` - (`id_product`, `id_product_attribute`, `id_shop`, `id_group_shop`, `quantity`, `depends_on_stock`, `out_of_stock`) - VALUES - ("'.(int)$row['id_product'].'", "'.(int)$attribute['id_product_attribute'].'", "1", "0", "'.(int)$attribute['quantity'].'", "0", "'.(int)$row['out_of_stock'].'") - '); - } - - if (count($attributes) == 0) - $quantity = (int)$row['quantity']; - - if ($quantity == 0) - continue; - - //Add stock available for product - Db::getInstance()->execute(' - INSERT INTO `'._DB_PREFIX_.'stock_available` - (`id_product`, `id_product_attribute`, `id_shop`, `id_group_shop`, `quantity`, `depends_on_stock`, `out_of_stock`) - VALUES - ("'.(int)$row['id_product'].'", "0", "1", "0", "'.(int)$quantity.'", "0", "'.(int)$row['out_of_stock'].'") - '); - } -} \ No newline at end of file diff --git a/install-dev/php/setallgroupsonhomecategory.php b/install-dev/php/setallgroupsonhomecategory.php deleted file mode 100755 index 58818a37d..000000000 --- a/install-dev/php/setallgroupsonhomecategory.php +++ /dev/null @@ -1,40 +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 -*/ - -function setAllGroupsOnHomeCategory() -{ - $results = Group::getGroups(Configuration::get('PS_LANG_DEFAULT')); - $groups = array(); - foreach ($results AS $result) - $groups[] = $result['id_group']; - if (is_array($groups) && sizeof($groups)) - { - $category = new Category(1); - $category->cleanGroups(); - $category->addGroups($groups); - } -} diff --git a/install-dev/php/setdiscountcategory.php b/install-dev/php/setdiscountcategory.php deleted file mode 100644 index 613383ba7..000000000 --- a/install-dev/php/setdiscountcategory.php +++ /dev/null @@ -1,37 +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 -*/ - -function set_discount_category() -{ - $discounts = Db::getInstance()->executeS('SELECT `id_discount` FROM `'._DB_PREFIX_.'discount`'); - $categories = Db::getInstance()->executeS('SELECT `id_category` FROM `'._DB_PREFIX_.'category`'); - foreach ($discounts AS $discount) - foreach ($categories AS $category) - Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'discount_category` (`id_discount`,`id_category`) VALUES ('.(int)($discount['id_discount']).','.(int)($category['id_category']).')'); -} - - diff --git a/install-dev/php/setpaymentmodule.php b/install-dev/php/setpaymentmodule.php deleted file mode 100644 index 0a79befbb..000000000 --- a/install-dev/php/setpaymentmodule.php +++ /dev/null @@ -1,54 +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 -*/ - -function set_payment_module() -{ - // Get all modules then select only payment ones - $modules = Module::getModulesInstalled(); - foreach ($modules AS $module) - { - $file = _PS_MODULE_DIR_.$module['name'].'/'.$module['name'].'.php'; - if (!file_exists($file)) - continue; - $fd = fopen($file, 'r'); - if (!$fd) - continue ; - $content = fread($fd, filesize($file)); - if (preg_match_all('/extends PaymentModule/U', $content, $matches)) - { - Db::getInstance()->execute(' - INSERT INTO `'._DB_PREFIX_.'module_country` (id_module, id_country) - SELECT '.(int)($module['id_module']).', id_country FROM `'._DB_PREFIX_.'country` WHERE active = 1'); - Db::getInstance()->execute(' - INSERT INTO `'._DB_PREFIX_.'module_currency` (id_module, id_currency) - SELECT '.(int)($module['id_module']).', id_currency FROM `'._DB_PREFIX_.'currency` WHERE deleted = 0'); - } - fclose($fd); - } -} - - diff --git a/install-dev/php/setpaymentmodulegroup.php b/install-dev/php/setpaymentmodulegroup.php deleted file mode 100644 index c26736612..000000000 --- a/install-dev/php/setpaymentmodulegroup.php +++ /dev/null @@ -1,50 +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 -*/ - -function set_payment_module_group() -{ - // Get all modules then select only payment ones - $modules = Module::getModulesInstalled(); - foreach ($modules AS $module) - { - $file = _PS_MODULE_DIR_.$module['name'].'/'.$module['name'].'.php'; - if (!file_exists($file)) - continue; - $fd = @fopen($file, 'r'); - if (!$fd) - continue ; - $content = fread($fd, filesize($file)); - if (preg_match_all('/extends PaymentModule/U', $content, $matches)) - { - Db::getInstance()->execute(' - INSERT INTO `'._DB_PREFIX_.'module_group` (id_module, id_group) - SELECT '.(int)($module['id_module']).', id_group FROM `'._DB_PREFIX_.'group`'); - } - fclose($fd); - } -} - diff --git a/install-dev/php/shop_url.php b/install-dev/php/shop_url.php deleted file mode 100644 index 969255f8d..000000000 --- a/install-dev/php/shop_url.php +++ /dev/null @@ -1,35 +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 -*/ - -function shop_url() -{ - if (!($host = Configuration::get('CANONICAL_URL'))) - $host = Tools::getHttpHost(); - Configuration::updateValue('PS_SHOP_DOMAIN', $host); - Configuration::updateValue('PS_SHOP_DOMAIN_SSL', $host); - return true; -} \ No newline at end of file diff --git a/install-dev/php/update_carrier_url.php b/install-dev/php/update_carrier_url.php deleted file mode 100644 index 3bdda144a..000000000 --- a/install-dev/php/update_carrier_url.php +++ /dev/null @@ -1,43 +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 -*/ - -function update_carrier_url() -{ - // Get all carriers - $sql = ' - SELECT c.`id_carrier`, c.`url` - FROM `'._DB_PREFIX_.'carrier` c'; - $carriers = Db::getInstance()->executeS($sql); - - // Check each one and erase carrier URL if not correct URL - foreach ($carriers as $carrier) - if (!Validate::isAbsoluteUrl($carrier['url'])) - Db::getInstance()->execute(' - UPDATE `'._DB_PREFIX_.'carrier` - SET `url` = \'\' - WHERE `id_carrier`= '.(int)($carrier['id_carrier'])); -} diff --git a/install-dev/php/update_feature_detachable_cache.php b/install-dev/php/update_feature_detachable_cache.php deleted file mode 100644 index 6cc57bfe1..000000000 --- a/install-dev/php/update_feature_detachable_cache.php +++ /dev/null @@ -1,49 +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 -*/ - -function update_feature_detachable_cache() -{ - $array_features = array( - 'PS_SPECIFIC_PRICE_FEATURE_ACTIVE' => 'specific_price', - 'PS_SCENE_FEATURE_ACTIVE' => 'scene', - 'PS_PRODUCT_DOWNLOAD_FEATURE_ACTIVE' => 'product_download', - 'PS_CUSTOMIZATION_FEATURE_ACTIVE' => 'customization_field', - 'PS_CART_RULE_FEATURE_ACTIVE' => 'cart_rule', - 'PS_GROUP_FEATURE_ACTIVE' => 'group', - 'PS_PACK_FEATURE_ACTIVE' => 'pack', - 'PS_ALIAS_FEATURE_ACTIVE' => 'alias', - ); - $res = true; - foreach ($array_features as $config_key => $feature) - { - // array_features is an array defined above, so please don't add bqSql ! - $count = (int)Db::getInstance()->getValue('SELECT count(*) FROM `'._DB_PREFIX_.$feature.'`'); - $res &= Db::getInstance()->execute('REPLACE INTO `'._DB_PREFIX_.'configuration` (name, value) values ("'.$config_key.'", "'.$count.'"'); - - } - return $res; -} diff --git a/install-dev/php/update_for_13version.php b/install-dev/php/update_for_13version.php deleted file mode 100644 index 488be28e2..000000000 --- a/install-dev/php/update_for_13version.php +++ /dev/null @@ -1,16 +0,0 @@ -= 0) - return; // if the old version is a 1.4 version - - // Disable the Smarty 3 - Configuration::updateValue('PS_FORCE_SMARTY_2', 1); - // Disable the URL rewritting - Configuration::updateValue('PS_REWRITING_SETTINGS', 0); - // Disable Canonical redirection - Configuration::updateValue('PS_CANONICAL_REDIRECT', 0); -} \ No newline at end of file diff --git a/install-dev/php/update_image_size_in_db.php b/install-dev/php/update_image_size_in_db.php deleted file mode 100644 index ee504f502..000000000 --- a/install-dev/php/update_image_size_in_db.php +++ /dev/null @@ -1,42 +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 -*/ - -function update_image_size_in_db() -{ - if (file_exists(realpath(INSTALL_PATH.'/../img').'/logo.jpg')) - { - list($width, $height, $type, $attr) = getimagesize(realpath(INSTALL_PATH.'/../img').'/logo.jpg'); - Configuration::updateValue('SHOP_LOGO_WIDTH', (int)round($width)); - Configuration::updateValue('SHOP_LOGO_HEIGHT', (int)round($height)); - } - if (file_exists(realpath(INSTALL_PATH.'/../modules/editorial').'/homepage_logo.jpg')) - { - list($width, $height, $type, $attr) = getimagesize(realpath(INSTALL_PATH.'/../modules/editorial').'/homepage_logo.jpg'); - Configuration::updateValue('EDITORIAL_IMAGE_WIDTH', (int)round($width)); - Configuration::updateValue('EDITORIAL_IMAGE_HEIGHT', (int)round($height)); - } -} diff --git a/install-dev/php/update_module_followup.php b/install-dev/php/update_module_followup.php deleted file mode 100644 index 0fbd65a3a..000000000 --- a/install-dev/php/update_module_followup.php +++ /dev/null @@ -1,37 +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 -*/ - -function update_module_followup() -{ - Configuration::loadConfiguration(); - $followup = Module::getInstanceByName('followup'); - if (!$followup->id) - return; - - Db::getInstance()->execute('ALTER TABLE `'._DB_PREFIX_.'log_email` ADD INDEX `date_add`(`date_add`), ADD INDEX `id_cart`(`id_cart`);'); -} - diff --git a/install-dev/php/update_module_loyalty.php b/install-dev/php/update_module_loyalty.php deleted file mode 100644 index ec26125b4..000000000 --- a/install-dev/php/update_module_loyalty.php +++ /dev/null @@ -1,45 +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 -*/ - -// backward compatibility vouchers should be available in all categories -function update_module_loyalty() -{ - if (Configuration::get('PS_LOYALTY_POINT_VALUE') !== false) - { - $category_list = ''; - - foreach(Category::getSimpleCategories(Configuration::get('PS_LANG_DEFAULT')) as $category) - $category_list .= $category['id_category'].','; - - if (!empty($category_list)) - { - $category_list = rtrim($category_list, ','); - Configuration::updateValue('PS_LOYALTY_VOUCHER_CATEGORY', $category_list); - } - } -} - diff --git a/install-dev/php/update_modules_multishop.php b/install-dev/php/update_modules_multishop.php deleted file mode 100644 index 5b5b61c81..000000000 --- a/install-dev/php/update_modules_multishop.php +++ /dev/null @@ -1,39 +0,0 @@ -getValue('SELECT count(*) FROM `'._DB_PREFIX_.'module` WHERE name = "blockcms"'); - if($block_cms_installed) - { - Db::getInstance()->execute('CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'blocklink_shop` ( - `id_blocklink` int(2) NOT NULL AUTO_INCREMENT, - `id_shop` varchar(255) NOT NULL, - PRIMARY KEY(`id_blocklink`, `id_shop`)) - ENGINE='._MYSQL_ENGINE_.' default CHARSET=utf8'); - - Db::getInstance()->execute(' - CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'cms_block_shop` ( - `id_cms_block` int(10) unsigned NOT NULL auto_increment, - `id_shop` int(10) unsigned NOT NULL, - PRIMARY KEY (`id_cms_block`, `id_shop`) - ) ENGINE='._MYSQL_ENGINE_.' DEFAULT CHARSET=utf8'); - - Db::getInstance()->execute('INSERT INTO '._DB_PREFIX_.'cms_block_shop (cms_block, id_shop) - (SELECT id_cms_block, 1 FROM '._DB_PREFIX_.'cms_block)'); - } - - $block_link_installed = (bool)Db::getInstance()->getValue('SELECT count(*) FROM `'._DB_PREFIX_.'module` WHERE name = "blocklink"'); - if($block_link_installed) - { - Db::getInstance()->execute(' - CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'blocklink_shop` ( - `id_blocklink` int(2) NOT NULL AUTO_INCREMENT, - `id_shop` varchar(255) NOT NULL, - PRIMARY KEY(`id_blocklink`, `id_shop`)) - ENGINE='._MYSQL_ENGINE_.' default CHARSET=utf8'); - Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'blocklink_shop` (id_blocklink, id_shop) - (SELECT id_blocklink, 1 FROM `'._DB_PREFIX_.'blocklink`)'); - } - return true; -} - diff --git a/install-dev/php/update_order_canada.php b/install-dev/php/update_order_canada.php deleted file mode 100644 index 692accddb..000000000 --- a/install-dev/php/update_order_canada.php +++ /dev/null @@ -1,97 +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 -*/ - -function update_order_canada() - { - $sql ='SHOW TABLES LIKE \''._DB_PREFIX_.'order_tax\''; - $table = Db::getInstance()->ExecuteS($sql); - - if (!count($table)) - { - Db::getInstance()->Execute(' - CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'order_tax` ( - `id_order` int(11) NOT NULL, - `tax_name` varchar(40) NOT NULL, - `tax_rate` decimal(6,3) NOT NULL, - `amount` decimal(20,6) NOT NULL - ) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8'); - - - $address_field = Configuration::get('PS_TAX_ADDRESS_TYPE'); - $sql = 'SELECT `id_order` - FROM `'._DB_PREFIX_.'orders` o - LEFT JOIN `'._DB_PREFIX_.'address` a ON (a.`id_address` = o.`'.bqSQL($address_field).'`) - LEFT JOIN `'._DB_PREFIX_.'country` c ON (c.`id_country` = a.`id_country`) - WHERE c.`iso_code` = "CA"'; - - $id_order_list = Db::getInstance()->ExecuteS($sql); - - $values = ''; - foreach ($id_order_list as $id_order) - { - $amount = array(); - $id_order = $id_order['id_order']; - $order = new Order((int)$id_order); - if (!Validate::isLoadedObject($order)) - continue; - - $products = $order->getProducts(); - foreach ($products as $product) - { - if (!array_key_exists($product['tax_name'], $amount)) - $amount[$product['tax_name']] = array('amount' => 0, 'rate' => $product['tax_rate']); - - if ($order->getTaxCalculationMethod() == PS_TAX_EXC) - { - $total_product = $product['product_price'] * $product['product_quantity']; - $amount_tmp = Tools::ps_round($total_product * ($product['tax_rate'] / 100), 2); - $amount[$product['tax_name']]['amount'] += Tools::ps_round($total_product * ($product['tax_rate'] / 100), 2); - } - else - { - $total_product = $product['product_price'] * $product['product_quantity']; - $amount_tmp = Tools::ps_round($total_product - ($total_product / (1 + ($product['tax_rate'] / 100))), 2); - $amount[$product['tax_name']]['amount'] += Tools::ps_round($total_product - ($total_product / (1 + ($product['tax_rate'] / 100))), 2); - } - } - - foreach ($amount as $tax_name => $tax_infos) - $values .= '('.(int)$order->id.', \''.pSQL($tax_name).'\', \''.pSQL($tax_infos['rate']).'\', '.(float)$tax_infos['amount'].'),'; - unset($order); - } - - if (!empty($values)) - { - $values = rtrim($values, ","); - - Db::getInstance()->Execute(' - INSERT INTO `'._DB_PREFIX_.'order_tax` (id_order, tax_name, tax_rate, amount) - VALUES '.$values); - } - } -} - diff --git a/install-dev/php/update_order_detail_taxes.php b/install-dev/php/update_order_detail_taxes.php deleted file mode 100644 index bce213851..000000000 --- a/install-dev/php/update_order_detail_taxes.php +++ /dev/null @@ -1,60 +0,0 @@ -executeS(' - SELECT `id_order_detail`, `tax_name`, `tax_rate` FROM `'._DB_PREFIX_.'order_detail` - '); - $id_lang_list = Db::getInstance()->executeS('SELECT id_lang FROM `'._DB_PREFIX_.'lang`'); - - foreach ($order_detail_taxes as $order_detail_tax) - { - if ($order_detail_tax['tax_rate'] == '0.000') - continue; - - $alternative_tax_name = 'Tax '.$order_detail_tax['tax_rate']; - $create_tax = true; - $id_tax = (int)Db::getInstance()->getValue('SELECT t.`id_tax` - FROM `'._DB_PREFIX_.'tax` t - LEFT JOIN `'._DB_PREFIX_.'tax_lang` tl ON (tl.id_tax = t.id_tax) - WHERE tl.`name` = \''.pSQL($order_detail_tax['tax_name']).'\' '); - $id_tax_alt = (int)Db::getInstance()->getValue('SELECT t.`id_tax` - FROM `'._DB_PREFIX_.'tax` t - LEFT JOIN `'._DB_PREFIX_.'tax_lang` tl ON (tl.id_tax = t.id_tax) - WHERE tl.`name` = \''.pSQL($alternative_tax_name).'\' '); - - if ( $id_tax || $id_tax_alt) - { - $create_tax = !(bool)Db::getInstance()->getValue('SELECT count(*) - FROM `'._DB_PREFIX_.'tax` - WHERE id_tax = '. (int)$id_tax .' - AND rate = "'.pSql($order_detail_tax['tax_rate']).'" - '); - } - - if ($create_tax) - { - $tax_name = (isset($order_detail_tax['tax_name']) ? $order_detail_tax['tax_name'] : $alternative_tax_name); - - Db::getInstance()->Execute( - 'INSERT INTO `'._DB_PREFIX_.'tax` (`rate`, `active`, `deleted`) - VALUES (\''.(float)$order_detail_tax['tax_rate'].'\', 0, 1)' - ); - - $id_tax = Db::getInstance()->Insert_ID(); - foreach ($id_lang_list as $id_lang) - { - Db::getInstance()->Execute(' - INSERT INTO `'._DB_PREFIX_.'tax_lang` (`id_tax`, `id_lang`, `name`) - VALUES ('.(int)$id_tax.','.(int)$id_lang['id_lang'].',\''.pSQL($tax_name).'\') - '); - } - } - - Db::getInstance()->execute(' - INSERT INTO `'._DB_PREFIX_.'order_detail_tax` (`id_order_detail`, `id_tax`) - VALUES ('.(int)$order_detail_tax['id_order_detail'].','.$id_tax.') - '); - - } -} diff --git a/install-dev/php/update_order_details.php b/install-dev/php/update_order_details.php deleted file mode 100644 index 8067c5a9f..000000000 --- a/install-dev/php/update_order_details.php +++ /dev/null @@ -1,39 +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 -*/ - -function update_order_details() -{ - $res = Db::getInstance()->executeS('SHOW COLUMNS FROM `'._DB_PREFIX_.'order_detail` LIKE \'reduction_percent\''); - - if (sizeof($res) == 0) - { - Db::getInstance()->execute('ALTER TABLE `'._DB_PREFIX_.'order_detail` ADD `reduction_percent` DECIMAL(10, 2) NOT NULL default \'0.00\' AFTER `product_price`'); - Db::getInstance()->execute('ALTER TABLE `'._DB_PREFIX_.'order_detail` ADD `reduction_amount` DECIMAL(20, 6) NOT NULL default \'0.000000\' AFTER `reduction_percent`'); - } -} - - diff --git a/install-dev/php/update_products_ecotax_v133.php b/install-dev/php/update_products_ecotax_v133.php deleted file mode 100644 index a307825ae..000000000 --- a/install-dev/php/update_products_ecotax_v133.php +++ /dev/null @@ -1,36 +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 -*/ - -function update_products_ecotax_v133() -{ - global $oldversion; - if($oldversion < '1.3.3.0') - { - Db::getInstance()->execute('UPDATE `'._DB_PREFIX_.'product` SET `ecotax` = \'0\' WHERE 1'); - Db::getInstance()->execute('UPDATE `'._DB_PREFIX_.'order_detail` SET `ecotax` = \'0\' WHERE 1;'); - } -} \ No newline at end of file diff --git a/install-dev/php/update_stock_mvt_reason.php b/install-dev/php/update_stock_mvt_reason.php deleted file mode 100644 index 987eedcbd..000000000 --- a/install-dev/php/update_stock_mvt_reason.php +++ /dev/null @@ -1,108 +0,0 @@ -executeS(' - SELECT smr.* - FROM `'._DB_PREFIX_.'stock_mvt_reason` - WHERE `id` > 5 - '); - - //Get all stock mvts reasons language traduction already presents in the solution (from 1.4.x) - //Remove standard movements to keep only custom movement - $mvts_lang = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(' - SELECT smrl.* - FROM `'._DB_PREFIX_.'stock_movement_reason_lang` - WHERE `id_stock_mvt_reason` > 5 - '); - - //Clean table - Db::getInstance()->query('TRUNCATE TABLE `'._DB_PREFIX_.'stock_movement_reason`'); - Db::getInstance()->query('TRUNCATE TABLE `'._DB_PREFIX_.'stock_movement_reason_lang`'); - - //Recreate new standards movements - Db::getInstance()->execute(' - 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()) - '); - - Db::getInstance()->execute(" - 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') - "); - - //Add custom movements - if (is_array($mvts)) - { - foreach ($mvts as $mvt) - { - Db::getInstance()->execute(' - INSERT INTO `PREFIX_stock_mvt_reason` (`sign`, `date_add`, `date_upd`) - VALUES ("'.(int)$mvt['sign'].'", "'.pSQL($mvt['date_add']).'", "'.pSQL($mvt['date_upd']).'") - '); - - $row_id = Db::getInstance()->Insert_ID(); - - foreach ($mvts_lang as $mvt_lang) - { - if ($mvt_lang['id_stock_mvt_reason'] != $mvt['id']) - continue; - - Db::getInstance()->execute(' - INSERT INTO `PREFIX_stock_mvt_reason_lang` (`id_stock_mvt_reason`, `id_lang`, `name`) - VALUES ("'.(int)$row_id.'", "'.(int)$mvt_lang['id_lang'].'", "'.pSQL($mvt_lang['name']).'") - '); - } - } - } -} \ No newline at end of file diff --git a/install-dev/php/updatemodulessql.php b/install-dev/php/updatemodulessql.php deleted file mode 100644 index 46ed39415..000000000 --- a/install-dev/php/updatemodulessql.php +++ /dev/null @@ -1,41 +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 -*/ - -function update_modules_sql() -{ - Configuration::loadConfiguration(); - $blocklink = Module::getInstanceByName('blocklink'); - if ($blocklink->id) - Db::getInstance()->execute('ALTER IGNORE TABLE `'._DB_PREFIX_.'blocklink_lang` ADD PRIMARY KEY (`id_link`, `id_lang`);'); - $productComments = Module::getInstanceByName('productcomments'); - if ($productComments->id) - { - Db::getInstance()->execute('ALTER IGNORE TABLE `'._DB_PREFIX_.'product_comment_grade` ADD PRIMARY KEY (`id_product_comment`, `id_product_comment_criterion`);'); - Db::getInstance()->execute('ALTER IGNORE TABLE `'._DB_PREFIX_.'product_comment_criterion` DROP PRIMARY KEY, ADD PRIMARY KEY (`id_product_comment_criterion`, `id_lang`);'); - Db::getInstance()->execute('ALTER IGNORE TABLE `'._DB_PREFIX_.'product_comment_criterion_product` ADD PRIMARY KEY(`id_product`, `id_product_comment_criterion`);'); - } -} diff --git a/install-dev/php/updateproductcomments.php b/install-dev/php/updateproductcomments.php deleted file mode 100644 index a3f649ca4..000000000 --- a/install-dev/php/updateproductcomments.php +++ /dev/null @@ -1,58 +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 -*/ - -function updateproductcomments() -{ - if (Db::getInstance()->executeS('SELECT * FROM '._DB_PREFIX_.'product_comment') !== false) - { - Db::getInstance()->execute('CREATE TABLE IF NOT EXISTS '._DB_PREFIX_.'product_comment_criterion_lang ( - `id_product_comment_criterion` INT( 11 ) UNSIGNED NOT NULL , - `id_lang` INT(11) UNSIGNED NOT NULL , - `name` VARCHAR(64) NOT NULL , - PRIMARY KEY ( `id_product_comment_criterion` , `id_lang` ) - ) ENGINE='._MYSQL_ENGINE_.' DEFAULT CHARSET=utf8'); - Db::getInstance()->execute('CREATE TABLE IF NOT EXISTS '._DB_PREFIX_.'product_comment_criterion_category ( - `id_product_comment_criterion` int(10) unsigned NOT NULL, - `id_category` int(10) unsigned NOT NULL, - PRIMARY KEY(`id_product_comment_criterion`, `id_category`), - KEY `id_category` (`id_category`) - ) ENGINE='._MYSQL_ENGINE_.' DEFAULT CHARSET=utf8'); - Db::getInstance()->execute('ALTER TABLE '._DB_PREFIX_.'product_comment ADD `id_guest` INT(11) NULL AFTER `id_customer`'); - Db::getInstance()->execute('ALTER TABLE '._DB_PREFIX_.'product_comment ADD `customer_name` varchar(64) NULL AFTER `content`'); - Db::getInstance()->execute('ALTER TABLE '._DB_PREFIX_.'product_comment ADD `deleted` tinyint(1) NOT NULL AFTER `validate`'); - Db::getInstance()->execute('ALTER TABLE '._DB_PREFIX_.'product_comment ADD INDEX (id_customer)'); - Db::getInstance()->execute('ALTER TABLE '._DB_PREFIX_.'product_comment ADD INDEX (id_guest)'); - Db::getInstance()->execute('ALTER TABLE '._DB_PREFIX_.'product_comment ADD INDEX (id_product)'); - Db::getInstance()->execute('ALTER TABLE '._DB_PREFIX_.'product_comment_criterion DROP `id_lang`'); - Db::getInstance()->execute('ALTER TABLE '._DB_PREFIX_.'product_comment_criterion DROP `name`'); - Db::getInstance()->execute('ALTER TABLE '._DB_PREFIX_.'product_comment_criterion ADD `id_product_comment_criterion_type` tinyint(1) NOT NULL AFTER `id_product_comment_criterion`'); - Db::getInstance()->execute('ALTER TABLE '._DB_PREFIX_.'product_comment_criterion ADD `active` tinyint(1) NOT NULL AFTER `id_product_comment_criterion_type`'); - Db::getInstance()->execute('ALTER IGNORE TABLE `'._DB_PREFIX_.'product_comment` ADD `title` VARCHAR(64) NULL AFTER `id_guest`;'); - } -} - - diff --git a/install-dev/php/updatetabicon_from_11version.php b/install-dev/php/updatetabicon_from_11version.php deleted file mode 100644 index 1ff7b18f9..000000000 --- a/install-dev/php/updatetabicon_from_11version.php +++ /dev/null @@ -1,47 +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 -*/ -function updatetabicon_from_11version() -{ - global $oldversion; - if (version_compare($oldversion,'1.5.0.0','<')) - { - - $rows = Db::getInstance()->executeS('SELECT `id_tab`,`class_name` FROM '._DB_PREFIX_.'tab'); - if (sizeof($rows)) - { - $img_dir = scandir(_PS_IMG_DIR_.'/t/'); - $result = true; - foreach ($rows as $tab) - { - if (file_exists(_PS_IMG_DIR_.'/t/'.$tab['id_tab'].'.gif') - AND !file_exists(_PS_IMG_DIR_.'/t/'.$tab['class_name'].'.gif')) - $result &= rename(_PS_IMG_DIR_.'/t/'.$tab['id_tab'].'.gif',_PS_IMG_DIR_.'/t/'.$tab['class_name'].'.gif'); - } - } - } - return true; -} diff --git a/install-dev/php/utf8.php b/install-dev/php/utf8.php deleted file mode 100644 index 09136ffe1..000000000 --- a/install-dev/php/utf8.php +++ /dev/null @@ -1,136 +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 -*/ - -if(!defined('_PS_MAGIC_QUOTES_GPC_')) -define('_PS_MAGIC_QUOTES_GPC_', get_magic_quotes_gpc()); - -function latin1_database_to_utf8() -{ - global $requests, $warningExist; - - $tables = array( - array('name' => 'address', 'id' => 'id_address', 'fields' => array('alias', 'company', 'name', 'surname', 'address1', 'address2', 'postcode', 'city', 'other', 'phone', 'phone_mobile')), - array('name' => 'alias', 'id' => 'id_alias', 'fields' => array('alias', 'search')), - array('name' => 'attribute_group_lang', 'id' => 'id_attribute_group', 'lang' => true, 'fields' => array('name', 'public_name')), - array('name' => 'attribute_lang', 'id' => 'id_attribute', 'lang' => true, 'fields' => array('name')), - array('name' => 'carrier', 'id' => 'id_carrier', 'fields' => array('name', 'url')), - array('name' => 'carrier_lang', 'id' => 'id_carrier', 'lang' => true, 'fields' => array('delay')), - array('name' => 'cart', 'id' => 'id_cart', 'fields' => array('gift_message')), - array('name' => 'category_lang', 'id' => 'id_category', 'lang' => true, 'fields' => array('name', 'description', 'link_rewrite', 'meta_title', 'meta_keywords', 'meta_description')), - array('name' => 'configuration', 'id' => 'id_configuration', 'fields' => array('name', 'value')), - array('name' => 'configuration_lang', 'id' => 'id_configuration', 'lang' => true, 'fields' => array('value')), - array('name' => 'contact', 'id' => 'id_contact', 'fields' => array('email')), - array('name' => 'contact_lang', 'id' => 'id_contact', 'lang' => true, 'fields' => array('name', 'description')), - array('name' => 'country', 'id' => 'id_country', 'fields' => array('iso_code')), - array('name' => 'country_lang', 'id' => 'id_country', 'lang' => true, 'fields' => array('name')), - array('name' => 'currency', 'id' => 'id_currency', 'fields' => array('name', 'iso_code', 'sign')), - array('name' => 'customer', 'id' => 'id_customer', 'fields' => array('email', 'passwd', 'name', 'surname')), - array('name' => 'discount', 'id' => 'id_discount', 'fields' => array('name')), - array('name' => 'discount_lang', 'id' => 'id_discount', 'lang' => true, 'fields' => array('description')), - array('name' => 'discount_type_lang', 'id' => 'id_discount_type', 'lang' => true, 'fields' => array('name')), - array('name' => 'employee', 'id' => 'id_employee', 'fields' => array('name', 'surname', 'email', 'passwd')), - array('name' => 'feature_lang', 'id' => 'id_feature', 'lang' => true, 'fields' => array('name')), - array('name' => 'feature_value_lang', 'id' => 'id_feature_value', 'lang' => true, 'fields' => array('value')), - array('name' => 'hook', 'id' => 'id_hook', 'fields' => array('name', 'title', 'description')), - array('name' => 'hook_module_exceptions', 'id' => 'id_hook_module_exceptions', 'fields' => array('file_name')), - array('name' => 'image_lang', 'id' => 'id_image', 'lang' => true, 'fields' => array('legend')), - array('name' => 'image_type', 'id' => 'id_image_type', 'fields' => array('name')), - array('name' => 'lang', 'id' => 'id_lang', 'fields' => array('name', 'iso_code')), - array('name' => 'manufacturer', 'id' => 'id_manufacturer', 'fields' => array('name')), - array('name' => 'message', 'id' => 'id_message', 'fields' => array('message')), - array('name' => 'module', 'id' => 'id_module', 'fields' => array('name')), - array('name' => 'orders', 'id' => 'id_order', 'fields' => array('payment', 'module', 'gift_message', 'shipping_number')), - array('name' => 'order_detail', 'id' => 'id_order_detail', 'fields' => array('product_name', 'product_reference', 'tax_name', 'download_hash')), - array('name' => 'order_discount', 'id' => 'id_order_discount', 'fields' => array('name')), - array('name' => 'order_state', 'id' => 'id_order_state', 'fields' => array('color')), - array('name' => 'order_state_lang', 'id' => 'id_order_state', 'lang' => true, 'fields' => array('name', 'template')), - array('name' => 'product', 'id' => 'id_product', 'fields' => array('ean13', 'reference')), - array('name' => 'product_attribute', 'id' => 'id_product_attribute', 'fields' => array('reference', 'ean13')), - array('name' => 'product_download', 'id' => 'id_product_download', 'fields' => array('display_filename', 'filename')), - array('name' => 'product_lang', 'id' => 'id_product', 'lang' => true, 'fields' => array('description', 'description_short', 'link_rewrite', 'meta_description', 'meta_keywords', 'meta_title', 'name', 'availability')), - array('name' => 'profile_lang', 'id' => 'id_profile', 'lang' => true, 'fields' => array('name')), - array('name' => 'quick_access', 'id' => 'id_quick_access', 'fields' => array('link')), - array('name' => 'quick_access_lang', 'id' => 'id_quick_access', 'lang' => true, 'fields' => array('name')), - array('name' => 'supplier', 'id' => 'id_supplier', 'fields' => array('name')), - array('name' => 'tab', 'id' => 'id_tab', 'fields' => array('class_name')), - array('name' => 'tab_lang', 'id' => 'id_tab', 'lang' => true, 'fields' => array('name')), - array('name' => 'tag', 'id' => 'id_tag', 'fields' => array('name')), - array('name' => 'tax_lang', 'id' => 'id_tax', 'lang' => true, 'fields' => array('name')), - array('name' => 'zone', 'id' => 'id_zone', 'fields' => array('name')) - ); - - foreach ($tables AS $table) - { - /* Latin1 datas' selection */ - if (!Db::getInstance()->execute('SET NAMES latin1')) - echo 'Cannot change the sql encoding to latin1!'; - $query = 'SELECT `'.$table['id'].'`'; - foreach ($table['fields'] AS $field) - $query .= ', `'.$field.'`'; - if (isset($table['lang']) AND $table['lang']) - $query .= ', `id_lang`'; - $query .= ' FROM `'._DB_PREFIX_.$table['name'].'`'; - $latin1Datas = Db::getInstance()->executeS($query); - if ($latin1Datas === false) - { - $warningExist = true; - $requests .= ' - - - getMsgError()).']]> - getNumberError()).']]> - '."\n"; - } - - if (Db::getInstance()->NumRows()) - { - /* Utf-8 datas' restitution */ - if (!Db::getInstance()->execute('SET NAMES utf8')) - echo 'Cannot change the sql encoding to utf8!'; - foreach ($latin1Datas AS $latin1Data) - { - $query = 'UPDATE `'._DB_PREFIX_.$table['name'].'` SET'; - foreach ($table['fields'] AS $field) - $query .= ' `'.$field.'` = \''.pSQL($latin1Data[$field]).'\','; - $query = rtrim($query, ','); - $query .= ' WHERE `'.$table['id'].'` = '.(int)($latin1Data[$table['id']]); - if (isset($table['lang']) AND $table['lang']) - $query .= ' AND `id_lang` = '.(int)($latin1Data['id_lang']); - if (!Db::getInstance()->execute($query)) - { - $warningExist = true; - $requests .= ' - - - getMsgError()).']]> - getNumberError()).']]> - '."\n"; - } - } - } - } -} diff --git a/install-dev/preactivation.php b/install-dev/preactivation.php deleted file mode 100644 index 94ad17f96..000000000 --- a/install-dev/preactivation.php +++ /dev/null @@ -1,125 +0,0 @@ -'), trim($object->{$field.'_'.((int)($_GET['language'])+1)})); - if (property_exists($object, $field.'_1')) - return str_replace(array('!|', '|!'), array('<', '>'), trim($object->{$field.'_1'})); - return ''; - } - - if ($_GET['request'] == 'form') - { - $p = addslashes(strtolower($_GET['partner'])); - $c = addslashes(strtolower($_GET['country_iso_code'])); - - $stream_context = @stream_context_create(array('http' => array('method'=>"GET", 'timeout' => 5))); - $content = @file_get_contents('http://api.prestashop.com/partner/preactivation/fields.php?version=1.0&partner='.$p.'&country_iso_code='.$c, false, $stream_context); - - if ($content && $content[0] == '<') - { - $result = simplexml_load_string($content); - if ($result) - { - $varList = ""; - if (count($result->field) > 0) - { - echo '


    '; - foreach ($result->field AS $field) - { - echo '
    '; - if ($field->type == 'text' || $field->type == 'password') - echo 'size) ? 'size="'.$field->size.'"' : '').' value="'.(isset($_GET[trim($field->key)]) ? $_GET[trim($field->key)] : $field->default).'" />'; - elseif ($field->type == 'radio') - { - foreach ($field->values as $key => $value) - echo getPreinstallXmlLang($value, 'label').' value == $field->default ? 'checked="checked"' : '').' />'; - } - elseif ($field->type == 'select') - { - echo ''; - } - elseif ($field->type == 'date') - { - echo ''; - echo ''; - echo ''; - } - if (getPreinstallXmlLang($field, 'help')) - echo ' '.getPreinstallXmlLang($field, 'help'); - echo '

    '; - if ($field->type == 'date') - $varList .= "'&".$field->key."='+$('#".$p."_".$c."_form_".$field->key."_year').val()+'-'+$('#".$p."_".$c."_form_".$field->key."_month').val()+'-'+$('#".$p."_".$c."_form_".$field->key."_day').val()+\n"; - else - $varList .= "'&".$field->key."='+ encodeURIComponent($('#".$p."_".$c."_form_".$field->key."').val())+\n"; - } - } - echo ' - '; - } - } - - } - - if ($_GET['request'] == 'send') - { - $stream_context = @stream_context_create(array('http' => array('method'=>"GET", 'timeout' => 5))); - $url = 'http://api.prestashop.com/partner/preactivation/actions.php?version=1.0&partner='.addslashes($_GET['partner']); - - // Protect fields - foreach ($_GET as $key => $value) - $_GET[$key] = strip_tags(str_replace(array('\'', '"'), '', trim($value))); - - // Encore Get, Send It and Get Answers - @require_once('../config/settings.inc.php'); - foreach ($_GET as $key => $val) - $url .= '&'.$key.'='.urlencode($val); - $url .= '&security='.md5($_GET['email']._COOKIE_IV_); - $content = @file_get_contents($url, false, $stream_context); - if ($content) - echo $content; - else - echo 'KO|Could not connect with Prestashop.com'; - } - -?> - diff --git a/install-dev/sql/db.sql b/install-dev/sql/db.sql deleted file mode 100644 index 52977cf5d..000000000 --- a/install-dev/sql/db.sql +++ /dev/null @@ -1,2376 +0,0 @@ -SET NAMES 'utf8'; - -CREATE TABLE `PREFIX_access` ( - `id_profile` int(10) unsigned NOT NULL, - `id_tab` int(10) unsigned NOT NULL, - `view` int(11) NOT NULL, - `add` int(11) NOT NULL, - `edit` int(11) NOT NULL, - `delete` int(11) NOT NULL, - PRIMARY KEY (`id_profile`,`id_tab`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_accessory` ( - `id_product_1` int(10) unsigned NOT NULL, - `id_product_2` int(10) unsigned NOT NULL, - PRIMARY KEY (`id_product_1`,`id_product_2`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_address` ( - `id_address` int(10) unsigned NOT NULL auto_increment, - `id_country` int(10) unsigned NOT NULL, - `id_state` int(10) unsigned default NULL, - `id_customer` int(10) unsigned NOT NULL default '0', - `id_manufacturer` int(10) unsigned NOT NULL default '0', - `id_supplier` int(10) unsigned NOT NULL default '0', - `id_warehouse` int(10) unsigned NOT NULL default '0', - `alias` varchar(32) NOT NULL, - `company` varchar(32) default NULL, - `lastname` varchar(32) NOT NULL, - `firstname` varchar(32) NOT NULL, - `address1` varchar(128) NOT NULL, - `address2` varchar(128) default NULL, - `postcode` varchar(12) default NULL, - `city` varchar(64) NOT NULL, - `other` text, - `phone` varchar(16) default NULL, - `phone_mobile` varchar(16) default NULL, - `vat_number` varchar(32) default NULL, - `dni` varchar(16) DEFAULT NULL, - `date_add` datetime NOT NULL, - `date_upd` datetime NOT NULL, - `active` tinyint(1) unsigned NOT NULL default '1', - `deleted` tinyint(1) unsigned NOT NULL default '0', - PRIMARY KEY (`id_address`), - KEY `address_customer` (`id_customer`), - KEY `id_country` (`id_country`), - KEY `id_state` (`id_state`), - KEY `id_manufacturer` (`id_manufacturer`), - KEY `id_supplier` (`id_supplier`), - KEY `id_warehouse` (`id_warehouse`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_alias` ( - `id_alias` int(10) unsigned NOT NULL auto_increment, - `alias` varchar(255) NOT NULL, - `search` varchar(255) NOT NULL, - `active` tinyint(1) NOT NULL default '1', - PRIMARY KEY (`id_alias`), - UNIQUE KEY `alias` (`alias`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_attachment` ( - `id_attachment` int(10) unsigned NOT NULL auto_increment, - `file` varchar(40) NOT NULL, - `file_name` varchar(128) NOT NULL, - `mime` varchar(128) NOT NULL, - PRIMARY KEY (`id_attachment`) -) ENGINE=ENGINE_TYPE 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=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_product_attachment` ( - `id_product` int(10) unsigned NOT NULL, - `id_attachment` int(10) unsigned NOT NULL, - PRIMARY KEY (`id_product`,`id_attachment`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_attribute` ( - `id_attribute` int(10) unsigned NOT NULL auto_increment, - `id_attribute_group` int(10) unsigned NOT NULL, - `color` varchar(32) default NULL, - `position` int(10) unsigned NOT NULL default '0', - PRIMARY KEY (`id_attribute`), - KEY `attribute_group` (`id_attribute_group`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_attribute_group` ( - `id_attribute_group` int(10) unsigned NOT NULL auto_increment, - `is_color_group` tinyint(1) NOT NULL default '0', - `group_type` ENUM('select', 'radio', 'color') NOT NULL DEFAULT 'select', - `position` int(10) unsigned NOT NULL default '0', - PRIMARY KEY (`id_attribute_group`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_attribute_group_lang` ( - `id_attribute_group` int(10) unsigned NOT NULL, - `id_lang` int(10) unsigned NOT NULL, - `name` varchar(128) NOT NULL, - `public_name` varchar(64) NOT NULL, - PRIMARY KEY (`id_attribute_group`,`id_lang`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_attribute_impact` ( - `id_attribute_impact` int(10) unsigned NOT NULL auto_increment, - `id_product` int(11) unsigned NOT NULL, - `id_attribute` int(11) unsigned NOT NULL, - `weight` float NOT NULL, - `price` decimal(17,2) NOT NULL, - PRIMARY KEY (`id_attribute_impact`), - UNIQUE KEY `id_product` (`id_product`,`id_attribute`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_attribute_lang` ( - `id_attribute` int(10) unsigned NOT NULL, - `id_lang` int(10) unsigned NOT NULL, - `name` varchar(128) NOT NULL, - PRIMARY KEY (`id_attribute`,`id_lang`), - KEY `id_lang` (`id_lang`,`name`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_carrier` ( - `id_carrier` int(10) unsigned NOT NULL AUTO_INCREMENT, - `id_reference` int(10) unsigned NOT NULL, - `id_tax_rules_group` int(10) unsigned DEFAULT '0', - `name` varchar(64) NOT NULL, - `url` varchar(255) DEFAULT NULL, - `active` tinyint(1) unsigned NOT NULL DEFAULT '0', - `deleted` tinyint(1) unsigned NOT NULL DEFAULT '0', - `shipping_handling` tinyint(1) unsigned NOT NULL DEFAULT '1', - `range_behavior` tinyint(1) unsigned NOT NULL DEFAULT '0', - `is_module` tinyint(1) unsigned NOT NULL DEFAULT '0', - `is_free` tinyint(1) unsigned NOT NULL DEFAULT '0', - `shipping_external` tinyint(1) unsigned NOT NULL DEFAULT '0', - `need_range` tinyint(1) unsigned NOT NULL DEFAULT '0', - `external_module_name` varchar(64) DEFAULT NULL, - `shipping_method` int(2) NOT NULL DEFAULT '0', - `position` int(10) unsigned NOT NULL default '0', - `max_width` int(10) DEFAULT 0, - `max_height` int(10) DEFAULT 0, - `max_depth` int(10) DEFAULT 0, - `max_weight` int(10) DEFAULT 0, - `grade` int(10) DEFAULT 0, - PRIMARY KEY (`id_carrier`), - KEY `deleted` (`deleted`,`active`), - KEY `id_tax_rules_group` (`id_tax_rules_group`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_carrier_lang` ( - `id_carrier` int(10) unsigned NOT NULL, - `id_shop` int(11) unsigned NOT NULL DEFAULT '1', - `id_lang` int(10) unsigned NOT NULL, - `delay` varchar(128) DEFAULT NULL, - PRIMARY KEY (`id_lang`,`id_shop`, `id_carrier`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_carrier_zone` ( - `id_carrier` int(10) unsigned NOT NULL, - `id_zone` int(10) unsigned NOT NULL, - PRIMARY KEY (`id_carrier`,`id_zone`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_cart` ( - `id_cart` int(10) unsigned NOT NULL auto_increment, - `id_group_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1', - `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1', - `id_carrier` int(10) unsigned NOT NULL, - `delivery_option` varchar(100), - `id_lang` int(10) unsigned NOT NULL, - `id_address_delivery` int(10) unsigned NOT NULL, - `id_address_invoice` int(10) unsigned NOT NULL, - `id_currency` int(10) unsigned NOT NULL, - `id_customer` int(10) unsigned NOT NULL, - `id_guest` int(10) unsigned NOT NULL, - `secure_key` varchar(32) NOT NULL default '-1', - `recyclable` tinyint(1) unsigned NOT NULL default '1', - `gift` tinyint(1) unsigned NOT NULL default '0', - `gift_message` text, - `allow_seperated_package` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0, - `date_add` datetime NOT NULL, - `date_upd` datetime NOT NULL, - PRIMARY KEY (`id_cart`), - KEY `cart_customer` (`id_customer`), - KEY `id_address_delivery` (`id_address_delivery`), - KEY `id_address_invoice` (`id_address_invoice`), - KEY `id_carrier` (`id_carrier`), - KEY `id_lang` (`id_lang`), - KEY `id_currency` (`id_currency`), - KEY `id_guest` (`id_guest`), - KEY `id_group_shop` (`id_group_shop`), - KEY `id_shop` (`id_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -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_lang` ( - `id_cart_rule` int(10) unsigned NOT NULL, - `id_lang` int(10) unsigned NOT NULL, - `name` varchar(254) NOT NULL, - PRIMARY KEY (`id_cart_rule`, `id_lang`) -); - -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`) -); - -CREATE TABLE `PREFIX_cart_rule_product_rule_value` ( - `id_product_rule` int(10) unsigned NOT NULL, - `id_item` int(10) unsigned NOT NULL, - PRIMARY KEY (`id_product_rule`, `id_item`) -); - -CREATE TABLE `PREFIX_cart_cart_rule` ( - `id_cart` int(10) unsigned NOT NULL, - `id_cart_rule` int(10) unsigned NOT NULL, - PRIMARY KEY (`id_cart`,`id_cart_rule`), - KEY (`id_cart_rule`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_cart_product` ( - `id_cart` int(10) unsigned NOT NULL, - `id_product` int(10) unsigned NOT NULL, - `id_address_delivery` int(10) UNSIGNED DEFAULT 0, - `id_shop` int(10) unsigned NOT NULL DEFAULT '1', - `id_product_attribute` int(10) unsigned default NULL, - `quantity` int(10) unsigned NOT NULL default '0', - `date_add` datetime NOT NULL, - PRIMARY KEY (`id_cart`,`id_product`, `id_product_attribute`, `id_shop`), - KEY `id_product_attribute` (`id_product_attribute`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_category` ( - `id_category` int(10) unsigned NOT NULL auto_increment, - `id_parent` int(10) unsigned NOT NULL, - `level_depth` tinyint(3) unsigned NOT NULL default '0', - `nleft` int(10) unsigned NOT NULL default '0', - `nright` 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, - `position` int(10) unsigned NOT NULL default '0', - `is_root_category` tinyint(1) NOT NULL default '0', - PRIMARY KEY (`id_category`), - KEY `category_parent` (`id_parent`), - KEY `nleftright` (`nleft`,`nright`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_category_group` ( - `id_category` int(10) unsigned NOT NULL, - `id_group` int(10) unsigned NOT NULL, - PRIMARY KEY (`id_category`,`id_group`), - KEY `id_category` (`id_category`), - KEY `id_group` (`id_group`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_category_lang` ( - `id_category` int(10) unsigned NOT NULL, - `id_shop` INT( 11 ) UNSIGNED NOT NULL DEFAULT '1', - `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, - PRIMARY KEY (`id_category`,`id_shop`, `id_lang`), - KEY `category_name` (`name`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_category_product` ( - `id_category` int(10) unsigned NOT NULL, - `id_product` int(10) unsigned NOT NULL, - `position` int(10) unsigned NOT NULL default '0', - UNIQUE KEY `category_product_index` (`id_category`,`id_product`), - INDEX (`id_product`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_cms` ( - `id_cms` int(10) unsigned NOT NULL AUTO_INCREMENT, - `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1', - `id_cms_category` int(10) unsigned NOT NULL, - `position` int(10) unsigned NOT NULL DEFAULT '0', - `active` tinyint(1) unsigned NOT NULL default '0', - PRIMARY KEY (`id_cms`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_cms_lang` ( - `id_cms` int(10) unsigned NOT NULL, - `id_lang` int(10) unsigned NOT NULL, - `meta_title` varchar(128) NOT NULL, - `meta_description` varchar(255) default NULL, - `meta_keywords` varchar(255) default NULL, - `content` longtext, - `link_rewrite` varchar(128) NOT NULL, - PRIMARY KEY (`id_cms`,`id_lang`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -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; - -CREATE TABLE `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; - -CREATE TABLE `PREFIX_compare_product` ( - `id_compare` int(10) unsigned NOT NULL, - `id_product` int(10) unsigned NOT NULL, - `date_add` datetime NOT NULL, - `date_upd` datetime NOT NULL, - PRIMARY KEY (`id_compare`,`id_product`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_configuration` ( - `id_configuration` int(10) unsigned NOT NULL auto_increment, - `id_group_shop` INT(11) UNSIGNED DEFAULT NULL, - `id_shop` INT(11) UNSIGNED DEFAULT NULL, - `name` varchar(32) NOT NULL, - `value` text, - `date_add` datetime NOT NULL, - `date_upd` datetime NOT NULL, - PRIMARY KEY (`id_configuration`), - KEY `name` (`name`), - KEY `id_shop` (`id_shop`), - KEY `id_group_shop` (`id_group_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_configuration_lang` ( - `id_configuration` int(10) unsigned NOT NULL, - `id_lang` int(10) unsigned NOT NULL, - `value` text, - `date_upd` datetime default NULL, - PRIMARY KEY (`id_configuration`,`id_lang`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_connections` ( - `id_connections` int(10) unsigned NOT NULL auto_increment, - `id_group_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1', - `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1', - `id_guest` int(10) unsigned NOT NULL, - `id_page` int(10) unsigned NOT NULL, - `ip_address` BIGINT NULL DEFAULT NULL, - `date_add` datetime NOT NULL, - `http_referer` varchar(255) default NULL, - PRIMARY KEY (`id_connections`), - KEY `id_guest` (`id_guest`), - KEY `date_add` (`date_add`), - KEY `id_page` (`id_page`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_connections_page` ( - `id_connections` int(10) unsigned NOT NULL, - `id_page` int(10) unsigned NOT NULL, - `time_start` datetime NOT NULL, - `time_end` datetime default NULL, - PRIMARY KEY (`id_connections`,`id_page`,`time_start`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_connections_source` ( - `id_connections_source` int(10) unsigned NOT NULL auto_increment, - `id_connections` int(10) unsigned NOT NULL, - `http_referer` varchar(255) default NULL, - `request_uri` varchar(255) default NULL, - `keywords` varchar(255) default NULL, - `date_add` datetime NOT NULL, - PRIMARY KEY (`id_connections_source`), - KEY `connections` (`id_connections`), - KEY `orderby` (`date_add`), - KEY `http_referer` (`http_referer`), - KEY `request_uri` (`request_uri`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_contact` ( - `id_contact` int(10) unsigned NOT NULL auto_increment, - `email` varchar(128) NOT NULL, - `customer_service` tinyint(1) NOT NULL DEFAULT 0, - `position` tinyint(2) unsigned NOT NULL default '0', - PRIMARY KEY (`id_contact`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_contact_lang` ( - `id_contact` int(10) unsigned NOT NULL, - `id_lang` int(10) unsigned NOT NULL, - `name` varchar(32) NOT NULL, - `description` text, - PRIMARY KEY (`id_contact`,`id_lang`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_country` ( - `id_country` int(10) unsigned NOT NULL auto_increment, - `id_zone` int(10) unsigned NOT NULL, - `id_currency` int(10) unsigned NOT NULL default '0', - `iso_code` varchar(3) NOT NULL, - `call_prefix` int(10) NOT NULL default '0', - `active` tinyint(1) unsigned NOT NULL default '0', - `contains_states` tinyint(1) NOT NULL default '0', - `need_identification_number` tinyint(1) NOT NULL default '0', - `need_zip_code` tinyint(1) NOT NULL default '1', - `zip_code_format` varchar(12) NOT NULL default '', - `display_tax_label` BOOLEAN NOT NULL, - PRIMARY KEY (`id_country`), - KEY `country_iso_code` (`iso_code`), - KEY `country_` (`id_zone`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_country_lang` ( - `id_country` int(10) unsigned NOT NULL, - `id_lang` int(10) unsigned NOT NULL, - `name` varchar(64) NOT NULL, - PRIMARY KEY (`id_country`,`id_lang`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_currency` ( - `id_currency` int(10) unsigned NOT NULL auto_increment, - `name` varchar(32) NOT NULL, - `iso_code` varchar(3) NOT NULL default '0', - `iso_code_num` varchar(3) NOT NULL default '0', - `sign` varchar(8) NOT NULL, - `blank` tinyint(1) unsigned NOT NULL default '0', - `format` tinyint(1) unsigned NOT NULL default '0', - `decimals` tinyint(1) unsigned NOT NULL default '1', - `conversion_rate` decimal(13,6) NOT NULL, - `deleted` tinyint(1) unsigned NOT NULL default '0', - `active` tinyint(1) unsigned NOT NULL default '1', - PRIMARY KEY (`id_currency`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_customer` ( - `id_customer` int(10) unsigned NOT NULL auto_increment, - `id_group_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1', - `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1', - `id_gender` int(10) unsigned NOT NULL, - `id_default_group` int(10) unsigned NOT NULL DEFAULT '1', - `id_risk` int(10) unsigned NOT NULL DEFAULT '1', - `company` varchar(64), - `siret` varchar(14), - `ape` varchar(5), - `firstname` varchar(32) NOT NULL, - `lastname` varchar(32) NOT NULL, - `email` varchar(128) NOT NULL, - `passwd` varchar(32) NOT NULL, - `last_passwd_gen` timestamp NOT NULL default CURRENT_TIMESTAMP, - `birthday` date default NULL, - `newsletter` tinyint(1) unsigned NOT NULL default '0', - `ip_registration_newsletter` varchar(15) default NULL, - `newsletter_date_add` datetime default NULL, - `optin` tinyint(1) unsigned NOT NULL default '0', - `website` varchar(128), - `outstanding_allow_amount` DECIMAL( 10,6 ) NOT NULL default '0.00', - `show_public_prices` tinyint(1) unsigned NOT NULL default '0', - `max_payment_days` int(10) unsigned NOT NULL default '60', - `secure_key` varchar(32) NOT NULL default '-1', - `note` text, - `active` tinyint(1) unsigned NOT NULL default '0', - `is_guest` tinyint(1) NOT NULL default '0', - `deleted` tinyint(1) NOT NULL default '0', - `date_add` datetime NOT NULL, - `date_upd` datetime NOT NULL, - PRIMARY KEY (`id_customer`), - KEY `customer_email` (`email`), - KEY `customer_login` (`email`,`passwd`), - KEY `id_customer_passwd` (`id_customer`,`passwd`), - KEY `id_gender` (`id_gender`), - KEY `id_group_shop` (`id_group_shop`), - KEY `id_shop` (`id_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -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), - KEY `id_customer` (`id_customer`) -) 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, - `private` TINYINT NOT NULL DEFAULT '0', - PRIMARY KEY (`id_customer_message`), - KEY `id_customer_thread` (`id_customer_thread`), - KEY `id_employee` (`id_employee`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - - -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; - -CREATE TABLE `PREFIX_customer_thread` ( - `id_customer_thread` int(11) unsigned NOT NULL auto_increment, - `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1', - `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_shop` (`id_shop`), - KEY `id_lang` (`id_lang`), - KEY `id_contact` (`id_contact`), - KEY `id_customer` (`id_customer`), - KEY `id_order` (`id_order`), - KEY `id_product` (`id_product`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - - -CREATE TABLE `PREFIX_customization` ( - `id_customization` int(10) unsigned NOT NULL auto_increment, - `id_product_attribute` int(10) unsigned NOT NULL default '0', - `id_address_delivery` int(10) UNSIGNED NOT NULL DEFAULT 0, - `id_cart` int(10) unsigned NOT NULL, - `id_product` int(10) NOT NULL, - `quantity` int(10) NOT NULL, - `quantity_refunded` INT NOT NULL DEFAULT '0', - `quantity_returned` INT NOT NULL DEFAULT '0', - `in_cart` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', - PRIMARY KEY (`id_customization`,`id_cart`,`id_product`, `id_address_delivery`), - KEY `id_product_attribute` (`id_product_attribute`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_customization_field` ( - `id_customization_field` int(10) unsigned NOT NULL auto_increment, - `id_product` int(10) unsigned NOT NULL, - `type` tinyint(1) NOT NULL, - `required` tinyint(1) NOT NULL, - PRIMARY KEY (`id_customization_field`), - KEY `id_product` (`id_product`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_customization_field_lang` ( - `id_customization_field` int(10) unsigned NOT NULL, - `id_lang` int(10) unsigned NOT NULL, - `name` varchar(255) NOT NULL, - PRIMARY KEY (`id_customization_field`,`id_lang`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_customized_data` ( - `id_customization` int(10) unsigned NOT NULL, - `type` tinyint(1) NOT NULL, - `index` int(3) NOT NULL, - `value` varchar(255) NOT NULL, - PRIMARY KEY (`id_customization`,`type`,`index`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_date_range` ( - `id_date_range` int(10) unsigned NOT NULL auto_increment, - `time_start` datetime NOT NULL, - `time_end` datetime NOT NULL, - PRIMARY KEY (`id_date_range`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_delivery` ( - `id_delivery` int(10) unsigned NOT NULL auto_increment, - `id_shop` INT UNSIGNED NULL DEFAULT NULL, - `id_group_shop` INT UNSIGNED NULL DEFAULT NULL, - `id_carrier` int(10) unsigned NOT NULL, - `id_range_price` int(10) unsigned default NULL, - `id_range_weight` int(10) unsigned default NULL, - `id_zone` int(10) unsigned NOT NULL, - `price` decimal(20,6) NOT NULL, - PRIMARY KEY (`id_delivery`), - KEY `id_zone` (`id_zone`), - KEY `id_carrier` (`id_carrier`,`id_zone`), - KEY `id_range_price` (`id_range_price`), - KEY `id_range_weight` (`id_range_weight`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_employee` ( - `id_employee` int(10) unsigned NOT NULL auto_increment, - `id_profile` int(10) unsigned NOT NULL, - `id_lang` int(10) unsigned NOT NULL DEFAULT 0, - `lastname` varchar(32) NOT NULL, - `firstname` varchar(32) NOT NULL, - `email` varchar(128) NOT NULL, - `passwd` varchar(32) NOT NULL, - `last_passwd_gen` timestamp NOT NULL default CURRENT_TIMESTAMP, - `stats_date_from` date default NULL, - `stats_date_to` date default NULL, - `bo_color` varchar(32) default NULL, - `bo_theme` varchar(32) default NULL, - `bo_show_screencast` tinyint(1) NOT NULL default '1', - `active` tinyint(1) unsigned NOT NULL default '0', - `id_last_order` tinyint(1) unsigned NOT NULL default '0', - `id_last_customer_message` tinyint(1) unsigned NOT NULL default '0', - `id_last_customer` tinyint(1) unsigned NOT NULL default '0', - PRIMARY KEY (`id_employee`), - KEY `employee_login` (`email`,`passwd`), - KEY `id_employee_passwd` (`id_employee`,`passwd`), - KEY `id_profile` (`id_profile`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_employee_shop` ( -`id_employee` INT( 11 ) UNSIGNED NOT NULL , -`id_shop` INT( 11 ) UNSIGNED NOT NULL , - PRIMARY KEY ( `id_employee` , `id_shop` ), - KEY `id_shop` (`id_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_feature` ( - `id_feature` int(10) unsigned NOT NULL auto_increment, - `position` int(10) unsigned NOT NULL default '0', - PRIMARY KEY (`id_feature`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_feature_lang` ( - `id_feature` int(10) unsigned NOT NULL, - `id_lang` int(10) unsigned NOT NULL, - `name` varchar(128) default NULL, - PRIMARY KEY (`id_feature`,`id_lang`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_feature_product` ( - `id_feature` int(10) unsigned NOT NULL, - `id_product` int(10) unsigned NOT NULL, - `id_feature_value` int(10) unsigned NOT NULL, - PRIMARY KEY (`id_feature`,`id_product`), - KEY `id_feature_value` (`id_feature_value`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_feature_value` ( - `id_feature_value` int(10) unsigned NOT NULL auto_increment, - `id_feature` int(10) unsigned NOT NULL, - `custom` tinyint(3) unsigned default NULL, - PRIMARY KEY (`id_feature_value`), - KEY `feature` (`id_feature`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_feature_value_lang` ( - `id_feature_value` int(10) unsigned NOT NULL, - `id_lang` int(10) unsigned NOT NULL, - `value` varchar(255) default NULL, - PRIMARY KEY (`id_feature_value`,`id_lang`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -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; - -CREATE TABLE `PREFIX_group` ( - `id_group` int(10) unsigned NOT NULL auto_increment, - `reduction` decimal(17,2) NOT NULL default '0.00', - `price_display_method` TINYINT NOT NULL DEFAULT 0, - `show_prices` tinyint(1) unsigned NOT NULL DEFAULT '1', - `date_add` datetime NOT NULL, - `date_upd` datetime NOT NULL, - PRIMARY KEY (`id_group`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_group_lang` ( - `id_group` int(10) unsigned NOT NULL, - `id_lang` int(10) unsigned NOT NULL, - `name` varchar(32) NOT NULL, - PRIMARY KEY (`id_group`,`id_lang`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -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; - -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; - -CREATE TABLE `PREFIX_guest` ( - `id_guest` int(10) unsigned NOT NULL auto_increment, - `id_operating_system` int(10) unsigned default NULL, - `id_web_browser` int(10) unsigned default NULL, - `id_customer` int(10) unsigned default NULL, - `javascript` tinyint(1) default '0', - `screen_resolution_x` smallint(5) unsigned default NULL, - `screen_resolution_y` smallint(5) unsigned default NULL, - `screen_color` tinyint(3) unsigned default NULL, - `sun_java` tinyint(1) default NULL, - `adobe_flash` tinyint(1) default NULL, - `adobe_director` tinyint(1) default NULL, - `apple_quicktime` tinyint(1) default NULL, - `real_player` tinyint(1) default NULL, - `windows_media` tinyint(1) default NULL, - `accept_language` varchar(8) default NULL, - PRIMARY KEY (`id_guest`), - KEY `id_customer` (`id_customer`), - KEY `id_operating_system` (`id_operating_system`), - KEY `id_web_browser` (`id_web_browser`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_hook` ( - `id_hook` int(10) unsigned NOT NULL auto_increment, - `name` varchar(64) NOT NULL, - `title` varchar(64) NOT NULL, - `description` text, - `position` tinyint(1) NOT NULL default '1', - `live_edit` tinyint(1) NOT NULL default '0', - PRIMARY KEY (`id_hook`), - UNIQUE KEY `hook_name` (`name`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -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; - -CREATE TABLE `PREFIX_hook_module` ( - `id_module` int(10) unsigned NOT NULL, - `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1', - `id_hook` int(10) unsigned NOT NULL, - `position` tinyint(2) unsigned NOT NULL, - PRIMARY KEY (`id_module`,`id_hook`,`id_shop`), - KEY `id_hook` (`id_hook`), - KEY `id_module` (`id_module`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_hook_module_exceptions` ( - `id_hook_module_exceptions` int(10) unsigned NOT NULL auto_increment, - `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1', - `id_module` int(10) unsigned NOT NULL, - `id_hook` int(10) unsigned NOT NULL, - `file_name` varchar(255) default NULL, - PRIMARY KEY (`id_hook_module_exceptions`), - KEY `id_module` (`id_module`), - KEY `id_hook` (`id_hook`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_image` ( - `id_image` int(10) unsigned NOT NULL auto_increment, - `id_product` int(10) unsigned NOT NULL, - `position` smallint(2) unsigned NOT NULL default '0', - `cover` tinyint(1) unsigned NOT NULL default '0', - PRIMARY KEY (`id_image`), - KEY `image_product` (`id_product`), - KEY `id_product_cover` (`id_product`,`cover`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_image_lang` ( - `id_image` int(10) unsigned NOT NULL, - `id_lang` int(10) unsigned NOT NULL, - `legend` varchar(128) default NULL, - PRIMARY KEY (`id_image`,`id_lang`), - KEY `id_image` (`id_image`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_image_type` ( - `id_image_type` int(10) unsigned NOT NULL auto_increment, - `name` varchar(16) NOT NULL, - `width` int(10) unsigned NOT NULL, - `height` int(10) unsigned NOT NULL, - `products` tinyint(1) NOT NULL default '1', - `categories` tinyint(1) NOT NULL default '1', - `manufacturers` tinyint(1) NOT NULL default '1', - `suppliers` tinyint(1) NOT NULL default '1', - `scenes` tinyint(1) NOT NULL default '1', - `stores` tinyint(1) NOT NULL default '1', - PRIMARY KEY (`id_image_type`), - KEY `image_type_name` (`name`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_lang` ( - `id_lang` int(10) unsigned NOT NULL auto_increment, - `name` varchar(32) NOT NULL, - `active` tinyint(3) unsigned NOT NULL default '0', - `iso_code` char(2) NOT NULL, - `language_code` char(5) NOT NULL, - `date_format_lite` char(32) NOT NULL DEFAULT 'Y-m-d', - `date_format_full` char(32) NOT NULL DEFAULT 'Y-m-d H:i:s', - `is_rtl` TINYINT(1) NOT NULL default '0', - PRIMARY KEY (`id_lang`), - KEY `lang_iso_code` (`iso_code`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_manufacturer` ( - `id_manufacturer` int(10) unsigned NOT NULL auto_increment, - `name` varchar(64) NOT NULL, - `date_add` datetime NOT NULL, - `date_upd` datetime NOT NULL, - `active` tinyint(1) NOT NULL default 0, - PRIMARY KEY (`id_manufacturer`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_manufacturer_lang` ( - `id_manufacturer` int(10) unsigned NOT NULL, - `id_lang` int(10) unsigned NOT NULL, - `description` text, - `short_description` varchar(254) default NULL, - `meta_title` varchar(128) default NULL, - `meta_keywords` varchar(255) default NULL, - `meta_description` varchar(255) default NULL, - PRIMARY KEY (`id_manufacturer`,`id_lang`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_message` ( - `id_message` int(10) unsigned NOT NULL auto_increment, - `id_cart` int(10) unsigned default NULL, - `id_customer` int(10) unsigned NOT NULL, - `id_employee` int(10) unsigned default NULL, - `id_order` int(10) unsigned NOT NULL, - `message` text NOT NULL, - `private` tinyint(1) unsigned NOT NULL default '1', - `date_add` datetime NOT NULL, - PRIMARY KEY (`id_message`), - KEY `message_order` (`id_order`), - KEY `id_cart` (`id_cart`), - KEY `id_customer` (`id_customer`), - KEY `id_employee` (`id_employee`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_message_readed` ( - `id_message` int(10) unsigned NOT NULL, - `id_employee` int(10) unsigned NOT NULL, - `date_add` datetime NOT NULL, - PRIMARY KEY (`id_message`,`id_employee`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_meta` ( - `id_meta` int(10) unsigned NOT NULL auto_increment, - `page` varchar(64) NOT NULL, - PRIMARY KEY (`id_meta`), - KEY `meta_name` (`page`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_meta_lang` ( - `id_meta` int(10) unsigned NOT NULL, - `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1', - `id_lang` int(10) unsigned NOT NULL, - `title` varchar(128) default NULL, - `description` varchar(255) default NULL, - `keywords` varchar(255) default NULL, - `url_rewrite` varchar(254) NOT NULL, - PRIMARY KEY (`id_meta`, `id_shop`, `id_lang`), - KEY `id_shop` (`id_shop`), - KEY `id_lang` (`id_lang`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_module` ( - `id_module` int(10) unsigned NOT NULL auto_increment, - `name` varchar(64) NOT NULL, - `active` tinyint(1) unsigned NOT NULL default '0', - `version` VARCHAR(8) NOT NULL, - PRIMARY KEY (`id_module`), - KEY `name` (`name`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `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 TABLE `PREFIX_module_country` ( - `id_module` int(10) unsigned NOT NULL, - `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1', - `id_country` int(10) unsigned NOT NULL, - PRIMARY KEY (`id_module`,`id_shop`, `id_country`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_module_currency` ( - `id_module` int(10) unsigned NOT NULL, - `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1', - `id_currency` int(11) NOT NULL, - PRIMARY KEY (`id_module`,`id_shop`, `id_currency`), - KEY `id_module` (`id_module`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_module_group` ( - `id_module` int(10) unsigned NOT NULL, - `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1', - `id_group` int(11) unsigned NOT NULL, - PRIMARY KEY (`id_module`,`id_shop`, `id_group`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_operating_system` ( - `id_operating_system` int(10) unsigned NOT NULL auto_increment, - `name` varchar(64) default NULL, - PRIMARY KEY (`id_operating_system`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_orders` ( - `id_order` int(10) unsigned NOT NULL auto_increment, - `reference` VARCHAR(9), - `id_group_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1', - `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1', - `id_carrier` int(10) unsigned NOT NULL, - `id_lang` int(10) unsigned NOT NULL, - `id_customer` int(10) unsigned NOT NULL, - `id_cart` int(10) unsigned NOT NULL, - `id_currency` int(10) unsigned NOT NULL, - `id_address_delivery` int(10) unsigned NOT NULL, - `id_address_invoice` int(10) unsigned NOT NULL, - `secure_key` varchar(32) NOT NULL default '-1', - `payment` varchar(255) NOT NULL, - `conversion_rate` decimal(13,6) NOT NULL default 1, - `module` varchar(255) default NULL, - `recyclable` tinyint(1) unsigned NOT NULL default '0', - `gift` tinyint(1) unsigned NOT NULL default '0', - `gift_message` text, - `shipping_number` varchar(32) default NULL, - `total_discounts` decimal(17,2) NOT NULL default '0.00', - `total_discounts_tax_incl` decimal(17,2) NOT NULL default '0.00', - `total_discounts_tax_excl` decimal(17,2) NOT NULL default '0.00', - `total_paid` decimal(17,2) NOT NULL default '0.00', - `total_paid_tax_incl` decimal(17,2) NOT NULL default '0.00', - `total_paid_tax_excl` decimal(17,2) NOT NULL default '0.00', - `total_paid_real` 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` decimal(17,2) NOT NULL default '0.00', - `total_shipping_tax_incl` decimal(17,2) NOT NULL default '0.00', - `total_shipping_tax_excl` decimal(17,2) NOT NULL default '0.00', - `carrier_tax_rate` DECIMAL(10, 3) NOT NULL default '0.00', - `total_wrapping` decimal(17,2) NOT NULL default '0.00', - `total_wrapping_tax_incl` decimal(17,2) NOT NULL default '0.00', - `total_wrapping_tax_excl` decimal(17,2) NOT NULL default '0.00', - `invoice_number` int(10) unsigned NOT NULL default '0', - `delivery_number` int(10) unsigned NOT NULL default '0', - `invoice_date` datetime NOT NULL, - `delivery_date` datetime NOT NULL, - `valid` int(1) unsigned NOT NULL default '0', - `date_add` datetime NOT NULL, - `date_upd` datetime NOT NULL, - PRIMARY KEY (`id_order`), - KEY `id_customer` (`id_customer`), - KEY `id_cart` (`id_cart`), - KEY `invoice_number` (`invoice_number`), - KEY `id_carrier` (`id_carrier`), - KEY `id_lang` (`id_lang`), - KEY `id_currency` (`id_currency`), - KEY `id_address_delivery` (`id_address_delivery`), - KEY `id_address_invoice` (`id_address_invoice`), - KEY `id_group_shop` (`id_group_shop`), - KEY `id_shop` (`id_shop`), - INDEX `date_add`(`date_add`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_order_detail_tax` ( - `id_order_detail` int(11) NOT NULL, - `id_tax` int(11) NOT NULL, - `unit_amount` DECIMAL( 10,6 ) NOT NULL default '0.00', - `total_amount` DECIMAL( 10, 6 ) NOT NULL default '0.00' -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -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, - `delivery_number` int(11) NOT NULL, - `delivery_date` datetime, - `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', - `note` text, - `date_add` datetime NOT NULL, - PRIMARY KEY (`id_order_invoice`), - KEY `id_order` (`id_order`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_order_detail` ( - `id_order_detail` int(10) unsigned NOT NULL auto_increment, - `id_order` int(10) unsigned NOT NULL, - `id_order_invoice` int(11) default NULL, - `id_warehouse` int(10) unsigned DEFAULT 0, - `product_id` int(10) unsigned NOT NULL, - `product_attribute_id` int(10) unsigned default NULL, - `product_name` varchar(255) NOT NULL, - `product_quantity` int(10) unsigned NOT NULL default '0', - `product_quantity_in_stock` int(10) NOT NULL default 0, - `product_quantity_refunded` int(10) unsigned NOT NULL default '0', - `product_quantity_return` int(10) unsigned NOT NULL default '0', - `product_quantity_reinjected` int(10) unsigned NOT NULL default 0, - `product_price` decimal(20,6) NOT NULL default '0.000000', - `reduction_percent` DECIMAL(10, 2) NOT NULL default '0.00', - `reduction_amount` DECIMAL(20, 6) NOT NULL default '0.000000', - `reduction_amount_tax_incl` FLOAT(20, 6) NOT NULL default '0.000000', - `reduction_amount_tax_excl` FLOAT(20, 6) NOT NULL default '0.000000', - `group_reduction` DECIMAL(10, 2) NOT NULL default '0.000000', - `product_quantity_discount` decimal(20,6) NOT NULL default '0.000000', - `product_ean13` varchar(13) default NULL, - `product_upc` varchar(12) default NULL, - `product_reference` varchar(32) default NULL, - `product_supplier_reference` varchar(32) default NULL, - `product_weight` float NOT NULL, - `tax_computation_method` tinyint(1) unsigned NOT NULL default '0', - `tax_name` varchar(16) NOT NULL, - `tax_rate` DECIMAL(10,3) NOT NULL DEFAULT '0.000', - `ecotax` decimal(21,6) NOT NULL default '0.00', - `ecotax_tax_rate` DECIMAL(5,3) NOT NULL DEFAULT '0.000', - `discount_quantity_applied` TINYINT(1) NOT NULL DEFAULT 0, - `download_hash` varchar(255) default NULL, - `download_nb` int(10) unsigned default '0', - `download_deadline` datetime default '0000-00-00 00:00:00', - `total_price_tax_incl` DECIMAL(20, 6) NOT NULL default '0.000000', - `total_price_tax_excl` DECIMAL(20, 6) NOT NULL default '0.000000', - `unit_price_tax_incl` DECIMAL(20, 6) NOT NULL default '0.000000', - `unit_price_tax_excl` DECIMAL(20, 6) NOT NULL default '0.000000', - `total_shipping_price_tax_incl` DECIMAL(20, 6) NOT NULL default '0.000000', - `total_shipping_price_tax_excl` DECIMAL(20, 6) NOT NULL default '0.000000', - `purchase_supplier_price` DECIMAL(20, 6) NOT NULL default '0.000000', - `original_product_price` DECIMAL(20, 6) NOT NULL default '0.000000', - PRIMARY KEY (`id_order_detail`), - KEY `order_detail_order` (`id_order`), - KEY `product_id` (`product_id`), - KEY `product_attribute_id` (`product_attribute_id`), - KEY `id_order_id_order_detail` (`id_order`, `id_order_detail`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_order_tax` ( - `id_order` int(11) NOT NULL, - `tax_name` varchar(40) NOT NULL, - `tax_rate` decimal(6,3) NOT NULL, - `amount` decimal(20,6) NOT NULL -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_order_cart_rule` ( - `id_order_cart_rule` int(10) unsigned NOT NULL auto_increment, - `id_order` int(10) unsigned NOT NULL, - `id_cart_rule` int(10) unsigned NOT NULL, - `id_order_invoice` int(10) unsigned DEFAULT 0, - `name` varchar(32) NOT NULL, - `value` decimal(17,2) NOT NULL default '0.00', - `value_tax_excl` decimal(17,2) NOT NULL default '0.00', - PRIMARY KEY (`id_order_cart_rule`), - KEY `id_order` (`id_order`), - KEY `id_cart_rule` (`id_cart_rule`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_order_history` ( - `id_order_history` int(10) unsigned NOT NULL auto_increment, - `id_employee` int(10) unsigned NOT NULL, - `id_order` int(10) unsigned NOT NULL, - `id_order_state` int(10) unsigned NOT NULL, - `date_add` datetime NOT NULL, - PRIMARY KEY (`id_order_history`), - KEY `order_history_order` (`id_order`), - KEY `id_employee` (`id_employee`), - KEY `id_order_state` (`id_order_state`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -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=ENGINE_TYPE 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=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_order_return` ( - `id_order_return` int(10) unsigned NOT NULL auto_increment, - `id_customer` int(10) unsigned NOT NULL, - `id_order` int(10) unsigned NOT NULL, - `state` tinyint(1) unsigned NOT NULL default '1', - `question` text NOT NULL, - `date_add` datetime NOT NULL, - `date_upd` datetime NOT NULL, - PRIMARY KEY (`id_order_return`), - KEY `order_return_customer` (`id_customer`), - KEY `id_order` (`id_order`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_order_return_detail` ( - `id_order_return` int(10) unsigned NOT NULL, - `id_order_detail` int(10) unsigned NOT NULL, - `id_customization` int(10) unsigned NOT NULL default '0', - `product_quantity` int(10) unsigned NOT NULL default '0', - PRIMARY KEY (`id_order_return`,`id_order_detail`,`id_customization`) -) ENGINE=ENGINE_TYPE 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=ENGINE_TYPE 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, - PRIMARY KEY (`id_order_return_state`,`id_lang`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_order_slip` ( - `id_order_slip` int(10) unsigned NOT NULL auto_increment, - `conversion_rate` decimal(13,6) NOT NULL default 1, - `id_customer` int(10) unsigned NOT NULL, - `id_order` int(10) unsigned NOT NULL, - `shipping_cost` tinyint(3) unsigned NOT NULL default '0', - `amount` DECIMAL(10,2) NOT NULL, - `shipping_cost_amount` DECIMAL(10,2) NOT NULL, - `partial` TINYINT(1) NOT NULL, - `date_add` datetime NOT NULL, - `date_upd` datetime NOT NULL, - PRIMARY KEY (`id_order_slip`), - KEY `order_slip_customer` (`id_customer`), - KEY `id_order` (`id_order`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_order_slip_detail` ( - `id_order_slip` int(10) unsigned NOT NULL, - `id_order_detail` int(10) unsigned NOT NULL, - `product_quantity` int(10) unsigned NOT NULL default '0', - `amount_tax_excl` DECIMAL(10,2) default NULL, - `amount_tax_incl` DECIMAL(10,2) default NULL, - PRIMARY KEY (`id_order_slip`,`id_order_detail`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_order_state` ( - `id_order_state` int(10) UNSIGNED NOT NULL auto_increment, - `invoice` tinyint(1) UNSIGNED default '0', - `send_email` tinyint(1) UNSIGNED NOT NULL default '0', - `color` varchar(32) default NULL, - `unremovable` tinyint(1) UNSIGNED NOT NULL, - `hidden` tinyint(1) UNSIGNED NOT NULL default '0', - `logable` tinyint(1) NOT NULL default '0', - `delivery` tinyint(1) UNSIGNED NOT NULL default '0', - `shipped` tinyint(1) UNSIGNED NOT NULL default '0', - `paid` tinyint(1) UNSIGNED NOT NULL default '0', - `deleted` tinyint(1) UNSIGNED NOT NULL default '0', - PRIMARY KEY (`id_order_state`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_order_state_lang` ( - `id_order_state` int(10) unsigned NOT NULL, - `id_lang` int(10) unsigned NOT NULL, - `name` varchar(64) NOT NULL, - `template` varchar(64) NOT NULL, - PRIMARY KEY (`id_order_state`,`id_lang`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -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=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_page` ( - `id_page` int(10) unsigned NOT NULL auto_increment, - `id_page_type` int(10) unsigned NOT NULL, - `id_object` int(10) unsigned default NULL, - PRIMARY KEY (`id_page`), - KEY `id_page_type` (`id_page_type`), - KEY `id_object` (`id_object`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_page_type` ( - `id_page_type` int(10) unsigned NOT NULL auto_increment, - `name` varchar(255) NOT NULL, - PRIMARY KEY (`id_page_type`), - KEY `name` (`name`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_page_viewed` ( - `id_page` int(10) unsigned NOT NULL, - `id_group_shop` INT UNSIGNED NOT NULL DEFAULT '1', - `id_shop` INT UNSIGNED NOT NULL DEFAULT '1', - `id_date_range` int(10) unsigned NOT NULL, - `counter` int(10) unsigned NOT NULL, - PRIMARY KEY (`id_page`, `id_date_range`, `id_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_order_payment` ( - `id_order_payment` INT NOT NULL auto_increment, - `id_order_invoice` INT UNSIGNED NULL, - `id_order` INT UNSIGNED NULL, - `id_currency` INT UNSIGNED NOT NULL, - `amount` DECIMAL(10,2) NOT NULL, - `payment_method` varchar(255) NOT NULL, - `conversion_rate` decimal(13,6) NOT NULL DEFAULT 1, - `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_order_payment`), - KEY `id_order` (`id_order`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_product` ( - `id_product` int(10) unsigned NOT NULL auto_increment, - `id_supplier` int(10) unsigned default NULL, - `id_manufacturer` int(10) unsigned default NULL, - `id_tax_rules_group` int(10) unsigned NOT NULL, - `id_category_default` int(10) unsigned default NULL, - `on_sale` tinyint(1) unsigned NOT NULL default '0', - `online_only` tinyint(1) unsigned NOT NULL default '0', - `ean13` varchar(13) default NULL, - `upc` varchar(12) default NULL, - `ecotax` decimal(17,6) NOT NULL default '0.00', - `quantity` int(10) NOT NULL default '0', - `minimal_quantity` int(10) unsigned NOT NULL default '1', - `price` decimal(20,6) NOT NULL default '0.000000', - `wholesale_price` decimal(20,6) NOT NULL default '0.000000', - `unity` varchar(255) default NULL, - `unit_price_ratio` decimal(20,6) NOT NULL default '0.000000', - `additional_shipping_cost` decimal(20,2) NOT NULL default '0.00', - `reference` varchar(32) default NULL, - `supplier_reference` varchar(32) default NULL, - `location` varchar(64) default NULL, - `width` float NOT NULL default '0', - `height` float NOT NULL default '0', - `depth` float NOT NULL default '0', - `weight` float NOT NULL default '0', - `out_of_stock` int(10) unsigned NOT NULL default '2', - `quantity_discount` tinyint(1) default '0', - `customizable` tinyint(2) NOT NULL default '0', - `uploadable_files` tinyint(4) NOT NULL default '0', - `text_fields` tinyint(4) NOT NULL default '0', - `active` tinyint(1) unsigned NOT NULL default '0', - `available_for_order` tinyint(1) NOT NULL default '1', - `available_date` date NOT NULL, - `condition` ENUM('new', 'used', 'refurbished') NOT NULL DEFAULT 'new', - `show_price` tinyint(1) NOT NULL default '1', - `indexed` tinyint(1) NOT NULL default '0', - `cache_is_pack` tinyint(1) NOT NULL default '0', - `cache_has_attachments` tinyint(1) NOT NULL default '0', - `is_virtual` tinyint(1) NOT NULL default '0', - `cache_default_attribute` int(10) unsigned default NULL, - `date_add` datetime NOT NULL, - `date_upd` datetime NOT NULL, - `advanced_stock_management` tinyint(1) default '0' NOT NULL, - PRIMARY KEY (`id_product`), - KEY `product_supplier` (`id_supplier`), - KEY `product_manufacturer` (`id_manufacturer`), - KEY `id_category_default` (`id_category_default`), - KEY `date_add` (`date_add`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_product_attribute` ( - `id_product_attribute` int(10) unsigned NOT NULL auto_increment, - `id_product` int(10) unsigned NOT NULL, - `reference` varchar(32) default NULL, - `supplier_reference` varchar(32) default NULL, - `location` varchar(64) default NULL, - `ean13` varchar(13) default NULL, - `upc` varchar(12) default NULL, - `wholesale_price` decimal(20,6) NOT NULL default '0.000000', - `price` decimal(20,6) NOT NULL default '0.000000', - `ecotax` decimal(17,6) NOT NULL default '0.00', - `quantity` int(10) NOT NULL default '0', - `weight` float NOT NULL default '0', - `unit_price_impact` decimal(17,2) NOT NULL default '0.00', - `default_on` tinyint(1) unsigned NOT NULL default '0', - `minimal_quantity` int(10) unsigned NOT NULL DEFAULT '1', - `available_date` date NOT NULL, - PRIMARY KEY (`id_product_attribute`), - KEY `product_attribute_product` (`id_product`), - KEY `reference` (`reference`), - KEY `supplier_reference` (`supplier_reference`), - KEY `product_default` (`id_product`,`default_on`), - KEY `id_product_id_product_attribute` (`id_product_attribute` , `id_product`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_product_attribute_combination` ( - `id_attribute` int(10) unsigned NOT NULL, - `id_product_attribute` int(10) unsigned NOT NULL, - PRIMARY KEY (`id_attribute`,`id_product_attribute`), - KEY `id_product_attribute` (`id_product_attribute`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_product_attribute_image` ( - `id_product_attribute` int(10) unsigned NOT NULL, - `id_image` int(10) unsigned NOT NULL, - PRIMARY KEY (`id_product_attribute`,`id_image`), - KEY `id_image` (`id_image`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_product_download` ( - `id_product_download` int(10) unsigned NOT NULL AUTO_INCREMENT, - `id_product` int(10) unsigned NOT NULL, - `id_product_attribute` int(10) unsigned NOT NULL, - `display_filename` varchar(255) DEFAULT NULL, - `filename` varchar(255) DEFAULT NULL, - `date_add` datetime NOT NULL, - `date_expiration` datetime DEFAULT NULL, - `nb_days_accessible` int(10) unsigned DEFAULT NULL, - `nb_downloadable` int(10) unsigned DEFAULT '1', - `active` tinyint(1) unsigned NOT NULL DEFAULT '1', - `is_shareable` tinyint(1) unsigned NOT NULL DEFAULT '0', - PRIMARY KEY (`id_product_download`), - KEY `product_active` (`id_product`,`active`), - KEY `id_product_attribute` (`id_product_attribute`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_product_lang` ( - `id_product` int(10) unsigned NOT NULL, - `id_shop` INT( 11 ) UNSIGNED NOT NULL DEFAULT '1', - `id_lang` int(10) unsigned NOT NULL, - `description` text, - `description_short` text, - `link_rewrite` varchar(128) NOT NULL, - `meta_description` varchar(255) default NULL, - `meta_keywords` varchar(255) default NULL, - `meta_title` varchar(128) default NULL, - `name` varchar(128) NOT NULL, - `available_now` varchar(255) default NULL, - `available_later` varchar(255) default NULL, - PRIMARY KEY (`id_product`, `id_shop` , `id_lang`), - KEY `id_lang` (`id_lang`), - KEY `name` (`name`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_product_sale` ( - `id_product` int(10) unsigned NOT NULL, - `quantity` int(10) unsigned NOT NULL default '0', - `sale_nbr` int(10) unsigned NOT NULL default '0', - `date_upd` date NOT NULL, - PRIMARY KEY (`id_product`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_product_tag` ( - `id_product` int(10) unsigned NOT NULL, - `id_tag` int(10) unsigned NOT NULL, - PRIMARY KEY (`id_product`,`id_tag`), - KEY `id_tag` (`id_tag`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_profile` ( - `id_profile` int(10) unsigned NOT NULL auto_increment, - PRIMARY KEY (`id_profile`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_profile_lang` ( - `id_lang` int(10) unsigned NOT NULL, - `id_profile` int(10) unsigned NOT NULL, - `name` varchar(128) NOT NULL, - PRIMARY KEY (`id_profile`,`id_lang`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_quick_access` ( - `id_quick_access` int(10) unsigned NOT NULL auto_increment, - `new_window` tinyint(1) NOT NULL default '0', - `link` varchar(128) NOT NULL, - PRIMARY KEY (`id_quick_access`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_quick_access_lang` ( - `id_quick_access` int(10) unsigned NOT NULL, - `id_lang` int(10) unsigned NOT NULL, - `name` varchar(32) NOT NULL, - PRIMARY KEY (`id_quick_access`,`id_lang`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_range_price` ( - `id_range_price` int(10) unsigned NOT NULL auto_increment, - `id_carrier` int(10) unsigned NOT NULL, - `delimiter1` decimal(20,6) NOT NULL, - `delimiter2` decimal(20,6) NOT NULL, - PRIMARY KEY (`id_range_price`), - UNIQUE KEY `id_carrier` (`id_carrier`,`delimiter1`,`delimiter2`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_range_weight` ( - `id_range_weight` int(10) unsigned NOT NULL auto_increment, - `id_carrier` int(10) unsigned NOT NULL, - `delimiter1` decimal(20,6) NOT NULL, - `delimiter2` decimal(20,6) NOT NULL, - PRIMARY KEY (`id_range_weight`), - UNIQUE KEY `id_carrier` (`id_carrier`,`delimiter1`,`delimiter2`) -) ENGINE=ENGINE_TYPE 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', - `date_add` datetime NOT NULL, - PRIMARY KEY (`id_referrer`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_referrer_cache` ( - `id_connections_source` int(11) unsigned NOT NULL, - `id_referrer` int(11) unsigned NOT NULL, - PRIMARY KEY (`id_connections_source`, `id_referrer`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -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; - -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; - -CREATE TABLE `PREFIX_scene` ( - `id_scene` int(10) unsigned NOT NULL auto_increment, - `active` tinyint(1) NOT NULL default '1', - PRIMARY KEY (`id_scene`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_scene_category` ( - `id_scene` int(10) unsigned NOT NULL, - `id_category` int(10) unsigned NOT NULL, - PRIMARY KEY (`id_scene`,`id_category`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_scene_lang` ( - `id_scene` int(10) unsigned NOT NULL, - `id_lang` int(10) unsigned NOT NULL, - `name` varchar(100) NOT NULL, - PRIMARY KEY (`id_scene`,`id_lang`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_scene_products` ( - `id_scene` int(10) unsigned NOT NULL, - `id_product` int(10) unsigned 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, - PRIMARY KEY (`id_scene`, `id_product`, `x_axis`, `y_axis`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_search_engine` ( - `id_search_engine` int(10) unsigned NOT NULL auto_increment, - `server` varchar(64) NOT NULL, - `getvar` varchar(16) NOT NULL, - PRIMARY KEY (`id_search_engine`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_search_index` ( - `id_product` int(11) unsigned NOT NULL, - `id_word` int(11) unsigned NOT NULL, - `weight` smallint(4) unsigned NOT NULL default 1, - PRIMARY KEY (`id_word`, `id_product`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_search_word` ( - `id_word` int(10) unsigned NOT NULL auto_increment, - `id_shop` int(11) unsigned NOT NULL default 1, - `id_lang` int(10) unsigned NOT NULL, - `word` varchar(15) NOT NULL, - PRIMARY KEY (`id_word`), - UNIQUE KEY `id_lang` (`id_lang`,`id_shop`, `word`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_specific_price` ( - `id_specific_price` INT UNSIGNED NOT NULL AUTO_INCREMENT, - `id_specific_price_rule` INT(11) UNSIGNED NOT NULL, - `id_cart` INT(11) UNSIGNED NOT NULL, - `id_product` INT UNSIGNED NOT NULL, - `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1', - `id_group_shop` INT(11) UNSIGNED NOT NULL, - `id_currency` INT UNSIGNED NOT NULL, - `id_country` INT UNSIGNED NOT NULL, - `id_group` INT UNSIGNED NOT NULL, - `id_customer` INT UNSIGNED NOT NULL, - `id_product_attribute` INT UNSIGNED NOT NULL, - `price` DECIMAL(20, 6) NOT NULL, - `from_quantity` mediumint(8) 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`, `id_customer`, `from_quantity`, `from`, `to`), - KEY (`id_specific_price_rule`), - KEY (`id_cart`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_state` ( - `id_state` int(10) unsigned NOT NULL auto_increment, - `id_country` int(11) unsigned NOT NULL, - `id_zone` int(11) unsigned NOT NULL, - `name` varchar(64) NOT NULL, - `iso_code` char(4) NOT NULL, - `tax_behavior` smallint(1) NOT NULL default '0', - `active` tinyint(1) NOT NULL default '0', - PRIMARY KEY (`id_state`), - KEY `id_country` (`id_country`), - KEY `id_zone` (`id_zone`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_subdomain` ( - `id_subdomain` int(10) unsigned NOT NULL auto_increment, - `name` varchar(16) NOT NULL, - PRIMARY KEY (`id_subdomain`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_supplier` ( - `id_supplier` int(10) unsigned NOT NULL auto_increment, - `id_address` int(10) unsigned NOT NULL default 0, - `name` varchar(64) NOT NULL, - `date_add` datetime NOT NULL, - `date_upd` datetime NOT NULL, - `active` tinyint(1) NOT NULL default 0, - PRIMARY KEY (`id_supplier`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_supplier_lang` ( - `id_supplier` int(10) unsigned NOT NULL, - `id_lang` int(10) unsigned NOT NULL, - `description` text, - `meta_title` varchar(128) default NULL, - `meta_keywords` varchar(255) default NULL, - `meta_description` varchar(255) default NULL, - PRIMARY KEY (`id_supplier`,`id_lang`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_tab` ( - `id_tab` int(10) unsigned NOT NULL auto_increment, - `id_parent` int(11) NOT NULL, - `class_name` varchar(64) NOT NULL, - `module` varchar(64) NULL, - `position` int(10) unsigned NOT NULL, - `active` tinyint(1) NOT NULL DEFAULT 1, - PRIMARY KEY (`id_tab`), - KEY `class_name` (`class_name`), - KEY `id_parent` (`id_parent`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_tab_lang` ( - `id_tab` int(10) unsigned NOT NULL, - `id_lang` int(10) unsigned NOT NULL, - `name` varchar(32) default NULL, - PRIMARY KEY (`id_tab`,`id_lang`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_tag` ( - `id_tag` int(10) unsigned NOT NULL auto_increment, - `id_lang` int(10) unsigned NOT NULL, - `name` varchar(32) NOT NULL, - PRIMARY KEY (`id_tag`), - KEY `tag_name` (`name`), - KEY `id_lang` (`id_lang`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_tax` ( - `id_tax` int(10) unsigned NOT NULL auto_increment, - `rate` DECIMAL(10, 3) NOT NULL, - `active` tinyint(1) unsigned NOT NULL default '1', - `deleted` tinyint(1) unsigned NOT NULL default '0', - `account_number` varchar(64) NOT NULL, - PRIMARY KEY (`id_tax`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_tax_lang` ( - `id_tax` int(10) unsigned NOT NULL, - `id_lang` int(10) unsigned NOT NULL, - `name` varchar(32) NOT NULL, - PRIMARY KEY (`id_tax`,`id_lang`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_timezone` ( - id_timezone int(10) unsigned NOT NULL auto_increment, - name VARCHAR(32) NOT NULL, - PRIMARY KEY timezone_index(`id_timezone`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_web_browser` ( - `id_web_browser` int(10) unsigned NOT NULL auto_increment, - `name` varchar(64) default NULL, - PRIMARY KEY (`id_web_browser`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_zone` ( - `id_zone` int(10) unsigned NOT NULL auto_increment, - `name` varchar(64) NOT NULL, - `active` tinyint(1) unsigned NOT NULL default '0', - PRIMARY KEY (`id_zone`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_carrier_group` ( - `id_carrier` int(10) unsigned NOT NULL, - `id_group` int(10) unsigned NOT NULL, - PRIMARY KEY (`id_carrier`,`id_group`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -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` decimal(11,8) DEFAULT NULL, - `longitude` decimal(11,8) 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; - -CREATE TABLE `PREFIX_webservice_account` ( - `id_webservice_account` int(11) NOT NULL AUTO_INCREMENT, - `key` varchar(32) NOT NULL, - `description` text NULL, - `class_name` VARCHAR( 50 ) NOT NULL DEFAULT 'WebserviceRequest', - `is_module` TINYINT( 2 ) NOT NULL DEFAULT '0', - `module_name` VARCHAR( 50 ) NULL DEFAULT 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','HEAD') 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; - -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_product_country_tax` ( - `id_product` int(11) NOT NULL, - `id_country` int(11) NOT NULL, - `id_tax` int(11) NOT NULL, - PRIMARY KEY (`id_product`,`id_country`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - - -CREATE TABLE `PREFIX_tax_rule` ( - `id_tax_rule` int(11) NOT NULL AUTO_INCREMENT, - `id_tax_rules_group` int(11) NOT NULL, - `id_country` int(11) NOT NULL, - `id_state` int(11) NOT NULL, - `zipcode_from` INT NOT NULL, - `zipcode_to` INT NOT NULL, - `id_tax` int(11) NOT NULL, - `behavior` int(11) NOT NULL, - `description` VARCHAR( 100 ) NOT NULL, - PRIMARY KEY (`id_tax_rule`), - KEY `id_tax_rules_group` (`id_tax_rules_group`), - KEY `id_tax` (`id_tax`) -) 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( 50 ) NOT NULL , -`active` INT NOT NULL -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `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; - -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` ), - UNIQUE KEY `id_product` (`id_product`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -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; - -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; - -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; - -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; - -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(150) NOT NULL, - `domain_ssl` varchar(150) 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 `full_shop_url` (`domain`, `physical_uri`, `virtual_uri`), - UNIQUE KEY `full_shop_url_ssl` (`domain_ssl`, `physical_uri`, `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, - `directory` varchar(64) NOT NULL, - PRIMARY KEY (`id_theme`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -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_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; - -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; - -CREATE TABLE `PREFIX_address_format` ( - `id_country` int(10) unsigned NOT NULL, - `format` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id_country`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -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; - -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; - -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; - -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; - -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; - -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; - -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; - -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; - -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; - -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; - -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; - -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; - -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; - -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; - -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; - -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; - -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; - -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; - -CREATE TABLE `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; - -CREATE TABLE `PREFIX_stock_mvt_reason` ( - `id_stock_mvt_reason` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, - `sign` tinyint(1) NOT NULL DEFAULT 1, - `date_add` datetime NOT NULL, - `date_upd` datetime NOT NULL, - `deleted` tinyint(1) unsigned NOT NULL default '0', - PRIMARY KEY (`id_stock_mvt_reason`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_stock_mvt_reason_lang` ( - `id_stock_mvt_reason` INT(11) UNSIGNED NOT NULL, - `id_lang` INT(11) UNSIGNED NOT NULL, - `name` VARCHAR(255) CHARACTER SET utf8 NOT NULL, - PRIMARY KEY (`id_stock_mvt_reason`,`id_lang`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `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; - -CREATE TABLE `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 `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 `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; - -CREATE TABLE `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 `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 `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`), - UNIQUE KEY `reference` (`reference`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `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 `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 `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 `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 `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 `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 `PREFIX_supplier_rates` ( -`id_product_supplier` INT(11) UNSIGNED NOT NULL, -`id_currency` INT(11) UNSIGNED NOT NULL, -`quantity_min` INT(11) UNSIGNED NOT NULL, -`quantity_max` INT(11) UNSIGNED NOT NULL, -`price_te` DECIMAL(20,6) DEFAULT '0.000000', - PRIMARY KEY (`id_product_supplier`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `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 `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; - -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; - -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 AUTO_INCREMENT, - `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 AUTO_INCREMENT, - `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; - -CREATE TABLE IF NOT EXISTS `PREFIX_risk` ( - `id_risk` int(11) NOT NULL AUTO_INCREMENT, - `percent` tinyint(3) NOT NULL, - `color` varchar(32) NULL, - PRIMARY KEY (`id_risk`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `PREFIX_risk_lang` ( - `id_risk` int(10) unsigned NOT NULL, - `id_lang` int(10) unsigned NOT NULL, - `name` varchar(20) NOT NULL, - PRIMARY KEY (`id_risk`,`id_lang`), - KEY `id_risk` (`id_risk`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_category_shop` ( - `id_category` int(11) NOT NULL, - `id_shop` int(11) NOT NULL, - PRIMARY KEY (`id_category`, `id_shop`), - UNIQUE KEY `id_category_shop` (`id_category`,`id_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; diff --git a/install-dev/sql/db_settings_extends.sql b/install-dev/sql/db_settings_extends.sql deleted file mode 100644 index 9ea873d68..000000000 --- a/install-dev/sql/db_settings_extends.sql +++ /dev/null @@ -1,1753 +0,0 @@ -SET NAMES 'utf8'; - -/* Carrier */ -INSERT INTO `PREFIX_carrier` (`id_carrier`, `id_reference`, `id_tax_rules_group`, `name`, `active`, `deleted`, `shipping_handling`, `is_free`, `position`) VALUES (2, 2, 1, 'My carrier', 1, 0, 1, 0, 1); -INSERT INTO `PREFIX_carrier_group` (`id_carrier`, `id_group`) VALUES (2, 1), (2, 2), (2, 3); -INSERT INTO `PREFIX_carrier_shop` (`id_carrier`, `id_shop`) VALUES (2, 1); -INSERT INTO `PREFIX_carrier_lang` (`id_carrier`, `id_lang`, `delay`) VALUES (2, 1, 'Delivery next day!'),(2, 2, 'Livraison le lendemain !'),(2, 3, '¡Entrega día siguiente!'),(2, 4, 'Zustellung am nächsten Tag!'),(2, 5, 'Consegna il giorno dopo!'); -INSERT INTO `PREFIX_carrier_zone` (`id_carrier`, `id_zone`) VALUES (2, 1),(2, 2); - -UPDATE `PREFIX_configuration` SET `value` = '2' WHERE `name` = 'PS_CARRIER_DEFAULT'; - -INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES - ('MB_PAY_TO_EMAIL', '', NOW(), NOW()), - ('MB_SECRET_WORD', '', NOW(), NOW()), - ('MB_HIDE_LOGIN', 1, NOW(), NOW()), - ('MB_ID_LOGO', 1, NOW(), NOW()), - ('MB_ID_LOGO_WALLET', 1, NOW(), NOW()), - ('MB_PARAMETERS', 0, NOW(), NOW()), - ('MB_PARAMETERS_2', 0, NOW(), NOW()), - ('MB_DISPLAY_MODE', 0, NOW(), NOW()), - ('MB_CANCEL_URL', 'http://www.yoursite.com', NOW(), NOW()), - ('MB_LOCAL_METHODS', '2', NOW(), NOW()), - ('MB_INTER_METHODS', '5', NOW(), NOW()), - ('BANK_WIRE_CURRENCIES', '2,1', NOW(), NOW()), - ('CHEQUE_CURRENCIES', '2,1', NOW(), NOW()), - ('PRODUCTS_VIEWED_NBR', '2', NOW(), NOW()), - ('BLOCK_CATEG_DHTML', '1', NOW(), NOW()), - ('BLOCK_CATEG_MAX_DEPTH', '3', NOW(), NOW()), - ('MANUFACTURER_DISPLAY_FORM', '1', NOW(), NOW()), - ('MANUFACTURER_DISPLAY_TEXT', '1', NOW(), NOW()), - ('MANUFACTURER_DISPLAY_TEXT_NB', '5', NOW(), NOW()), - ('NEW_PRODUCTS_NBR', '5', NOW(), NOW()), - ('PS_TOKEN_ENABLE', '1', NOW(), NOW()), - ('PS_STATS_RENDER', 'graphxmlswfcharts', NOW(), NOW()), - ('PS_STATS_OLD_CONNECT_AUTO_CLEAN', 'never', NOW(), NOW()), - ('PS_STATS_GRID_RENDER', 'gridhtml', NOW(), NOW()), - ('BLOCKTAGS_NBR', '10', NOW(), NOW()), - ('CHECKUP_DESCRIPTIONS_LT', '100', NOW(), NOW()), - ('CHECKUP_DESCRIPTIONS_GT', '400', NOW(), NOW()), - ('CHECKUP_IMAGES_LT', '1', NOW(), NOW()), - ('CHECKUP_IMAGES_GT', '2', NOW(), NOW()), - ('CHECKUP_SALES_LT', '1', NOW(), NOW()), - ('CHECKUP_SALES_GT', '2', NOW(), NOW()), - ('CHECKUP_STOCK_LT', '1', NOW(), NOW()), - ('CHECKUP_STOCK_GT', '3', NOW(), NOW()), - ('FOOTER_CMS', '0_3|0_4', NOW(), NOW()), - ('FOOTER_BLOCK_ACTIVATION', '0_3|0_4', NOW(), NOW()), - ('FOOTER_POWEREDBY', 1, NOW(), NOW()), - ('BLOCKADVERT_LINK', 0, NOW(), NOW()), - ('BLOCKSTORE_IMG', 'store.jpg', NOW(), NOW()); - -INSERT INTO `PREFIX_module` (`id_module`, `name`, `active`) VALUES (1, 'homefeatured', 1),(2, 'gsitemap', 1),(3, 'cheque', 1),(4, 'moneybookers', 1),(5, 'homeslider', 1), -(6, 'bankwire', 1),(7, 'blockadvertising', 1),(8, 'blockbestsellers', 1),(9, 'blockcart', 1),(10, 'blockcategories', 1),(11, 'blockcurrencies', 1),(12, 'blockcms', 1), -(13, 'blocklanguages', 1),(14, 'blockmanufacturer', 1),(15, 'blockmyaccount', 1),(16, 'blocknewproducts', 1),(17, 'blockpaymentlogo', 1),(18, 'blockpermanentlinks', 1), -(19, 'blocksearch', 1),(20, 'blockspecials', 1),(21, 'blocktags', 1),(22, 'blockuserinfo', 1),(24, 'blockviewed', 1),(25, 'statsdata', 1), -(26, 'statsvisits', 1),(27, 'statssales', 1),(28, 'statsregistrations', 1),(30, 'statspersonalinfos', 1),(31, 'statslive', 1),(32, 'statsequipment', 1),(33, 'statscatalog', 1), -(34, 'graphvisifire', 1),(35, 'graphxmlswfcharts', 1),(36, 'graphgooglechart', 1),(37, 'graphartichow', 1),(39, 'gridhtml', 1),(40, 'statsbestcustomers', 1), -(41, 'statsorigin', 1),(42, 'pagesnotfound', 1),(43, 'sekeywords', 1),(44, 'statsproduct', 1),(45, 'statsbestproducts', 1),(46, 'statsbestcategories', 1), -(47, 'statsbestvouchers', 1),(48, 'statsbestsuppliers', 1),(49, 'statscarrier', 1),(50, 'statsnewsletter', 1),(51, 'statssearch', 1),(52, 'statscheckup', 1),(53, 'statsstock', 1), -(54, 'blockstore', 1),(55, 'statsforecast', 1), -/* new themes : modules to add */ -(56, 'blocktopmenu', 1), -(57, 'blocksharefb', 1), -(58, 'blocksocial', 1), -(59, 'blockcontactinfos', 1), -(60, 'blockcontact', 1), -(61, 'blockmyaccountfooter', 1), -(62, 'blockreinsurance', 1), -(63, 'blockcustomerprivacy', 1), -(64, 'favoriteproducts', 1), - -(65, 'blocknewsletter', 1), -(66, 'blocksupplier', 1), -(67, 'feeder', 1); - -INSERT INTO `PREFIX_module_access` (`id_profile`, `id_module`, `configure`, `view`) (SELECT 1, `id_module`, 1, 1 FROM `PREFIX_module`); - -INSERT INTO `PREFIX_module_shop` (`id_module`, `id_shop`) (SELECT `id_module`, 1 FROM `PREFIX_module`); - - -/* - * rightcolumn=6, leftcolumn=7, home=8, header=9, top=14, - */ - - -INSERT INTO `PREFIX_hook_module` (`id_module`, `id_hook`, `position`) VALUES -/* homefeatured */ -(1, 8, 2), -(1, 9, 23), -/* cheque */ -(3, 1, 1), -(3, 4, 1), -/* moneybooker */ -(4, 1, 3), -(4, 4, 3), -/* homeslider */ -(5, 8, 1), -(5, 9, 7), -/* bankwire */ -(6, 1, 2), -(6, 4, 2), -/* blockadvertising */ -(7, 7, 7), -(7, 9, 17), - - -/* blockcart */ -(9, 9, 5), -(9, 14, 7), - -/* blockcategories */ -(10, 7, 3), -(10, 9, 9), -(10, 21, 2), -(10, 60, 1), -(10, 61, 1), -(10, 62, 1), -(10, 66, 1), -/* blockcurrencies */ -(11, 9, 11), -(11, 14, 2), - -/* blockcms */ -(12, 6, 5), -(12, 7, 6), -(12, 9, 16), -(12, 21, 4), -/* blocklanguages */ -(13, 9, 14), -(13, 14, 1), -/* blockmanufacturer */ -(14, 7, 5), -(14, 9, 15), -/* blockmyaccount */ -(15, 9, 6), -(15, 21, 3), -/* blocknewproducts */ -(16, 6, 2), -(16, 9, 12), -/* blockpaymentlogo */ -(17, 7, 8), -(17, 9, 2), -/* blockpermanentlinks */ -(18, 9, 3), -(18, 14, 3), -/* blocksearch */ -(19, 9 ,20), -(19, 14, 4), -/* blockspecials */ -(20, 6, 4), -(20, 9, 10), -/* blocktags */ -(21, 7, 2), -(21, 9, 18), -/* blockuserinfo */ -(22, 9, 13), -(22, 14, 5), -/* blockviewed */ -(24, 7, 4), -(24, 9, 4), -/* statsdata */ -(25, 11, 1), -(25, 21, 7), -(25, 25, 1), -/* stats (bo) */ -(26, 32, 1), -(27, 32, 2), -(28, 32, 3), -(30, 32, 4), -(31, 32, 5), -(32, 32, 6), -(33, 32, 7), -/* graphs engine */ -(34, 33, 1), -(35, 33, 2), -(36, 33, 3), -(37, 33, 4), -/* gridhtml (bo) */ -(39, 37, 1), -/* statsbestcustomer (bo)*/ -(40, 32, 8), -/* statsorigin */ -(41, 20, 2), -(41, 32, 9), -/* pagesnotfound */ -(42, 14, 8), -(42, 32, 10), -/* sekeywords */ -(43, 14, 7), -(43, 32, 11), -/* statsproduct */ -(44, 32, 12), -(45, 32, 13), -(46, 32, 15), -(47, 32, 14), -(48, 32, 16), -(49, 32, 17), -(50, 32, 18), -(51, 32, 19), -/* statsearch */ -(51, 45, 1), -/* statscheckup (bo) */ -(52, 32, 20), -/* statstock(bo) */ -(53, 32, 21), -/* blockstore */ -(54, 6, 6), -(54, 9, 19), -/* statsforecast */ -(55, 32, 22), -/* blocktopmenu */ -(56, 9, 22), -(56, 14, 6), -/* blocksharefb */ -(57, 21, 7), -(57, 40, 1), -/* blocksocial */ -(58, 9, 5), -(58, 21, 5), -/* blockcontactinfos */ -(59, 9, 21), -(59, 21, 6), -/* blockcontact */ -(60, 6, 7), -(60, 9, 24), -/* blockreinsurance */ -(62, 21, 1), -/* favoriteproducts */ -(64, 9, 22), -(64, 26, 1), -(64, 40, 2), -(64, 96, 1), -/* blocknewsletter */ -(65, 9, 24), -(65, 6, 8), -/* blocksupplier */ -(66, 7, 5), -(66, 9, 25), - -/* feeder */ -(67, 9, 26); - -CREATE TABLE `PREFIX_pagenotfound` ( - `id_pagenotfound` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, - `id_shop` INTEGER UNSIGNED NOT NULL DEFAULT '1', - `id_group_shop` INTEGER UNSIGNED NOT NULL DEFAULT '1', - `request_uri` VARCHAR(256) NOT NULL, - `http_referer` VARCHAR(256) NOT NULL, - `date_add` DATETIME NOT NULL, - PRIMARY KEY(`id_pagenotfound`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_statssearch` ( - `id_statssearch` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, - `id_shop` INTEGER UNSIGNED NOT NULL DEFAULT '1', - `id_group_shop` INTEGER UNSIGNED NOT NULL DEFAULT '1', - `keywords` VARCHAR(255) NOT NULL, - `results` INT(6) NOT NULL DEFAULT 0, - `date_add` DATETIME NOT NULL, - PRIMARY KEY(`id_statssearch`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_sekeyword` ( - `id_sekeyword` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, - `id_shop` INTEGER UNSIGNED NOT NULL DEFAULT '1', - `id_group_shop` INTEGER UNSIGNED NOT NULL DEFAULT '1', - `keyword` VARCHAR(256) NOT NULL, - `date_add` DATETIME NOT NULL, - PRIMARY KEY(`id_sekeyword`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - - -CREATE TABLE `PREFIX_cms_block` ( - `id_cms_block` int(10) unsigned NOT NULL auto_increment, - `id_cms_category` int(10) unsigned NOT NULL, - `name` varchar(40) NOT NULL, - `location` tinyint(1) unsigned NOT NULL, - `position` int(10) unsigned NOT NULL default '0', - `display_store` tinyint(1) unsigned NOT NULL DEFAULT '1', - PRIMARY KEY (`id_cms_block`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_cms_block_page` ( - `id_cms_block_page` int(10) unsigned NOT NULL auto_increment, - `id_cms_block` int(10) unsigned NOT NULL, - `id_cms` int(10) unsigned NOT NULL, - `is_category` tinyint(1) unsigned NOT NULL, - PRIMARY KEY (`id_cms_block_page`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_cms_block_lang` ( - `id_cms_block` int(10) unsigned NOT NULL, - `id_lang` int(10) unsigned NOT NULL, - `name` varchar(40) NOT NULL default '', - PRIMARY KEY (`id_cms_block`, `id_lang`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -CREATE TABLE `PREFIX_cms_block_shop` ( - `id_cms_block` int(10) unsigned NOT NULL auto_increment, - `id_shop` int(10) unsigned NOT NULL, - PRIMARY KEY (`id_cms_block`, `id_shop`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; - -INSERT INTO `PREFIX_range_price` (`id_range_price`, `id_carrier`, `delimiter1`, `delimiter2`) VALUES (1, 2, 0, 10000); -INSERT INTO `PREFIX_range_weight` (`id_range_weight`, `id_carrier`, `delimiter1`, `delimiter2`) VALUES (1, 2, 0, 10000); -INSERT INTO `PREFIX_delivery` (`id_delivery`, `id_range_price`, `id_range_weight`, `id_carrier`, `id_zone`, `price`) VALUES -(1, NULL, 1, 2, 1, 5.00),(2, NULL, 1, 2, 2, 5.00),(4, 1, NULL, 2, 1, 5.00),(5, 1, NULL, 2, 2, 5.00); - -INSERT INTO `PREFIX_customer_group` (`id_customer`, `id_group`) VALUES (1, 3); -INSERT INTO `PREFIX_category_group` (`id_category`, `id_group`) VALUES (2, 1),(3, 1),(4, 1),(2, 2),(3, 2),(4, 2),(2, 3),(3, 3),(4, 3); - -INSERT INTO `PREFIX_customer` (`id_customer`, `id_gender`, `id_default_group`, `secure_key`, `email`, `passwd`, `birthday`, `lastname`, `newsletter`, `optin`, `firstname`, `active`, `is_guest`, `date_add`, `date_upd`) - VALUES (1, 1, 3, '47ce86627c1f3c792a80773c5d2deaf8', 'pub@prestashop.com', 'ad807bdf0426766c05c64041124d30ce', '1970-01-15', 'DOE', 1, 1, 'John', 1, 0, NOW(), NOW()); -INSERT INTO `PREFIX_connections` (`id_connections`, `id_guest`, `id_page`, `ip_address`, `date_add`, `http_referer`) - VALUES (1, 1, 1, '2130706433', NOW(), 'http://www.prestashop.com'); -INSERT INTO `PREFIX_guest` (`id_guest`, `id_operating_system`, `id_web_browser`, `id_customer`, `javascript`, `screen_resolution_x`, `screen_resolution_y`, `screen_color`, `sun_java`, `adobe_flash`, `adobe_director`, `apple_quicktime`, `real_player`, `windows_media`, `accept_language`) - VALUES (1, 1, 3, 1, 1, 1680, 1050, 32, 1, 1, 0, 1, 1, 0, 'en-us'); - -INSERT INTO `PREFIX_cart` (`id_cart`, `id_carrier`, `id_lang`, `id_address_delivery`, `id_address_invoice`, `id_currency`, `id_customer`, `id_guest`, `recyclable`, `gift`, `date_add`, `date_upd`) - VALUES (1, 2, 2, 2, 2, 1, 1, 1, 1, 0, NOW(), NOW()); -INSERT INTO `PREFIX_cart_product` (`id_cart`, `id_product`, `id_shop`, `id_product_attribute`, `quantity`, `date_add`) VALUES (1, 7, 1, 23, 1, NOW()); -INSERT INTO `PREFIX_cart_product` (`id_cart`, `id_product`, `id_shop`, `id_product_attribute`, `quantity`, `date_add`) VALUES (1, 9, 1, 0, 1, NOW()); - -INSERT INTO `PREFIX_orders` (`id_order`, `reference`, `id_carrier`, `id_lang`, `id_customer`, `id_cart`, `id_currency`, `id_address_delivery`, `id_address_invoice`, `secure_key`, `payment`, `module`, `recyclable`, `gift`, `gift_message`, `shipping_number`, `total_discounts`, `total_paid`, `total_paid_real`, `total_products`, `total_products_wt`, `total_shipping`, `total_wrapping`, `invoice_number`, `delivery_number`, `invoice_date`, `delivery_date`, `date_add`, `date_upd`, `total_paid_tax_incl`, `total_paid_tax_excl`, `total_shipping_tax_incl`, `total_shipping_tax_excl`, `carrier_tax_rate`) - VALUES (1, 'XKBKNABJ', 2, 2, 1, 1, 1, 2, 2, '47ce86627c1f3c792a80773c5d2deaf8', 'Chèque', 'cheque', 0, 0, '', '', '0.00', '626.37', '626.37', '516.72', '618.00', '7.98', '0.00', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NOW(), NOW(), '626.37', '523.72', '8.37', '7.00', '19.600'); - -INSERT INTO `PREFIX_order_detail` (`id_order_detail`, `id_order`, `product_id`, `product_attribute_id`, `product_name`, `product_quantity`, `product_quantity_return`, `product_price`, `product_quantity_discount`, `product_ean13`, `product_reference`, `product_supplier_reference`, `product_weight`, `ecotax`, `download_hash`, `download_nb`, `download_deadline`, `tax_name`, `total_price_tax_incl`, `total_price_tax_excl`, `unit_price_tax_incl`, `unit_price_tax_excl`) - VALUES (1, 1, 7, 23, 'iPod touch - Capacité: 32Go', 1, 0, '392.140500', '0.000000', NULL, NULL, NULL, 0, '0.00', '', 0, '0000-00-00 00:00:00', '', '469.000000', '392.140000', '469.000000', '392.140468'); -INSERT INTO `PREFIX_order_detail` (`id_order_detail`, `id_order`, `product_id`, `product_attribute_id`, `product_name`, `product_quantity`, `product_quantity_return`, `product_price`, `product_quantity_discount`, `product_ean13`, `product_reference`, `product_supplier_reference`, `product_weight`, `ecotax`, `download_hash`, `download_nb`, `download_deadline`, `tax_name`, `total_price_tax_incl`, `total_price_tax_excl`, `unit_price_tax_incl`, `unit_price_tax_excl`) - VALUES (2, 1, 9, 0, 'Écouteurs à isolation sonore Shure SE210', 1, 0, '124.581900', '0.000000', NULL, NULL, NULL, 0, '0.00', '', 0, '0000-00-00 00:00:00', '', '149.000000', '124.580000', '149.000000', '124.581940'); -INSERT INTO `PREFIX_order_history` (`id_order_history`, `id_employee`, `id_order`, `id_order_state`, `date_add`) VALUES (1, 0, 1, 1, NOW()); - -INSERT INTO `PREFIX_order_detail_tax` (`id_order_detail`, `id_tax`, `unit_amount`, `total_amount`) VALUES -(1, 1, '76.860000', '76.860000'), -(2, 1, '24.420000', '24.420000'); - -INSERT INTO `PREFIX_manufacturer` (`id_manufacturer`, `name`, `date_add`, `date_upd`, `active`) VALUES (1, 'Apple Computer, Inc', NOW(), NOW(), 1); -INSERT INTO `PREFIX_manufacturer` (`id_manufacturer`, `name`, `date_add`, `date_upd`, `active`) VALUES(2, 'Shure Incorporated', NOW(), NOW(), 1); - -INSERT INTO `PREFIX_manufacturer_group_shop` (`id_manufacturer`, `id_group_shop`) (SELECT `id_manufacturer`, 1 FROM `PREFIX_manufacturer`); - -INSERT INTO `PREFIX_manufacturer_lang` (`id_manufacturer`, `id_lang`, `description`, `short_description`, `meta_title`, `meta_keywords`, `meta_description`) VALUES -(1, 1, '', '', '', '', ''), -(1, 2, '', '', '', '', ''), -(1, 3, '', '', '', '', ''), -(1, 4, '', '', '', '', ''), -(1, 5, '', '', '', '', ''); - -INSERT INTO `PREFIX_address` (`id_address`, `id_country`, `id_state`, `id_customer`, `id_manufacturer`, `id_supplier`, `alias`, `lastname`, `firstname`, `address1`, `postcode`, `city`, `phone`, `date_add`, `date_upd`, `active`, `deleted`) - VALUES (1, 21, 5, 0, 1, 0, 'manufacturer', 'JOBS', 'STEVE', '1 Infinite Loop', '95014', 'Cupertino', '(800) 275-2273', NOW(), NOW(), 1, 0); -INSERT INTO `PREFIX_address` (`id_address`, `id_country`, `id_state`, `id_customer`, `id_manufacturer`, `id_supplier`, `alias`, `company`, `lastname`, `firstname`, `address1`, `address2`, `postcode`, `city`, `phone`, `date_add`, `date_upd`, `active`, `deleted`) - VALUES (2, 8, 0, 1, 0, 0, 'Mon adresse', 'My Company', 'DOE', 'John', '16, Main street', '2nd floor', '75000', 'Paris ', '0102030405', NOW(), NOW(), 1, 0); - -INSERT INTO `PREFIX_supplier` (`id_supplier`, `id_address`, `name`, `date_add`, `date_upd`, `active`) VALUES (1, 1, 'AppleStore', NOW(), NOW(), 1); -INSERT INTO `PREFIX_supplier` (`id_supplier`, `id_address`, `name`, `date_add`, `date_upd`, `active`) VALUES (2, 2, 'Shure Online Store', NOW(), NOW(), 1); - -INSERT INTO `PREFIX_supplier_group_shop` (`id_supplier`, `id_group_shop`) (SELECT `id_supplier`, 1 FROM `PREFIX_supplier`); - -INSERT INTO `PREFIX_supplier_lang` (`id_supplier`, `id_lang`, `description`, `meta_title`, `meta_keywords`, `meta_description`) VALUES -(1, 1, '', '', '', ''), -(1, 2, '', '', '', ''), -(1, 3, '', '', '', ''), -(1, 4, '', '', '', ''), -(1, 5, '', '', '', ''); - -INSERT INTO `PREFIX_product` (`id_product`, `indexed`, `id_supplier`, `id_manufacturer`, `id_tax_rules_group`, `id_category_default`, `on_sale`, `online_only`, `ean13`, `ecotax`, `quantity`, `price`, `wholesale_price`, `reference`, `supplier_reference`, `weight`, `out_of_stock`, `quantity_discount`, `customizable`, `uploadable_files`, `text_fields`, `active`, `date_add`, `date_upd`, `available_date`) VALUES -(1, 1, 1, 1, 1, 2, 0, 0, '0', 0.00, 0, 124.581940, 70.000000, '', '', 0.5, 2, 0, 0, 0, 0, 1, NOW(), NOW(), '0000-00-00'), -(2, 1, 1, 1, 1, 2, 0, 0, '0', 0.00, 0, 66.053500, 33.000000, '', '', 0, 2, 0, 0, 0, 0, 1, NOW(), NOW(), '0000-00-00'), -(5, 1, 1, 1, 1, 4, 0, 0, '0', 0.00, 0, 1504.180602, 1000.000000, '', NULL, 1.36, 2, 0, 0, 0, 0, 1, NOW(), NOW(), '0000-00-00'), -(6, 1, 1, 1, 1, 4, 0, 0, '0', 0.00, 0, 1170.568561, 0.000000, '', NULL, 0.75, 2, 0, 0, 0, 0, 1, NOW(), NOW(), '0000-00-00'), -(7, 1, 0, 0, 1, 2, 0, 0, '0', 0.00, 0, 241.638796, 200.000000, '', NULL, 0, 2, 0, 0, 0, 0, 1, NOW(), NOW(), '0000-00-00'), -(8, 1, 0, 0, 1, 3, 0, 1, '0', 0.00, 0, 25.041806, 0.000000, '', NULL, 0, 2, 0, 0, 0, 0, 1, NOW(), NOW(), '0000-00-00'), -(9, 1, 2, 2, 1, 3, 0, 1, '0', 0.00, 0, 124.581940, 0.000000, '', NULL, 0, 2, 0, 0, 0, 0, 1, NOW(), NOW(), '0000-00-00'); - -INSERT INTO `PREFIX_product_supplier` (`id_product_supplier`, `id_product`, `id_product_attribute`, `id_supplier`, `product_supplier_reference`, `product_supplier_price_te`, `id_currency`) VALUES -(1, 1, 0, 1, '', '0.000000', 0), -(2, 1, 25, 1, '', '0.000000', 0), -(3, 1, 26, 1, '', '0.000000', 0), -(4, 1, 27, 1, '', '0.000000', 0), -(5, 1, 28, 1, '', '0.000000', 0), -(6, 1, 29, 1, '', '0.000000', 0), -(7, 1, 30, 1, '', '0.000000', 0), -(8, 1, 31, 1, '', '0.000000', 0), -(9, 1, 32, 1, '', '0.000000', 0), -(10, 1, 33, 1, '', '0.000000', 0), -(11, 1, 34, 1, '', '0.000000', 0), -(12, 1, 35, 1, '', '0.000000', 0), -(13, 1, 36, 1, '', '0.000000', 0), -(14, 1, 39, 1, '', '0.000000', 0), -(15, 1, 40, 1, '', '0.000000', 0), -(16, 1, 41, 1, '', '0.000000', 0), -(17, 1, 42, 1, '', '0.000000', 0), -(18, 5, 0, 1, '', '0.000000', 0), -(19, 5, 12, 1, '', '0.000000', 0), -(20, 5, 13, 1, '', '0.000000', 0), -(21, 5, 14, 1, '', '0.000000', 0), -(22, 5, 15, 1, '', '0.000000', 0), -(23, 8, 0, 1, '', '0.000000', 0), -(24, 2, 0, 1, '', '0.000000', 0), -(25, 2, 7, 1, '', '0.000000', 0), -(26, 2, 8, 1, '', '0.000000', 0), -(27, 2, 9, 1, '', '0.000000', 0), -(28, 2, 10, 1, '', '0.000000', 0), -(30, 6, 0, 1, '', '0.000000', 0), -(31, 7, 0, 1, '', '0.000000', 0), -(32, 7, 19, 1, '', '0.000000', 0), -(33, 7, 22, 1, '', '0.000000', 0), -(34, 7, 23, 1, '', '0.000000', 0), -(35, 9, 0, 2, '', '0.000000', 0); - -INSERT INTO `PREFIX_product_shop` (`id_product`, `id_shop`) (SELECT `id_product`, 1 FROM `PREFIX_product`); - -INSERT INTO `PREFIX_product_lang` (`id_product`, `id_lang`, `description`, `description_short`, `link_rewrite`, `meta_description`, `meta_keywords`, `meta_title`, `name`, `available_now`, `available_later`) VALUES -(1, 1, '

    Curved ahead of the curve.

    \r\n

    For 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\n

    Great looks. And brains, too.

    \r\n

    The 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\n

    Made to move with your moves.

    \r\n

    The 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\n

    Pour 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\n

    Beau et intelligent.

    \r\n

    La 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\n

    Fait pour bouger avec vous.

    \r\n

    iPod 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\n

    Wear 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\n

    Feed your iPod shuffle.

    \r\n

    iTunes 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\n

    Beauty and the beat.

    \r\n

    Intensely 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\n

    Portez 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\n

    Emplissez votre iPod shuffle.

    \r\n

    iTunes 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\n

    La musique en technicolor.

    \r\n

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

    The 2.4GHz MacBook models now include 2GB of memory standard — perfect for running more of your favorite applications smoothly.', 'MacBook makes it easy to hit the road thanks to its tough polycarbonate case, built-in wireless technologies, and innovative MagSafe Power Adapter that releases automatically if someone accidentally trips on the cord.', 'macbook', '', '', '', 'MacBook', '', NULL), -(6, 2, 'Chaque MacBook est équipé d''un disque dur plus spacieux, d''une capacité atteignant 250 Go, pour stocker vos collections multimédia en expansion et vos données précieuses.

    Le modèle MacBook à 2,4 GHz intègre désormais 2 Go de mémoire en standard. L''idéal pour exécuter en souplesse vos applications préférées.', 'MacBook vous offre la liberté de mouvement grâce à son boîtier résistant en polycarbonate, à ses technologies sans fil intégrées et à son adaptateur secteur MagSafe novateur qui se déconnecte automatiquement si quelqu''un se prend les pieds dans le fil.', 'macbook', '', '', '', 'MacBook', '', NULL), -(7, 1, '

    Five new hands-on applications

    \r\n

    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\n

    Touch your music, movies, and more

    \r\n

    The revolutionary Multi-Touch technology built into the gorgeous 3.5-inch display lets you pinch, zoom, scroll, and flick with your fingers.

    \r\n

    Internet in your pocket

    \r\n

    With 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\n

    What''s in the box

    \r\n', '', 'ipod-touch', '', '', '', 'iPod touch', '', NULL), -(7, 2, '

    Titre 1

    \r\n

    Titre 2

    \r\n

    Titre 3

    \r\n

    Titre 4

    \r\n
    Titre 5
    \r\n
    Titre 6
    \r\n\r\n
      \r\n
    1. OL
    2. \r\n
    3. OL
    4. \r\n
    5. OL
    6. \r\n
    7. OL
    8. \r\n
    \r\n

    paragraphe...

    \r\n

    paragraphe...

    \r\n

    paragraphe...

    \r\n\r\n \r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
    th th th
    tdtdtd
    tdtdtd
    \r\n

    Cinq nouvelles applications sous la main

    \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\n

    Touchez du doigt votre musique et vos vidéos. Entre autres.

    \r\n

    La 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\n

    Internet dans votre poche

    \r\n

    Avec 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

    Contenu du coffret

    \r\n\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

    ', 'ipod-touch', '', '', '', 'iPod touch', 'En stock', NULL), -(8, 1, '

    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\n
  • Cuir doux résistant
  • \r\n
  • Accès au bouton Hold
  • \r\n
  • Fermeture magnétique
  • \r\n
  • Accès au Dock Connector
  • \r\n
  • Protège-écran
  • ', '

    Cet é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, '
    Using Hi-Definition MicroSpeakers to deliver full-range audio, the ergonomic and lightweight design of the SE210 earphones is ideal for premium on-the-go listening on your iPod or iPhone. They offer the most accurate audio reproduction from both portable and home stereo audio sources--for the ultimate in precision highs and rich low end. In addition, the flexible design allows you to choose the most comfortable fit from a variety of wearing positions.

    Features
    \r\n\r\nSpecifications
    \r\n\r\nIn the box
    \r\n\r\nWarranty
    Two-year limited
    (For details, please visit
    www.shure.com/PersonalAudio/CustomerSupport/ProductReturnsAndWarranty/index.htm.)

    Mfr. Part No.: SE210-A-EFS

    Note: Products sold through this website that do not bear the Apple Brand name are serviced and supported exclusively by their manufacturers in accordance with terms and conditions packaged with the products. Apple''s Limited Warranty does not apply to products that are not Apple-branded, even if packaged or sold with Apple products. Please contact the manufacturer directly for technical support and customer service.
    ', '

    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.

    \r\n

    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

    \r\n\r\n

    Contenu du coffret

    \r\n', '

    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.

    \r\n

    Internet en tu bolsillo

    \r\n

    Con 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\n

    Contenido 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

    ', 'ipod-touch', '', '', '', 'iPod touch', 'Disponible', ''), -(1, 3, '

    Curvas aerodinámicas.

    \r\n

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

    \r\n

    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\n', '

    Este 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

    \r\n

    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

    \r\n

    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

    \r\n

    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.

    \r\n


    Características técnicas

    \r\n\r\n


    Contenido de la caja

    \r\n', '

    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\n

    Fü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\n

    Tolles Design. Und viel Köpfchen.

    \r\n

    Die 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\n

    Passt sich Ihren Bewegungen an.

    \r\n

    Der 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\n

    Tragen 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\n

    style="font-size: small;">Füttern Sie Ihren iPod shuffle.

    \r\n

    iTunes 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\n

    style="font-size: small;">Die Schöne und der Beat.

    \r\n

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

    Die 2,4 GHz MacBook-Modelle haben nun 2 GB Standard-Arbeitsspeicher - ideal zum reibungslosen Abspielen Ihrer Lieblings-Anwendungen.', 'MacBook makes it easy to hit the road thanks to its tough polycarbonate case, built-in wireless technologies, and innovative MagSafe Power Adapter that releases automatically if someone accidentally trips on the cord.', 'macbook', '', '', '', 'MacBook', '', NULL), -(7, 4, '

    Fünf neue Hands-on-Anwendungen

    \r\n

    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\n

    Berühren Sie Ihre Musik, Filme und vieles mehr

    \r\n

    Mit der revolutionären, in den wunderschönen 3,5-Zoll-Display integrierten Multi-Touch-Technologie können Sie zuziehen, zoomen, scrollen und streichen.

    \r\n

    Internet in Ihrer Tasche

    \r\n

    Mit 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\n

    Zum Set gehören/h3>\r\n', '', 'iPod-Touch', '', '', '', 'iPod touch', '', NULL), -(8, 4, '

    Lorem ipsum

    ', '

    Lorem ipsum

    ', 'lederhulle-belkin-fur-ipod-nano-schwarz-schokolade', '', '', '', 'Lederhülle Belkin für ipod nano - Schwarz/Schokolade', '', NULL), -(9, 4, '
    Mit ihren hochauflösenden Micro-Lautsprechern, die vollen Klang liefern und ihrem ergonomischen, leichten Design sind die SE210 Ohrhörer ideal zum mobilen Extraklasse-Musik hören auf Ihrem iPod oder iPhone. Sie bieten die genaueste Tonwiedergabe, sowohl aus tragbaren als auch aus Home-Stereo-Audio-Quellen - für ultimative präzisen Höhen und kraftvolle Bässe. Darüber hinaus ermöglicht das flexible Design optimalen Tragekomfort durch eine Vielzahl von Tragemöglichkeiten.

    Funktionen
    \r\n
      \r\n
    • Klangisolierendes Design
    • \r\n
    • Hochauflösende Micro-Lautsprecher mit Single Balanced Armature-Treiber
    • \r\n
    • Abnehmbare modulare Kabel, die Sie je nach Aktivität länger oder kürzer einstellen können
    • \r\n
    • Kompatibler Stecker mit Kopfhörer-Anschlüssen für iPod und iPhone
    • \r\n
    \r\nDaten
    \r\n
      \r\n
    • Lautsprecher-Typ: Hochauflösende Micro-Lautsprecher
    • \r\n
    • Frequenzbereich: 25Hz-18.5kHz
    • \r\n
    • Impedanz (1kHz): 26 Ohm
    • \r\n
    • Empfindlichkeit (1mW): 114 dB SPL/mW
    • \r\n
    • Kabellänge (mit Erweiterung): 18,0 Zoll/45,0 cm (54,0 Zoll/137,1 cm)
    • \r\n
    \r\nIm Set enthalten
    \r\n
      \r\n
    • Shure SE210 Ohrhörer
    • \r\n
    • Verlängerungskabel (36,0 Zoll/91,4 cm)
    • \r\n
    • Drei Paar Schaumstoff-Hörmuschelhüllen (klein, mittel, groß)
    • \r\n
    • Drei Paar weiche Flex-Hörmuschelhüllen (klein, mittel, groß)
    • \r\n
    • Ein Paar Triple-Flange-Hörmuschelhüllen
    • \r\n
    • Trage-Etui
    • \r\n
    \r\nGarantie
    Zwei Jahre
    (Einzelheiten hierzu finden Sie auf
    www.shure.com/PersonalAudio/CustomerSupport/ProductReturnsAndWarranty/index.htm).

    Mfr. Teilenummer: SE210-A-EFS

    Hinweis: Für Produkte auf dieser Website, die nicht den Markennamen Apple tragen, werden Service und Support ausschließlich von den Herstellern gemäß der den Produkten beiliegenden Nutzungsbedingungen übernommen. Die von Apple angebotene Garantiezeit gilt nicht für Produkte, die kein Apple-Markenzeichen tragen, selbst wenn diese zusammen mit Apple-Produkten verpackt oder verkauft wurden. Bitte wenden Sie sich direkt an den Hersteller für den technischen Support und Kundendienst.
    ', '

    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\n

    Per 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\n

    Bello e intelligente.

    \r\n

    La 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\n

    Fatto per muoversi con te.

    \r\n

    L\'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\n

    Metti 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\n

    Ricarica il tuo iPod shuffle.

    \r\n

    iTunes è 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\n

    Musica coloratissima.

    \r\n

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

    I modelli MacBook a 2,4GHz ora includono 2GB di memoria standard — ideale per le tue applicazioni preferite.', 'MacBook ti offre il massimo della libertà di movimento grazie alla sua struttura resistente in policarbonato, alle tecnologie integrate wireless, e all\'innovativo MagSafe Power Adapter che si stacca automaticamente se qualcuno accidentalmente inciampa nel cavo.', 'macbook', '', '', '', 'MacBook', '', NULL), -(7, 5, '

    Cinque nuove applicazioni sotto mano

    \r\n

    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\n

    Tocca la musica, i film e altro ancora

    \r\n

    La 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\n

    Internet in tasca

    \r\n

    Con 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\n

    Nella confezione

    \r\n', '', 'ipod-touch', '', '', '', 'iPod touch', '', NULL), -(8, 5, '

    Lorem 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, '
    L\'ascolto con la tecnologia dei Micro-Auricolari ad Alta Definizione permette l\'ascolto ideale del tuo iPod o iPhone. E\' quanto ti offre il design leggero, ergonomico ed elegante degli auricolari SE210. Ti garantiscono un rendimento audio ad alto livello di stereo portatili e fissi, per un livello di precisione mai raggiunto prima. Inoltre, la forma flessibile ti peremtte di scegliere la posizione migliore per indossarli.

    Caratteristiche
    \r\n\r\nSpecifiche tecniche
    \r\n\r\nNella confezione
    \r\n\r\nGaranzia
    Due anni limitata
    (Per informazioni, visitare
    www.shure.com/PersonalAudio/CustomerSupport/ProductReturnsAndWarranty/index.htm.)

    Mfr. Parte N.: SE210-A-EFS

    Nota: I prodotti venduti tramite questo sito web e che non hanno il marchio Apple ricevono assistenza esclusivamente dai loro produttori con i termini e le condizioni contenute nella confezione del prodotto. La Garanzia Limitata di Apple non si applica ai prodotti che non appartengono al marchio Apple, anche se imballati o venduti con i prodotti Apple . Contatta direttamente il produttore per supporto tecnico e servizio clienti.
    ', '

    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', '

    Shipments and returns

    Your pack shipment

    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.

    ', 'delivery'), -(1, 2, 'Livraison', 'Nos conditions générales de livraison', 'conditions, livraison, délais, transport, colis', '

    Livraisons et retours

    Le transport de votre colis

    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.

    ', 'livraison'), -(2, 1, 'Legal Notice', 'Legal notice', 'notice, legal, credits', '

    Legal

    Credits

    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', '

    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', '

    Your terms and conditions of use

    Rule 1

    Here is the rule 1 content

    \r\n

    Rule 2

    Here is the rule 2 content

    \r\n

    Rule 3

    Here 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', '

    Vos conditions de ventes

    Règle n°1

    Contenu de la règle numéro 1

    \r\n

    Règle n°2

    Contenu de la règle numéro 2

    \r\n

    Règle n°3

    Contenu de la règle numéro 3

    ', 'conditions-generales-de-ventes'), -(4, 1, 'About us', 'Learn more about us', 'about us, informations', '

    About us

    \r\n

    Our company

    Our company

    \r\n

    Our team

    Our team

    \r\n

    Informations

    Informations

    ', 'about-us'), -(4, 2, 'A propos', 'Apprenez-en d''avantage sur nous', 'à propos, informations', '

    A propos

    \r\n

    Notre entreprise

    Notre entreprise

    \r\n

    Notre équipe

    Notre équipe

    \r\n

    Informations

    Informations

    ', 'a-propos'), -(5, 1, 'Secure payment', 'Our secure payment mean', 'secure payment, ssl, visa, mastercard, paypal', '

    Secure payment

    \r\n

    Our secure payment

    With SSL

    \r\n

    Using Visa/Mastercard/Paypal

    About this services

    ', 'secure-payment'), -(5, 2, 'Paiement sécurisé', 'Notre offre de paiement sécurisé', 'paiement sécurisé, ssl, visa, mastercard, paypal', '

    Paiement sécurisé

    \r\n

    Notre offre de paiement sécurisé

    Avec SSL

    \r\n

    Utilisation de Visa/Mastercard/Paypal

    A propos de ces services

    ', 'paiement-securise'), -(1, 3, 'Entrega', 'Nuestras condiciones de entrega', 'condiciones, plazos de entrega, transporte, paquetería', '

    shipping & Returns

    \r\n

    El transporte de su paquete

    \r\n

    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.

    ', 'entrega'), -(2, 3, 'Aviso legal', 'Aviso legal', 'términos, condiciones y créditos fotográficos', '

    Pie de imprenta

    \r\n

    Créditos

    \r\n

    \r\n


    Concepto y producción:

    Este sitio web fue creado utilizando la solución de código abierto PrestaShop™.

    ', 'aviso-legal'), -(3, 3, 'Condiciones de uso', 'Condiciones de uso', 'condiciones, el consumo, las ventas generales', '

    Sus condiciones de venta

    \r\n

    Regla N º 1

    \r\n

    Contenido de la Regla Número 1

    \r\n

    Regla N º 2

    \r\n

    Contenido de la Regla N º 2

    \r\n

    Regla N º 3

    \r\n

    Contenido de la Regla Número 3

    ', 'condiciones-de-uso'), -(4, 3, 'Sobre', 'Conozca más sobre nosotros', 'sobre, información', '

    Sobre

    ', 'sobre'), -(5, 3, 'Pago seguro', 'Ofrecemos pago seguro', 'pago seguro, ssl, visa, mastercard, paypal', '

    Pago seguro

    \r\n

    Ofrecemos pago seguro

    \r\n

    SSL

    \r\n

    Utilice Visa / Mastercard / Paypal

    \r\n

    Acerca de estos servicios

    ', 'pago-seguro'), -(1, 4, 'Lieferung', 'Unsere Lieferbedingungen', 'Bedingungen, Lieferung, Frist, Versand, Verpackung', '

    Versand und Rücknahme

    Ihre Versandverpackung

    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.

    ', 'Lieferung'), -(2, 4, 'Rechtliche Hinweise', 'Rechtliche Hinweise', 'Hinweise, rechtlich, Gutscheine', '

    Legal

    Credits

    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', '

    Your terms and conditions of use

    Rule 1

    Here is the rule 1 content

    \r\n

    Rule 2

    Here is the rule 2 content

    \r\n

    Rule 3

    Here is the rule 3 content

    ', 'allgemeine-nutzungsbedingungen'), -(4, 4, 'Über uns', 'Learn more about us', 'über uns, Informationen', '

    About us

    \r\n

    Our company

    Our company

    \r\n

    Our team

    Our team

    \r\n

    Informations

    Informations

    ', 'uber-uns'), -(5, 4, 'Sichere Zahlung', 'Unsere Sicherheits-Zahlungsmethoden', 'Sichere Zahlung, SSL, Visa, MasterCard, PayPal', '

    Secure payment

    \r\n

    Our secure payment

    With SSL

    \r\n

    Using Visa/Mastercard/Paypal

    About this services

    ', 'sichere-zahlung'), -(1, 5, 'Consegna', 'I nostri termini e condizioni di consegna', 'condizioni, consegna, tempo, spedizione, pacco', '

    Spedizioni e resi

    Spedizione del tuo 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.

    ', 'consegna'), -(2, 5, 'Nota Legale', 'Nota legale', 'nota, legale, crediti', '

    Legale

    Crediti

    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', '

    I tuoi termini e condizioni d''uso

    Regola 1

    Ecco il contenuto della regola 1

    \r\n

    Regola 2

    Ecco il contenuto della regola 2

    \r\n

    Regola 3

    Ecco il contenuto della regola 3

    ', 'termini-e-condizioni-di-uso'), -(4, 5, 'Chi siamo', 'Per sapere chi siamo', 'chi siamo, informazioni', '

    Chi siamo

    \r\n

    La nostra azienda

    La nostra azienda

    \r\n

    Il nostro team

    Il nostro team

    \r\n

    Informazioni

    Informazioni

    ', 'chi-siamo'), -(5, 5, 'Pagamento sicuro', 'Il nostro mezzo di pagamento sicuro', 'pagamento sicuro, ssl, visa, mastercard, paypal', '

    Pagamento sicuro

    \r\n

    Il nostro pagamento sicuro

    Con SSL

    \r\n

    Usando Visa/Mastercard/Paypal

    Cosa 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', '

    Shipments and returns

    Your pack shipment

    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.

    ', 'delivery'); -INSERT INTO `PREFIX_cms_lang` (`id_cms`, `id_lang`, `meta_title`, `meta_description`, `meta_keywords`, `content`, `link_rewrite`) VALUES -(1, 2, 'Livraison', 'Nos conditions générales de livraison', 'conditions, livraison, délais, transport, colis', '

    Livraisons et retours

    Le transport de votre colis

    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.

    ', 'livraison'); -INSERT INTO `PREFIX_cms_lang` (`id_cms`, `id_lang`, `meta_title`, `meta_description`, `meta_keywords`, `content`, `link_rewrite`) VALUES -(2, 1, 'Legal Notice', 'Legal notice', 'notice, legal, credits', '

    Legal

    Credits

    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', '

    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', '

    Your terms and conditions of use

    Rule 1

    Here is the rule 1 content

    \r\n

    Rule 2

    Here is the rule 2 content

    \r\n

    Rule 3

    Here 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', '

    Vos conditions de ventes

    Règle n°1

    Contenu de la règle numéro 1

    \r\n

    Règle n°2

    Contenu de la règle numéro 2

    \r\n

    Règle n°3

    Contenu 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', '

    About us

    \r\n

    Our company

    Our company

    \r\n

    Our team

    Our team

    \r\n

    Informations

    Informations

    ', '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', '

    A propos

    \r\n

    Notre entreprise

    Notre entreprise

    \r\n

    Notre équipe

    Notre équipe

    \r\n

    Informations

    Informations

    ', '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', '

    Secure payment

    \r\n

    Our secure payment

    With SSL

    \r\n

    Using Visa/Mastercard/Paypal

    About 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', '

    Paiement sécurisé

    \r\n

    Notre offre de paiement sécurisé

    Avec SSL

    \r\n

    Utilisation de Visa/Mastercard/Paypal

    A 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 ''."\n"; - echo ''."\n"; - echo ''."\n"; - foreach ($res AS $key => $line) - { - if ($line == 'fail') $has_error = true; - echo ''."\n"; - } - echo ''."\n"; - echo ''."\n"; - foreach ($res_op AS $key => $line) - { - if ($line == 'fail') $has_error = true; - echo ''."\n"; - } - echo ''."\n"; -echo ''; - - diff --git a/install-dev/xml/checkDB.php b/install-dev/xml/checkDB.php deleted file mode 100644 index 8cbb924a4..000000000 --- a/install-dev/xml/checkDB.php +++ /dev/null @@ -1,29 +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 -*/ -include_once(INSTALL_PATH.'/classes/ToolsInstall.php'); -$resultDB = ToolsInstall::checkDB($_GET['server'], $_GET['login'], $_GET['password'], $_GET['name'], true, $_GET['engine']); -die("\n"); diff --git a/install-dev/xml/checkMail.php b/install-dev/xml/checkMail.php deleted file mode 100644 index bcd6eded5..000000000 --- a/install-dev/xml/checkMail.php +++ /dev/null @@ -1,44 +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 -*/ - -include_once(INSTALL_PATH.'/classes/ToolsInstall.php'); - -$smtpChecked = (trim($_GET['mailMethod']) == 'smtp'); -$smtpServer = $_GET['smtpSrv']; -$content = $_GET['testMsg']; -$subject = $_GET['testSubject']; -$type = 'text/html'; -$to = $_GET['testEmail']; -$from = 'no-reply@'.ToolsInstall::getHttpHost(false, true, true); -$smtpLogin = $_GET['smtpLogin']; -$smtpPassword = $_GET['smtpPassword']; -$smtpPort = $_GET['smtpPort']; -$smtpEncryption = $_GET['smtpEnc']; - -$result = ToolsInstall::sendMail($smtpChecked, $smtpServer, $content, $subject, $type, $to, $from, $smtpLogin, $smtpPassword, $smtpPort, $smtpEncryption); -die($result ? '' : ''); - diff --git a/install-dev/xml/checkShopInfos.php b/install-dev/xml/checkShopInfos.php deleted file mode 100644 index 8746fc368..000000000 --- a/install-dev/xml/checkShopInfos.php +++ /dev/null @@ -1,294 +0,0 @@ - -* @copyright 2007-2011 PrestaShop SA -* @version Release: $Revision: 7317 $ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -if (function_exists('date_default_timezone_set')) - date_default_timezone_set('Europe/Paris'); - -define('_PS_MAGIC_QUOTES_GPC_', get_magic_quotes_gpc()); - -require_once(INSTALL_PATH.'/classes/AddConfToFile.php'); -require_once(INSTALL_PATH.'/../classes/Validate.php'); -require_once(INSTALL_PATH.'/../classes/db/Db.php'); -require_once(INSTALL_PATH.'/../classes/Tools.php'); -require_once(INSTALL_PATH.'/../config/settings.inc.php'); - -Context::getContext()->shop = Shop::initialize(); -define('_THEME_NAME_', Context::getContext()->shop->getTheme()); -define('__PS_BASE_URI__', Context::getContext()->shop->getBaseURI()); - -function isFormValid() -{ - global $error; - - foreach ($error as $anError) - if ($anError != '') - return false; - return true; -} - -$error = array(); -foreach ($_GET AS &$var) -{ - if (is_string($var)) - $var = html_entity_decode($var, ENT_COMPAT, 'UTF-8'); - elseif (is_array($var)) - foreach ($var AS &$row) - $row = html_entity_decode($row, ENT_COMPAT, 'UTF-8'); -} - -if(!isset($_GET['infosShop']) OR empty($_GET['infosShop'])) - $error['infosShop'] = '0'; -else - $error['infosShop'] = ''; - -if(!isset($_GET['infosFirstname']) OR empty($_GET['infosFirstname'])) - $error['infosFirstname'] = '0'; -else - $error['infosFirstname'] = ''; - -if(!isset($_GET['infosName']) OR empty($_GET['infosName'])) - $error['infosName'] = '0'; -else - $error['infosName'] = ''; - -if(isset($_GET['infosEmail']) AND !Validate::isEmail($_GET['infosEmail'])) - $error['infosEmail'] = '3'; -else - $error['infosEmail'] = ''; - -if (isset($_GET['infosShop']) AND !Validate::isGenericName($_GET['infosShop'])) - $error['validateShop'] = '46'; -else - $error['validateShop'] = ''; - -if (!isset($_GET['infosCountry']) OR empty($_GET['infosCountry'])) - $error['infosCountry'] = '0'; -else - $error['infosCountry'] = ''; - -if (!isset($_GET['infosTimezone']) OR empty($_GET['infosTimezone'])) - $error['infosTimezone'] = '0'; -else - $error['infosTimezone'] = ''; - -if (isset($_GET['infosFirstname']) AND !Validate::isName($_GET['infosFirstname'])) - $error['validateFirstname'] = '47'; -else - $error['validateFirstname'] = ''; - -if (isset($_GET['infosName']) AND !Validate::isName($_GET['infosName'])) - $error['validateName'] = '48'; -else - $error['validateName'] = ''; - -if (isset($_GET['catalogMode']) AND !Validate::isInt($_GET['catalogMode'])) - $error['validateCatalogMode'] = '52'; -else - $error['validateCatalogMode'] = ''; - -if(!isset($_GET['infosEmail']) OR empty($_GET['infosEmail'])) - $error['infosEmail'] = '0'; - -if (!isset($_GET['infosPassword']) OR empty($_GET['infosPassword'])) - $error['infosPassword'] = '0'; -else - $error['infosPassword'] = ''; - -if (!isset($_GET['infosPasswordRepeat']) OR empty($_GET['infosPasswordRepeat'])) - $error['infosPasswordRepeat'] = '0'; -else - $error['infosPasswordRepeat'] = ''; - -if($error['infosPassword'] == '' AND $_GET['infosPassword'] != $_GET['infosPasswordRepeat']) - $error['infosPassword'] = '2'; - -if($error['infosPassword'] == '' AND (Tools::strlen($_GET['infosPassword']) < 8 OR !Validate::isPasswdAdmin($_GET['infosPassword']))) - $error['infosPassword'] = '12'; - -///////////////////////////// -// IF ALL IS OK DO THE NEXT// -///////////////////////////// - -include_once(INSTALL_PATH.'/classes/ToolsInstall.php'); -$dbInstance = Db::getInstance(); -// set Languages -$error['infosLanguages'] = ''; -if(isFormValid()) -{ - /*$idDefault = array_search($_GET['infosDL'][0], $_GET['infosWL']) + 1; - //prepare the requests - $sqlLanguages = array(); - - $sqlLanguages[] = "UPDATE `"._DB_PREFIX_."configuration` SET `value` = '".$idDefault."' WHERE `"._DB_PREFIX_."configuration`.`id_configuration` =1"; - $sqlLanguages[] = "TRUNCATE TABLE `"._DB_PREFIX_."lang`"; - - foreach ($_GET['infosWL'] AS $wl) - $sqlLanguages[] = "INSERT INTO `"._DB_PREFIX_."lang` (`id_lang` ,`name` ,`active` ,`iso_code`)VALUES (NULL , '".ToolsInstall::getLangString($wl)."', '1', '".pSQL($wl)."')"; - foreach($sqlLanguages AS $query) - if(!Db::getInstance()->execute($query)) - $error['infosLanguages'] = '11'; - - // Flags copy - if(!$languagesId = Db::getInstance()->executeS('SELECT `id_lang`, `iso_code` FROM `'._DB_PREFIX_.'lang`')) - $error['infosLanguages'] = '11'; - - unset($dbInstance);*/ -} - -// Mail Notification -$error['infosNotification'] = ''; -if (isFormValid()) -{ - if (isset($_GET['infosNotification']) AND $_GET['infosNotification'] == 'on') { - include_once(INSTALL_PATH.'/classes/ToolsInstall.php'); - $smtpChecked = (trim($_GET['infosMailMethod']) == 'smtp'); - $smtpServer = $_GET['smtpSrv']; - $subject = $_GET['infosShop']." - " . $_GET['mailSubject']; - $type = 'text/html'; - $to = $_GET['infosEmail']; - $from = "no-reply@".ToolsInstall::getHttpHost(false, true, true); - $smtpLogin = $_GET['smtpLogin']; - $smtpPassword = $_GET['smtpPassword']; - $smtpPort = $_GET['smtpPort'];//'default','secure' - $smtpEncryption = $_GET['smtpEnc'];//"tls","ssl","off" - $content = ToolsInstall::getNotificationMail($_GET['infosShop'], INSTALLER__PS_BASE_URI_ABSOLUTE, INSTALLER__PS_BASE_URI_ABSOLUTE."img/logo.jpg", ToolsInstall::strtoupper($_GET['infosFirstname']), $_GET['infosName'], $_GET['infosPassword'], $_GET['infosEmail']); - - $result = @ToolsInstall::sendMail($smtpChecked, $smtpServer, $content, $subject, $type, $to, $from, $smtpLogin, $smtpPassword, $smtpPort, $smtpEncryption); - } -} - -//Insert configuration parameters into the database -$error['infosInsertSQL'] = ''; -if (isFormValid()) -{ - $sqlParams = array(); - $sqlParams[] = "INSERT IGNORE INTO "._DB_PREFIX_."configuration (name, value, date_add, date_upd) VALUES ('PS_SHOP_DOMAIN', '".Tools::getHttpHost()."', NOW(), NOW())"; - $sqlParams[] = "INSERT IGNORE INTO "._DB_PREFIX_."configuration (name, value, date_add, date_upd) VALUES ('PS_SHOP_DOMAIN_SSL', '".Tools::getHttpHost()."', NOW(), NOW())"; - $sqlParams[] = "INSERT IGNORE INTO "._DB_PREFIX_."configuration (name, value, date_add, date_upd) VALUES ('PS_INSTALL_VERSION', '".pSQL(INSTALL_VERSION)."', NOW(), NOW())"; - $sqlParams[] = "INSERT IGNORE INTO "._DB_PREFIX_."configuration (name, value, date_add, date_upd) VALUES ('PS_SHOP_NAME', '".pSQL($_GET['infosShop'])."', NOW(), NOW())"; - $sqlParams[] = "INSERT IGNORE INTO "._DB_PREFIX_."configuration (name, value, date_add, date_upd) VALUES ('PS_SHOP_EMAIL', '".pSQL($_GET['infosEmail'])."', NOW(), NOW())"; - $sqlParams[] = "INSERT IGNORE INTO "._DB_PREFIX_."configuration (name, value, date_add, date_upd) VALUES ('PS_MAIL_METHOD', '".pSQL($_GET['infosMailMethod'] == "smtp" ? "2": "1")."', NOW(), NOW())"; - $sqlParams[] = 'UPDATE '._DB_PREFIX_.'configuration SET value = \''.pSQL($_GET['isoCode']).'\' WHERE name = \'PS_LOCALE_LANGUAGE\''; - $sqlParams[] = 'UPDATE '._DB_PREFIX_.'configuration SET value = \''.(int)$_GET['catalogMode'].'\' WHERE name = \'PS_CATALOG_MODE\''; - $sqlParams[] = "INSERT IGNORE INTO "._DB_PREFIX_."configuration (name, value, date_add, date_upd) VALUES ('PS_SHOP_ACTIVITY', '".(int)($_GET['infosActivity'])."', NOW(), NOW())"; - if ((int)($_GET['infosCountry']) != 0) - { - $sqlParams[] = 'UPDATE '._DB_PREFIX_.'configuration SET value = '.(int)($_GET['infosCountry']).' WHERE name = \'PS_COUNTRY_DEFAULT\''; - $sqlParams[] = 'UPDATE '._DB_PREFIX_.'configuration SET value = "'.pSQL($_GET['infosTimezone']).'" WHERE name = \'PS_TIMEZONE\''; - $sql_isocode = Db::getInstance()->getValue('SELECT `iso_code` FROM `'._DB_PREFIX_.'country` WHERE `id_country` = '.(int)($_GET['infosCountry'])); - $sqlParams[] = 'UPDATE '._DB_PREFIX_.'configuration SET value = \''.pSQL($sql_isocode).'\' WHERE name = \'PS_LOCALE_COUNTRY\''; - - } - Language::loadLanguages(); - Configuration::loadConfiguration(); - require_once(DEFINES_FILE); - require_once(INSTALL_PATH.'/../classes/LocalizationPack.php'); - - - $stream_context = @stream_context_create(array('http' => array('timeout' => 5))); - $localization_file = @Tools::file_get_contents('http://api.prestashop.com/download/localization_pack.php?country='.$_GET['countryName'], false, $stream_context); - if (!$localization_file AND file_exists(dirname(__FILE__).'/../../localization/'.strtolower($_GET['countryName']).'.xml')) - $localization_file = @file_get_contents(dirname(__FILE__).'/../../localization/'.strtolower($_GET['countryName']).'.xml'); - if ($localization_file) - { - $localizationPack = new LocalizationPackCore(); - $localizationPack->loadLocalisationPack($localization_file, '', true); - - if (Configuration::get('PS_LANG_DEFAULT') == 1) - { - $sqlParams[] = 'UPDATE `'._DB_PREFIX_.'configuration` SET `value` = (SELECT id_lang FROM '._DB_PREFIX_.'lang WHERE iso_code = \''.pSQL($_GET['isoCode']).'\') WHERE name = \'PS_LANG_DEFAULT\''; - // This request is used when _PS_MODE_DEV_ is set to true - $sqlParams[] = 'UPDATE `'._DB_PREFIX_.'lang` SET `active` = 0 WHERE `iso_code` != \''.pSQL($_GET['isoCode']).'\''; - } - else - $sqlParams[] = 'UPDATE `'._DB_PREFIX_.'lang` SET `active` = 0 WHERE `id_lang` != '.Configuration::get('PS_LANG_DEFAULT'); - } - if (isset($_GET['infosMailMethod']) AND $_GET['infosMailMethod'] == "smtp") - { - $sqlParams[] = "INSERT INTO "._DB_PREFIX_."configuration (name, value, date_add, date_upd) VALUES ('PS_MAIL_SERVER', '".pSQL($_GET['smtpSrv'])."', NOW(), NOW())"; - $sqlParams[] = "INSERT INTO "._DB_PREFIX_."configuration (name, value, date_add, date_upd) VALUES ('PS_MAIL_USER', '".pSQL($_GET['smtpLogin'])."', NOW(), NOW())"; - $sqlParams[] = "INSERT INTO "._DB_PREFIX_."configuration (name, value, date_add, date_upd) VALUES ('PS_MAIL_PASSWD', '".pSQL($_GET['smtpPassword'])."', NOW(), NOW())"; - $sqlParams[] = "INSERT INTO "._DB_PREFIX_."configuration (name, value, date_add, date_upd) VALUES ('PS_MAIL_SMTP_ENCRYPTION', '".pSQL($_GET['smtpEnc'])."', NOW(), NOW())"; - $sqlParams[] = "INSERT INTO "._DB_PREFIX_."configuration (name, value, date_add, date_upd) VALUES ('PS_MAIL_SMTP_PORT', '".pSQL($_GET['smtpPort'])."', NOW(), NOW())"; - } - $sqlParams[] = 'INSERT INTO '._DB_PREFIX_.'employee (id_employee, lastname, firstname, email, passwd, last_passwd_gen, bo_theme, active, id_profile, id_lang, bo_show_screencast) VALUES (NULL, \''.pSQL(ToolsInstall::ucfirst($_GET['infosName'])).'\', \''.pSQL(ToolsInstall::ucfirst($_GET['infosFirstname'])).'\', \''.pSQL($_GET['infosEmail']).'\', \''.md5(pSQL(_COOKIE_KEY_.$_GET['infosPassword'])).'\', \''.date('Y-m-d h:i:s', strtotime('-360 minutes')).'\', \'default\', 1, 1, (SELECT `value` FROM `'._DB_PREFIX_.'configuration` WHERE `name` = \'PS_LANG_DEFAULT\' LIMIT 1), 1)'; - $sqlParams[] = 'INSERT INTO '._DB_PREFIX_.'employee_shop (id_employee, id_shop) VALUES (1 ,1)'; - $sqlParams[] = 'INSERT INTO '._DB_PREFIX_.'contact (id_contact, email, customer_service) VALUES (NULL, \''.pSQL($_GET['infosEmail']).'\', 1), (NULL, \''.pSQL($_GET['infosEmail']).'\', 1)'; - - if (function_exists('mcrypt_encrypt')) - { - $settings = file_get_contents(dirname(__FILE__).'/../../config/settings.inc.php'); - if (!strstr($settings, '_RIJNDAEL_KEY_')) - { - $key_size = mcrypt_get_key_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_ECB); - $key = Tools::passwdGen($key_size); - $settings = preg_replace('/define\(\'_COOKIE_KEY_\', \'([a-z0-9=\/+-_]+)\'\);/i', 'define(\'_COOKIE_KEY_\', \'\1\');'."\n".'define(\'_RIJNDAEL_KEY_\', \''.$key.'\');', $settings); - } - if (!strstr($settings, '_RIJNDAEL_IV_')) - { - $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_ECB); - $iv = base64_encode(mcrypt_create_iv($iv_size, MCRYPT_RAND)); - $settings = preg_replace('/define\(\'_COOKIE_IV_\', \'([a-z0-9=\/+-_]+)\'\);/i', 'define(\'_COOKIE_IV_\', \'\1\');'."\n".'define(\'_RIJNDAEL_IV_\', \''.$iv.'\');', $settings); - } - if (file_put_contents(dirname(__FILE__).'/../../config/settings.inc.php', $settings)) - $sqlParams[] = 'UPDATE '._DB_PREFIX_.'configuration SET value = 1 WHERE name = \'PS_CIPHER_ALGORITHM\''; - } - - if (file_exists(realpath(INSTALL_PATH.'/../img').'/logo.jpg')) - { - list($width, $height, $type, $attr) = getimagesize(realpath(INSTALL_PATH.'/../img').'/logo.jpg'); - $sqlParams[] = 'UPDATE '._DB_PREFIX_.'configuration SET value = '.(int)round($width).' WHERE name = \'SHOP_LOGO_WIDTH\''; - $sqlParams[] = 'UPDATE '._DB_PREFIX_.'configuration SET value = '.(int)round($height).' WHERE name = \'SHOP_LOGO_HEIGHT\''; - } - - if ((int)$_GET['catalogMode'] == 1) - { - $sqlParams[] = 'DELETE c, cl FROM `'._DB_PREFIX_.'cms` AS c LEFT JOIN `'._DB_PREFIX_.'cms_lang` AS cl ON c.id_cms = cl.id_cms WHERE 1 AND c.`id_cms` IN (1, 5)'; - } - - $dbInstance = Db::getInstance(); - foreach($sqlParams as $query) - if(!$dbInstance->Execute($query)) - $error['infosInsertSQL'] = '11'; - unset($dbInstance); -} - -////////////////////////// -// Building XML Response// -////////////////////////// - -global $logger; -echo ''."\n"; -foreach ($error AS $key => $line) -{ - if ($line != '') - $logger->logError($key.' => '.$line); - - echo ''."\n"; -} -echo ''; - diff --git a/install-dev/xml/createDB.php b/install-dev/xml/createDB.php deleted file mode 100644 index b45e529d6..000000000 --- a/install-dev/xml/createDB.php +++ /dev/null @@ -1,235 +0,0 @@ - -* @copyright 2007-2011 PrestaShop SA -* @version Release: $Revision: 7466 $ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -if (!defined('_PS_MAGIC_QUOTES_GPC_')) - define('_PS_MAGIC_QUOTES_GPC_', get_magic_quotes_gpc()); - -if (function_exists('date_default_timezone_set')) - date_default_timezone_set('Europe/Paris'); - -//delete settings file if it exist -if (file_exists(SETTINGS_FILE)) - if (!unlink(SETTINGS_FILE)) - die(''."\n"); - -require_once(INSTALL_PATH.'/classes/AddConfToFile.php'); -require_once(INSTALL_PATH.'/../classes/Validate.php'); -require_once(INSTALL_PATH.'/../classes/db/Db.php'); -require_once(INSTALL_PATH.'/../classes/Tools.php'); - -global $logger; - -//check db access -include_once(INSTALL_PATH.'/classes/ToolsInstall.php'); -$resultDB = ToolsInstall::checkDB($_GET['server'], $_GET['login'], $_GET['password'], $_GET['name'], true); -if ($resultDB !== true) -{ - $logger->logError('Invalid database configuration'); - die("\n"); -} - -if (!isset($_GET['mode']) OR ($_GET['mode'] != "full" AND $_GET['mode'] != "lite")) - die(''."\n"); - -// Writing data in settings file -$oldLevel = error_reporting(E_ALL); -$_PS_DIRECTORY_ = trim(str_replace(' ', '%20', INSTALLER__PS_BASE_URI), '/'); -$_PS_DIRECTORY_ = ($_PS_DIRECTORY_) ? '/'.$_PS_DIRECTORY_.'/' : '/'; -$datas = array( - array('_DB_SERVER_', trim($_GET['server'])), - array('_DB_NAME_', trim($_GET['name'])), - array('_DB_USER_', trim($_GET['login'])), - array('_DB_PASSWD_', trim($_GET['password'])), - array('_DB_PREFIX_', trim($_GET['tablePrefix'])), - array('_MYSQL_ENGINE_', trim($_GET['engine'])), - array('_PS_CACHING_SYSTEM_', 'CacheMemcache'), - array('_PS_CACHE_ENABLED_', '0'), - array('_MEDIA_SERVER_1_', ''), - array('_MEDIA_SERVER_2_', ''), - array('_MEDIA_SERVER_3_', ''), - array('_COOKIE_KEY_', Tools::passwdGen(56)), - array('_COOKIE_IV_', Tools::passwdGen(8)), - array('_PS_CREATION_DATE_', date('Y-m-d')), - array('_PS_VERSION_', INSTALL_VERSION) -); -error_reporting($oldLevel); -$confFile = new AddConfToFile(SETTINGS_FILE, 'w'); -if ($confFile->error) - die(''."\n"); - -foreach ($datas AS $data){ - $confFile->writeInFile($data[0], $data[1]); -} -$confFile->writeEndTagPhp(); - -// Settings updated, compile and cache directories must be emptied -foreach (array(INSTALL_PATH.'/../tools/smarty/cache/', INSTALL_PATH.'/../tools/smarty/compile/', INSTALL_PATH.'/../tools/smarty_v2/cache/', INSTALL_PATH.'/../tools/smarty_v2/compile/') as $dir) - if (file_exists($dir)) - foreach (scandir($dir) as $file) - if ($file[0] != '.' AND $file != 'index.php') - unlink($dir.$file); - -if ($confFile->error != false) - die(''."\n"); - -//load new settings, and fatal error if you can't -require_once(SETTINGS_FILE); - -//----------- -//import SQL data -//----------- -$filePrefix = 'PREFIX_'; -$engineType = 'ENGINE_TYPE'; -//send the SQL structure file requests -$structureFile = dirname(__FILE__).'/../sql/db.sql'; -if(!file_exists($structureFile)) -{ - $logger->logError('Impossible to access to a MySQL content file. ('.$structureFile.')'); - die(''."\n"); -} -$db_structure_settings = ''; -if ( !$db_structure_settings .= file_get_contents($structureFile) ) -{ - $logger->logError('Impossible to read the content of a MySQL content file. ('.$structureFile.')'); - die(''."\n"); -} -$db_structure_settings = str_replace(array($filePrefix, $engineType), array($_GET['tablePrefix'], $_GET['engine']), $db_structure_settings); -$db_structure_settings = preg_split("/;\s*[\r\n]+/",$db_structure_settings); -if (isset($_GET['dropAndCreate']) && $_GET['dropAndCreate'] == 'true') -{ - array_unshift($db_structure_settings, 'USE `'.trim($_GET['name']).'`;'); - array_unshift($db_structure_settings, 'CREATE DATABASE `'.trim($_GET['name']).'`;'); - array_unshift($db_structure_settings, 'DROP DATABASE `'.trim($_GET['name']).'`;'); -} -foreach ($db_structure_settings as $query) -{ - $query = trim($query); - if (!empty($query)) - { - if (!Db::getInstance()->Execute($query)) - { - if (Db::getInstance()->getNumberError() == 1050) - { - $logger->logError('A Prestashop database already exists, please drop it or change the prefix.'); - die(''."\n"); - } - else - { - $logger->logError('SQL query: '."\r\n".$query); - $logger->logError('SQL error: '."\r\n".Db::getInstance()->getMsgError()); - die( - '' - ); - } - } - } -} - -//send the SQL data file requests -$db_data_settings = ''; - -$liteFile = dirname(__FILE__).'/../sql/db_settings_lite.sql'; -if(!file_exists($liteFile)) - die(''."\n"); -if ( !$db_data_settings .= file_get_contents( $liteFile ) ) - die(''."\n"); - -if ($_GET['mode'] == 'full') -{ - $fullFile = dirname(__FILE__).'/../sql/db_settings_extends.sql'; - if(!file_exists($fullFile)) - { - $logger->logError('Impossible to access to a MySQL content file. ('.$fullFile.')'); - die(''."\n"); - } - if (!$db_data_settings .= file_get_contents($fullFile)) - { - $logger->logError('Impossible to read the content of a MySQL content file. ('.$fullFile.')'); - die(''."\n"); - } -} -$db_data_settings .= "\n".'INSERT INTO `PREFIX_shop_url` (`id_shop`, `domain`, `domain_ssl`, `physical_uri`, `virtual_uri`, `main`, `active`) VALUES(1, \''.pSQL(Tools::getHttpHost()).'\', \''.pSQL(Tools::getHttpHost()).'\', \''.pSQL($_PS_DIRECTORY_).'\', \'\', 1, 1);'; -$db_data_settings .= "\n".'UPDATE `PREFIX_customer` SET `passwd` = \''.md5(_COOKIE_KEY_.'123456789').'\' WHERE `id_customer` =1;'; -$db_data_settings .= "\n".'INSERT INTO `PREFIX_configuration` (name, value, date_add, date_upd) VALUES (\'PS_VERSION_DB\', \'' . INSTALL_VERSION . '\', NOW(), NOW());'; -$db_data_settings = str_replace(array($filePrefix, $engineType), array($_GET['tablePrefix'], $_GET['engine']), $db_data_settings); -$db_data_settings = preg_split("/;\s*[\r\n]+/",$db_data_settings); -/* UTF-8 support */ -array_unshift($db_data_settings, 'SET NAMES \'utf8\';'); -foreach ($db_data_settings as $query) -{ - $query = trim($query); - if (!empty($query)) - { - if (!Db::getInstance()->Execute($query)) - { - if (Db::getInstance()->getNumberError() == 1050) - die(''."\n"); - else - { - $logger->logError('SQL query: '."\r\n".$query); - $logger->logError('SQL error: '."\r\n".Db::getInstance()->getMsgError()); - die( - '' - ); - } - } - } -} - -$xml = ''."\n"; - -$countries = Db::getInstance()->executeS(' -SELECT c.`id_country`, cl.`name`, c.`iso_code` FROM `'.$_GET['tablePrefix'].'country` c -INNER JOIN `'.$_GET['tablePrefix'].'country_lang` cl ON (c.`id_country` = cl.`id_country`) -WHERE cl.`id_lang` = '.(int)($_GET['language'] + 1).' -ORDER BY cl.`name`'); - -$timezones = Db::getInstance()->executeS(' -SELECT * FROM `'.$_GET['tablePrefix'].'timezone` -ORDER BY `name`'); - -$xml .= ''."\n"; -foreach ($countries as $country) - $xml .= "\t".''."\n"; -$xml .= ''."\n".''."\n"; -foreach ($timezones as $timezone) - $xml .= "\t".''."\n"; -$xml .= ''."\n"; - -die($xml); \ No newline at end of file diff --git a/install-dev/xml/getNonNativeModules.php b/install-dev/xml/getNonNativeModules.php deleted file mode 100644 index 75fdc2a15..000000000 --- a/install-dev/xml/getNonNativeModules.php +++ /dev/null @@ -1,36 +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 -*/ - -include_once(dirname(__FILE__).'/../../config/config.inc.php'); -include_once(dirname(__FILE__).'/../../config/defines.inc.php'); - -$module_list = Module::getNonNativeModuleList(); -if (sizeof($module_list)) - die(Tools::jsonEncode($module_list)); -die(Tools::jsonEncode(array())); - diff --git a/install-dev/xml/getVersionFromDb.php b/install-dev/xml/getVersionFromDb.php deleted file mode 100644 index dce0273f1..000000000 --- a/install-dev/xml/getVersionFromDb.php +++ /dev/null @@ -1,85 +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 -*/ - -require_once(SETTINGS_FILE); -require_once(INSTALL_PATH.'/classes/GetVersionFromDb.php'); - -require_once(INSTALL_PATH.'/classes/LanguagesManager.php'); -$lm = new LanguageManager(INSTALL_PATH.'/langs/list.xml'); -$_LANG = array(); -$_LIST_WORDS = array(); -function lang($txt) { - global $_LANG , $_LIST_WORDS; - return (isset($_LANG[$txt]) ? $_LANG[$txt] : $txt); -} -if ($lm->getIncludeTradFilename()) - include_once($lm->getIncludeTradFilename()); - -$dbVersion = new GetVersionFromDb(); -$versions = $dbVersion->getVersions(); -$psVersionDb = Configuration::get('PS_VERSION_DB'); - -// Usefull debug -/* echo ''; -print_r($versions); -print_r($dbVersion->getErrors()); -exit;*/ - -if (!$versions) -{ - // Desactivate this case temporary - die('<action result="ok" />'); - - $message = lang('Warning, the installer was unable to detect what is your current PrestaShop version from a database structure analysis. This means some fields or tables are missing, and upgrade is under your own risk.'); - if ($psVersionDb) - { - $message .= '<br /><br />' . sprintf(lang('However the installer has detected that the version stored in your configuration table is %1$s'), '<span class="versionInfo">' . $psVersionDb . '</span>'); - } - die('<action result="ko" lang="' . htmlspecialchars($message) . '" />'); -} - -foreach ($versions as $version) -{ - if (version_compare(_PS_VERSION_, $version) == 0) - { - die('<action result="ok" />'); - } -} - -if (count($versions) == 1) -{ - die('<action result="ko" lang="' . htmlspecialchars(sprintf(lang('Warning, we detected that the version specified in your config/settings.inc.php does not match your SQL database structure.<br />File config/settings.inc.php indicates: %1$s<br />Our automatic detection tool has detected version: %2$s<br /><br />You should edit your config/settings.inc.php file to replace %1$s by %2$s.<br />Failure to fix this issue before upgrading may result in severe complications.<br />Do not forget to relaunch the installer after this modification by pressing F5 on your web browser.'), '<span class="versionInfo">' . _PS_VERSION_ . '</span>', '<span class="versionInfo">' . $versions[0] . '</span>')) . '" />'); -} - -if ($psVersionDb && in_array($psVersionDb, $versions)) -{ - die('<action result="ko" lang="' . htmlspecialchars(sprintf(lang('Warning, we detected that the version specified in your config/settings.inc.php does not match your SQL database structure.<br />File config/settings.inc.php indicates: %1$s<br />Our automatic detection tool has detected version: %2$s<br /><br />You should edit your config/settings.inc.php file to replace %1$s by %2$s.<br />Failure to fix this issue before upgrading may result in severe complications.<br />Do not forget to relaunch the installer after this modification by pressing F5 on your web browser.'), '<span class="versionInfo">' . _PS_VERSION_ . '</span>', '<span class="versionInfo">' . $psVersionDb . '</span>')) . '" />'); -} -else -{ - die('<action result="ko" lang="' . htmlspecialchars(sprintf(lang('Warning, we detected that the version specified in your config/settings.inc.php does not match your SQL database structure.<br />File config/settings.inc.php indicates: %1$s<br />Our automatic detection tool has detected a version between %2$s and %3$s<br /><br />You should edit your config/settings.inc.php file to replace %1$s by your real shop version.<br />Failure to fix this issue before upgrading may result in severe complications.<br />Do not forget to relaunch the installer after this modification by pressing F5 on your web browser.'), '<span class="versionInfo">' . _PS_VERSION_ . '</span>', '<span class="versionInfo">' . $versions[count($versions) - 1] . '</span>', '<span class="versionInfo">' . $versions[0] . '</span>')) . '" />'); -} diff --git a/install-dev/xml/index.php b/install-dev/xml/index.php deleted file mode 100644 index 4e2611d37..000000000 --- a/install-dev/xml/index.php +++ /dev/null @@ -1,36 +0,0 @@ -<?php -/* -* 2007-2011 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Open Software License (OSL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/osl-3.0.php -* If you did not receive a copy of the license and are unable to -* obtain it through the world-wide-web, please send an email -* to license@prestashop.com so we can send you a copy immediately. -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade PrestaShop to newer -* versions in the future. If you wish to customize PrestaShop for your -* needs please refer to http://www.prestashop.com for more information. -* -* @author PrestaShop SA <contact@prestashop.com> -* @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/xml/uploadLogo.php b/install-dev/xml/uploadLogo.php deleted file mode 100644 index f20542599..000000000 --- a/install-dev/xml/uploadLogo.php +++ /dev/null @@ -1,116 +0,0 @@ -<?php -/* -* 2007-2011 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Open Software License (OSL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/osl-3.0.php -* If you did not receive a copy of the license and are unable to -* obtain it through the world-wide-web, please send an email -* to license@prestashop.com so we can send you a copy immediately. -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade PrestaShop to newer -* versions in the future. If you wish to customize PrestaShop for your -* needs please refer to http://www.prestashop.com for more information. -* -* @author PrestaShop SA <contact@prestashop.com> -* @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 -*/ -define('INSTALL_PATH', dirname(__FILE__)); - - $error = ""; - $msg = ""; - $fileElementName = 'fileToUpload'; - - if(!empty($_FILES[$fileElementName]['error'])) - { - switch($_FILES[$fileElementName]['error']) - { - - case '1': - $error = '38'; - break; - case '2': - $error = '39'; - break; - case '3': - $error = '40'; - break; - case '4': - $error = '41'; - break; - - case '6': - $error = '42'; - break; - case '7': - $error = '43'; - break; - case '8': - $error = '44'; - break; - case '999': - default: - $error = '999'; - } - } - else - { - if(empty($_FILES[$fileElementName]['tmp_name']) OR $_FILES[$fileElementName]['tmp_name'] == 'none') - { - $error = '41'; - } - else - { - list($width, $height, $type, $attr) = getimagesize($_FILES[$fileElementName]['tmp_name']); - - if($height == 0) - { - $error = '16'; - } - else - { - $newheight = $height > 500 ? 500 : $height; - $percent = $newheight / $height; - $newwidth = $width * $percent; - $newheight = $height * $percent; - $thumb = imagecreatetruecolor($newwidth, $newheight); - switch ($type) { - case 1: - $sourceImage = imagecreatefromgif($_FILES[$fileElementName]['tmp_name']); - break; - case 2: - $sourceImage = imagecreatefromjpeg($_FILES[$fileElementName]['tmp_name']); - break; - case 3: - $sourceImage = imagecreatefrompng($_FILES[$fileElementName]['tmp_name']); - break; - default: - return false; - } - - imagecopyresampled($thumb, $sourceImage, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); - - if(!is_writable(realpath(INSTALL_PATH.'/../../img').'/logo.jpg')) - $error = '58'; - else - { - if(!imagejpeg($thumb, realpath(INSTALL_PATH.'/../../img').'/logo.jpg', 90)) - { - $error = '7'; - } - } - } - } - } - echo "{"; - echo " error: '" . $error . "',\n"; - echo "}"; diff --git a/install-dev/xml/doUpgrade.php b/install-new/upgrade/upgrade.php similarity index 100% rename from install-dev/xml/doUpgrade.php rename to install-new/upgrade/upgrade.php