I flow How to add a tab in product details page using Magento 2 admin panel step to add a custom tab

and I got this error enter image description here

my file struct enter image description here


<?xml version="1.0"?>
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">

    <update handle="catalog_product_opengraph" />
    <update handle="page_calendar"/>
        <referenceBlock name="product.info.details">
            <block class="Magento\Catalog\Block\Product\View\Attributes" name="custom.tab" template="product/view/view.phtml" group="detailed_info">
                    <argument name="title" translate="true" xsi:type="string">Care</argument>


<h1><?php echo $product->getData('custom_tab');?></h1>

How do I add a custom TAB to magento2 product detail?

3 Answers 3


I found that adding module can solve this problem

  1. How to add a module?
  2. How to add a custom tab in product detail page

May be you have done some mistake in creating your module. I have already given an answer to the same question. Please check it out: https://magento.stackexchange.com/a/146483/47095


I have recommended this link for custom TAB in Magento2 product detail page. Custom Tab create M2 Product page

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.