From 52ebbe01305e08047943fcc56a88e39bf092c5c4 Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Thu, 5 Jan 2012 09:44:59 +0000 Subject: [PATCH] // Fixed problem with group assigned to customers not logged git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12170 b9a71923-0436-4b27-9f14-aed3839534dd --- config/config.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/config.inc.php b/config/config.inc.php index 7fbbdce33..93a3908ba 100644 --- a/config/config.inc.php +++ b/config/config.inc.php @@ -147,7 +147,13 @@ else } } else + { $customer = new Customer(); + + // Change the default group + if (Group::isFeatureActive()) + $customer->id_default_group = Configuration::get('PS_UNIDENTIFIED_GROUP'); + } $customer->id_guest = $cookie->id_guest; Context::getContext()->customer = $customer;