Skip to content

Commit 54507a7

Browse files
committed
Fixed use config option for 'Enable Qty Increments' filed in product import
1 parent 60a4372 commit 54507a7

File tree

1 file changed

+4
-1
lines changed
  • app/code/Magento/CatalogImportExport/Model/Import

1 file changed

+4
-1
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Product.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2580,7 +2580,10 @@ private function _setStockUseConfigFieldsValues($rowData)
25802580
{
25812581
$useConfigFields = [];
25822582
foreach ($rowData as $key => $value) {
2583-
$useConfigName = self::INVENTORY_USE_CONFIG_PREFIX . $key;
2583+
$useConfigName = $key === 'enable_qty_increments'
2584+
? 'use_config_enable_qty_inc'
2585+
: self::INVENTORY_USE_CONFIG_PREFIX . $key;
2586+
25842587
if (isset($this->defaultStockData[$key])
25852588
&& isset($this->defaultStockData[$useConfigName])
25862589
&& !empty($value)

0 commit comments

Comments
 (0)