Magento2 checkout 页面 字段排序,之前在 shipping页面中我们是修改checkout_index_index.xml
如:国家字段
< item name="country_id" xsi:type="array" >
< item name="sortOrder" xsi:type="string" >300< /item >
< /item >

今天发现支付页面,修改账单地址billing-address 发现这里又要改,经过好长时间发现,这里我们要对LayoutProcessor.php
app\code\Magento\Checkout\Block\Checkout\LayoutProcessor.php

做个调整,同时可以看到
'country_id' => [
'sortOrder' => 300,
],
'region' => [
'visible' => false,
]
有个公司字段要去掉这里就需要'visible' => false,