0

I have written following code to travere through order collection but its giving me memory issue

$orders = Mage::getModel('sales/order')->getCollection();

foreach ($orders as $order) {....} 

I there any suggestion on how can i access the order collection.

0

You can add this code in index.php and Mage.php files of Magento:

ini_set("memory_limit","512M");

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.