Magento – Get All Customer Order by Email

From time to time everyone finds them selves in a position where they are faced with a scenario they have never encountered before.  Tonight I was attempting to get all orders for a customer based on the customer email address.. While there are probably several ways to do this, I found a nice query that is quick, and efficient.

$orderCollection = Mage::getModel(‘sales/order’)->getCollection();

Happy coding, hope this helps next time you’re working on Magento

Related Posts


eCommerce Websites

It doesn't matter if you're starting fresh or a multi-million dollar company looking to revamp your web presence, ETHODE Web Development can create a custom eCommerce solution for your company which blows away the competition.

Read more

Leave a reply