Magento – allow to save empty value for dropdown attribute while importing products through csv in magento2 import

importmagento2

while importing products in magento2 given feature,my csv has empty values for some columns like gender which are not required case which has to be updated to empty value if empty value exists in CSV file.
can anyone suggest me how do this with default magento2 import feature.

Best Answer

found the solution commented the below line in abstractype file in the model catalog product import. //$rowData = $productTypeModel->clearEmptyData($rowData);

hope this helps other anyone facing the same problem

Related Topic