- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2020
08:03 AM
09-02-2020
08:03 AM
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.
Labels:
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2020
08:23 AM
09-02-2020
08:23 AM
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!
Problem Solved! Click Kudos & Accept as Solution!
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2020
08:23 AM
09-02-2020
08:23 AM
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!
Problem Solved! Click Kudos & Accept as Solution!