Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
How to get customer telephone number mentioned in order shipping address?
Ganesh,you can fetch customer phone no from order shipping address by usig below code:
If type of order is virtual then you does not get telephone no from shipping address.Because magento does not save shipping address for virtual order
type of order is virtual
does not get telephone no
This worked for me:
$Phone = Mage::getSingleton('customer/session')->getCustomer()
Required, but never shown