Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
332 views

Override a helper using Plugin

I have been trying to use plugin to override Magento\Sales\Helper\Reorder.php. I have added a comment inside the code what I would like to change. /** * Check is it possible to reorder * ...
Magento_learner's user avatar
0 votes
2 answers
711 views

Unable to override Helper Class in Magento2

I have used below code to override helper class. Vendor/Module/etc/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=...
Jafar Pinjar's user avatar
  • 1,961
1 vote
1 answer
140 views

Captcha Helper method override not working in Magento2

Need to override method getImgUrl() from vendor\magento\module-captcha\Helper\Data.php but not success app/code/YourCompany/YourModule/etc/di.xml <config xmlns:xsi="http://www.w3.org/2001/...
Danes's user avatar
  • 81
0 votes
1 answer
4k views

Magento 2 : How to solve a message "Recoverable Error: Object of class"?

I've created a simple helper override, with just a constructor method using a var dump. When I try to access the contact page I see a message error like that below. I didn't implement anything just ...
Rafael Corrêa Gomes's user avatar
0 votes
1 answer
1k views

How to override core helper in magento 2?

I writed a preference for class Magento\Catalog\Helper\Image but i got this error: Recoverable Error: Argument 4 passed to Magento\Checkout\Block\Cart\Sidebar\Interceptor::__construct() must be ...
ali gh's user avatar
  • 731