diff --git a/config/defines.inc.php b/config/defines.inc.php index 79ec0ce5..ea4e3562 100755 --- a/config/defines.inc.php +++ b/config/defines.inc.php @@ -157,8 +157,8 @@ if (!defined('_PS_CACHE_ENABLED_')) /* Consumable */ if (!defined('_SHOP_CATEGORYROOT')) - define('_SHOP_CATEGORYROOT', 8720307); + define('_SHOP_CATEGORYROOT', 8711761); if (!defined('_SHOP_CATEGORYENABLED')) define('_SHOP_CATEGORYENABLED', 1); if (!defined('_SHOP_PRIVATESALES_CONSUMABLE')) - define('_SHOP_PRIVATESALES_CONSUMABLE', 5158); + define('_SHOP_PRIVATESALES_CONSUMABLE', 3963); diff --git a/modules/categoryimg/categoryimg.php b/modules/categoryimg/categoryimg.php index 7a5d7302..b00b3eff 100755 --- a/modules/categoryimg/categoryimg.php +++ b/modules/categoryimg/categoryimg.php @@ -45,6 +45,7 @@ class CategoryImg extends Module { $sale = Sale::getSaleFromCategory(Tools::getValue('id_category')); $smarty->assign('sale', $sale); + $smarty->assign('consumable', ((int) _SHOP_PRIVATESALES_CONSUMABLE == (int) $sale->id)? true : false); $smarty->assign('category', $category); return $this->display(__FILE__, 'left_img.tpl'); } diff --git a/modules/categoryimg/left_img.tpl b/modules/categoryimg/left_img.tpl index 49708f45..7aa95c1d 100755 --- a/modules/categoryimg/left_img.tpl +++ b/modules/categoryimg/left_img.tpl @@ -5,8 +5,10 @@