How to get Shipping Address by order id in magento

$incrementid ="100000004";
$_order = Mage::getModel('sales/order')->loadByIncrementId($incrementid);

OR
$order_id ="4";
$_order = Mage::getModel('sales/order')->load($order_id);

$_shippingAddress = $_order->getShippingAddress();
echo $_shippingAddress->getFirstname() . '
';
echo $_shippingAddress->getLastname() . '
';
echo $_shippingAddress->getCompany() . '
';
echo $_shippingAddress->getStreetFull() . '
';
echo $_shippingAddress->getRegion() . '
';
echo $_shippingAddress->getCity() . '
';
echo $_shippingAddress->getPostcode() . '
';
echo $_shippingAddress->getTelephone() . '
';
echo $_shippingAddress->getCountry_id() . '
';
echo $_order->getCustomerId();

Share this

Related Posts

Previous
Next Post »

Pageviews from the past week