Magento themes and extensions

Magento – Get Billing Address Details Of Order

Share

Magento – Get Billing Address Details Of Order

To get the billing address details of the order.

This code will return an object.

<?php
$order_id = 2314; //use your own order id
$order = Mage::getModel("sales/order")->load($order_id); //load order by order id
$billing_address = $order->getBillingAddress();
echo $billing_address->getTelephone();
echo $billing_address->getPostcode();
//use print_r($billing_address->getData()); to get all the available elements of the object
?>

Comments are closed.