Home » Blogs » How to Analyse a Module in Use or not in Magento 2

How to Analyse a Module in Use or not in Magento 2

A module is a logical group, that is a directory containing blocks, controllers, helpers, models, that are related to a specific business feature. In keeping with Magento’s commitment to optimal modularity, a module encapsulates one feature and has minimal dependencies on other modules.

1.First we check for the Module Status By command line ( Module is enabled or disable).

Example:
Module Name: Magento_sendfriend
Purpose: The Email link makes it easy for your customers to share links to products with their friends. In the demo Luma store, the Email link appears as an envelope icon. The message template can be customized for your voice and brand. To prevent spamming, you can limit the number of recipients for each email, and the number of products that can be shared over a one-hour period.
Command For checking the module status is:
-Php bin/magento module:status

2.If the module is enabled then we check for the module Configuration in the admin panel(Backend).

On the admin panel
Stores-> Settings->Configuration->Catalog->Email to a Friend

3.Next,check what is the configuration of the module and what is the impact of the module configuration (Also Impact on Frontend and backend).

Magento Send friend module is impacted on Frontend on product page

4. If the module impact on frontend then we enable template hints by command line and after that we check that the module block call or not on Frontend and product page

Commands For Enabling the Template Hints is<
php bin/magento dev:template-hints:enable
php bin/magento dev:template-hints:disable

5.Commercial Module

A module is a logical group – that is, a directory containing blocks, controllers, helpers, models – that are related to a specific business feature. In keeping with Magento’s commitment to optimal modularity, a module encapsulates one feature and has minimal dependencies on other modules.

6.First we check for the Module Status By command line (Module is enabled or disable).

Example:
Module Name: Magefan_Blog
Purpose: – Magento 2 blog is an extension that allows you to manage your store together with a blog from one place without having to rely on any second platform.
Command For checking the module status is
-Php bin/magento module:status

7.If the module is enabled then we check for the module Configuration in the admin panel(Backend).

On the admin panel
Stores-> Settings->Configuration->MageFan>Blog
configuration

8.Next,check what is the configuration of the module and what is the impact of the module configuration (Also Impact on Frontend and backend).

9.If the module impacts the frontend then we enable template hints by command line and after that we check that the module block call or not on the Frontend and product page.

Command For checking the module status is
php bin/magento dev:template-hints: enable
php bin/magento dev:template-hints: disable

Leave A Comment