Bhaveshpp

Professional Magento Developr - Healp eachother to grow

Magento 2: catalog product tab add new / edit / rename / sorting

22 Jan 2022 » magento2, php

On product page tabing is most customizable think and there are several way to customize it.

using layout


<referenceBlock name="product.attributes">
   <arguments>
         <argument translate="true" name="title" xsi:type="string">Specification</argument>
         <argument name="sort_order" xsi:type="string">10</argument>
   </arguments>
</referenceBlock>
<referenceBlock name="product.info.description">
   <arguments>
         <argument translate="true" name="title" xsi:type="string">Product Description</argument>
         <argument name="sort_order" xsi:type="string">20</argument>
   </arguments>
</referenceBlock>

using template Magento_Catalog/templates/product/view/details.phtml

<?php $newOrderTabbing = array('product.info.description','reviews.tab','product.attributes'); //custom added position ?>

Thanks.