Magento 2

Sovrascrivere un file phtml in un modulo Custom

Metodo 1 : Utilizzare un Plugin Vedi come creare un Plugin per Magento 2 in questo articolo >>> app\code\[Vendor]\[Namespace]\etc|di.xml namespace [Vendor]\[Namespace]\Plugin\Magento\Customer\Widget; class Taxvat { public function beforeToHtml(\Magento\Customer\Block\Widget\Taxvat\Interceptor $block) { $block->setTemplate(‘[Vendor_Namespace]::widget/taxvat.phtml’); } }

Read More