Questions tagged [overrides]

Questions about overriding core features (class rewrites, local code pool, theme overrides). For URL rewrites, use the "url-rewrite" tag instead.

Filter by
Sorted by
Tagged with
1
vote
0answers
11 views

Magento 2 - How to override knockoutjs template which is already overriden from a third party module?

I try to override the knockoutjs template vendor\amasty\module-single-step-checkout\view\frontend\web\template\checkout\summary\item\details.html from my own Theme. The module amasty\module-single-...
0
votes
1answer
33 views

How to override core files into custom module app/code?

I am added a custom attribute in my wishlist knockout core file, Code : https://codeshare.io/5ZlEv7 Line Number: 142 I want to override into my custom module, I am created a custom module, how to ...
0
votes
1answer
11 views

Magento 2 - Product gallery magnifier not working after overriding Gallery class

My magnifier is not showing anymore IF THE PRODUCT HAS MULTIPLE IMAGES, after I have overriden the gallery class! I have enabled the magnifier in THEME\etc\view.xml: <?xml version="1.0"?&...
0
votes
1answer
25 views

How to override adminhtml html file

I need to overwrite the file vendor/magento/module-customer/view/adminhtml/web/template/default-address.html. I have tried creating a custom module and adding the file in app/code/myvendor/mymodule/...
0
votes
1answer
43 views

Override \Magento\CatalogSearch\Model\Advanced in Magento 2.4

Update I think this is where it is going wrong: ItemCollectionProviderInterface $collectionProvider = null, ProductCollectionPrepareStrategyProvider $productCollectionPrepareStrategyProvider = ...
0
votes
1answer
28 views

How to override third party module css into custom module

I am using a third-party module, i did model and template files override, how to override CSS in the custom module. Under web/css folder i am created three custom less file, how to rewrite from the ...
0
votes
1answer
33 views

Magento 2 Override Config.xml File to change the status of Braintree Module

I am trying to override config.xml file of vendor/paypal/module-braintree-core/etc module to changed the "order_status" value from "processing" to "pending" . I have ...
1
vote
1answer
20 views

Magento 2 error : Incompatible argument type: Required type: \Magento\Framework\Registry. Actual type: array; File:

Code use Magento\CustomerBalance\Helper\Data; use Magento\Framework\App\ObjectManager; use Magento\Framework\Registry; use Magento\Framework\View\Element\Template; use Magento\Framework\View\Element\...
0
votes
1answer
45 views

Override a model not working Magento 2

I tried to override a model in Magento\Quote\Model\Cart\Data\CartItem but I cannot override it. here is my di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/...
0
votes
1answer
24 views

Magento 2 : override Magento_Sales::email/items/creditmemo/default.phtml

What is the best way to override below template file in module ? Magento_Sales::email/items/creditmemo/default.phtml
1
vote
1answer
34 views

Override Magento\Sales\Model\Order\Email\Sender\CreditmemoSender Magento 2

How to override below file in module ? Magento\Sales\Model\Order\Email\Sender\CreditmemoSender.php
1
vote
1answer
21 views

Magento2.4.2 own module class does not appear in generated (no error while setup:ci:compile)

sorry to bother but I'm really stuck with a strange problem. My goal is to have the invoice PDF changed but the class I've created to do this (which is currently a bunch of code from another guy) does ...
0
votes
2answers
40 views

Can't override list.phtml in Magento 2.4

I try to override the list.phtml in Magento 2.4 but it's not working. Here is the path to my new file : app/design/frontend/Magento/timeote/Magento_Catalog/templates/product/list.phtml All the other ...
0
votes
0answers
8 views

Listing page product grid design not applied on home page

I am trying to add category products on the home page using widgets, the product grid is shown without design what I made on the listing page. Listing page product grid : I moved wishlist icon from ...
0
votes
0answers
11 views

How can I override a Collection.php file from a 3rd party plugin?

I have 2 plugins that are clashing with each other. I figured out a fix, and I have to change a collection.php file, and I don't want it to get overwritten in a future plugin update. How can I get ...
0
votes
1answer
30 views

Issue overwriting a third party extension?

I'm trying to overwrite only this file but I'm having no luck in it working, am I doing something wrong? vendor/mageplaza/module-lazy-loading/Plugin/Model/Template/Filter.php app/code/MySite/...
0
votes
1answer
32 views

How to override top menu and add icon in Magento 2?

How to override top menu and add icon in Magento 2? I'm using Magento v2 and want to have icons added to each category menu item.? How can I override this? I added the Attribute for icon in category (...
0
votes
0answers
26 views

Magento 2: Override Magento Framework class Not working

I want to override this class function in Magento 2 \Magento\Framework\HTTP\PhpEnvironment\Request::getServer() etc/module.xml <module name="Test_Override" setup_version="1.0.0"&...
0
votes
1answer
18 views

How to override the square extension on the checkout page?

Im trying to customize the public_html/vendor/square/module-squareup-omni/view/frontend/web/template/payment/square.html I made override, but it doesn't work /public_html/app/design/frontend/Vendor/...
1
vote
2answers
89 views

Magento 2 how to override theme-adminhtml-backend view.xml in custom module?

By default Magento 2 creates more than 20 duplicates of each product image..! (why???) I have got this down to 5 using view.xml in my theme, but there is one extra set of image sizes I need to change, ...
0
votes
2answers
48 views

Magento 2 How to override Magento\Catalog\Block\Product\View to add getStoreCode () function

I need to overwrite the block Magento\Catalog\Block\Product\View to add the getStoreCode () function and be able to call it from a phtml file that uses this block. I have followed a tutorial to create ...
1
vote
1answer
41 views

Adding a BCC and CC (sales person) to the welcome email Magento 2

I've edited this function below and i'm overriding this method in app/code/FF/Customer/Model/EmailNotification.php natively this file exists in vendor/magento/module-customer/Model/EmailNotification....
0
votes
1answer
26 views

How to override phtml / add a static image to .phtml file from the extension?

I'm try to add a banner image to the list.phtml, but it's not displaying. This is what i did: step 1: copied /public_html/vendor/mirasvit/module-rewards/src/RewardsCustomerAccount/view/frontend/...
2
votes
1answer
23 views

HTML files not being overwritten in app/Design

I'm trying to override html files the same way that I would override a phtml file, but it doesn't seem to be working. Same with Javascript. I'm trying to change some logic in minicart.js. I put my ...
0
votes
0answers
54 views

Magento2: How to override the Magento\Payment\Gateway\Command\GatewayCommand?

Because I want to send Notification with response error code by Payment Gateway) when transactions are isValid. And I found the Magento\Payment\Gateway\Command\GatewayCommand do the command with ...
0
votes
1answer
31 views

how do I override Magento newsletter subscriber?

I have a hard time to work out the di.xml, I am trying to override a function of this file vendor\Magento\module-newsltter\Model\Subscriber.php anyone can tell me what should I do? I think I have ...
0
votes
0answers
11 views

Deactivating and reactivating plugins on-the-fly

I am currently developing on a VM with a Ubuntu host machine - it is super slow. I am currently trying to implement a plugin but the magento s:d:c command takes 6 minutes. Within examples for Plugins ...
0
votes
2answers
46 views

How can i override abstract class protected function

I want to override abstract class Magento\Sales\Controller\Adminhtml\Order\Create of the below method protected function _processActionData($action = null){ } I have tried using preference but it ...
0
votes
1answer
31 views

Override third party module service contract

There is third party custom module. For add entries they used service contract entities. I need to add one more entry. Don't want to touch third party module. How can i extend their interface and ...
0
votes
1answer
94 views

Magento 2 - how override some files of module-catalog-search in custom theme

I would override this files in my custom theme (app/design/frontend/parent/MyCustomTheme/..) vendor/magento/module-catalog-search/Model/Adapter/Mysql/Dynamic/DataProvider.php vendor/magento/module-...
0
votes
1answer
36 views

Override a class doesn't work for his child?

I want to override this class : 'Magento\Checkout\Block\Cart\Item\Renderer' This class has a child like : 'Magento\ConfigurableProduct\Block\Cart\Item\Renderer' So i use <preference for="...
0
votes
1answer
99 views

Is it possible to override a vendor module's di.xml file in Magento2?

So a module installed via composer lives in vendor/module, and I'd like to change its etc/di.xml from this: <virtualType name="customCategoryCollection" type="Magento\...
2
votes
1answer
152 views

How to override the Catalog Widget PHTML file into custom module?

I need to override the widget template file /vendor/magento/module-catalog/view/frontend/templates/product/widget/new/content/new_grid.phtml but in xml file the phtml file was not mentioned at any ...
0
votes
1answer
35 views

how to override a method with plugin

Hi I'm using very nice plugin 'login-as-customer' by magefan. I'd like to override an execute method of login-as-customer. this is first time to try overriding third pirty's controller so I stuck now. ...
2
votes
2answers
34 views

Can we override a core plugin

I want to override a core plugin in Magento\Sales\Controller\Order\Plugin -> Authentication.php Is this even possible to achieve.
1
vote
2answers
106 views

Magento2 override addto wishlist.phtml

<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd&...
1
vote
1answer
47 views

Magento 2 - How to override frontend javascript file

I need to overwrite a javascript file from a custom module at: vendor\amasty\module-single-step-checkout\view\frontend\web\js\model\one-step-layout.js because I need to replace a code line in it to ...
0
votes
0answers
24 views

How to Override abstract class protected function for admin field?

https://github.com/magento/magento2/pull/19107/commits/4289c533d0aa7d151b9e3e42f3fdcb9932a785ea need to apply this solution to my store but unable to override and change this code line. Need to ...
0
votes
1answer
12 views

Magento 1 : Issue with Template override

How to override this file in magento 1 using module ? app/design/adminhtml/default/default/template/sales/order/create/items/grid.phtml
0
votes
1answer
13 views

logo email doesn't show on mailbox of the customer

in my case i am using magento 2.2.x , so i want to override the file "vendor/magento/module-email/view/frontend/email/header.html" in order to add a logo in the email to show the company's ...
0
votes
1answer
170 views

Magento 2 - override knockoutjs template located in base folder

I need to change the value of the maxinput field in the knockoutjs template vendor\magento\module-ui\view\base\web\templates\form\element\input.html so I have to replace the template with my own ...
0
votes
1answer
34 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 * ...
0
votes
1answer
46 views

How to override a controller using Plugin?

I want to override abstact class controller Magento\Sales\Controller\AbstractController\Reorder.php using Plugin. How can I do that? di.xml <?xml version="1.0"?> <config xmlns:xsi=&...
0
votes
0answers
24 views

Stuck with a Magento override problem

Recently upgraded to Magento enterprise edition 2.3.5-p2, I have a problem that occurs with a specific module during compilation: SummaTheme\Widgets\Block\Banners\Product Incompatible ...
0
votes
3answers
98 views

Overriding “base” layout not working

I'm reading the documentation here. My goal is to remove the "Customize and Add to Cart" button, for a bundled product The path for the layout can be found here /vendor/magento/module-gift-...
0
votes
1answer
24 views

How Can I override vendor/magento/magento2-base/lib/web/extjs/ext-tree.js file for backend in magneto2?

How Can I override vendor/magento/magento2-base/lib/web/extjs/ext-tree.js file for backend? I want to customize this file which will effect on backend admin
0
votes
1answer
72 views

Magento 2 - Override luma themes module less file

I try to override css code from the file vendor\magento\theme-frontend-luma\Magento_Checkout\web\css\source\module\_cart.less: .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @...
0
votes
1answer
42 views

Override magento 2 module file

I'm trying to override a file in my theme, but its not showing. The file is located in vendor/mollie/magento2/view/frontend/web/template/payment/creditcard-with-components.html. location of my file is ...
0
votes
0answers
39 views

Magento 2.3.5 - Overriding registerRefundNotification in Magento\Sales\Model\Order\Payment.php

I'm trying to override the registerRefundNotification function to stop credit memos from automatically being created for refunds. My di.xml file: <?xml version="1.0"?> <config xmlns:...
0
votes
1answer
159 views

Magento 2 PWA overwrite Gallery component

I am able to overwrite modify the following components: Main, App, Footer, Header, Logo, Routes, CategoryTree by following Doc: ref:https://magento.github.io/pwa-studio/tutorials/pwa-studio-...

1
2 3 4 5
26