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
2 votes
1 answer
2k views

Overwrite community Model file?

I use the extension by raveinfosys to export orders from Magento. I changed some stuff in the ordering of the items, but I do not want to do this in the extension itself. I want to do it with an own ...
Torben's user avatar
  • 231
2 votes
2 answers
13k views

Override core checkout cart controller

I have already included a custom controller in my local module. The config.xml snippet for it is: <routers> <subscription> <use>standard</use> ...
Swetha Vaidyanathan's user avatar
2 votes
1 answer
91 views

Overwrite admin controller in version 1.6

I am trying to overwrite the controller located at: app/core/code/Mage/Adminhtml/controllers/Catalog/ProductController.php First of all I tried just making a copy in my local code directory app/local/...
beingalex's user avatar
  • 727
0 votes
0 answers
606 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....
amitshree's user avatar
  • 7,006
3 votes
2 answers
4k views

Overriding Contact Controller - No difference

After running through every tutorial on the internet about overriding core controllers I resort to posting here. Magento: 1.9.1.1 community Namespace: Tft Module Name: Customcontact Files: /app/...
Kai Qing's user avatar
  • 133
3 votes
2 answers
237 views

Overriding local modules from community pool

I have an extension in the local pool. I would need to override the Block in the module. Can I do it from the community pool. (yes, I know this is not how it should be done, but I'm making a small ...
Tero Lahtinen's user avatar
0 votes
2 answers
297 views

Extending Mage_Shipping_Model_Carrier_Freeshipping causes odd behavior

When the module is enabled, refreshing the cart page will sometimes return Fatal error: Call to a member function setStore() on a non-object in /var/www/html/site-magento19/public_html/app/code/core/...
tylersDisplayName's user avatar
1 vote
1 answer
589 views

how to have core login and overridden login at a same time?

I overridden login controller and placed it in my local directory. I have seperate login.phtml as well. It is working fine. But I would like to have core/Mage/ login as well. Below is my Mage\...
Anto S's user avatar
  • 1,417
1 vote
3 answers
399 views

Problem extending a Magento core class

I am trying to extend the Mage_Catalog_Block_Product_View class in app/core/Mage/Catalog/Block/Product/View.php To do that I declared a new module in app/etc/modules/Fkoessler_myProduct.xml: <...
fkoessler's user avatar
  • 195
0 votes
2 answers
3k views

How to disable navigation menu link

My magento version is 1.9 and i am using rwd theme. I want to remove link from the menu on homepage... I tried the following stuff but it didn't work: Create some folder as this path: app/code/local/...
karsh's user avatar
  • 11
0 votes
1 answer
774 views

Rewrite of block and helper for checkout getCheckoutUrl() not working

I'm trying to rewrite the getCheckoutUrl() functions in Mage/Checkout/Blocks/Onepage/Link.php and Mage/Checkout/Helper/Url.php but the rewrites don't seem to work. My config.xml file ...
Matt Flamm's user avatar
0 votes
1 answer
904 views

Extending an extension's controller

I am trying to extend an extensions controller so I can make changes without hacking about with the vendor's code. The extension's controller which I can trying to extend is /app/community/...
Goose84's user avatar
  • 2,581
1 vote
1 answer
154 views

htaccess rewrites domain redirects

I have been using this code to redirect visitors from a number of countries to domain#2 (using GeoIP), which works fine: RewriteCond %{HTTP_HOST} !^domain\.two$ [NC] RewriteCond %{ENV:...
Sparc's user avatar
  • 327
4 votes
1 answer
344 views

Overwrite Mage_Paypal_Model_Api_Nvp

I want to overwrite Mage_Paypal_Model_Api_Nvp in my custom_module. For this, I have follow following steps but after that also core file is calling. config.xml <models> <paypal> ...
Krupali's user avatar
  • 1,140
1 vote
1 answer
96 views

Overriding server-side validation rule from positive number to number in admin page

I am trying to change a validation rule from positive number to any number (so it allows negative numbers too) for the following field: [Admin Area] -> Promotions -> Catalogue Price Rules -> ...
Mex's user avatar
  • 386
1 vote
1 answer
192 views

How do I override “Mage_Customer_Model_Group” in Magento 1.4.1.1?

How do I override “Mage_Customer_Model_Group” in Magento 1.4.1.1 ? I've made a new module named Lpf_ModulePendingApproval. This module contains a class named "Lpf_ModulePendingApproval_Model_Group". ...
jolyqr's user avatar
  • 231
2 votes
1 answer
2k views

Call to a member function setTemplate() during rewrite Mage_Catalog_Block_Product_View_Options_Type_Select

i try to rewrite 'Mage_Catalog_Block_Product_View_Options_Type_Select' this catalog block but i got a error like Fatal error: Call to a member function setTemplate() on boolean in app/code/core/...
Renish Khunt's user avatar
2 votes
1 answer
230 views

Magento rewrite 'Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Options_Option' not working?

below is my config.xml files code with path. app/code/local/Eventprice/Meta/etc/config.xml <?xml version="1.0"?> <config> <modules> <Eventprice_Meta> ...
Renish Khunt's user avatar
2 votes
1 answer
219 views

Call to a member function setCanReadPrice() on boolean During rewrite Adminhtml Block

I've tried to rewrite 'Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Options_Type_Select' and 'Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Options_Option' Block but i got a error like. Fatal ...
Renish Khunt's user avatar
1 vote
1 answer
303 views

Magento rewrite 'Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Options_Type_Select' not working?

below is my config files code. app/code/local/Eventprice/Meta/etc/config.xml <?xml version="1.0"?> <config> <modules> <Eventprice_Meta> <version&...
Renish Khunt's user avatar
19 votes
3 answers
16k views

Magento 2: rewrite controller

how can i rewrite a controller (that's actually an action) in Magento 2? I tried, as instructed here like this: I have my own module called Namespace_Module with a di.xml file, that is taken into ...
Marius's user avatar
  • 198k
12 votes
5 answers
38k views

Mage::log() does not log in all files used by Magento?

I have overwritten Sitemap.php in app/code/local/Mage/Sitemap/Model/Sitemap.php. The file seems to be used, if I remove all contents, there's an error as expected. I copied the complete content of ...
Yorrd's user avatar
  • 828
1 vote
0 answers
88 views

create a button by Extends Mage_Adminhtml_Block_Sales_Order_View not show the button [closed]

I'm trying to add a button on sales order view.but nothing appears. this is my block in my config.xml PMC_Manutention_Block_Adminhtml ...
devopsmagento's user avatar
4 votes
2 answers
2k views

How to Override Mage_Catalog_Block_Product_View with a Custom Module

I am trying to override Mage_Catalog_Block_Product_View through a custom module in order to strip html tags out of the default meta description. I'm not sure what I'm missing or if I'm making any ...
Mike's user avatar
  • 61
3 votes
2 answers
3k views

Trying to rewrite Catalog Product Collection

I'm trying to rewrite the Magento Catalog Product Collection - basically I have a specific filtering rule that must be applied every time a product collection is loaded, so I'm figuring that putting ...
Liam Wiltshire's user avatar
2 votes
1 answer
76 views

Overriding Mage_Cms_Model_Resource_Page not working

I am trying to create my own module to override / extend Mage_Cms_Model_Resource_Page. This is what I have so far 1) Enable the module by creating /app/etc/modules/Namespace_ModuleName.xml <...
Goose84's user avatar
  • 2,581
2 votes
1 answer
2k views

How to overwrite magento Catalog search Result controller?

Here is my config.xml file configurations. <global><rewrite> <secondarysearch> <from><![CDATA[#^/catalogsearch/result/#]]></from> ...
sanji's user avatar
  • 153
2 votes
2 answers
590 views

Modify the From address of the Contacts email [closed]

I send emails from Contact form, e.g. template='contacts/form.phtml', to an osTicket system. My problem is that the customer's email address is set as the ReplyTo header of the email sent by this ...
Memes's user avatar
  • 708
0 votes
1 answer
104 views

Can't make overwrite of system_store_edit_form to work

I need to add extra fields in multi store edit view, but currently I'm stuck with extension code, and seems that extension is not loaded? My xml file looks like this: <?xml version="1.0" encoding=...
lfx's user avatar
  • 103
0 votes
1 answer
3k views

Account Controller Overriding/Extending not working

I'm trying to create two separate registration pages. They need to be in their own model because one of the design requirements is having separate .phtml files. I have Magento 1.9 CE. I started by ...
Ahmed's user avatar
  • 1
3 votes
1 answer
281 views

Rewrite Mage_Core_Controller_Varien_Front

How can I rewrite Mage_Core_Controller_Varien_Front? I have already tried the way we rewrite controllers but it is not working. ADDED CODE <frontend> <routers> <...
Anshu Mishra's user avatar
  • 8,950
2 votes
4 answers
292 views

Trying to override Mage_Core_Model_Domainpolicy

I'm trying to override the model Mage_Core_Model_Domainpolicy. Everything should work by now, but, obviously, it doesn't. This is my config.xml: <?xml version="1.0" encoding="UTF-8"?> <...
Timon de Groot's user avatar
2 votes
2 answers
1k views

Overriding Price Model Doesn't Work

I wanted to Override this app\code\core\Mage\Catalog\Model\Product\Type\Price.php First I created Module MyModule_Catalog.xml Under etc/modules <config> <modules> <...
Ahmed Aborady's user avatar
3 votes
2 answers
2k views

How to override grouped.phtml file in my own module in magento 1.9.1.0?

I want to overwrite grouped.phtml file located at app\design\frontend\rwd\default\template\catalog\product\view\type\ path in my own module. My magento version is 1.9.1.0. Please guide me.
Milople Inc's user avatar
2 votes
1 answer
1k views

How to override wishlist sidebar file in my own module?

I want to override sidebar.phtml file of wishlist module in my own module. Please guide me. Thanks,
Milople Inc's user avatar
2 votes
1 answer
553 views

Remove the wishlist and shoppingcart tab from customer edit in magento admin

config.xml <?xml version='1.0'?> <config> <modules> <Ndot_Customer> <version>1.0</version> </Ndot_Customer&...
senthil's user avatar
  • 1,729
0 votes
1 answer
414 views

How to rewrite model in config.xml only for frontend?

without any problems I'm able to rewrite a model. But when it comes to rewrite a model that is used in backend/admin panel and I want that functionality also in the frontend but a little bit different ...
Timo.Klement's user avatar
1 vote
0 answers
109 views

Override the block for custom product type [closed]

I have created a new product type called "packet" and I wanna to override the block only if the product is packet on frontend. I have tried using below code in config.xml but its not working. <...
Vick's user avatar
  • 163
10 votes
2 answers
19k views

How to overwrite core template files from a custom module?

I want to overwrite two files. Namely the view.phtml and print.phtml of sales orders. (path: app/design/frontend/base/default/template/sales/order/) I am creating a module in which I want to create a ...
Rajan Faldu's user avatar
4 votes
1 answer
3k views

Override model from community module

I would like to rewrite a model class which is in the community pool. I've looked for solution but I cannot managed to override a community module. Here's my module: app/etc/Mycompany_Mymodule.xml: &...
chris's user avatar
  • 508
2 votes
1 answer
2k views

Overriding magento search module not working properly

I just created a module for overriding magento's default search; But it not working properly. Please help me See my code below app/etc/modules/ <?xml version="1.0"?> <config> <...
Jordy S Chemparathy's user avatar
5 votes
3 answers
2k views

How to override Session by using a module?

I'm using magento 1.4.1.1. I'm looking for a way to make a new module override "/var/www/app/code/core/Mage/Customer/Model/Session.php". I know how overriding controllers, but models. My files are as ...
jolyqr's user avatar
  • 231
1 vote
1 answer
239 views

Extension Rewrites a Model Method to Rewrite a Resource Model Method: How to Extend It?

I have ThirdPary_Extension that rewrites a resource class method of Mage_Catalog_Model_Resource_Product_Indexer_Price. However, ThirdPary_Extension goes about doing this a little strange. It's ...
laketuna's user avatar
  • 6,830
2 votes
2 answers
608 views

Rewrite Credit Memo API in Magento CE 1.9

I am trying to rewrite the model sales_order_credit_memo_api with my own "info" function. I have created all the files yet when I access the API call "order_creditmemo.info" it uses the base Mage ...
Kane Shaw's user avatar
  • 315
4 votes
2 answers
415 views

Rewrite all log messages of a module to a different log

This might be an odd question. In my shop i have a module which writes a lot to my system.log. The developers told me to ignore it but i like my log to be clean for other things. I'm not allowed to ...
FROSIT's user avatar
  • 724
1 vote
4 answers
1k views

How do I override "Mage_Customer_AccountController" in Magento 1.4.1.1?

I've made a new module called "Lpf_ModuleUrlBackAfterLogin" especially to override a method from Mage/Customer/controllers/AccountController.php, using following files . I want my method "...
jolyqr's user avatar
  • 231
42 votes
3 answers
88k views

Extending / Overriding JS in Magento 2

As Magento2 is using RequireJS for loading scripts, and there's no more skin folder, I've stuck with a problem: How can I replace Magento's module JS file by my modified version? For example — the ...
Dmytro's user avatar
  • 1,090
2 votes
3 answers
3k views

Custom error message for invalid promo code

I needed to edit the "invalid promo code" error as it is a valid code, it's just they need to be logged in to use it. Since our login (within the cart) is designed on the next page, it really wasn't ...
Daniel's user avatar
  • 305
0 votes
2 answers
299 views

How create URL rewrite for category

I create category: $category->setName(self::CATEGORY_AZ_NAME) ->setUrlKey('...') ->setUrlPath('...') ->setIsActive(1) ->setDisplayMode(...
Ratio's user avatar
  • 87
4 votes
1 answer
2k views

Difference between overriding and extending or even rewrite (abstract class)

I want to change the method collect() from Mage_Sales_Model_Quote_Address_Total_Abstract By what I've read it seems I can't rewrite it since it's abstract and it is never instantiate. Looking ...
Pobe's user avatar
  • 333

1
20 21
22
23 24
27