Which of the following will check whether the currently logged-in customer ever placed an order at the Magento store?
Answer
Correct Answer: $orders = Mage::getResourceModel('sales/order_collection') ->addFieldToSelect('*') ->addFieldToFilter('customer_id', $customer->getId()); if ($orders->getSize()) { }
Explanation:
Note: This Question is unanswered, help us to find answer for this one