I am trying to fetch customer addresses on a custom page using below code.
$shipId = 'VALID SHIPPING ADDRESS ID'; $billId = 'VALID BILLING ADDRESS ID'; $addressObject = Mage::getModel('customer/address'); $shipAddress = $addressObject->load($shipId); $billAddress = $addressObject->load($billId); But I don't know why I am getting only the billing address data in $shipAddress and $billAddress.
Actually I am getting the address which is lower in the order. For example if modify the code like below
$billAddress = $addressObject->load($billId); $shipAddress = $addressObject->load($shipId); Now I am getting the shipping address in both the variables.
Please let me know what is the issue here and how this can be fixed.