[-] BO : fix #PSCFV-2578 : Not duplicate customers with the CSV file
This commit is contained in:
1 parent
ab97948b2f
commit
ca228b0bbc
1 file changed
+1
-1
@@ -1690,7 +1690,7 @@ class AdminImportControllerCore extends AdminController
|
||||
{
|
||||
$customer->id_shop_group = Shop::getGroupFromShop($customer->id_shop);
|
||||
|
||||
if ($customer->id && $customer->customerIdExists($customer->id))
|
||||
if (($customer->id && $customer->customerIdExists($customer->id)) || $customer->customerExists($customer->email))
|
||||
$res = $customer->update();
|
||||
if (!$res)
|
||||
$res = $customer->add();
|
||||
|
||||
Reference in new issue
Block a user