How to remove Billing Address from Onepage checkout Magento
-
13-12-2019 - |
Question
I am trying to remove the Billing address step from the Onepage checkout page in Magento, but facing issues. Can anybody please suggest how to remove the step from checkout page in magento.
I tried in the Core files, but it is showing errors.Thanks in advance.
Solution
I have done it by placing default values for the Billing address fields and added the below script in onepage.phtml
billing.save();
document.getElementById('opc-billing').style.display = 'none';
One after implementing this, i have removed the Billing address from Order Email,Order view page in admin.
OTHER TIPS
If you just want to remove the Billing Adress from the checkout process, editing app/code/core/Mage/Checkout/Block/Onepage.php
and app/design/frontend/default/default/template/checkout/onepage.phtml
as suggested here should work.
You might also be interested in this answer.