From 60d6af6506fc6168d0f851ff747abe795a591048 Mon Sep 17 00:00:00 2001 From: Rugento Date: Sun, 14 May 2017 18:04:40 +0300 Subject: [PATCH] Update Exchange.php --- app/code/community/Retailcrm/Retailcrm/Model/Exchange.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/community/Retailcrm/Retailcrm/Model/Exchange.php b/app/code/community/Retailcrm/Retailcrm/Model/Exchange.php index aa61d79..2542066 100644 --- a/app/code/community/Retailcrm/Retailcrm/Model/Exchange.php +++ b/app/code/community/Retailcrm/Retailcrm/Model/Exchange.php @@ -138,7 +138,7 @@ class Retailcrm_Retailcrm_Model_Exchange $siteid = Mage::getModel('core/store')->load($storeId)->getWebsiteId(); // search or create customer - $customer = Mage::getSingleton('customer/customer'); + $customer = Mage::getModel('customer/customer'); $customer->setWebsiteId($siteid); $customer->loadByEmail($order['email']); @@ -360,7 +360,7 @@ class Retailcrm_Retailcrm_Model_Exchange $siteid = Mage::getModel('core/store')->load($storeId)->getWebsiteId(); // search or create customer - $customer = Mage::getSingleton('customer/customer'); + $customer = Mage::getModel('customer/customer'); $customer->setWebsiteId($siteid); $customer->loadByEmail($order['email']);