Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $customerId = /* Required Customer ID */;
- $customer = Mage::getModel('customer/customer')->load($customerId); // insert customer ID
- foreach ($customer->getAddresses() as $address)
- {
- $data = $address->toArray();
- var_dump($data);
- }
- $customerId = /* Required Customer ID */;
- $customer = Mage::getModel('customer/customer')->load($customerId); // insert customer ID
- $primaryBillingAddress = $customer->getPrimaryBillingAddress(); /* Primary Billing Address */
- $primaryShippingAddress = $customer->getPrimaryShippingAddress(); /* Primary Shipping Address */
- $defaultBillingAddress = $customer->getDefaultBillingAddress(); /* Default Billing Address */
- $defaultShippingAddress = $customer->getDefaultShippingAddress(); /* Default Shipping Address */
Add Comment
Please, Sign In to add comment