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

Where do you put modified WSDL files for the API to override the core definitions?

We've updated the standard WSDL definitions to support bundled product attributes for sku_type and price_type. I've tried putting the updated WSDL and WSI files in app/code/local/Mage/Catalog/etc/, ...
9
votes
1answer
4k views

override a zend library

i'm trying to override a zend library (Zend_Pdf_Page) and it doesn't seem to be working. i'm putting it in app/code/local/Zend/Zend_Pdf_Page.php, but the parent class is being used instead. are there ...
2
votes
1answer
6k views

Nginx working configuration for 1.7.XX

I have this store running on Apache, Magento 1.7.0.2 Then I decided to clone the application on a test server, running Nginx. I first tried mine, naive rewrite: rewrite ^(.*index\.php)\/(.*) $1?$2 ...
2
votes
1answer
153 views

How do extensions override non-rewritable classes

I was going to put together a tiny extension to enable Template hints under global scope, but got stuck trying to rewrite core/template. Class rewrites only work for classes instantiated via one of ...
1
vote
1answer
1k views

Simple catalog search block extension

I need to extend Mage_CatalogSearch_Block_Result, but something i did wrong.. can someone please help me? community/Folder/MyName/Block/Result.php <?php class Folder_MyName_Block_Result extends ...
1
vote
1answer
1k views

How can you override Mage_Adminhtml_Controller_Action

Specifically I'm interested in potentially overriding _isAllowed() so that it defaults to false instead of true. Most of the things I've found related to overriding controllers deal with how to ...
5
votes
1answer
754 views

How can I override server-side form validation?

I want to provide additional server-side validation of the address forms in Magento, both in Checkout and Customer. I can override Mage_Checkout_OnepageController, ...
11
votes
2answers
1k views

How can I add a page layout to Mage_Page module?

I discovered after upgrading Magento that the core Mage_Page's config.xml had been manually edited, and now I'm looking to change the XML in a way that doesn't overwrite core. Here is an example of ...
42
votes
5answers
2k views

What do I do when an extension overwrites a class globally and I want to use the original?

We're using an extension which globally overwrites the Mage_Catalog_Block_Product_List_Toolbar block. <global> <blocks> <catalog> <rewrite> ...