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 fix to an existing system)


If by "override" you mean copy the class in the "community" folder, it won't work.
The sequence of folders the autoloader checks is this:

  • app/code/local
  • app/code/community
  • app/code/core
  • lib

If by "override" you mean an actual override, by declaring a different class for a specific block in your config.xml it will work.

|improve this answer|||||

Yes you can rewrite everything from everywhere.

Magento doesn't matter where the rewrite comes from, as long as it is there.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.