Issue 14351: Product import doesn't change Enable Qty Increments field #14352
Conversation
| foreach ($rowData as $key => $value) { | ||
| $useConfigName = self::INVENTORY_USE_CONFIG_PREFIX . $key; | ||
| $useConfigName = $key === 'enable_qty_increments' | ||
| ? 'use_config_enable_qty_inc' |
There was a problem hiding this comment.
I would suggest using the static definition instead of the hardcoded 'enable_qty_increments' value.
Magento\CatalogInventory\Api\Data\StockItemInterface::ENABLE_QTY_INCREMENTS
There was a problem hiding this comment.
Thanks for suggestion, it makes sense.
I thought about it, but ignored in favor of consistency, e.g. \Magento\CatalogImportExport\Model\Import\Product::$defaultStockData doesn't use constants etc.
Any way, suggested changes were implemented.
|
Hi @simpleadm. There's a merge conflict in one of the files. Please, merge the updated 2.3-develop branch into your branch, resolve conflicts and push once again. Thank you |
|
Hi @rogyar , |
|
@magento-engcom-team any updates? |
|
Hi @simpleadm. Thank you for your contribution. |
Product import doesn't change
Enable Qty IncrementsfieldDescription
\Magento\CatalogImportExport\Model\Import\Product::_setStockUseConfigFieldsValuesmethod rely on Use Config Settings property name will be withuse_config_prefix, but forenable_qty_incrementsfiled it is named asuse_config_enable_qty_inc.Fixed Issues (if relevant)
Enable Qty Incrementsfield #14351: Product import doesn't changeEnable Qty IncrementsfieldSteps to reproduce
SKUQuantity,Stock Statusand required fieldsEnable Qty Increments('Advanced Inventory') marked asUse Config SettingsSystem > Data transfer: Import > Import productsExample files
Contribution checklist