Magento 2 Indexer – Manage indexer using command line Magento 2

Published on

Magento 2  Indexer – Indexing is how Magento transforms data ( products, categories … ) to improve the performance of your storefront. Magento stores lots of data (including catalog data, prices, users, stores … ) in many database tables. To optimize storefront performance, Magento accumulates data into special tables using indexers. For example, suppose you change … Continue reading Magento 2 Indexer – Manage indexer using command line Magento 2

Cache types in Magento 2

Published on

Cache types in Magento 2 – As we can see, there are 13 cache types in “System -> Cache Management”. In this post, let’s find out what they are used for and when we need to flush each type. 1. Configuration Code: config Description: Magento collects configuration from all modules, merges it, and saves the merged … Continue reading Cache types in Magento 2

Magento 2 get Base URL

Published on

Magento 2 get Base URL – As you know, in Magento 1 we can easily get base url using function:

In this tutorial, let’s find out how to get base url in Magento 2 In Magento 2, we can get base url using an instance of StoreManagerInterface  1. Create an instance of StoreManagerInterface in __construct … Continue reading Magento 2 get Base URL

Magento 2 Add a menu item in backend

Published on

In this blog post we will see how to add a menu item in backend for your Magento 2 module. 1. Create file VendorName/ModuleName/etc/menu.xml The admin menu in Magento 2 has 3 parts: The main admin menu title which shows up in left sidebar Submenu title Actual menu

2. Create file VendorName/ModuleName/etc/acl.xml

3. … Continue reading Magento 2 Add a menu item in backend

Magento 2 How to add link on my account navigation

Published on

How to add link on my account navigation in Magento 2 – In this tutorial, we’re going to add a new link to my account navigation in Magento 2. You only need to create a layout file: /app/code/YourVendor/YourModule/view/frontend/layout/customer_account.xml with content:

In this file “mymodule/index/index” is url path of your link and “My Custom Link” … Continue reading Magento 2 How to add link on my account navigation