If I load a customer in the following way:
$customer = Mage::getModel('customer/customer')
    ->load($customer_id);
Whats the difference between:
$customer -> getDefaultShippingAddress();
and
$customer -> getPrimaryShippingAddress();
Thanks in advance!
They return the same result
See /app/code/core/Mage/Customer/Model/Customer.php
 /*
 * @return Mage_Customer_Model_Address
 */
public function getPrimaryBillingAddress()
{
    return $this->getPrimaryAddress('default_billing');
}
/**
 * Get customer default billing address
 *
 * @return Mage_Customer_Model_Address
 */
public function getDefaultBillingAddress()
{
    return $this->getPrimaryBillingAddress();
}
                        Nothing because getDefaultShippingAddress() calls internally getPrimaryShippingAddress(). You can check the code yourself in /app/code/local/Mage/Customer/Model/Customer.php
/**
 * Get default customer shipping address
 *
 * @return Mage_Customer_Model_Address
 */
public function getPrimaryShippingAddress()
{
    return $this->getPrimaryAddress('default_shipping');
}
/**
 * Get default customer shipping address
 *
 * @return Mage_Customer_Model_Address
 */
public function getDefaultShippingAddress()
{
    return $this->getPrimaryShippingAddress();
}
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With