Skip to main content
Bumped by Community user
replaced http://magento.stackexchange.com/ with https://magento.stackexchange.com/
Source Link

I have changed the order of shipping Address and is working fine (thanks to this answerthanks to this answer)

I have changed the order of shipping Address and is working fine (thanks to this answer)

I have changed the order of shipping Address and is working fine (thanks to this answer)

Source Link
Arun Karnawat
  • 3k
  • 7
  • 36
  • 62

How to change the order of the billing address fields on checkout page in Magento 2?

I want to change the ordering of Address fields for both shipping address and billing address on checkout page

I have changed the order of shipping Address and is working fine (thanks to this answer)

The following is the content of My theme's checkout_index_index.xml layout file

<?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="checkout" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceBlock name="checkout.root"> <arguments> <argument name="jsLayout" xsi:type="array"> <item name="components" xsi:type="array"> <item name="checkout" xsi:type="array"> <item name="children" xsi:type="array"> <item name="steps" xsi:type="array"> <item name="children" xsi:type="array"> <item name="shipping-step" xsi:type="array"> <item name="children" xsi:type="array"> <item name="shippingAddress" xsi:type="array"> <item name="children" xsi:type="array"> <item name="shipping-address-fieldset" xsi:type="array"> <item name="children" xsi:type="array"> <item name="country_id" xsi:type="array"> <item name="sortOrder" xsi:type="string">85</item> </item> <item name="region_id" xsi:type="array"> <item name="sortOrder" xsi:type="string">87</item> </item> <item name="city" xsi:type="array"> <item name="sortOrder" xsi:type="string">90</item> </item> <item name="postcode" xsi:type="array"> <item name="sortOrder" xsi:type="string">91</item> </item> <item name="telephone" xsi:type="array"> <item name="sortOrder" xsi:type="string">94</item> </item> </item> </item> </item> </item> </item> </item> </item> </item> </item> </item> </item> </argument> </arguments> </referenceBlock> </body> </page> 

But when I tried to update order of Billing address it did not changed. I have also checked the original checkout_index_index.xml layout file in Magento_Checkout module there is not fields in billing-step.

Do anyone know how to do this ?