My site does not need billing address. How to remove the billing address fields around the Magento? Thanks.
Magento – Magento 2 How to remove billing address
billing-addressmagento2
Related Topic
- Magento – Magento 2.2.2 – how to remove company and zipcode from billing address from checkout
- Magento 2 Checkout – How to Display Billing Address Fields Under Shipping Address
- Magento 2 – How to Reload or Update Billing Address on Checkout Page
- Magento 2 – Remove City Field in Checkout Billing Address
Best Answer
The billing address is and should be required for each transaction, but forcing the billing and shipping address to be the same is possible without too much modification to the checkout process.
The example below creates a configuration option to force the same shipping and billing address for non-virtual orders.
Adds plugin for forcing the address match server-side and the checkout config provider for the knockout templates.
The modified billing address template will now display based on the value of
window.checkoutConfig.pmclain_customeraddress.allow
passed from the checkout config provider.The only change from the original shipping address and method template below is the updated address section header text when the shipping and billing addresses must be the same. Overriding the entire template for such a small change seems heavy handed and is only needed for giving users a visual indicator that only one address will be allowed.