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

Import 1000 products

Possibly Related Posts:


 

Leave a Reply