diff --git a/app/code/community/Retailcrm/Retailcrm/Model/Exchange.php b/app/code/community/Retailcrm/Retailcrm/Model/Exchange.php index 0764567..b007528 100644 --- a/app/code/community/Retailcrm/Retailcrm/Model/Exchange.php +++ b/app/code/community/Retailcrm/Retailcrm/Model/Exchange.php @@ -154,6 +154,7 @@ class Retailcrm_Retailcrm_Model_Exchange $customer->setWebsiteId($siteid); $customer->loadByEmail($order['email']); + if (!is_numeric($customer->getId())) { $customer ->setGroupId(1)