27

What is the difference between an Extension and a Module?

Just curious to know that what is the right term to use when we extend Magento's functionality by creating our custom code in local folder.

16

Extensions are simply packed modules. In other words, you extend the features and functionality of Magento by writing a module. Then you have a choice to leave it as it is or pack it up (System > Magento Connect > Package Extensions). An extension (a packed module) is then published on magento connect

  • Hi Qaisar Satti, How can i get you? – Teja Bhagavan Kollepara Dec 10 '15 at 7:47
  • hi @TejabhagavanKollepara sorry don't get you? – Qaisar Satti Dec 10 '15 at 7:51
  • any particular reason to contacting me? – Qaisar Satti Dec 10 '15 at 7:55
13

I wish everyone will make up their minds and use the same term.
Now we have extension, module, bundle, plugin and maybe others and it's getting silly.
Basically a module is an extension.
The only difference might be that what's in the core may not be considered extensions, but they are modules.
So Mage_Catalog is a module but not an extension.
Something_Else is a module and an extension because it's not in the core.

  • well said Marius.. (y) – Shyam Krishna Sreekumar Jun 3 '15 at 7:50
  • I agree, for none core I consider the two terms to be completely interchangeable. – Jonathan Hussey Jun 3 '15 at 8:47
  • 5
    You can't avoid it. People come from wordpress and use the term plugin. Devs come from Joomla and say extension... – Fabian Blechschmidt Jun 5 '15 at 9:27
  • 4
    I agree with Marius. – Adarsh Khatri Jun 5 '15 at 12:14
  • I always agree with Marius (and Fabian too) :) – SR_Magento Jun 25 '15 at 11:56
12

Module is the technical term for anything you define in app/etc/modules

Extension is the marketing term for published1 community modules (or generally any code that extends Magento functionality and is not a theme)

Extensions usually consist of one or more modules. The ebizmarts MageMonkey extension for example comes with four actual modules that are bundled as one extension: Ebizmarts_AbandonedCart, Ebizmarts_Autoresponder, Ebizmarts_MageMonkey and Ebizmarts_Mandrill.

Themes also often come with theme specific modules that are not distributed separately and nobody would call them extensions.


1) be it via Magento Connect, Github or an extension store

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