Magento – Magento 2.3 Add Multiple tabs after product description

magento2.3product-descriptionproduct-pagetabs

I need to add custom multiple tabs after product description. Could you please help me.
Thanks in advance.

Best Answer

Try something like this:

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <update handle="review_product_form_component"/>
    <body>
        <referenceBlock name="product.info.details">
            <block class="Namespace1\Module1\Block\Class1" name="name.of.tab.1" as="tab1" template="Namespace1_Module1::file1.phtml" group="detailed_info">
                <arguments>
                    <argument translate="true" name="title" xsi:type="string">Tab Title 1</argument>
                </arguments>
            </block>
            <block class="Namespace2\Module2\Block\Class2" name="product.attributes" as="additional" template="Namespace2_Module2::file2.phtml" group="detailed_info">
                <arguments>
                    <argument translate="true" name="title" xsi:type="string">Tab Title 2</argument>
                </arguments>
            </block>
        </referenceBlock>
    </body>
</page>
Related Topic