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
0
votes
1answer
266 views

Problem to override Product/attribute/backend/Media

I have a problem to override Mage_Catalog_Model_Resource_Product_Attribute_Backend_Media. Here is what I did: config.xml <?xml version="1.0"?> <config> <modules> <...
0
votes
1answer
510 views

Magento override the collect function of “Mage_Sales_Model_Quote_Address_Total_Tax” not working

Please look at the module files, which I have created in order to override the Mage_Sales_Model_Quote_Address_Total_Tax class's collect method. app\code\local\Vs\CustomTax\etc\config.xml: <?xml ...
0
votes
1answer
250 views

can't override “modal-slide.html”

I'm trying to override modal-slide.html in my base theme so I place that file at: app/design/frontend/<vendor>/base/Magento_Ui/web/templates/modal/modal-slide.html But Magento just won't pick ...
0
votes
1answer
203 views

Over ride the catalog product template in magento 2 not working

I am trying the magento 2 and over ride the product details template as follows: app\design\frontend\Vendor\oppo\Magento_Catalog\templates\product\view/details.phtml and added some code there but it ...
0
votes
3answers
1k views

Magento 2, minicart, change “Go to Checkout” text to “Checkout” only

I have been trying to change Go to Checkout text to Checkout in mini cart in Magento 2. I have new theme applied and placed override file as follows: app/design/frontend/Darkmage/newtheme/...
0
votes
2answers
847 views

How Can Override Block (\Magento\Catalog\Block\Product\View\Options\Type\Select.php)

<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <preference ...
0
votes
1answer
602 views

Magento 2 shipping method is not overriding

I am trying to override UPS shipping method. But it is not override. <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...
0
votes
1answer
403 views

Magento 2 : Overriding CatalogWidget's ProductsList block

I'm trying to override Magento_CatalogWidget's ProductsList block the following way, but unsuccessfully. I have created a new module (app/code/MY_NAMESPACE/CatalogWidget), its tree structure is: ├── ...
0
votes
1answer
1k views

Make Adjustments To final_price Render Class On Product Pages Magento2

I am trying to change the render class for the final_price renderer on the product pages in Magento2. I have found the following block inside the vendor/magento/module-catalog/view/base/layout/...
0
votes
2answers
152 views

Overriding .phtml template

What is the recommended way to override the contact .phtml template. All I want to do is add HTML tags around the form so I can use bootstrap to give it a nice layout. As far as I know there is no ...
0
votes
2answers
85 views

I need override a model in third party extension

I'm doing this to override the model in other extension, but doesnt works <global> <modules> <!--<sitemap_resource> <rewrite> &...
0
votes
0answers
59 views

Can't overwrite js filed in Magento 2

I tried to overwrite **date.js(module-ui/view/base/web/js/form/element)** and **range.js (module-ui/view/base/web/js/grid/filters)**in my custom theme but it's not working. it not take me the changes ...
0
votes
1answer
92 views

Custom module to override CategoryController.php not working

To dodge the max of 1000 products in a category I tried to override CategoryController.php. I think I did everything right, but the module doesn't work. I'm working with Magento 1.7.0.2 Community ...
0
votes
0answers
60 views

Plugin issue in Magento 2

I created an Plugin to change the category links from ?catId=xxx to the real category name. My Plugin look like this: class CategoryPlugin { /** * Url * * @var \Magento\...
0
votes
0answers
106 views

Magento 2: How to override Item Info of MiniCart

I would like to override Item Info of Mini Cart here as well as on Checkout Sidebar I need to apply changes on price. Which files need to override & function?
0
votes
0answers
68 views

Magento Enterprise controller override issue

I am Trying to override magento controller but no luck Here is my config.xml <?xml version="1.0"?> <config> <modules> <Ktpl_Custom> <version>0.1....
0
votes
2answers
267 views

Magento Controller override Multiple times

I am trying to override Mage_Checkout's CartController's action addAction() but its not happening to override. Following is the scenario, Community Module overriding just "protected function ...
0
votes
1answer
269 views

Overridden Cart block does not load template

I'm trying to customize a Magento 2.1 cart page both by overriding the Block Cart and accessing some of the overridden elements in a new phtml template. I hit a roadblock after overriding the Cart ...
0
votes
1answer
1k views

Override Less file

im work on a new magento 2 page. Now i want change a css class over my custom theme.less file. But how can i override the css class? I want override the padding from the .header.content class which ...
0
votes
1answer
316 views

Magento override customer address controller not working

I am trying to override customer address controller but its't overrides Config.xml <frontend> <routers> <salesperson> <use>standard</use> ...
0
votes
1answer
332 views

Override local extension that overrides core

<global> <models> <sales> <rewrite> <order_pdf_invoice>Local_Extension_Model_Sales_Order_Pdf_Invoice</order_pdf_invoice> </rewrite> ...
0
votes
0answers
295 views

Magento 2 : Layered Filter Navigation Overwrite

I overwrite Layered Filter navigation, and is working in localhost but not working on server. On server its remove default(core) layered navigation filter (No Filter block called on category view ...
0
votes
1answer
142 views

How to override email/items.phtml and email/items/default.phtml to include product url and thumbnail in magento2.1.3

I have developed one module in magento-2.1.3. on the name of Shelltag/SalesOrder/. I want to override items.phtml file and default.html from module-sales/ in this. I don't want to edit core file. So, ...
0
votes
0answers
121 views

Coupon code discount prirority issue in magento 2

I create 2 coupon codes : coupontest1 which have the discount 50$ and priority 0, and coupontest2 which have the discount 40$ and the priority 10. Now if a apply the first coupon code with ...
0
votes
2answers
825 views

Override Magento\Catalog\Block\Product\AbstractProduct getAddToCartUrl() function

In Magento 2 I want to override Magento\Catalog\Block\Product\AbstractProduct I just want to pass my custom add to cart url before passing it to magento. this function getAddToCartUrl($product, $...
0
votes
0answers
806 views

Override order_new_guest.html email template in Magento 2

In my custom module i want to override new order email template which will be sent after customer placed an order, what i've done so far are created the file in app/design/namespace/module/...
0
votes
1answer
355 views

how to set the overridden block file to template file in magento 2

i have overridden the Magento\Customer\Block\Form\Register block .now my new block file Webkul\Hello\Block\Form\Register customer_account_create.xml <referenceContainer name="content"> ...
0
votes
1answer
438 views

Magento 2: How to Override Block in Custom Module

I want to overide cart item Renderer Block in custom extension. This is my Block file but this is not work <?php /** * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for ...
0
votes
2answers
3k views

Magento 2 : Override layout.xml File Within Custom Module

Looking at the Magento 2 docs, you can override a base/core layout.xml file - http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/layouts/layout-override.html Is it possible, to overide within ...
0
votes
0answers
409 views

Magento 2 : How to override product detail page in custom module

I want to override product detail page in custom extension for all types of product. I need some changes around below area Any One know about this, please guide me
0
votes
2answers
621 views

Magento2 - trying to update module template file not working

Template path hint is showing below given path for that file which i want to overwrite. /home/tunersto/public_html/mysite.com/app/code/Nwdthemes/Revslider/view/frontend/templates/revslider.phtml And ...
0
votes
2answers
267 views

Can't override only template on custom module (uppercase problem)

The problem is I have the vendor name capitalized, and then, don't know why the overrides don't work. Only when you want to change the template but still using default block. For example: Override ...
0
votes
0answers
23 views

If I write an entire system based on Magento2, can I sell it to another individual? [duplicate]

Based on Magento2 license agreement, if I write an entire system based on Magento2 platform, will it be considered as my legal property and can I sell my entire system to another individual ? ...
0
votes
1answer
58 views

Magento 1.9.3 category collection

I want to sort all categories & subcategories with a custom attribute to show on front end. So I need to modify the code. Can anyone tell me the file from where the all categories & ...
0
votes
1answer
502 views

Controller override issue Magento 2

I am trying to override customer/account/editpost controller. I am getting error Recoverable Error: Argument 1 passed to Magento\Customer\Controller\Account\EditPost::__construct() must be an ...
0
votes
0answers
26 views

Backend CSV Update Partially Working

When i try to update all products QTY = 0, Actually its uploading and successfully uploaded, and go to back end QTY column is 0, the terrific error is, stock availability still "in stock", (Actually ...
0
votes
1answer
180 views

Css file is generated in pub/static folder but looking at source file in browser it is not listed

After deploying my theme I see that the mycustom-m.css file is generated at /pub/static/frontend/Vendor/mytheme/en_US/css/mycustom-m.css, but it does not make any changes. Looking at the source file ...
0
votes
1answer
361 views

What is the best way to override _initProduct() in module-checkout\Controller\Cart\Add.php

What is the best way to override _initProduct() function in: vendor\magento\module-checkout\Controller\Cart\Add.php I have this in my di.xml: <type name="Magento\Checkout\Controller\Cart\Add"&...
0
votes
1answer
4k views

How to “override” default Magento2 “Luma” Theme with a Custom Theme

I created a custom Theme with "Luma" as its parent. Now I want to override .less / css stylings. (for example "header" background color) Thats the Folder structure I have: I did copy "_module.less" ...
0
votes
1answer
4k views

Magento 2 Override minicart.phtml template?

This is the Magento core template path: vendor/magento/module-checkout/view/frontend/templates/cart/minicart.phtml I would like know how to override this template with my theme.
0
votes
2answers
35 views

Rewritting adminhtml block issues

This is my xml: <global> <blocks> <mynamespace_mymodule> <class>Mynamespace_Mymodule_Block</class> </mynamespace_mymodule> &...
0
votes
1answer
45 views

How to override template in magento 2.0?

Based on the theme development documentation http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/themes/theme-create.html here I could create a space for new theme in magento 2.0 but overriding ...
0
votes
1answer
160 views

Override Magento Catalog Detail view and List view

i am using Magento CE 2.1 version, i am trying to override Product detail view (Catalog). My folder structure is What are the files to override for Detail view and List view?
0
votes
1answer
136 views

When extending Mage_Tax_Helper_Data admin menu Sales>Taxes disappears

I'm trying to extend properly the core class Mage_Tax_Helper_Data with a module named "smartvat". All seem ok, my config.xml file: <?xml version="1.0"?> <config> <modules> <...
0
votes
1answer
309 views

rewrite _prepareCollection and add custom attribute to filter for product grid

i want to rewrite the product grid like this protected function _prepareCollection() { parent::_prepareCollection(); $this->getCollection()->addAttributeToFilter('supplier', array('...
0
votes
2answers
3k views

Magento 2 - Can't Change Page Layout Columns With An Override Layout File

I am able to change the layout columns if I extend a page's layout file, but it won't work if I use an override layout file. What do you have to do to change a page's layout columns with an override? ...
0
votes
0answers
33 views

How to scope class overwrite to affect only within module?

When I overwrite a Model/Controller/Helper overwrite through <rewrite/> in my module, how can I do it such that the overriding of the classes is scoped within my module and those that declares &...
0
votes
0answers
266 views

How to override 'vendor/magento/module-catalog/etc/product_types.xml' in Magento 2.1?

In Magento 2.0 if you put the file vendor/magento/module-catalog/etc/product_types.xml inside your module's etc folder, it'll be overridden. But this same behaviour is not working in Magento 2.1. So ...
0
votes
0answers
1k views

extending Adminhtml Product edit page in Magento 2

In Previous Magento released versions (2.0.*) I have successfully extended and it's working fine. When comes to Magento 2.1.0 the same functionality not working. I have tried below code. If I went to ...
0
votes
0answers
228 views

Overriding a class : Mage_Catalog_Block_Product_View_Type_Configurable

I want to override Mage_Catalog_Block_Product_View_Type_Configurableclass. I have created one module : Ved_Catalog Here are my module files: Code from config.xml : <config> <global> ...