[*] FO : Added the possibility to deactivate customer groups management (for performances) [part 1]

This commit is contained in:
Damien Metzger committed 2013-11-21 12:32:51 +01:00
1 parent 794f729c5d
commit 9f1c39a7d6
8 files changed
+227 -178

No files matched your search

+3
View File
@@ -132,6 +132,9 @@ class GroupReductionCore extends ObjectModel
public static function getValueForProduct($id_product, $id_group)
{
if (!Configuration::get('PS_GROUP_FEATURE_ACTIVE'))
return 0;
if (!isset(self::$reduction_cache[$id_product.'-'.$id_group]))
self::$reduction_cache[$id_product.'-'.$id_group] = Db::getInstance()->getValue('
SELECT `reduction`