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>
  • Try this <item name="sortOrder" xsi:type="number">1</item> – Sanjay Gohil Apr 12 '19 at 11:07
  • try rm -rf pub/static/* and redeploy your content – Dava Gordon Apr 12 '19 at 11:10
  • @PradeepSanku, If answer is helpful than please accept and upvote. – Sanjay Gohil Apr 12 '19 at 11:20
1
  <item name="company" xsi:type="array">
   <item name="sortOrder" xsi:type="string">40</item>
</item>
| improve this answer | |
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.

| improve this answer | |

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.