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
474 views

Overriding an overriden core model

I've followed some tutorials and referenced some questions on here yet my problem still festers. Magento version is CE 1.9.1.1 The company I work for has purchased an extension that overrides ...
0
votes
0answers
487 views

Override protected _toHtml() method

I am trying to override _toHtml() method of class Mage_CatalogSearch_Block_Autocomplete like below : app/etc/modules/Custom_Autocomplete.xml <?xml version="1.0" encoding="UTF-8"?> <config&...
0
votes
0answers
55 views

In block getModel error?

I have Block question class Question extends \Magento\Framework\View\Element\Template implements \Magento\Widget\Block\BlockInterface in function public function __construct( \...
0
votes
1answer
313 views

How to rewrite model Mage_Catalog_Model_Product_Attribute_Backend_Media?

I'm re-writing catalog/product_attribute_backend_media model in my module using folllowing configuration <global> <models> <catalog> <...
0
votes
1answer
85 views

Customer Class Rewrite Magento Enterprise Edition

I am facing a strange issue. Bascially I need to rewrite the customer authentication logic. So as to rewrite authenticate() method I have created a small module. The code for the module is as below: ...
0
votes
2answers
579 views

Help overwritting some model file and block of wishlist

I'm trying to override some files of wishlist core module. This is my config.xml file: <?xml version="1.0"?> <config> <modules> <Srh_Wishlist> <...
0
votes
0answers
170 views

how do overriding Block with template has changed?

I want to override the block : <block class="Magento\Catalog\Block\Product\View" name="product.info.addtocart.additional" as="product.info.addtocart" template="product/view/addtocart.phtml"/> ...
0
votes
1answer
327 views

Overriding adminhtml form container

I want to override the form container in import section of admin. here is my config.xml : <global> <blocks> <editimport> <class>...
0
votes
1answer
83 views

access parent class on class overwrites in magento, from a sibling

It is required to overwrite customer_resource class. I added required config.xml options for resource rewriting, but when overwritten class method calls parent class method from itself, it actually ...
0
votes
2answers
553 views

How to override phtml using custom module

I want to override two phtml one is product view.phtml and another one is addtocart.phtml I m trying this code: <catalog_product_view> <reference name="product.info"> <...
0
votes
0answers
757 views

Varien's product.js method override is not working

I want to override initPrices method. For this in js folder i have created directory scommerce and in that directory created file product.js In product.js file code to override is as following: ...
0
votes
1answer
462 views

Rewriting price filter

I need to rewrite how filter looks, but there's no specific template for that the label rendering in Magento core, so what's the best way to edit how it looks? The code in Catalog/Model/Layer/Filter/...
0
votes
3answers
840 views

Overriding Magento Sitemap Model Class

I try to override Mage_Sitemap_Model_Resource_Catalog_Product class. Here is my files: File \magento\app\etc\modules\Own_Sitemap.xml <?xml version="1.0" encoding="UTF-8"?> <config&...
0
votes
1answer
529 views

Overwrite community model file

I try to overwrite the Exportorders.php in my extension which is located here: /app/code/community/Raveinfosys/Exporter/Model/Exportorders.php I created my own extension now in /app/code/local/...
0
votes
1answer
36 views

Filter payments of Buckaroo

I wrote an observer that filters payments based on another post from here. This works fine for Magento's default payment methods but not for the methods in Buckaroo and this is because Buckaroo has it'...
0
votes
0answers
559 views

Magento overwrite payment information block

I'm writing custom checkout section and I'm trying to overwrite payment information section of Magento and use existing methods defined in Mage_Payment_Block_Form_Container. What I'm doing? config....
0
votes
1answer
2k views

Navigation menu : page.xml doesn't call the overridden class (topmenu.php)

EDIT : solved by Jonathan Hussey. See at the end of post (or below) for another question if you want to help me about overridding template and layout :) subsidiary question : Can I override page.xml, ...
0
votes
2answers
2k views

override core files for inserting admin menu or adding it on extension

I have \app\code\core\Mage\Catalog\etc\adminhtml.xml where I have the admin menu and I want to have a sub menu for my manage products item: <products translate="title" module="catalog"> ...
0
votes
0answers
67 views

What is the best way to edit your Magento site's toplinks block in the top right hand corner, WITHOUT editing core files? [duplicate]

This is the block which contains "My Account", "Log In/Log Out" etc by default. I've seen a few suggestions on how to do this, but I haven't seen anything complete that doesn't involve editing core ...
0
votes
1answer
493 views

Trying to override a community pool template

So, I am trying to override a template from an extension we have installed. This is the template location: app/design/frontend/enterprise/default/template/affiliatepluscoupon/affiliatepluscoupon....
0
votes
1answer
288 views

How to override js file in lib folder for admin theme?

I need to override js located in lib/web/mage/backend in Magento/backendtheme. Basically i should get modified js in static content for admin theme.
0
votes
1answer
550 views

Magento 2: How to redirect from Model?

I have below code. I'm overriding Paypal Express 1 function. magento\app\code\Custom\Module\Model\Api\Nvp.php namespace Custom\Module\Model\Api; class Nvp extends \Magento\Paypal\Model\Api\Nvp { ...
0
votes
1answer
573 views

sales order grid custom column filter QLSTATE[42S22]: Column not found: 1054 Unknown column

Here is the class to rewrite sales order grid adding email column, there is an error for filtering by this email column SQLSTATE[42S22]: Column not found: 1054 Unknown column 'email' in 'where ...
0
votes
2answers
3k views

How to override adminhtml phtml files in magento2

How to override adminhtml phtml files in magento2? I want to place a custom text in customer edit page welcome to magento2. For this I have created a theme and placed app\design\adminhtml\Vendor\...
-1
votes
1answer
2k views

Rewrite Helper Class that implements interface

What I want to do is removing the price from the options in the bundled products in the cart. I made a folder Mage/Bundle/Helper/Catalog/Product/Configuration.php in my local folder and i copy/paste ...
-1
votes
5answers
3k views

How to override layout file in custom theme in magento 2?

I want to override catalog_product_view.xml file which is located in vendor/magento/module-catalog/view/frontend/layout/catalog_product_view.xml file. I created below files - app/design/frontend/...
-1
votes
2answers
242 views

Override custom template

I have a custom theme. In a controller is called a template from the custom theme, that overrides the default template: $this->getLayout()->getBlock('root')->setTemplate('page/2columns-left....

1 20 21 22 23 24