Skip to main content

Questions tagged [extend]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
3 answers
569 views

Extend Mage_Sales_Helper_Data doesn't work

I would like to add a function in Mage_Sales_Helper_Data without editing or copy of the original file. So I try to extend it, but this code doesn't work I have created a config.xml in this folder app\...
0 votes
1 answer
155 views

How to extends downloadable product type?

I am learning Magento and I am trying to create a Custom Product Type which can be download and provide some other features. I think I must start by extending the Downloadable product type. However I ...
1 vote
0 answers
165 views

Extend coupon code action to present a popup when certian coupon codes are entered

I have read the following: https://stackoverflow.com/questions/20267425/how-to-override-cart-controller-coupon-action-in-our-custom-module-magento My question is how do I start writing this out. I ...
0 votes
2 answers
52 views

Exteding magento core contact controllers issue

I am following this:turorial to extend the magento core contact controller. I want to change get postAction() function. So I created my module in local folder: mynamespace/mymodule/controller/...
2 votes
1 answer
548 views

What options are available to add a calculated attribute to Mage_Core_Model_Product?

We've got a number of attributes which are generated by basic Excel formulas and then bulk-loaded into the catalog via imports. The process results in "extra" attributes which are read-only and ...
2 votes
1 answer
1k views

Extending core block product_list_toolbar is not working

I am trying to override a core block using the code below. I haven't located any extensions that are already extending this core block but could that be the problem? config.xml <global> &...
0 votes
1 answer
910 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/...
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 ...
1 vote
1 answer
37 views

Unset where on query

How do you unset a where on a query. I have extended a core function and it has the following code: $select->where('is_active = ?', 1) In my extended function I want to remove this where ...
1 vote
2 answers
1k views

Overriding Third Party Adminhtml Controller

I can't override another third party module: I tried either of these but no success: <admin> <routers> <thirdparty> <args> <modules&...
0 votes
2 answers
248 views

Problems extending core review block helper

I'm trying to extend the review block helper located at /app/code/core/core/Mage/Review/Block/Helper.php. I've created a new module at /app/code/local/MyModule/Review/Block/Helper.php which includes ...
0 votes
2 answers
3k views

Extend multiple classes from single helper

I have installed two third-party modules and one local module. I want to rewrite/ extend the Helper/Data.php of both third-party modules. Currently, I'm trying to do this from my local module's Helper/...
2 votes
1 answer
84 views

Cannot override local model - Module loaded but Model is not extended

The extension I am attempting to override is installed to the local folder. The extension information: app/code/local/Xtento/OrderExport/Model/Export/Data.php class ...
1 vote
2 answers
4k views

Extending cart controller works for one action but not the index action

I am trying to extend /checkout/cart/. I added "dumbAction" to test ensure the extension worked and /checkout/cart/dumb does work. However, when I access /checkout/cart I do not see any changes. &...
0 votes
1 answer
159 views

How can I extend the AccountController using events rather than inheritance?

I've successfully extended the core Mage_Customer_AccountController via inheritance (using an approach very close to this one), however I'd rather use events to add my extra functionality. In my case ...
0 votes
1 answer
2k views

Class rewrite / extends and constant validity?

I try to implement a module in which I need to rewrite Mage_Catalog_Model_Product_Option. I then add the following file to the module <?php class Mine_Custoptiontype_Model_Catalog_Product_Option ...
0 votes
1 answer
257 views

Override Mage_Adminhtml_Block_Sales_Items_Column_Name Block

I'm trying to add an extra data to the file: /app/design/adminhtml/default/ad02/template/downloadable/sales/items/column/downloadable/name.phtml Target idea: provide a link with a href="....": <...
1 vote
1 answer
2k views

Extending Magento REST API V2 breaks existing API

I am trying to extend the Magento CE (version 1.8.1.0) REST API V2 for orders. I want to customize the original order query so that the response includes an additional attribute "multifees". ...
1 vote
1 answer
268 views

Extend/hook into where Magento decides if a product can be shown/sold

I have a problem i'd like to have some opinions on. I'm totally new with Magento, but not with programming. Background: I've built a small module to import stock quantites from a couple of our ...
1 vote
1 answer
505 views

How to Override Mage_Checkout_Block_Cart_Shipping?

Why can not extend core block with below configs?! file config.xml modified URL : app/code/community/Mycompnay/Mymodule/etc/config.xml <config> <global> <...
4 votes
2 answers
1k views

Rewrite single method using local class

I need to override Varien class because I need to change one method. app/code/core/Varien/Data/Collection/Db.php From what I know, the only way is to put it inside local folder. app/code/local/...
1 vote
4 answers
1k views

Why does my extending block duplicate the content of Mage_Page_Block_Html_Head?

I've created a module with a block that extends Mage_Page_Block_Html_Head but when I add it to the original head block, it duplactes almost every meta tag like <meta http-equiv="Content-Type" ...
0 votes
1 answer
2k views

Is multiple inheritance allowed in Magento?

When go through the core source, I figured out that some classes have been extended by many child classes. Eg: class Mage_Sales_Model_Quote_Address_Total_Grand extends ...

1 2
3