diff --git a/classes/Customer.php b/classes/Customer.php index a0d476b6d..6bdf2adaa 100644 --- a/classes/Customer.php +++ b/classes/Customer.php @@ -542,7 +542,7 @@ class CustomerCore extends ObjectModel public static function getGroupsStatic($id_customer) { if (!Group::isFeatureActive()) - return array(3); + return array(Configuration::get('PS_CUSTOMER_GROUP')); if (!isset(self::$_customer_groups[$id_customer])) { @@ -582,7 +582,7 @@ class CustomerCore extends ObjectModel public static function getDefaultGroupId($id_customer) { if (!Group::isFeatureActive()) - return 3; + return Configuration::get('PS_CUSTOMER_GROUP'); if (!isset(self::$_defaultGroupId[(int)$id_customer])) self::$_defaultGroupId[(int)$id_customer] = Db::getInstance()->getValue('