Questions tagged [overrides]
Questions about overriding core features (class rewrites, local code pool, theme overrides). For URL rewrites, use the "url-rewrite" tag instead.
1,324 questions
0 votes
1 answer
52 views
How to override adminhtml js file in custom module?
I need to override below file in my custom module Ayakil_CatalogPermissionsExtended vendor/magento/module-catalog-permissions/view/adminhtml/web/category_edit.js The custom module was created and ...
0 votes
1 answer
53 views
How to override TierPriceBox.php?
I would like to override vendor/magento/module-configurable-product/Pricing/Render/TierPriceBox.php in my extension, but failed to do so so far. So, how can I override that class? Thanks!
0 votes
2 answers
66 views
In Magento 1.9.4.5 problem overriding controllers
I have followed few instructions found in this forum, but I must be missing something. I am trying to override Customer controller, specifically _welcomeCustomer method. Here is what I have got: ...
0 votes
1 answer
120 views
Is it possible to override type configuration in the di.xml of a module in Magento2?
I want to override the file "Fooman\EmailAttachments\Observer\AbstractSendInvoiceObserver". Here is the code in the di.xml. <!-- module introduced preferences --> <preference for=&...
0 votes
2 answers
100 views
Difficulty Overriding Magento 2 File
I am new to coding in Magento 2. I am trying to override a file using this guide https://webkul.com/blog/overriding-rewriting-classes-magento2/, and my file compiles without error, but changes don't ...
0 votes
1 answer
191 views
Magento 2 how to update requirejs-config.js
We are using the Magento 2.3.5 version we want to update the version from 3.79.1 to 3.97.0 in requirejs-config.js file-path - vendor/gene/module-braintree/view/base/requirejs-config.js when we are ...
2 votes
3 answers
110 views
Extra parameters passed to parent construct $directoryHelper
I am getting the following error on di compile: **Extra parameters passed to parent construct $directoryHelper** That's the original code: class PreviewButton extends \Magento\Config\Block\System\...
0 votes
1 answer
63 views
Getting error after overwrite core file of sitemap module. magento2
I have successfully overwrite core file: Magento\Sitemap\Model\ResourceModel\Catalog\Product but getting error in public function getCollection($storeId) for this: $this->scopeConfig->isSetFlag ...