Force Customers to Only Checkout with Billing Address (Disabling Shipping Address)
Although rare, some eCommerce websites wish to completely remove the ability for a customer to ship to a different address than Magento (i.e force shipping to the billing address).
In Magento, the billing address and shipping address are different steps of the checkout process, as such, in order to disable the shipping address step (or indeed any other step), we would need to write a custom extension that extends the Mage_Checkout_Block_Onepage
class.
First of all, create your Magento extension config.xml
at app/code/local/YOURCOMPANY/YOURMODULE/etc/
and place the following code within the file:-
TBC…
I will finish writing this blog post as soon as I can but for now, here is the extension available for download to disable the shipping address in Magento.
Please note: Ensure you copy the layout and template folders into your theme folder in Magento…
Hi
It’s a great extension. However, I have multiple sites, and the extension switches off the delivery address for all sites.
Is there a way of the module only working on particular sites?
regards
Phil
Unfortunately, there is no support for multistore in this extension Phil but we’ll hopefully try and see if we can extend it to support this soon and will publish an update.
This is precisely what I am looking for, however it is not working for Magento 1.8.1. Any way to create a version for 1.8.1?
Hey Shaun, I’ve unfortunately never managed to revisit this but if my memory serves me correctly (quite unlikely), I am pretty sure we tested this on 1.9.X so would also work on 1.8.X.
I will have to roll it out on a 1.8 install and take a look which I shall try and do at some point soon.
Hi,
this doesn’t work in 1.9.2,
radio button showing ‘ship to different address’ still appears but doesn’t function, making it look like a fault. in addition there is an xml error being generated by the code.
Hey Jan,
Thanks for letting me know that this doesn’t work in 1.9.2. I will try and take a look as soon as I can and update with a revision for this version of Magento. Thanks.
I am using Magento ver. 1.9.1.0 and it doesn’t seem to be working. I downloaded the extension and copied the app file to my magento installation. I’m not sure if I need to do anything else. I cleared my magento cache as well.
Nevermind I was able to get it to work in Magento ver. 1.9.1.0
Sorry for the delayed reply Robert.
Glad to hear you got it working, did you have to modify anything that this article provides for 1.9.x?
Hi,
I have install the extension in my website and ship to different address removed from the billing address section.
But when I click on continue button under billing information section, it’s not move to shipping method section. It’s stay on billing information section without any error.
I am using 1.7.1 version please help me on this.
Thanks,
Vikaash
Sorry for not replying sooner Vikaash, missed a load of comments previously.
Are you familiar with loading up your browser console and then trying with your console open? It should log an error in the console which will explain why it won’t let you move from billing to shipping sections at checkout.
This is a common issue and could prove to be unrelated to this modification, has different causes though. With the error from your console, we can let you know where the problem lies (or share your website and I can check myself).