What is the best way to determine if customer who just placed an order is new or repeat?
On success page, I can get an order object via:
$order = Mage::getModel('sales/order')->
loadByIncrementId(Mage::getSingleton('checkout/session')->
getLastRealOrderId());
Without knowing much about magento's utility methods, next step could be to get Customer object and to check if total number or orders > 1?
If possible, include actual code in your solution.
Thanks.
I have tried to organize the all conditions.Try below code on success page.