Downloadable Product import creates double entries in `downloadable_link` and `downloadable_link_price` tables
-
29-01-2021 - |
Domanda
I have imported downloadable products using Magento 2's default import flow with CSV.
To import it to different stores I have to add row per store. However, it creates duplicate entries in downloadable_link
and downloadable_link_price
tables. I think this is redundant.
Or how can I use default stores'(first store) attribute's value in the second store as I want to change some attributes only?
Thank you.
Soluzione
I have fixed this by rewriting the file's \Magento\DownloadableImportExport\Model\Import\Product\Type\Downloadable.php
function parseOptions
by prefrence
.
like
protected function parseOptions(array $rowData, $entityId) { if($rowData["store_view_code"] == "default" ){ parent::parseOptions($rowData, $entityId); } return $this; }
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a magento.stackexchange