Domanda

I want to call phtml file in static block that uses page builder in Magento 2 EE.

È stato utile?

Soluzione

In magento2 EE we cant call phtml in block or dynamic block as it uses page builder,we need to create custom content-type follow below tutorial to create custom-content type link

Altri suggerimenti

These steps work for Me:

  1. Add Row
  2. Add HTML Code element.
  3. Call phtml as we do in open source {{block class="Magento\Framework\View\Element\Template" template="Vendor_Module::product.phtml"}} under HTML Code element. `
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a magento.stackexchange
scroll top