You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For \Magento\CatalogImportExport\Model\Import\Product\Type\AbstractType:
namespaceMagento\CatalogImportExport\Model\Import\Product\Type;
abstractclass AbstractType
{
/** * This property has been added in scope of work for backward compatible of stock item processing (work with * stock_data and quantity_and_stock_status keys) * quantity_and_stock_status attribute will be deleted * * @var array */private$attributesToSkip = ['quantity_and_stock_status']; // values must be configurable via DI...
public functionprepareAttributesWithDefaultValueForSave(array $rowData, $withDefaultValue = true)
{
$resultAttrs = [];
foreach ($this->_getProductAttributes($rowData) as$attrCode => $attrParams) {
if ($attrParams['is_static'] || in_array($attrCode, $this->attributesToSkip)) {
continue;
}
...
}
For the import test, \Magento\CatalogImportExport\Model\AbstractProductExportImportTestCase:
Full context in documentation
[HLD] Inconsistent saving of Stock Data
Description
1. Skip attribute from import
For \Magento\CatalogImportExport\Model\Import\Product\Type\AbstractType:
For the import test, \Magento\CatalogImportExport\Model\AbstractProductExportImportTestCase:
2. [Important!] Check possibility to disable/enable the Out of Stock status when importing products
3. Check and if needed replace 'quantity_and_stock_status' attribute with stock item data in Import/Export.
The text was updated successfully, but these errors were encountered: