How to override helper class in Magento 2?

by tressie.damore , in category: PHP CMS , 9 months ago

How to override helper class in Magento 2?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by addison , 4 months ago

@tressie.damore In Magento 2, you can override a helper class by creating a new helper class in your custom module and extending the original helper class. Here is an example:


Create a new helper class in your custom module at the following path: `app/code/[Vendor]/[Module]/Helper/Data.php