Magento Wizard
Latest Stories: 

Write articles for us and make money!  Make Money

Make “Ship to This Address” Default in Magento Checkout

 Add to Favourites   Email This Post Email This Post
 Very handy...  This Blog WASN\'TThis Blog WAS
Loading ...

Through my dealings with several online E-Commerce stores, I’d say about 80% of customers want to have their goods delivered to the address that their card is registered to (their invoice address).  Not many people opt to have it to a different delivery address, therefore many Magento users have been asking me how to make this option default.  Well, it’s quite easy really, and is only a simple edit.

Just navigate to: app/code/core/Mage/Checkout/Block/Onepage/Billing.php and replace…

1
2
3
4
5
6
7
8
public function isUseBillingAddressForShipping()
{
        if (($this->getQuote()->getIsVirtual()) || !$this->getQuote()->getShippingAddress()->getSameAsBilling()) 
        {
            return false;
        }
        return true;
}

..with…

1
2
3
4
5
6
7
8
9
public function isUseBillingAddressForShipping()
{
        if (($this->getQuote()->getIsVirtual()) || (!$this->getQuote()->getShippingAddress()->getSameAsBilling()))
        {
            return true;
        } else {
            return false;
        }
}

Hope that helps!

Digg   del.icio.us   Facebook   Google   LinkedIn   Live   Reddit   StumbleUpon   Technorati   TwitThis  

about the author

    This article was written by Sam Davis on November 27, 2008.
    Computing over a glass of Grenache Shiraz... again!
    Sam encourages you to make money by writing articles for us! Learn More

related articles

 Change Credit/Debit Card name in Magento
 Magento Single Page Checkout - Video Guide
 Show Product Description on Magento Shopping Cart page
 Insecure or non-secure pages on the Magento Checkout
 Remove validation from phone number field on Magento checkout

comments

One Response to “Make “Ship to This Address” Default in Magento Checkout”

  1. Rob Janssen on December 19th, 2008

    Exactly what I was looking for! Thanks. It’s too bad one has to assemble most of the information about Magento via Google and blogs…

Leave a Reply





Secpay Module for Magento
    Magento Hosting
    Magento Themes
    Just wanted to say that Inline translating is the best thing ever. I love magento....
  • Sponsored Ads

  • The New Blasted Thing

    Blasted Thing has recently undergone an essential re-design, as we prepare to welcome a host of new features in to our web-site.

    We will continue to be gathering useful articles, tutorials and advice regarding Magento - and we'll be focusing on a number of hosting and theme companies which we have independently verified.

  • Translate this page

    Translate