Magento Forum

   
Get Last Real Order ID not working
 
f4vr
Jr. Member
 
Total Posts:  4
Joined:  2013-03-12
 

I’m trying to retrieve the last order ID but not working.  It’s working when I’m testing it on my local and our dev site.  But after we deploy it on our staging server, it’s not working anymore.  The server configuration is the same on all.  I’m using the php page of VISA IPG by the way.  Anyone have the same issue and how did you resolved it?  Thanks.

$orderId = Mage::getSingleton(’checkout/session’)->getLastRealOrderId();

 
Magento Community Magento Community
Magento Community
Magento Community
 
magneto800
Member
 
Avatar
Total Posts:  60
Joined:  2013-03-15
 

Hope this can help you:

http://importantmagento.blogspot.com/2012/08/magento-how-to-get-last-order-id.html

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top