cancel
Showing results for 
Search instead for 
Did you mean: 

How to Set sort position of product tab on PDP

SOLVED

How to Set sort position of product tab on PDP

Hi

 

I am integrating some custom tab I need to set order as per design. How to Set sort position of product tab on PDP

Tab need to set like below position
1. Details
2. Delivery

3. Review

4. Instruction

5. User Guide

 

Can some one suggest me

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to Set sort position of product tab on PDP

Hi @johdanlusefa34 

 

Try to set with the below example code:
Add such code in your theme file module Magento_Catalog/layout/catalog_product_view.xml
Put your custom tab block name as name=" node

Set priority number to set Tab order

 

 

        <referenceBlock name="product.info.description">
            <arguments>
                <argument name="priority" xsi:type="string">1</argument>
            </arguments>
        </referenceBlock>
		<referenceBlock name="delivery.tab">
            <arguments>
                <argument name="priority" xsi:type="string">2</argument>
            </arguments>
        </referenceBlock>
        <referenceBlock name="reviews.tab">
            <arguments>
                <argument name="priority" xsi:type="string">3</argument>
            </arguments>
        </referenceBlock>
        <referenceBlock name="Instruction.tab">
            <arguments>
                <argument name="priority" xsi:type="string">4</argument>
            </arguments>
        </referenceBlock>
       <referenceBlock name="user_guide.tab">
            <arguments>
                <argument name="priority" xsi:type="string">5</argument>
            </arguments>
        </referenceBlock>

 

 

Hope this helps you!
Problem Solved! Click Kudos & Accept as Solution!

View solution in original post

1 REPLY 1

Re: How to Set sort position of product tab on PDP

Hi @johdanlusefa34 

 

Try to set with the below example code:
Add such code in your theme file module Magento_Catalog/layout/catalog_product_view.xml
Put your custom tab block name as name=" node

Set priority number to set Tab order

 

 

        <referenceBlock name="product.info.description">
            <arguments>
                <argument name="priority" xsi:type="string">1</argument>
            </arguments>
        </referenceBlock>
		<referenceBlock name="delivery.tab">
            <arguments>
                <argument name="priority" xsi:type="string">2</argument>
            </arguments>
        </referenceBlock>
        <referenceBlock name="reviews.tab">
            <arguments>
                <argument name="priority" xsi:type="string">3</argument>
            </arguments>
        </referenceBlock>
        <referenceBlock name="Instruction.tab">
            <arguments>
                <argument name="priority" xsi:type="string">4</argument>
            </arguments>
        </referenceBlock>
       <referenceBlock name="user_guide.tab">
            <arguments>
                <argument name="priority" xsi:type="string">5</argument>
            </arguments>
        </referenceBlock>

 

 

Hope this helps you!
Problem Solved! Click Kudos & Accept as Solution!