Home » Archive

Articles tagged with: module

Magento, Magento 2 »

[11 Dec 2017 | No Comment]

This article shows how you can enable or disable Magento 2 modules using the command line. In my previous article, I have listed out all the command line tools that can be used in Magento 2. This article specifically shows about commands to enable/disable Magento 2 modules.
Get the List of All Modules

Node.js »

[30 Jul 2017 | No Comment]

This article shows how you can package your Node.js module or project using npm init command. Running this command will create a package.json file which contains all the necessary packaging information.
Here’s a step-by-step guide to create package file with npm init command.

Magento, Magento Extension »

[11 Mar 2017 | No Comment]

Associated Product Price in Cart is a FREE Magento extension that uses the associated simple product’s price in shopping cart instead of the configurable product’s price.
This module is compatible with Magento version 1.5 and later (Magento 1.5, 1.6, 1.7, 1.8, 1.9).

Magento, Magento 2 »

[14 Jul 2016 | One Comment]

I am getting the following error while adding a new module to my Magento 2 installation and running the command on terminal php bin/magento setup:upgrade.
[InvalidArgumentException] There are no commands defined in the “setup” namespace

Magento, Magento 2 »

[16 May 2016 | No Comment]

This article shows how we can get name of the current module, controller name, action name and route name in Magento 2.
Using Dependency Injection (DI)

Magento, Magento 2 »

[7 Apr 2016 | No Comment]

This beginner step-by-step tutorial shows how you can create a simple and basic HelloWorld module / extension in Magento 2. The necessary files are listed with the code.
This module just calls a block function in template file to print Hello World text.

Magento, Magento 2 »

[28 Mar 2016 | One Comment]

This article shows how we can check if a module is installed / enabled or active in Magento 2.
Both Dependency Injection and Object Manager ways are shown below.
Using Dependency Injection (DI)

Joomla »

[5 May 2015 | No Comment]

Sometime you might need to show any module’s content inside your article. For example, you have installed a image slideshow module. Now, you might need to show the image slideshow within your article page.
For this purpose, Joomla CMS comes with the default plugin (Content – Load Modules) to show module’s content in any article. You can either use the default ‘Content – Load Modules’ plugin or you can also use some other third-party plugins which help to do the same work more easily.

Magento »

[6 Aug 2014 | No Comment]

Here is a quick code to check if a Magento module is installed, enabled or active.
The functions isModuleEnabled and isModuleOutputEnabled are present in Mage_Core_Helper_Abstract class.

Magento »

[17 May 2011 | 19 Comments]

You have built a custom magento extension (magento module) and you want to package it and submit it to magento connect (magento extension directory).
This article shows how to create Magento extension package. I have included images for every step which I followed while creating extension package for my module (Auto Currency Switcher).

Magento »

[16 Feb 2010 | 5 Comments]

I was building a custom module in Magento. I had created a system.xml file for storing configuration data from admin. From the below system.xml file, you can see that I have created a section named ‘My Module Name‘ which can be accessed from Admin –> System –> Configuration.
In the file below, I have just displayed the section and groups name. I have omitted others fields with dots, as they are not necessary here.

Magento »

[4 Feb 2010 | 4 Comments]

Suppose, you have created a new module or you have an existing module. You have a frontend page for your module. You want to set or change title, keywords, and/or description of your module page. Well, you can do so by adding few lines of code in layout xml file of your module.
The layout file for you module is present in design/frontend/default/default/layout/YourModuleName.xml. I suppose that you are using default theme and package. The default/default/ in the above path might be different if you are using custom theme and package.

Magento »

[7 Jan 2010 | 10 Comments]

You can easily get controller name, action name, router name and module name in any template file or class file.