HI all, basically what I want to achieve is adding custom fields into the product and make the import csv in admin still work:
Steps done:
- Added the custom fields into the product model [ok]
- Created and done the migration [OK]
- Extended the loaders array defaultAdminProductField[ok]
- Extended the AdminPostProductsReq and AdminPostProductsProductReq and Overridden the validators [ok]
- Tested that the product import still was working also with the csv template ( the one with Sales Channels is wrong on the docs , I fixed it)
Now the steps that I've done but I'm not sure
- Created under strategies/batch-job/product/types another column-definition.ts where I've added the new custom fields (img 1 )
- Created under strategies/batch-job/product/import.ts new file where I copy pasted basically the same code of the core file commenting the lines that were giving me error (ts 2612) and one for the iFileService (img2)
- When uploading the csv I have this error: An error occurred while processing batch.created: Error: The csv file parsing failed due to: Unable to treat column Product Year from the csv file. No target column found in the provided schema.
Any help is appreciated :))