cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Tab On Product View Page - position

SOLVED

Custom Tab On Product View Page - position

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?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Custom Tab On Product View Page - position

@patrick_tschumi 

 

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

Manish Mittal
https://www.manishmittal.com/

View solution in original post

1 REPLY 1

Re: Custom Tab On Product View Page - position

@patrick_tschumi 

 

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

Manish Mittal
https://www.manishmittal.com/