Magento get order increment id

0

How can you get order increment id/last order id in magento? You can get magento order increment id/last order id into the success.phtml page by this method.Also you can get magento order increment id/last order id into admin panel as following methods.

Magento get order increment id into the success.phtml page

Following method is not working sometimes….

This is another method

Magento get order increment id into admin panel

Above method will not work, if there are multi store in a single magento setup.Try to this one.

Note there is a different of ->setOrder('created_at','DESC').

Magento get order details by order id

Share.

About Author

Sumith Harshan is the Web Engineer Specializes in Java Script, JQuery, HTML4/5, CSS2/3, PHP, CodeIgniter, CakePHP, J2SE, J2EE, XML, Hacking & Security, Mobile Interface Developing, Magento, Wordpress, Joomla, Drupal,PHPBB,Facebook App Developing and Open cart...etc.