Magento 1.9 – Get Customer Information on Success Page

magento-1.9PHP

How can i get the both guest and registered customer details such as Firstname and Telephone number on success page ?

I am having order# on that page, So can i get the customer information from order# there ?

Best Answer

I have written a blog post regarding it. You will get all the information required from there.

Check the link: Thank you page Magento

Link2: Thank you page part II

Let me know if you have any doubts or queries regarding it.

Basically you will get all the required stuff from

$lastOrder = Mage::getModel(‘sales/order’)->load(Mage::getSingleton(‘checkout/session’)->getLastOrderId());

and

$orderObj = Mage::getModel(‘sales/order’)->loadByIncrementId($this->getOrderId());
Related Topic