Questions about overriding core features (class rewrites, local code pool, theme overrides). For URL rewrites, use the "url-rewrite" tag instead.

Magento provides several methods to override files/classes/methods without changing the actual core files:

  • Class rewrites for Blocks, Helpers and Models, using a and the service locator pattern
  • Code pool overrides for any class that is loaded with the Magento autoloader. The autoloader looks for class files in these directories, until it finds it: app/code/local, app/code/community, app/code/core, lib
  • Theme fallback: A custom theme can override any file of its parent theme or the default theme in app/design and skin, it just has to be in the same relative path.
history | excerpt history