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.


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


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.