Google+

Pages

Monday, July 30, 2012

Get Last Order ID From The Session in Magento

If you want to get last order Id from session, just use this code:


Mage::getSingleton('checkout/session')->getLastOrderId();


This will give you last order id.


That's all.. :)

No comments: