Home » Archive

Articles tagged with: module

Magento, Magento Extension »

[11 Mar 2017 | Comments Off on Associated Simple Product Price in Cart: Magento Extension [FREE]]

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 | Comments Off on Magento 2: [InvalidArgumentException] There are no commands defined in the “setup” namespace]

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 | Comments Off on Magento 2: Get Controller, Module, Action & Route Name]

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 | Comments Off on Magento 2: Create a Simple HelloWorld Module – Step-by-Step Beginner Tutorial]

This beginner step-by-step tutorial shows how you can create a simple and basic Hello World 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 | Comments Off on Joomla: Show Module inside Article]

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 | Comments Off on Magento: Check if a module is installed, enabled or active]

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.