Skip to main content
added 12 characters in body
Source Link
Prashant Valanda
  • 12.7k
  • 5
  • 43
  • 69

Finally i got it:
In catalog_product_view:

    <body>
        <referenceBlock name="product.info.details">
          <block class="Vendor\ModuleName\Block\Product\View\Attributes" name="product.question" template="product/view/attributes.phtml" group="detailed_info">
              <arguments>
                <argument translate="true" name="title" xsi:type="string">Product Question</argument>
              </arguments>
          </block>
        </referenceBlock>
    </body>

And all I need is attributes.php file as the same as core folder in Mymodule/Block/Product/View/Attributes.php, copy all or replace some line of code if you want, change the namspace and you get it

Finally i got it:
In catalog_product_view:

    <body>
        <referenceBlock name="product.info.details">
        <block class="Vendor\ModuleName\Block\Product\View\Attributes" name="product.question" template="product/view/attributes.phtml" group="detailed_info">
            <arguments>
            <argument translate="true" name="title" xsi:type="string">Product Question</argument>
            </arguments>
        </block>
        </referenceBlock>
    </body>

And all I need is attributes.php file as the same as core folder in Mymodule/Block/Product/View/Attributes.php, copy all or replace some line of code if you want, change the namspace and you get it

Finally i got it:
In catalog_product_view:

    <body>
        <referenceBlock name="product.info.details">
          <block class="Vendor\ModuleName\Block\Product\View\Attributes" name="product.question" template="product/view/attributes.phtml" group="detailed_info">
              <arguments>
                <argument translate="true" name="title" xsi:type="string">Product Question</argument>
              </arguments>
          </block>
        </referenceBlock>
    </body>

And all I need is attributes.php file as the same as core folder in Mymodule/Block/Product/View/Attributes.php, copy all or replace some line of code if you want, change the namspace and you get it

edited body
Source Link
7ochem
  • 7.6k
  • 14
  • 52
  • 80

Finally i got it: 
In catalog_product_view:

catalog_product_view:
    <body>
        <referenceBlock name="product.info.details">
        <block class="Vendor\ModuleName\Block\Product\View\Attributes" name="product.question" template="product/view/attributes.phtml" group="detailed_info">
            <arguments>
            <argument translate="true" name="title" xsi:type="string">Product Question</argument>
            </arguments>
        </block>
        </referenceBlock>
    </body>

And all iI need is attributes.php file as the same as core folder in Mymodule/Block/Product/View/Attributes.php, copy all or replace some line of code if you want, change the namspace and you get it

Finally i got it: In

catalog_product_view:
    <body>
        <referenceBlock name="product.info.details">
        <block class="Vendor\ModuleName\Block\Product\View\Attributes" name="product.question" template="product/view/attributes.phtml" group="detailed_info">
            <arguments>
            <argument translate="true" name="title" xsi:type="string">Product Question</argument>
            </arguments>
        </block>
        </referenceBlock>
    </body>

And all i need is attributes.php file as the same as core folder in Mymodule/Block/Product/View/Attributes.php, copy all or replace some line of code if you want, change the namspace and you get it

Finally i got it: 
In catalog_product_view:

    <body>
        <referenceBlock name="product.info.details">
        <block class="Vendor\ModuleName\Block\Product\View\Attributes" name="product.question" template="product/view/attributes.phtml" group="detailed_info">
            <arguments>
            <argument translate="true" name="title" xsi:type="string">Product Question</argument>
            </arguments>
        </block>
        </referenceBlock>
    </body>

And all I need is attributes.php file as the same as core folder in Mymodule/Block/Product/View/Attributes.php, copy all or replace some line of code if you want, change the namspace and you get it

Source Link

Finally i got it: In

catalog_product_view:
    <body>
        <referenceBlock name="product.info.details">
        <block class="Vendor\ModuleName\Block\Product\View\Attributes" name="product.question" template="product/view/attributes.phtml" group="detailed_info">
            <arguments>
            <argument translate="true" name="title" xsi:type="string">Product Question</argument>
            </arguments>
        </block>
        </referenceBlock>
    </body>

And all i need is attributes.php file as the same as core folder in Mymodule/Block/Product/View/Attributes.php, copy all or replace some line of code if you want, change the namspace and you get it