0

I am using magento 2.2.6 i want to change the position of company field in billing and shipping form in checkout before street field.

i was trying following code but not worked

<item name="company" xsi:type="array">
    <item name="sortOrder" xsi:type="string">1</item>
</item>
3
  • Try this <item name="sortOrder" xsi:type="number">1</item> Apr 12, 2019 at 11:07
  • try rm -rf pub/static/* and redeploy your content Apr 12, 2019 at 11:10
  • @PradeepSanku, If answer is helpful than please accept and upvote. Apr 12, 2019 at 11:20

2 Answers 2

1
  <item name="company" xsi:type="array">
   <item name="sortOrder" xsi:type="string">40</item>
</item>
0

Some minor correction is required, See below code

<item name="company" xsi:type="array">
    <item name="sortOrder" xsi:type="number">1</item>
</item>

If you made another changes like add or update field in UI than remove your UI Component entry from "ui_bookmark" database table and deploy your content.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.