Magento 2 product page include custom phtml file before reviews section
-
20-02-2021 - |
Solution
add below code In catalog_product_view.xml in your theme
<?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>
<referenceContainer name="content">
<block class="Magento\Framework\View\Element\Template" name="customblock" template="Magento_Theme::html/custom.phtml" before="product.info.review"/>
</referenceContainer>
</body>
</page>
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange