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.
-
The attributes shouldn't be required,. If this attributes are required, you should have always an attribute for it. Just change the required of the attribute on your attribute set.– ntzzCommented Apr 6, 2016 at 9:46
-
@ntzz sorry edited my question– chinnaCommented Apr 6, 2016 at 9:52
-
as far as i understand, if your attribute for example "gender" isn't required, you should could import the product with the column empty. Check the attributes on Stores->Attributes->Products and select gender for example, check it isn't required.– ntzzCommented Apr 6, 2016 at 9:56
-
@ntzz already made the gender value as not required,but when updated from csv with empty value,its not updating with empty value– chinnaCommented Apr 6, 2016 at 10:00
Add a comment
|
1 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