2014/04/09

CSV multi line import for multi site is missing some value in some scope

Magento's importer uses bunches to import values in all the different tables. It processes 100 rows each bunch. The split in bunches some does not make sense, for example The following file sucks when 100rows stops before the next scope(shopnz), then this product will be in missing of shopnz scope!!
There are two options:
1) The complete Mage_ImportExport_Model_Import_Entity_Product::_saveProducts methods has to be rewritten for all to work properly.
2) The data should only be cut when it can be cut, so the Mage_ImportExport_Model_Import_Entity_Abstract::_saveValidatedBunches method should be rewritten.

 At last i found a patch for 2) https://gist.github.com/paales/7934644 THe problem is described in here https://github.com/avstudnitz/AvS_FastSimpleImport/issues/69
 

Mage_ImportExport_Model_Import_Entity_Abstract

protected function _saveValidatedBunches()

沒有留言:

發佈留言