Make “Ship to This Address” Default in Magento Checkout
Add to Favourites
Email This Post
|
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!
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
comments
One Response to “Make “Ship to This Address” Default in Magento Checkout”
Leave a Reply
![]() Secpay Module for Magento |

















































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…