My product edit page is a painful mess at the moment. Things are not in a logical order at all. I can reorder attributes in a section, but I cannot seem to change the order of the sections.
It does not use the set in the Attribute Set management. There are also other modules jumping in odd places all over that aren't in the Attribute Set list at all
There really should be a way to reorder the sections to one's preference!
So my questions is: how can I override the sortOrder value for these sections?
Can I do it in di.xml? or do I need to do it via the ui_component interface somehow? or code?
I can't even be sure what the number does, because I have modules at 200 above modules at 10 but one with 999 at the bottom.
I have found entries like this both in the Magento code and in vendors modules:
<virtualType name="Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Pool"> <arguments> <argument name="modifiers" xsi:type="array"> <item name="productgridextend" xsi:type="array"> <item name="class" xsi:type="string">Company\Module\Ui\DataProvider\Product\Form\Modifier\Inventory</item> <item name="sortOrder" xsi:type="number">200</item> </item> </argument> </arguments> </virtualType>
In other cases all I could find is a template entry in
And many of the Magento entries do not have a sortOrder value, so there must be a mechanism at page building to decide these based on data