Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This module adds the possibility to change the sort _ order for container blocks and containers nested in product.infosortable containers.details

Installation

Info

This module is required by theme-creativeshop and is installed out of the box when theme-creativeshop is required

...

There is no admin setting, the module is enabled after installation

Frontend

Sorting is working only for containers configured to be sortable, the configuration is stored in file etc/view.xml.
Default enabled containers:

Code Block
languagexml
<vars module="MageSuite_ProductDetailsReorder">
    <var name="sortable_containers">
        <var name="0">product.info.details</var>
        <var name="1">product.info.details.main</var>
    </var>
</vars>

To sort blocks inside containers new argument needs to be added:
<argument name="sort_order" xsi:type="string">120</argument>
argument with If this is not specified then the default sort_order name can be used in order to sort child blocks inside product.info.details and product.info.details.main blocks. is 10.

Example:

Code Block
languagexml
<referenceBlock name="product.attributes" group="column_right">
    <arguments>
        <argument name="contain_content" xsi:type="boolean">false</argument>
        <argument name="sort_order" xsi:type="string">20</argument>
    </arguments>
</referenceBlock>