A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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

Help Extending currency controller

I am trying to get all currency conversions to round up to the nearest dollar, which I have successfully done by hacking the core Currency.php file (/app/code/core/Mage/Directory/Model/Currency.php). ...
0
votes
2answers
2k 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/...
0
votes
1answer
715 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 ...
0
votes
1answer
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 ...
0
votes
2answers
273 views

How create URL rewrite for category

I create category: $category->setName(self::CATEGORY_AZ_NAME) ->setUrlKey('...') ->setUrlPath('...') ->setIsActive(1) ->setDisplayMode(...
0
votes
2answers
589 views

Change PDF engine for Email Attachments by Fooman

I'm using Firegento as PDF engine for invoice, etc (as part of Magento DE). Fooman's Email Attachments takes the standard Zend engine. Is it possible to change the setting to take the Firegento engine ...
0
votes
1answer
497 views

Rewrite lib Varien Image and its Adapters classes

I need to resize images to exact input dimensions (centered crop), so, I have add additional functions to Varien_Image, Varien_Image_Adapter_Gd2, Mage_Catalog_Helper_Image, and ...
0
votes
3answers
1k views

Rewrite catalog/image helper function for all pages but subcategory_listing

I am using a third party module which is rewriting catalog/image helper function for product images. <global> <models> <pio> <class>...
0
votes
1answer
145 views

Magento override Mage/Core - check for enabled yes/no, if no default to core

We have code where we override Mage_Catalog_Model_Url class SNH_CategoryParentUrl_Catalog_Model_Product_Url extends Mage_Catalog_Model_Url { public function getCategoryRequestPath($category, $...
0
votes
1answer
1k views

Removing custom option values from cart/checkout page?

My question is an exact duplicate of Remove item-options price from checkout cart except I don't quite understand the accepted answer. I assume I'd have to create a custom template file for this to ...
0
votes
1answer
978 views

Manually override shipping rate in admin

Here is an unusual problem that I'm struggling with. I looked at different extensions and could not find one that do what I need. I need to be able to manually override shipping price for selected ...
0
votes
1answer
3k views

How to add a custom block to admin sales order shipment

i've been trying to include a block in the sales_order_shipment form. I already got the block to appear at the bottom of the page, but everytime i press the ship button the information related to my ...
0
votes
1answer
566 views

How to override block in magento module

I have following structure <?xml version="1.0"?> <config> <modules> <Namespace_News> <version>0.1.0</version> </Namespace_News> </modules&...
0
votes
1answer
99 views

Overriding Mage_Customer_AccountController and adding a custom function?

I am overriding the forgotPasswordPostAction function in Mage_Customer_AccountController. This works well, I can call the function with a URL like that: http://domain.com/whatever/index.php/customer/...
0
votes
1answer
458 views

Mage_Payment_Model_Method_Abstract class override

As title suggest i want to override Mage_Payment_Model_Method_Abstract class , I know that it is abstract class. and we can easily override abstract class using local directory like app\code\local\...
0
votes
1answer
124 views

Rewrite block class for specific site only

I have two sites in a multi-site Magento EE installation. I must rewrite the _getHtml function of the Mage_Page_Block_Html_Topmenu class for just one of the sites. Is it possible to target this ...
0
votes
1answer
118 views

2 modules calling OrderController.php

I have 2 modules using the OrderController.php One of them overrides deleteorderAction and the other one overrides addCommentAction Only the deleteorderAction is rewrited but the addCommentAction ...
0
votes
2answers
4k views

How to override core catalog block in product view page [duplicate]

Hi i'm newbie to magento, trying to override catalog price block to use my custom price.phtml (Coz it's conflicting if i do any css updates). To do this I have done below steps, Copied app/code/core/...
0
votes
1answer
60 views

Rewrite Mage_Catalog_Block_Product_Compare_List

I wish to rewrite some methods in Mage_Catalog_Block_Product_Compare_List. What do I need to add to config.xml and what should my classname be?
0
votes
2answers
4k views

Can't override Magento Adminhtml Block

Sysnopsis I am trying to change a tab on the admin products page (grouped); However for some obscure reason I cannot get my module to work. The problem seems to be my module is completely ignored. ...
0
votes
2answers
1k views

Category URLs 404

Today just before lunch (around the time a reindex was being pushed through) the category urls started throwing up 404 errors. Site in question: http://www.awesomegti.com However, if you search a ...
0
votes
2answers
2k views

<referece name=“root”> does not work

following this article I created: app/desgin/frontend/<my_template>/ +template/page/main.phtml +layout/local.xml In local.xml I have: <?xml version="1.0" encoding="UTF-8"?> <...
0
votes
1answer
120 views

What type of Inheritance is better for customizing code?

I am trying to customize the catalog and sales/order grids in magento. There are 3 ways I know, by which I can implement by custom logic on these grids: Multilevel inheritance for example ...
0
votes
1answer
787 views

changing default values

In an effort to learn how to work with Magento I have set myself a number of (what i believe will be) basic tasks. The aim being to give me an idea of how to access information of the customer, ...
0
votes
1answer
951 views

override Mage_Newsletter_Model_Subscriber

in My/Stuff/etc/config.xml <global> <models> <newsletter> <rewrite> <subscriber>My_Stuff_Model_Subscriber</subscriber> ...
0
votes
1answer
137 views

What's wrong with the following rewrite?

I tried to rewrite the Mage_CatalogRule_Helper_Data. But somehow my code is not used instead of the original helper. Can someone please point out the error I have made so I can understand what went ...
0
votes
1answer
555 views

Is it possible to add new functionality to OPC method saveBilling by Observer?

I need to add new customer field. This field should be available during customer registration via OPC. How I can do it? I can rewrite Mage_Checkout_Model_Type_Onepage modify method saveBilling and add ...
0
votes
1answer
236 views

URL rewriting messing with facebook likes and tweets count

I have added the Google +1, Facebook like and Twitter buttons to the products page. The problem is when 2 or more products are created with the same name, magento creates the url-key from the name ...
0
votes
1answer
1k views

Admin logout is not working properly after override of adminhtml controller

I had override admin user controller, it was working fine but when I click on logout link page is not redirecting to admin login page.page is redirecting on front side. Front screen shot http://...
0
votes
1answer
47 views

Want an existing report to be in a different menu area

I am trying to get the report here "admin/report_sales/sales" to be duplicated under my custom menu area. How should I do this as simply as possible? Should I create a menu item, then use a redirect?...
0
votes
1answer
285 views

Rewrite catalog_blocks_layer_view does nothing

I've tried rewriting catalog_blocks_layer_view with this config in a module (the module is turned on and works.) but my rewrite isn't rewriting and I'm not getting any errors. Does anyone know what ...
0
votes
1answer
1k views

Extending a community extension not picking up my class

So I am trying to override an extension that we installed from MagentoConnect. Its just a tiny little nuance but its important to our plans. So this is what I have so far. Blizzardlabs/Block/...
0
votes
3answers
2k views

Override Store Controller magento admin

I want to override the default functionality of stores (adding some fields like commission , location to deliver etc ), but i am not able to configure it. My configure file as follows <config&...
0
votes
1answer
28 views

Magento 2 , After the override model file give an error

I override block file Form.phpof catalog search module all work fine, but when override model file Advanced.php give an error from Form.php Error filtering template: Type Error occurred when creating ...
0
votes
0answers
20 views

magento 2 how override Rule\Model\AbstractModel

In my AbstractModel.php I got this: namespace Magewebsys\Modulerule\Model\Rule; abstract class AbstractModel extends \Magento\Rule\Model\AbstractModel { public function beforeSave() { ...
0
votes
1answer
41 views

Magento 2 How to override framework feed file?

I am trying to override Magento Framework Feed.php file, After googling alot I found how to override framework file but that's not worked for me. Please give me the right eay to override framework ...
0
votes
3answers
54 views

Extend/Override .phtml file in Magento 2

I have a third party module, and I'm trying to override the third party .phtml file but it's not working for me. For these, I tried below ways. Third-Party Layout module: <?xml version="1.0"?> ...
0
votes
2answers
36 views

Magento2: How to override menu.xml?

I want to add a new custom menu above the Views in the custom module. I am creating a custom report. Can anyone please suggest?
0
votes
1answer
46 views

how come this override doesnt work magento 2

var config = { "map": { "*": { "Magento_Checkout/js/model/shipping-save-processor/default": "module_name/js/shipping-save-processor/default-override" } } }; var ...
0
votes
0answers
11 views

Magento 2 : Edit custom option in order view page

I did override order view page info.phtml, how to edit custom option in here, I want to get the price of custom option in here.
0
votes
1answer
43 views

How to Override xml file into Parent Theme

I have installed one plugins 'cedcommerce' and enabled theme (ced_2k18) for it. My default theme is Porto. I want to override ced commerce plugin layout xml file into my parent theme. Basically i ...
0
votes
1answer
47 views

Magento 2.3: How to override page content

How to override the content editing page to customize it. do you have any ideas?
0
votes
1answer
54 views

Magento 2 : How to get parent method while we extend the class

I am extending this class : Magento\Sales\Model\Service\InvoiceService My extended file : namespace Company\Vendor\Model\Service; use Magento\Sales\Api\InvoiceManagementInterface; use Magento\Sales\...
0
votes
4answers
56 views

How can I override following file?

In the above attach file I want to change Magento\SalesRule\Model\Rule\Condition\Address to Company\SalesRule\Model\Rule\Condition\Address
0
votes
1answer
32 views

Magento2 : How to override FinalPrice.php file in Magento2

I want to override vendor/magento/module-catalog/Pricing/Price/FinalPrice.php with constructor argument. Note : File overriding is working fine but when I create constructor in the overridden ...
0
votes
0answers
20 views

Customer account wishlist block replacement removes content

I have replaced the vendor/magento/module-wishlist/Block/Customer/Wishlist.php for my own app/code/myVendor/myModule/Block/Customer/Wishlist.php I have written in the app/code/myVendor/myModule/etc/...
0
votes
0answers
28 views

Magento 2 : Add a custom attributes to quote

I have a custom quote module, that i would like to modify and add 2 custom fields, The admin quote module is similar to sales order admin pages, so i want override the admin templates and layouts to ...
0
votes
2answers
198 views

Magento 2 What we can do when two modules override same block?

I have two modules which are using the same block function. i.e. module 1-> ABC, module 2-> XYZ both modules are using preference method to override core module's block file. => Let say in core ...
0
votes
1answer
81 views

Magento 2: Override admin layout didn't work

I would like to override this quotation_quote_view.xml file layout (from a custom module) and add a block below this block reminder_date <block class="Cart2Quote\Quotation\Block\Adminhtml\Quote\...
0
votes
1answer
114 views

How to override module-newsletter in magento 2?

How to override the subscribe.phtml form which is in vendor / magento / module-newsletter to add my input data and save it in my database table ?