shop->id.', 0, 0, 1, 0.25, 1), ('.Context::getContext()->shop->id.', 1, 0, 1, 0.25, 1)'; $sql[] = 'CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'jxnewsletter_settings_lang` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_jxnewsletter` int(11) NOT NULL, `id_lang` int(11) NOT NULL, `title` VARCHAR(100), `content` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE='._MYSQL_ENGINE_.' DEFAULT CHARSET=utf8;'; foreach (Language::getLanguages(false) as $lang) { $sql[] = 'INSERT INTO '._DB_PREFIX_.'jxnewsletter_settings_lang (id_jxnewsletter, id_lang, title, content) VALUE (1, '.$lang['id_lang'].', "Subscribe to our newsletter", "Enter your email address to receive all news, updates on new arrivals, special offers and other discount information."), (2, '.$lang['id_lang'].', "Subscribe to our newsletter", "Enter your email address to receive all news, updates on new arrivals, special offers and other discount information.")'; } foreach ($sql as $query) { if (Db::getInstance()->execute($query) == false) { return false; } }