File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
app/code/Magento/CustomerImportExport/Model/ResourceModel/Import/Customer Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -111,15 +111,15 @@ private function loadCustomersData(array $customerIdentifiers): void
111111 $ chunkSelect = clone $ select ;
112112 $ chunkSelect ->where ($ customerTableId . '.email IN (?) ' , array_keys ($ customerWebsites ));
113113 $ customers = $ collection ->getConnection ()->fetchAll ($ chunkSelect );
114- $ i = 0 ;
115114 foreach ($ customers as $ customer ) {
116115 $ this ->addCustomerByArray ($ customer );
117116 if ($ this ->configShare ->isGlobalScope () &&
118117 !in_array ((int ) $ customer ['website_id ' ], $ customerWebsites [$ customer ['email ' ]], true )
119118 ) {
120- $ customer ['website_id ' ] = $ customerWebsites [$ customer ['email ' ]][$ i ];
121- $ i ++;
122- $ this ->addCustomerByArray ($ customer );
119+ foreach ($ customerWebsites [$ customer ['email ' ]] as $ websiteId ) {
120+ $ customer ['website_id ' ] = $ websiteId ;
121+ $ this ->addCustomerByArray ($ customer );
122+ }
123123 }
124124 }
125125 }
You can’t perform that action at this time.
0 commit comments