top of page
Magento 2 CMS block with the same ID already exists
I have seen the below error when I open cms block grid something went wrong with processing the default view and we have restored the...
Bilal Malik
Oct 29, 20201 min read
174 views
0 comments
How to generate bearer token - Magento 2 REST API
We can generate the admin bearer token using the below command. Please run the below command in the terminal to generate a token. curl...
Bilal Malik
Sep 29, 20201 min read
50 views
0 comments
Magento 2 script tag and available options in layout xml
We can add a script via layout XML file in Magento 2. The below format will stop the HTML parse until js downloaded and executed. <script...
Bilal Malik
Aug 22, 20201 min read
81 views
0 comments
How to update multiple products using Magento 2 REST API
We can able to update multiple products in the single Magento REST API request using bulk endpoints. Also, before using the Bulk API to...
Bilal Malik
May 12, 20202 min read
1,162 views
0 comments
What is requireJS AMD in Magento2
Simply we can say, below format is the AMD module. define(['jquery'] , function ($) { return function () {}; }); Module Vs AMD module 1....
Bilal Malik
Apr 19, 20201 min read
17 views
0 comments
Find the top ten IP list from the apache access log file
We can use the below command to find the top ten IP list from the apache access log in ubuntu awk '{ print $1}' access.log | sort | uniq...
Bilal Malik
Apr 1, 20201 min read
50 views
0 comments
How To Enable/Disable JS/CSS Minification/Merge In Production Mode – Magento 2
In production mode developer option are not available in Admin -> Store -> Configuration -> Advanced. We can use the below Magento...
Bilal Malik
Feb 8, 20201 min read
812 views
0 comments
Deployment modes – Magento 2
There are three deployment mode is available in Magento 2. Default Developer Production How to check which mode is enabled? We check the...
Bilal Malik
Feb 8, 20202 min read
20 views
0 comments
What is the difference between frontname and id in routes.xml
We many see routes.xml file with the same name of frontname and id. what if it is both different? <?xml version="1.0" ?> <config...
Bilal Malik
Sep 28, 20191 min read
54 views
0 comments
What are the types of components available in Magento 2
Available types of components in Magento 2 module library theme language setup Reference: vendor/magento/framework/Component/ComponentReg...
Bilal Malik
Sep 28, 20191 min read
8 views
0 comments
Magento2 install by command line
We can install Magento 2 by using below Magento command. This is my favorite way of installation because it throws an error if any and we...
Bilal Malik
Sep 28, 20191 min read
7 views
0 comments
Auto Currency Switcher Based On Country Code With Varnish
I faced the issue like “auto currency switcher is not working after installing varnish, it displayed the firstly loaded cached content to...
Bilal Malik
Aug 10, 20191 min read
154 views
0 comments
Magento 2 Multi Website with Apache2
Need to create websites, stores and stores views from Magento admin Main website: Magento already creates the main website while we...
Bilal Malik
Aug 6, 20192 min read
28 views
0 comments
Create admin user from command line Magento 2
We can use the below command to create an admin user. php bin/magento admin:user:create --admin-user=bilal --admin-password=pwd@123...
Bilal Malik
Aug 1, 20191 min read
35 views
0 comments
How to write custom logs in Magento 2
We can use the below functions to anywhere like Models, Helper, Controller..etc and call wherever you need to print logs. public function...
Bilal Malik
Jul 30, 20191 min read
34 views
0 comments
Get/Load product by sku – Magento 2
Get product by SKU using product repository protected $_productRepository; /** * Constructor * * @param \Magento\Framework\View\Element\...
Bilal Malik
Jun 30, 20191 min read
6 views
0 comments
Change product image placeholder based on product – Magento 2
We need to override the below two functions in vendor/magento/module-catalog/Helper/Image.php Below function change the placeholder image...
Bilal Malik
Feb 19, 20191 min read
3 views
0 comments
Setup script execution time – Magento 2
Magento setup scripts are used to create/alter table and insert/update data into table while installing /upgrading module. Install prefix...
Bilal Malik
Sep 10, 20171 min read
8 views
0 comments
Insert data while upgrading module (UpgradeData) – setup script – Magento 2
This is a continuation of the previous tutorial, It helps to insert data into the database while upgrading the module in Magento 2. As...
Bilal Malik
Sep 10, 20172 min read
11 views
0 comments
Upgrade schema while upgrade module (UpgradeSchema) – setup script – Magento 2
This is a continuation of the previous tutorial, It helps to alter table into the database while installing the module in Magento 2. As...
Bilal Malik
Aug 21, 20172 min read
6 views
0 comments
bottom of page