free
web stats

Fill the form & Get Installation Support

Connect With Us





captcha

Connect With Us





captcha

How to Move Billing Address Before the Payment Method in checkout Magento2?

By Default, In Magento2  Billing address is displayed with the Payment method, and the second option to display billing address is on the Payment page.

If you have a custom requirement like, Display the Billing address before all the payment methods you need to do customization for that.

Create a di.xml file at the location,
app/code/Magemonkeys/BillingAddressBeforePayment/etc/frontend/di.xml

Based on the XML file, Create a Plugin Class, app/code/Magemonkeys/BillingAddressBeforePayment/Plugin/Block/Checkout/LayoutProcessor.php

before method is used to display content before the payment methods.

Clear the cache and go to the checkout page to see the billing address. It will be at the top of the payment page.

Was this article helpful?
YesNo
Fill the below form if you have any Magento programming need.




captcha