How to get customer Telephone number in magento 1.9
I want to display customer telephone number in order success page.
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Aviance School is one of the largest web solutions platform in India for developers to learn and share their programming knowledge and build their careers.
Simply use the following: $this->getCustomer()->getPrimaryBillingAddress()->getTelephone();
The first part will give you all the details, which you could then explore with var_dump();
$orderid = $this->escapeHtml($this->getOrderId());
$order=Mage::getModel('sales/order')->loadByIncrementId($orderid);
$customerTelephone = $order->getBillingAddress()->getTelephone();