File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
app/code/Magento/CustomerImportExport/Model/Import Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 8
8
namespace Magento \CustomerImportExport \Model \Import ;
9
9
10
10
use Magento \Customer \Api \Data \CustomerInterface ;
11
- use Magento \ImportExport \Model \Import ;
12
- use Magento \ImportExport \Model \Import \ErrorProcessing \ProcessingErrorAggregatorInterface ;
13
- use Magento \ImportExport \Model \Import \AbstractSource ;
14
11
use Magento \Customer \Model \Indexer \Processor ;
15
12
use Magento \Framework \App \ObjectManager ;
13
+ use Magento \ImportExport \Model \Import ;
14
+ use Magento \ImportExport \Model \Import \AbstractSource ;
15
+ use Magento \ImportExport \Model \Import \ErrorProcessing \ProcessingErrorAggregatorInterface ;
16
16
17
17
/**
18
18
* Customer entity import
@@ -41,6 +41,8 @@ class Customer extends AbstractCustomer
41
41
42
42
public const COLUMN_PASSWORD = 'password ' ;
43
43
44
+ public const COLUMN_DISABLE_AUTO_GROUP_CHANGE = 'disable_auto_group_change ' ;
45
+
44
46
/**#@-*/
45
47
46
48
/**#@+
@@ -162,6 +164,7 @@ class Customer extends AbstractCustomer
162
164
'failures_num ' ,
163
165
'first_failure ' ,
164
166
'lock_expires ' ,
167
+ self ::COLUMN_DISABLE_AUTO_GROUP_CHANGE ,
165
168
];
166
169
167
170
/**
@@ -488,6 +491,9 @@ protected function _prepareDataForUpdate(array $rowData)
488
491
} else {
489
492
$ entityRow ['store_id ' ] = $ this ->getCustomerStoreId ($ emailInLowercase , $ rowData [self ::COLUMN_WEBSITE ]);
490
493
}
494
+ if (!empty ($ rowData [self ::COLUMN_DISABLE_AUTO_GROUP_CHANGE ])) {
495
+ $ entityRow [self ::COLUMN_DISABLE_AUTO_GROUP_CHANGE ] = $ rowData [self ::COLUMN_DISABLE_AUTO_GROUP_CHANGE ];
496
+ }
491
497
$ entitiesToUpdate [] = $ entityRow ;
492
498
}
493
499
You can’t perform that action at this time.
0 commit comments