In this post I am going to explain how to add custom tab on product detail page in Magento 2. Here, I am using my custom module – Ht_Mymodule First, create product page layout file catalog_product_view.xml and add following code in it. File Path: app/code/Ht/Mymodule/view/frontend/layout/catalog_product_view.xml <?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”> <body> <referenceBlock name=”product.info.details”> <block class=”Magento\Catalog\Block\Product\View”…


Recent Comments