File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
app/code/Magento/CatalogImportExport/Model/Import Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 9
9
use Magento \Catalog \Model \Product \Visibility ;
10
10
use Magento \CatalogImportExport \Model \Import \Product \MediaGalleryProcessor ;
11
11
use Magento \CatalogImportExport \Model \Import \Product \RowValidatorInterface as ValidatorInterface ;
12
+ use Magento \CatalogInventory \Api \Data \StockItemInterface ;
12
13
use Magento \Framework \App \Filesystem \DirectoryList ;
13
14
use Magento \Framework \Exception \LocalizedException ;
14
15
use Magento \Framework \Filesystem ;
@@ -2580,7 +2581,10 @@ private function _setStockUseConfigFieldsValues($rowData)
2580
2581
{
2581
2582
$ useConfigFields = [];
2582
2583
foreach ($ rowData as $ key => $ value ) {
2583
- $ useConfigName = self ::INVENTORY_USE_CONFIG_PREFIX . $ key ;
2584
+ $ useConfigName = $ key === StockItemInterface::ENABLE_QTY_INCREMENTS
2585
+ ? StockItemInterface::USE_CONFIG_ENABLE_QTY_INC
2586
+ : self ::INVENTORY_USE_CONFIG_PREFIX . $ key ;
2587
+
2584
2588
if (isset ($ this ->defaultStockData [$ key ])
2585
2589
&& isset ($ this ->defaultStockData [$ useConfigName ])
2586
2590
&& !empty ($ value )
You can’t perform that action at this time.
0 commit comments