Access a variable declared in a phtml from another phtml in Magento2
Having two blocks in the catalog_product_view.xml file like this: <block class="Magento\Catalog\Block\Product\View" name="product.info.custom-product-attributes" template="product/view/custom-product-attributes.phtml" after="prod…
Leggi l'articolo originale