Compare commits
2 Commits
master
...
fix/cookie
Author | SHA1 | Date | |
---|---|---|---|
|
3fd3c44b4a | ||
|
b2c8ce4248 |
@ -79,16 +79,7 @@ class AdminImport extends AdminTab
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->entities = array_flip(array(
|
||||
$this->l('Categories'),
|
||||
$this->l('Products'),
|
||||
$this->l('Combinations'),
|
||||
$this->l('Customers'),
|
||||
$this->l('Addresses'),
|
||||
$this->l('Manufacturers'),
|
||||
$this->l('Suppliers'),
|
||||
$this->l('Pack'),
|
||||
));
|
||||
$this->entities = array_flip(array($this->l('Categories'), $this->l('Products'), $this->l('Combinations'), $this->l('Customers'), $this->l('Addresses'), $this->l('Manufacturers'), $this->l('Suppliers')));
|
||||
|
||||
switch ((int)(Tools::getValue('entity')))
|
||||
{
|
||||
@ -289,19 +280,7 @@ class AdminImport extends AdminTab
|
||||
'meta_keywords' => array('label' => $this->l('Meta-keywords')),
|
||||
'meta_description' => array('label' => $this->l('Meta-description')));
|
||||
break;
|
||||
|
||||
case $this->entities[$this->l('Pack')]:
|
||||
|
||||
self::$required_fields = array('id_product_item', 'qty', 'id');
|
||||
|
||||
$this->available_fields = array(
|
||||
'id_product_item' => array('label' => $this->l('ID Item')),
|
||||
'qty' => array('label' => $this->l('Quantity Item')),
|
||||
'id' => array('label' => $this->l('ID Pack')),
|
||||
);
|
||||
break;
|
||||
}
|
||||
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
@ -1314,51 +1293,6 @@ class AdminImport extends AdminTab
|
||||
$this->closeCsvFile($handle);
|
||||
}
|
||||
|
||||
public function packImport()
|
||||
{
|
||||
$this->receiveTab();
|
||||
$handle = $this->openCsvFile();
|
||||
self::setLocale();
|
||||
for ($current_line = 0; $line = fgetcsv($handle, MAX_LINE_SIZE, Tools::getValue('separator')); $current_line++)
|
||||
{
|
||||
if (Tools::getValue('convert')) {
|
||||
$line = $this->utf8_encode_array($line);
|
||||
}
|
||||
$info = self::getMaskedRow($line);
|
||||
|
||||
self::setDefaultValues($info);
|
||||
|
||||
// Is product a pack
|
||||
if (array_key_exists('id', $info) && (int)($info['id']) && Pack::isPack((int)($info['id']))) {
|
||||
$pack = new Pack((int)($info['id']));
|
||||
}
|
||||
else {
|
||||
$pack = new Pack();
|
||||
}
|
||||
|
||||
self::array_walk($info, array('AdminImport', 'fillInfo'), $pack);
|
||||
if (($fieldError = $pack->validateFields(UNFRIENDLY_ERROR, true)) === true && is_numeric($info['qty']))
|
||||
{
|
||||
$res = false;
|
||||
// Is product item in pack
|
||||
if ($pack->isPacked($info['id_product_item'])) {
|
||||
$res = $pack->updateItem($info['id'], $info['id_product_item'], $info['qty']);
|
||||
}
|
||||
// Insert
|
||||
if (!$res) {
|
||||
$res = $pack->addItem($info['id'], $info['id_product_item'], $info['qty']);
|
||||
}
|
||||
if (!$res) {
|
||||
$this->_errors[] = mysql_error().' '.$info['id_product_item'].(isset($info['id']) ? ' (ID '.$info['id'].')' : '').' '.Tools::displayError('Cannot be saved');
|
||||
}
|
||||
}
|
||||
else {
|
||||
$this->_errors[] = ($fieldError !== true ? $fieldError : '').($langFieldError !== true ? $langFieldError : '');
|
||||
}
|
||||
}
|
||||
$this->closeCsvFile($handle);
|
||||
}
|
||||
|
||||
public function display()
|
||||
{
|
||||
if (!Tools::isSubmit('submitImportFile'))
|
||||
@ -1890,9 +1824,6 @@ class AdminImport extends AdminTab
|
||||
case $this->entities[$this->l('Suppliers')]:
|
||||
$this->supplierImport();
|
||||
break;
|
||||
case $this->entities[$this->l('Pack')]:
|
||||
$this->packImport();
|
||||
break;
|
||||
default:
|
||||
$this->_errors[] = $this->l('no entity selected');
|
||||
}
|
||||
|
@ -84,21 +84,28 @@ class CookieCore
|
||||
$r = '!(?:(\w+)://)?(?:(\w+)\:(\w+)@)?([^/:]+)?(?:\:(\d*))?([^#?]+)?(?:\?([^#]+))?(?:#(.+$))?!i';
|
||||
preg_match ($r, Tools::getHttpHost(false, false), $out);
|
||||
if (preg_match('/^(((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]{1}[0-9]|[1-9]).)'.
|
||||
'{1}((25[0-5]|2[0-4][0-9]|[1]{1}[0-9]{2}|[1-9]{1}[0-9]|[0-9]).)'.
|
||||
'{2}((25[0-5]|2[0-4][0-9]|[1]{1}[0-9]{2}|[1-9]{1}[0-9]|[0-9]){1}))$/', $out[4]))
|
||||
return false;
|
||||
if (!strstr(Tools::getHttpHost(false, false), '.'))
|
||||
'{1}((25[0-5]|2[0-4][0-9]|[1]{1}[0-9]{2}|[1-9]{1}[0-9]|[0-9]).)'.
|
||||
'{2}((25[0-5]|2[0-4][0-9]|[1]{1}[0-9]{2}|[1-9]{1}[0-9]|[0-9]){1}))$/', $out[4])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!strstr(Tools::getHttpHost(false, false), '.')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$domain = $out[4];
|
||||
$subDomains = SubDomain::getSubDomains();
|
||||
if ($subDomains === false)
|
||||
if ($subDomains === false) {
|
||||
die(Tools::displayError('Bad SubDomain SQL query.'));
|
||||
foreach ($subDomains AS $subDomain)
|
||||
{
|
||||
$subDomainLength = strlen($subDomain) + 1;
|
||||
if (strncmp($subDomain.'.', $domain, $subDomainLength) == 0)
|
||||
$domain = substr($domain, $subDomainLength);
|
||||
}
|
||||
|
||||
foreach ($subDomains AS $subDomain) {
|
||||
$subDomainLength = strlen($subDomain) + 1;
|
||||
if (strncmp($subDomain.'.', $domain, $subDomainLength) == 0) {
|
||||
$domain = substr($domain, $subDomainLength);
|
||||
}
|
||||
}
|
||||
|
||||
return $domain;
|
||||
}
|
||||
|
||||
|
@ -174,31 +174,19 @@ class PackCore extends Product
|
||||
}
|
||||
|
||||
/**
|
||||
* Add an item to the pack
|
||||
* @param integer $id_product
|
||||
* @param integer $id_item
|
||||
* @param integer $qty
|
||||
* @return boolean true if everything was fine
|
||||
*/
|
||||
* Add an item to the pack
|
||||
*
|
||||
* @param integer $id_product
|
||||
* @param integer $id_item
|
||||
* @param integer $qty
|
||||
* @return boolean true if everything was fine
|
||||
*/
|
||||
public static function addItem($id_product, $id_item, $qty)
|
||||
{
|
||||
Db::getInstance()->Execute('UPDATE '._DB_PREFIX_.'product SET cache_is_pack = 1 WHERE id_product = '.(int)($id_product).' LIMIT 1');
|
||||
return Db::getInstance()->AutoExecute(_DB_PREFIX_.'pack', array('id_product_pack' => (int)($id_product), 'id_product_item' => (int)($id_item), 'quantity' => (int)($qty)), 'INSERT');
|
||||
}
|
||||
|
||||
/**
|
||||
* Update item and his pack association
|
||||
* @param integer $id_product
|
||||
* @param integer $id_item
|
||||
* @param integer $qty
|
||||
* @return boolean true if everything was fine
|
||||
*/
|
||||
public static function updateItem($id_product, $id_item, $qty)
|
||||
{
|
||||
return Db::getInstance()->AutoExecute(_DB_PREFIX_.'pack', array('quantity' => (int)($qty)),
|
||||
'UPDATE', 'id_product_pack='.(int)($id_product).' AND id_product_item='.(int)($id_item));
|
||||
}
|
||||
|
||||
public static function duplicate($id_product_old, $id_product_new)
|
||||
{
|
||||
Db::getInstance()->Execute('INSERT INTO '._DB_PREFIX_.'pack (id_product_pack, id_product_item, quantity)
|
||||
|
@ -24,7 +24,7 @@
|
||||
Nous vous informons que vous avez dans votre compte un crédit de fidélité non utilisé suite à votre commande {commandenum}.
|
||||
Celui-ci expire dans 1 mois.
|
||||
|
||||
Venez nous rendre visite sur le site : https://www.bebeboutik.com et profiter de nos offres jusqu'à -70% !
|
||||
Venez nous rendre visite sur le site : https://wwww.bebeboutik.com et profiter de nos offres jusqu'à -70% !
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -3,6 +3,6 @@ Bonjour {firstname} {lastname},
|
||||
Nous vous informons que vous avez dans votre compte un crédit de fidélité non utilisé suite à votre commande {commandenum}.
|
||||
Celui-ci expire dans 1 mois.
|
||||
|
||||
Venez nous rendre visite sur le site : https://www.bebeboutik.com et profiter de nos offres jusqu'à -70% !
|
||||
Venez nous rendre visite sur le site : https://wwww.bebeboutik.com et profiter de nos offres jusqu'à -70% !
|
||||
|
||||
L'équipe Bébé Boutik,
|
BIN
modules/blockauth/.hg/00changelog.i
Executable file
BIN
modules/blockauth/.hg/00changelog.i
Executable file
Binary file not shown.
1
modules/blockauth/.hg/branch
Executable file
1
modules/blockauth/.hg/branch
Executable file
@ -0,0 +1 @@
|
||||
default
|
2
modules/blockauth/.hg/cache/branchheads
vendored
Executable file
2
modules/blockauth/.hg/cache/branchheads
vendored
Executable file
@ -0,0 +1,2 @@
|
||||
22140c622301271e8694549e29e360916921e485 0
|
||||
22140c622301271e8694549e29e360916921e485 default
|
2
modules/blockauth/.hg/cache/tags
vendored
Executable file
2
modules/blockauth/.hg/cache/tags
vendored
Executable file
@ -0,0 +1,2 @@
|
||||
0 22140c622301271e8694549e29e360916921e485
|
||||
|
BIN
modules/blockauth/.hg/dirstate
Executable file
BIN
modules/blockauth/.hg/dirstate
Executable file
Binary file not shown.
2
modules/blockauth/.hg/hgrc
Executable file
2
modules/blockauth/.hg/hgrc
Executable file
@ -0,0 +1,2 @@
|
||||
[paths]
|
||||
default = ssh://ewen@localhost//hg/blockauth
|
4
modules/blockauth/.hg/requires
Executable file
4
modules/blockauth/.hg/requires
Executable file
@ -0,0 +1,4 @@
|
||||
revlogv1
|
||||
fncache
|
||||
store
|
||||
dotencode
|
BIN
modules/blockauth/.hg/store/00changelog.i
Executable file
BIN
modules/blockauth/.hg/store/00changelog.i
Executable file
Binary file not shown.
BIN
modules/blockauth/.hg/store/00manifest.i
Executable file
BIN
modules/blockauth/.hg/store/00manifest.i
Executable file
Binary file not shown.
BIN
modules/blockauth/.hg/store/data/blockauth.php.i
Executable file
BIN
modules/blockauth/.hg/store/data/blockauth.php.i
Executable file
Binary file not shown.
BIN
modules/blockauth/.hg/store/data/blockauth.tpl.i
Executable file
BIN
modules/blockauth/.hg/store/data/blockauth.tpl.i
Executable file
Binary file not shown.
BIN
modules/blockauth/.hg/store/data/config.xml.i
Executable file
BIN
modules/blockauth/.hg/store/data/config.xml.i
Executable file
Binary file not shown.
BIN
modules/blockauth/.hg/store/data/fr.php.i
Executable file
BIN
modules/blockauth/.hg/store/data/fr.php.i
Executable file
Binary file not shown.
BIN
modules/blockauth/.hg/store/data/logo.gif.i
Executable file
BIN
modules/blockauth/.hg/store/data/logo.gif.i
Executable file
Binary file not shown.
5
modules/blockauth/.hg/store/fncache
Executable file
5
modules/blockauth/.hg/store/fncache
Executable file
@ -0,0 +1,5 @@
|
||||
data/logo.gif.i
|
||||
data/config.xml.i
|
||||
data/fr.php.i
|
||||
data/blockauth.php.i
|
||||
data/blockauth.tpl.i
|
BIN
modules/blockauth/.hg/store/undo
Executable file
BIN
modules/blockauth/.hg/store/undo
Executable file
Binary file not shown.
0
modules/blockauth/.hg/undo.bookmarks
Executable file
0
modules/blockauth/.hg/undo.bookmarks
Executable file
1
modules/blockauth/.hg/undo.branch
Executable file
1
modules/blockauth/.hg/undo.branch
Executable file
@ -0,0 +1 @@
|
||||
default
|
3
modules/blockauth/.hg/undo.desc
Executable file
3
modules/blockauth/.hg/undo.desc
Executable file
@ -0,0 +1,3 @@
|
||||
0
|
||||
pull
|
||||
ssh://ewen@localhost//hg/blockauth
|
0
modules/blockauth/.hg/undo.dirstate
Executable file
0
modules/blockauth/.hg/undo.dirstate
Executable file
BIN
modules/blockcartex/.hg/00changelog.i
Executable file
BIN
modules/blockcartex/.hg/00changelog.i
Executable file
Binary file not shown.
1
modules/blockcartex/.hg/branch
Executable file
1
modules/blockcartex/.hg/branch
Executable file
@ -0,0 +1 @@
|
||||
default
|
2
modules/blockcartex/.hg/cache/branchheads
vendored
Executable file
2
modules/blockcartex/.hg/cache/branchheads
vendored
Executable file
@ -0,0 +1,2 @@
|
||||
55a547b9200e199cbe52370d3ee590a2a8237c03 2
|
||||
55a547b9200e199cbe52370d3ee590a2a8237c03 default
|
2
modules/blockcartex/.hg/cache/tags
vendored
Executable file
2
modules/blockcartex/.hg/cache/tags
vendored
Executable file
@ -0,0 +1,2 @@
|
||||
2 55a547b9200e199cbe52370d3ee590a2a8237c03
|
||||
|
BIN
modules/blockcartex/.hg/dirstate
Executable file
BIN
modules/blockcartex/.hg/dirstate
Executable file
Binary file not shown.
2
modules/blockcartex/.hg/hgrc
Executable file
2
modules/blockcartex/.hg/hgrc
Executable file
@ -0,0 +1,2 @@
|
||||
[paths]
|
||||
default = ssh://ewen@localhost//hg/blockcartex
|
4
modules/blockcartex/.hg/requires
Executable file
4
modules/blockcartex/.hg/requires
Executable file
@ -0,0 +1,4 @@
|
||||
revlogv1
|
||||
fncache
|
||||
store
|
||||
dotencode
|
BIN
modules/blockcartex/.hg/store/00changelog.i
Executable file
BIN
modules/blockcartex/.hg/store/00changelog.i
Executable file
Binary file not shown.
BIN
modules/blockcartex/.hg/store/00manifest.i
Executable file
BIN
modules/blockcartex/.hg/store/00manifest.i
Executable file
Binary file not shown.
BIN
modules/blockcartex/.hg/store/data/ajax-cart.js.i
Executable file
BIN
modules/blockcartex/.hg/store/data/ajax-cart.js.i
Executable file
Binary file not shown.
BIN
modules/blockcartex/.hg/store/data/blockcart-ajax.php.i
Executable file
BIN
modules/blockcartex/.hg/store/data/blockcart-ajax.php.i
Executable file
Binary file not shown.
BIN
modules/blockcartex/.hg/store/data/blockcart-json.tpl.i
Executable file
BIN
modules/blockcartex/.hg/store/data/blockcart-json.tpl.i
Executable file
Binary file not shown.
BIN
modules/blockcartex/.hg/store/data/blockcart-set-collapse.php.i
Executable file
BIN
modules/blockcartex/.hg/store/data/blockcart-set-collapse.php.i
Executable file
Binary file not shown.
BIN
modules/blockcartex/.hg/store/data/blockcart.tpl.i
Executable file
BIN
modules/blockcartex/.hg/store/data/blockcart.tpl.i
Executable file
Binary file not shown.
BIN
modules/blockcartex/.hg/store/data/blockcartex.php.i
Executable file
BIN
modules/blockcartex/.hg/store/data/blockcartex.php.i
Executable file
Binary file not shown.
BIN
modules/blockcartex/.hg/store/data/config.xml.i
Executable file
BIN
modules/blockcartex/.hg/store/data/config.xml.i
Executable file
Binary file not shown.
BIN
modules/blockcartex/.hg/store/data/fr.php.i
Executable file
BIN
modules/blockcartex/.hg/store/data/fr.php.i
Executable file
Binary file not shown.
BIN
modules/blockcartex/.hg/store/data/img/icon/basket.png.i
Executable file
BIN
modules/blockcartex/.hg/store/data/img/icon/basket.png.i
Executable file
Binary file not shown.
BIN
modules/blockcartex/.hg/store/data/img/icon/basket__go.png.i
Executable file
BIN
modules/blockcartex/.hg/store/data/img/icon/basket__go.png.i
Executable file
Binary file not shown.
BIN
modules/blockcartex/.hg/store/data/img/icon/checkout.png.i
Executable file
BIN
modules/blockcartex/.hg/store/data/img/icon/checkout.png.i
Executable file
Binary file not shown.
BIN
modules/blockcartex/.hg/store/data/img/icon/delete.gif.i
Executable file
BIN
modules/blockcartex/.hg/store/data/img/icon/delete.gif.i
Executable file
Binary file not shown.
BIN
modules/blockcartex/.hg/store/data/img/icon/index.php.i
Executable file
BIN
modules/blockcartex/.hg/store/data/img/icon/index.php.i
Executable file
Binary file not shown.
BIN
modules/blockcartex/.hg/store/data/img/index.php.i
Executable file
BIN
modules/blockcartex/.hg/store/data/img/index.php.i
Executable file
Binary file not shown.
BIN
modules/blockcartex/.hg/store/data/index.php.i
Executable file
BIN
modules/blockcartex/.hg/store/data/index.php.i
Executable file
Binary file not shown.
BIN
modules/blockcartex/.hg/store/data/logo.gif.i
Executable file
BIN
modules/blockcartex/.hg/store/data/logo.gif.i
Executable file
Binary file not shown.
16
modules/blockcartex/.hg/store/fncache
Executable file
16
modules/blockcartex/.hg/store/fncache
Executable file
@ -0,0 +1,16 @@
|
||||
data/img/index.php.i
|
||||
data/index.php.i
|
||||
data/config.xml.i
|
||||
data/img/icon/delete.gif.i
|
||||
data/img/icon/index.php.i
|
||||
data/img/icon/basket_go.png.i
|
||||
data/blockcart-ajax.php.i
|
||||
data/img/icon/checkout.png.i
|
||||
data/blockcart-set-collapse.php.i
|
||||
data/blockcartex.php.i
|
||||
data/fr.php.i
|
||||
data/logo.gif.i
|
||||
data/ajax-cart.js.i
|
||||
data/blockcart.tpl.i
|
||||
data/img/icon/basket.png.i
|
||||
data/blockcart-json.tpl.i
|
BIN
modules/blockcartex/.hg/store/undo
Executable file
BIN
modules/blockcartex/.hg/store/undo
Executable file
Binary file not shown.
0
modules/blockcartex/.hg/undo.bookmarks
Executable file
0
modules/blockcartex/.hg/undo.bookmarks
Executable file
1
modules/blockcartex/.hg/undo.branch
Executable file
1
modules/blockcartex/.hg/undo.branch
Executable file
@ -0,0 +1 @@
|
||||
default
|
3
modules/blockcartex/.hg/undo.desc
Executable file
3
modules/blockcartex/.hg/undo.desc
Executable file
@ -0,0 +1,3 @@
|
||||
0
|
||||
pull
|
||||
ssh://ewen@localhost//hg/blockcartex
|
0
modules/blockcartex/.hg/undo.dirstate
Executable file
0
modules/blockcartex/.hg/undo.dirstate
Executable file
BIN
modules/blocklogo/.hg/00changelog.i
Executable file
BIN
modules/blocklogo/.hg/00changelog.i
Executable file
Binary file not shown.
1
modules/blocklogo/.hg/branch
Executable file
1
modules/blocklogo/.hg/branch
Executable file
@ -0,0 +1 @@
|
||||
default
|
2
modules/blocklogo/.hg/cache/branchheads
vendored
Executable file
2
modules/blocklogo/.hg/cache/branchheads
vendored
Executable file
@ -0,0 +1,2 @@
|
||||
a0b6701fd7c40b9759a83fc8e78566aa84a678e2 0
|
||||
a0b6701fd7c40b9759a83fc8e78566aa84a678e2 default
|
2
modules/blocklogo/.hg/cache/tags
vendored
Executable file
2
modules/blocklogo/.hg/cache/tags
vendored
Executable file
@ -0,0 +1,2 @@
|
||||
0 a0b6701fd7c40b9759a83fc8e78566aa84a678e2
|
||||
|
BIN
modules/blocklogo/.hg/dirstate
Executable file
BIN
modules/blocklogo/.hg/dirstate
Executable file
Binary file not shown.
2
modules/blocklogo/.hg/hgrc
Executable file
2
modules/blocklogo/.hg/hgrc
Executable file
@ -0,0 +1,2 @@
|
||||
[paths]
|
||||
default = ssh://ewen@localhost//hg/blocklogo
|
4
modules/blocklogo/.hg/requires
Executable file
4
modules/blocklogo/.hg/requires
Executable file
@ -0,0 +1,4 @@
|
||||
revlogv1
|
||||
fncache
|
||||
store
|
||||
dotencode
|
BIN
modules/blocklogo/.hg/store/00changelog.i
Executable file
BIN
modules/blocklogo/.hg/store/00changelog.i
Executable file
Binary file not shown.
BIN
modules/blocklogo/.hg/store/00manifest.i
Executable file
BIN
modules/blocklogo/.hg/store/00manifest.i
Executable file
Binary file not shown.
BIN
modules/blocklogo/.hg/store/data/blocklogo.php.i
Executable file
BIN
modules/blocklogo/.hg/store/data/blocklogo.php.i
Executable file
Binary file not shown.
BIN
modules/blocklogo/.hg/store/data/blocklogo.tpl.i
Executable file
BIN
modules/blocklogo/.hg/store/data/blocklogo.tpl.i
Executable file
Binary file not shown.
BIN
modules/blocklogo/.hg/store/data/config.xml.i
Executable file
BIN
modules/blocklogo/.hg/store/data/config.xml.i
Executable file
Binary file not shown.
BIN
modules/blocklogo/.hg/store/data/en.php.i
Executable file
BIN
modules/blocklogo/.hg/store/data/en.php.i
Executable file
Binary file not shown.
BIN
modules/blocklogo/.hg/store/data/fr.php.i
Executable file
BIN
modules/blocklogo/.hg/store/data/fr.php.i
Executable file
Binary file not shown.
BIN
modules/blocklogo/.hg/store/data/index.php.i
Executable file
BIN
modules/blocklogo/.hg/store/data/index.php.i
Executable file
Binary file not shown.
BIN
modules/blocklogo/.hg/store/data/logo.gif.i
Executable file
BIN
modules/blocklogo/.hg/store/data/logo.gif.i
Executable file
Binary file not shown.
7
modules/blocklogo/.hg/store/fncache
Executable file
7
modules/blocklogo/.hg/store/fncache
Executable file
@ -0,0 +1,7 @@
|
||||
data/index.php.i
|
||||
data/config.xml.i
|
||||
data/logo.gif.i
|
||||
data/en.php.i
|
||||
data/blocklogo.php.i
|
||||
data/blocklogo.tpl.i
|
||||
data/fr.php.i
|
BIN
modules/blocklogo/.hg/store/undo
Executable file
BIN
modules/blocklogo/.hg/store/undo
Executable file
Binary file not shown.
0
modules/blocklogo/.hg/undo.bookmarks
Executable file
0
modules/blocklogo/.hg/undo.bookmarks
Executable file
1
modules/blocklogo/.hg/undo.branch
Executable file
1
modules/blocklogo/.hg/undo.branch
Executable file
@ -0,0 +1 @@
|
||||
default
|
3
modules/blocklogo/.hg/undo.desc
Executable file
3
modules/blocklogo/.hg/undo.desc
Executable file
@ -0,0 +1,3 @@
|
||||
0
|
||||
pull
|
||||
ssh://ewen@localhost//hg/blocklogo
|
0
modules/blocklogo/.hg/undo.dirstate
Executable file
0
modules/blocklogo/.hg/undo.dirstate
Executable file
@ -69,7 +69,7 @@ class BlockUserInfo extends Module
|
||||
|
||||
global $smarty, $cookie, $cart;
|
||||
|
||||
if (!$cookie->logged) {
|
||||
if (!$cookie->isLogged()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -92,7 +92,6 @@ class BlockUserInfo extends Module
|
||||
'loyalties' => ($loyalties)?$loyalties:0,
|
||||
'cart' => $cart,
|
||||
'cart_qties' => $cart->nbProducts(),
|
||||
'logged' => $cookie->isLogged(),
|
||||
'customerName' => ($cookie->logged ? $cookie->customer_firstname.' '.$cookie->customer_lastname : false),
|
||||
'firstName' => ($cookie->logged ? $cookie->customer_firstname : false),
|
||||
'lastName' => ($cookie->logged ? $cookie->customer_lastname : false),
|
||||
@ -119,7 +118,7 @@ class BlockUserInfo extends Module
|
||||
$loyalties = null;
|
||||
if ($this->disableCredits === false) {
|
||||
$display_credits = true;
|
||||
if ($cookie->logged) {
|
||||
if ($cookie->isLogged()) {
|
||||
$display_credits = true;
|
||||
$sql = 'SELECT id_customer FROM `'._DB_PREFIX_.'customer_credits` WHERE id_customer = ' .(int) $cookie->id_customer;
|
||||
if(Db::getInstance()->getValue($sql)){
|
||||
@ -137,7 +136,6 @@ class BlockUserInfo extends Module
|
||||
'loyalties' => ($loyalties)?$loyalties:0,
|
||||
'cart' => $cart,
|
||||
'cart_qties' => $cart->nbProducts(),
|
||||
'logged' => $cookie->isLogged(),
|
||||
'customerName' => ($cookie->logged ? $cookie->customer_firstname.' '.$cookie->customer_lastname : false),
|
||||
'firstName' => ($cookie->logged ? $cookie->customer_firstname : false),
|
||||
'lastName' => ($cookie->logged ? $cookie->customer_lastname : false),
|
||||
|
BIN
modules/categoryscroll/.hg/00changelog.i
Executable file
BIN
modules/categoryscroll/.hg/00changelog.i
Executable file
Binary file not shown.
1
modules/categoryscroll/.hg/branch
Executable file
1
modules/categoryscroll/.hg/branch
Executable file
@ -0,0 +1 @@
|
||||
default
|
2
modules/categoryscroll/.hg/cache/branchheads
vendored
Executable file
2
modules/categoryscroll/.hg/cache/branchheads
vendored
Executable file
@ -0,0 +1,2 @@
|
||||
613b481451e73594f52e08e2a35120c98652d63c 3
|
||||
613b481451e73594f52e08e2a35120c98652d63c default
|
2
modules/categoryscroll/.hg/cache/tags
vendored
Executable file
2
modules/categoryscroll/.hg/cache/tags
vendored
Executable file
@ -0,0 +1,2 @@
|
||||
3 613b481451e73594f52e08e2a35120c98652d63c
|
||||
|
BIN
modules/categoryscroll/.hg/dirstate
Executable file
BIN
modules/categoryscroll/.hg/dirstate
Executable file
Binary file not shown.
2
modules/categoryscroll/.hg/hgrc
Executable file
2
modules/categoryscroll/.hg/hgrc
Executable file
@ -0,0 +1,2 @@
|
||||
[paths]
|
||||
default = ssh://ewen@localhost//hg/categoryscroll
|
4
modules/categoryscroll/.hg/requires
Executable file
4
modules/categoryscroll/.hg/requires
Executable file
@ -0,0 +1,4 @@
|
||||
revlogv1
|
||||
fncache
|
||||
store
|
||||
dotencode
|
BIN
modules/categoryscroll/.hg/store/00changelog.i
Executable file
BIN
modules/categoryscroll/.hg/store/00changelog.i
Executable file
Binary file not shown.
BIN
modules/categoryscroll/.hg/store/00manifest.i
Executable file
BIN
modules/categoryscroll/.hg/store/00manifest.i
Executable file
Binary file not shown.
BIN
modules/categoryscroll/.hg/store/data/ajax.php.i
Executable file
BIN
modules/categoryscroll/.hg/store/data/ajax.php.i
Executable file
Binary file not shown.
BIN
modules/categoryscroll/.hg/store/data/categoryscroll.php.i
Executable file
BIN
modules/categoryscroll/.hg/store/data/categoryscroll.php.i
Executable file
Binary file not shown.
BIN
modules/categoryscroll/.hg/store/data/config.xml.i
Executable file
BIN
modules/categoryscroll/.hg/store/data/config.xml.i
Executable file
Binary file not shown.
BIN
modules/categoryscroll/.hg/store/data/fr.php.i
Executable file
BIN
modules/categoryscroll/.hg/store/data/fr.php.i
Executable file
Binary file not shown.
BIN
modules/categoryscroll/.hg/store/data/header.tpl.i
Executable file
BIN
modules/categoryscroll/.hg/store/data/header.tpl.i
Executable file
Binary file not shown.
BIN
modules/categoryscroll/.hg/store/data/logo.gif.i
Executable file
BIN
modules/categoryscroll/.hg/store/data/logo.gif.i
Executable file
Binary file not shown.
BIN
modules/categoryscroll/.hg/store/data/product-list.tpl.i
Executable file
BIN
modules/categoryscroll/.hg/store/data/product-list.tpl.i
Executable file
Binary file not shown.
BIN
modules/categoryscroll/.hg/store/data/product__list.tpl.i
Executable file
BIN
modules/categoryscroll/.hg/store/data/product__list.tpl.i
Executable file
Binary file not shown.
8
modules/categoryscroll/.hg/store/fncache
Executable file
8
modules/categoryscroll/.hg/store/fncache
Executable file
@ -0,0 +1,8 @@
|
||||
data/config.xml.i
|
||||
data/product-list.tpl.i
|
||||
data/product_list.tpl.i
|
||||
data/header.tpl.i
|
||||
data/ajax.php.i
|
||||
data/categoryscroll.php.i
|
||||
data/logo.gif.i
|
||||
data/fr.php.i
|
BIN
modules/categoryscroll/.hg/store/undo
Executable file
BIN
modules/categoryscroll/.hg/store/undo
Executable file
Binary file not shown.
0
modules/categoryscroll/.hg/undo.bookmarks
Executable file
0
modules/categoryscroll/.hg/undo.bookmarks
Executable file
1
modules/categoryscroll/.hg/undo.branch
Executable file
1
modules/categoryscroll/.hg/undo.branch
Executable file
@ -0,0 +1 @@
|
||||
default
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user