Hello everybody
I added a tab on the product view page. Now it's shown as the first tab, but I want it as the 2nd last one.
I followed this article: https://webkul.com/blog/display-custom-tab-product-page-magento2/
Any ideas?
Solved! Go to Solution.
<block class="Magento\Catalog\Block\Product\View" name="shipping_tab" template="Magento_Catalog::product/view/shipping.phtml" group="detailed_info" >
<arguments>
<argument translate="true" name="title" xsi:type="string">Shipping</argument>
<argument name="sort_order" xsi:type="string">10</argument>
</arguments>
</block>
Add the sort order argument inside the product.info.details reference block container. Change the sort order argument value to 10, 20, 30 as per your order.
<block class="Magento\Catalog\Block\Product\View" name="shipping_tab" template="Magento_Catalog::product/view/shipping.phtml" group="detailed_info" >
<arguments>
<argument translate="true" name="title" xsi:type="string">Shipping</argument>
<argument name="sort_order" xsi:type="string">10</argument>
</arguments>
</block>
Add the sort order argument inside the product.info.details reference block container. Change the sort order argument value to 10, 20, 30 as per your order.