AvS_FastSimpleImport
AvS_FastSimpleImport copied to clipboard
Only the first product is saved in a loop
I have updated Magento from 1.7.0.2 to 1.9.3.3 and now, only the first product is saved in a foreach loop.
foreach($products as $data) { $import = Mage::getModel('fastsimpleimport/import'); try { $import->processProductImport($data); } catch (Exception $e) { print_r($import->getErrorMessages()); } }
I got no Error Messages.
Two general notes:
- You should really update to 1.9.3.4 since 1.9.3.3 has many known issues.
- Instead of doing the
processProductImportin aforeachloop, you should really simply give your$productsarray to the import model. This should be faster as well.
Besides of that, we cannot really help you without seeing your data...
Depending on how many images you have - importer might be running out of memory, see https://github.com/sitewards/import_image_memory_leak_fix