@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
@tressie.damore
To override a helper class in Magento 2, you need to follow these steps:
1 2 3 4 5 6 |
namespace VendorModuleNameHelper; class Data extends OriginalNamespaceHelperData { // Override the methods you want to modify } |
1
|
php bin/magento cache:clean |
That's it! Your new helper class should now override the original helper class in Magento 2.