Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

https://github.com/magesuite/product-details-reorder

This module adds the possibility to change sort_order for container nested in product.info.details

Installation

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

composer require "creativestyle/magesuite-product-details-reorder" ^1.0.0

Admin settings

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

Frontend

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

<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>
If this is not specified then the default sort_order is 10.

Example:

<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>

  • No labels