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
Solved! Go to Solution.
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>
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>