Monthly Archives: December 2020

  1. List of Magento 2 Admin Panel Menu Identifiers

    Menu Title [identifier]

    Dashboard [Magento_Backend::dashboard]
    Sales [Magento_Sales::sales] Operations [Magento_Sales::sales_operation] Orders [Magento_Sales::sales_order] Invoices [Magento_Sales::sales_invoice] Shipments [Magento_Sales::sales_shipment] Credit Memos [Magento_Sales::sales_creditmemo] Billing Agreements [Magento_Paypal::paypal_billing_agreement] Transactions [Magento_Sales::sales_transactions]
    Read more »
  2. How to Add New Element to Magento 2 Admin Panel Menu?

    The etc/adminhtml/menu.xml file is used to control the Magento 2 admin panel menu and add new items to it, in particular.

    Меню адмін-панелі Magento 2

    Read more »
  3. Default Values for the Magento 2 Configuration Page

    In the previous article we described how to create your own section on the Magento 2 configuration page (Stores > Configuration).

    In order to set the default values for the configuration fields, you need to create the following file in the module folder:


    and add this code:

    <?xml version="1.0"?>
    <config xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">

    Read more »
  4. Extend the Magento 2 Access Control List

    In the previous article we explained how to configure and delimitate access rights for the Magento 2 admin panel users. In this article, you will learn how to create your own access rules (Role Resources).

    User Role Reasources in Magento 2

    You need to create ACL file (ACL - Access Control List) in your module folder:


    Read more »
  5. How to Create Configuration Section (system.xml) in Magento 2?

    To find the Magento 2 configuration page navigate to Magento 2 Admin Panel > Stores > Configuration.

    Налаштування Magento 2

    All tabs and forms on this page are customized using this file


    Read more »
  6. How to Create Database Tables in Magento 2?

    To add a new table to the Magento 2 database, you need to create a file in the module folder:


    add the following code to it:

    namespace VendorName\ModuleName\Setup;
    use Magento\Framework\Setup\InstallSchemaInterface;
    use Magento\Framework\Setup\ModuleContextInterface;
    use Magento\Framework\Setup\SchemaSetupInterface;
    use Magento\Framework\DB\Adapter\AdapterInterface;
    class InstallSchema implements InstallSchemaInterface
        public function install(SchemaSetupInterface $setup, ModuleContextInterface $context)
            $installer = $setup;
            //new table script will be there

    Read more »
  7. How to create a block in Magento 2 (Block.php + template.phtml + layout.xml)

    Since you already know how to create first controller in Magento 2 and to display the "Hello World" text on your own page, in this article we will show you how to display it in the new block.

    1. Add a new PHP class block.

    Create this file:


    and add the following code to it:

    namespace VendorName\ModuleName\Block;
    class SomeName extends \Magento\Framework\View\Element\Template
        public function getWelcomeText()
            return 'Hello World';


    SomeName is a random name in CamelCase format.
    \Magento\Framework\View\Element\Template — a class from which you inherit your own block that interacts with the template.
    getWelcomeText — a public method we created to return the text "Hello World". You can create a name for it yourself.

    Read more »
  8. First Controller. Magento 2 "Hello World"

    To display "Hello World" on your own page in Magento 2, follow these steps:

    1. Register a router for the storefront.

    Create this file:


    and add the following code there:

    <?xml version="1.0"?>
    <config xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
    <router id="standard">
            <route id="VendorName_ModuleName" frontName="path">
                <module name="VendorName_ModuleName" />

    You can use the developer name (VendorName) associated with the module name (ModuleName) as the router id. The frontName is used in the URL to access your controllers.

    Both names have to be unique.

    Read more »
  9. How to Create Basic Magento 2 Module?

    To create basic Magento 2 module you need only 2 files: module.xml and registration.php.

    1. Firstly, create the module's folder:


    and the folder that will contain the module configuration files:


    If the app/code folder is missing from your Magento 2 installation, please create one.

    Read more »
  10. How to Change Attribute Set in Magento 2 in Bulk?

    Managing products in Magento 2 requires much of your time since you have to upload products, assign them to categories, update their information, and perform other tasks.

    Sometimes you even need to change attribute sets for different products. Unfortunately, Magento 2 does not have the attribute set changing feature by default which does not make it any easier for you. 

    Magento 2 Product Grid Inline Editor, on the other hand, not only allows you to change the product attribute set, it allows you to do it for multiple products just in seconds. 

    Take the following steps to change the attribute

    Read more »
  11. Configure Magento 2 Product Grid Inline Editor

    Managing products and updating their attributes has never been so quick and easy as with the Magento 2 Product Grid Inline Editor — an extension that helps you to edit product information directly from the grid.

    With this module, you do not have to go from one product page to another endlessly, changing the price, quantity, attribute sets, SKU, etc.

    Why do you benefit from Product Grid Inline Editor? See for yourself.

    Following steps to configure Magento 2 Product Grid Inline Editor:

    1. Go to Stores > Configuration > Magefan Extensions > Product Grid Inline Editor and Enable the extension.

    Read more »
  12. How to Update Product Attributes in Bulk in Magento 2?

    Having a big store it may be not an easy task to update product attributes every time a price or quantity changes. Magento enables you to create multiple product attributes and attribute sets

    However, unfortunately, there is no option to change their values in bulk. That is why it takes you quite some time to go from one product page to another and update product attributes. 

    It is not an effective way of managing your products. So we came up with the solution that enables you to change product attributes in bulk directly from the grid.

    Check out this short video or follow

    Read more »
  13. Top 3 Time Management Tips for Magento 2 Businesses

    Magento is one of the biggest eCommerce platforms available nowadays. It is a complex unity of processes, actions, and sections managing which could be daunting, especially for one person.

    Regardless of who you are: store owner or web developer it is always important to remember to optimize the management process and time-saving.

    If you are one of those who are looking for the ways to save more time working with Magento 2 this article is right for you.

    Read more »