Magento News
Import 1000 products
Hello,
I have an XML with a 1000 products that I read and put into an array. Then I loop through this array to import my products with the Mage_Catalog_Model_Convert_Adapter_Productimport saveRow function. This is all going well, but it just stops after about 300 products. There are no warnings, errors or limit of execution time.
My code looks like this
$mage = new Mage_Catalog_Model_Convert_Adapter_Productimport;
$importArray() = array(); //This array is filled with the products
foreach ($importArray as $array)
{
try
{
$mage->saveRow($array);
}
catch (Exception $e)
{
echo 'Exception <br/>';
var_dump($e);
}
}
Does anyone know why my script just stops? Thanks in advance
Possibly Related Posts:
- #eugenedevjobs PHP / LAMP Web Developer Magento & WordPress a Must (Baltimore, MD): City: Baltimoreread more http://t.co/n7PVbsZa
- New job: magento store theme, design and implementation. by csonline http://t.co/WVfdGR6M
- New job: Magento – Cloud Theme – Digital Products by w3bsit3s http://t.co/BGPEg8Yc
- New job: magento expert needed individual by phenixwebsol http://t.co/ikEUffe9
- New job: Magento Quotation Booking Form/Diary by yourreno http://t.co/4H7zcpGU
RSS Feed