Sort Order for Size Chart tab

Created by Kaylin Nguyen, Modified on Thu, 2 May, 2019 at 2:24 PM by Kaylin Nguyen

Question: If I display it by “Tab information”, it will display as a first tab. How do I move it to middle or last tab?? I’d like to have the 1st tab for “Product Detail” tab. 


Answer:

Please edit file /chroot/home/cuteprin/cuteprinting.com/html/vendor/magento/module-catalog/view/frontend/layout/catalog_product_view.xml 
Line 22:

<referenceBlock name="product.info.details">

        <block class="Bss\SizeChart\Block\SizeChartTab" name="bss_sizechart_tab" after="product.attributes" template="Bss_SizeChart::SizeChartTab.phtml" ifconfig="bss_sizechart/bss_sizechart_setting/enable_bss_sizechart" group="detailed_info">

               <arguments>

                    <argument name="sort_order" xsi:type="string">[sort_order number]</argument>
                </arguments>
        </block>
</referenceBlock>


Edit the sort_order number with the number compare with other tabs.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article