// MERGE product_multistore branch : product fields are now editable per shop
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14682 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -71,7 +71,7 @@ class Blocknewsletter extends Module
|
||||
CREATE TABLE IF NOT EXISTS `'._DB_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\',
|
||||
`id_shop_group` INTEGER UNSIGNED NOT NULL DEFAULT \'1\',
|
||||
`email` varchar(255) NOT NULL,
|
||||
`newsletter_date_add` DATETIME NULL,
|
||||
`ip_registration_newsletter` varchar(15) NOT NULL,
|
||||
@@ -312,10 +312,10 @@ class Blocknewsletter extends Module
|
||||
*/
|
||||
protected function registerGuest($email, $active = true)
|
||||
{
|
||||
$sql = 'INSERT INTO '._DB_PREFIX_.'newsletter (id_shop, id_group_shop, email, newsletter_date_add, ip_registration_newsletter, http_referer, active)
|
||||
$sql = 'INSERT INTO '._DB_PREFIX_.'newsletter (id_shop, id_shop_group, email, newsletter_date_add, ip_registration_newsletter, http_referer, active)
|
||||
VALUES
|
||||
('.$this->context->shop->id.',
|
||||
'.$this->context->shop->id_group_shop.',
|
||||
'.$this->context->shop->id_shop_group.',
|
||||
\''.pSQL($email).'\',
|
||||
NOW(),
|
||||
\''.pSQL(Tools::getRemoteAddr()).'\',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<module>
|
||||
<name>blocknewsletter</name>
|
||||
<displayName><![CDATA[Newsletter block]]></displayName>
|
||||
<displayName><![CDATA[Bloc newsletter]]></displayName>
|
||||
<version><![CDATA[1.4]]></version>
|
||||
<description><![CDATA[Adds a block for newsletter subscription.]]></description>
|
||||
<description><![CDATA[Ajoute un bloc newsletter pour vos clients]]></description>
|
||||
<author><![CDATA[PrestaShop]]></author>
|
||||
<tab><![CDATA[front_office_features]]></tab>
|
||||
<confirmUninstall>Are you sure you want to delete all your contacts ?</confirmUninstall>
|
||||
<confirmUninstall>Êtes-vous sûr de vouloir supprimer tous vos contacts ?</confirmUninstall>
|
||||
<is_configurable>1</is_configurable>
|
||||
<need_instance>0</need_instance>
|
||||
<limited_countries></limited_countries>
|
||||
|
||||
Reference in New Issue
Block a user