Jump to content


Photo

How to Override a phtml File Using a Custom Module in Magento 2

magento magento 2 magento extension magento ecommerce

  • Please log in to reply
No replies to this topic

#1 Meetanshi

Meetanshi

    Advanced Member

  • Members
  • PipPipPip
  • 221 posts

Posted 23 July 2019 - 10:17 AM

Customizing the core Magento 2 functionality is a bad coding practice. The solution is to override a phtml file using a custom module in Magento 2.

 

Methods to Override a phtml file using a custom module in Magento 2:
1. with plugin
2. with XML
 


looking for the best presta addons with outstanding support? check this: PrestaShop Modules




Also tagged with one or more of these keywords: magento, magento 2, magento extension, magento ecommerce

IPB Skin By Virteq