
Declarative Schema Data Patch in Magento 2.3
In the previous blog, I introduced the declarative schema in Magento 2.3. In this blog, I am going to elaborate on the Data Patch. It is a new concept in the Declarative Schema approach. A data patch is a class that contains the data modification instruction. The patch is defined…

Declarative Schema in Magento 2.3
When I was creating a module I notice a new thing in Magento 2.3. Magento 2.3 core modules used a declarative schema approach instead of a setup upgrade script. This is the new recommended approach in Magento 2.3 and above. Declarative schema reduces the unnecessary work of writing upgrade scripts…

Debugging technique in Magento 2
Following are the steps that you will follow to Debugging Technique in Magento 2: Enable Developer mode The first thing you must do is to enable the developer mode. So it will automatically deploy JS & CSS file to pub/static folder so you can save the time to run the…

EAV & Flat Catalog in Magento 2
Most of you probably know that Magento uses an EAV database structure for categories, and products. In some cases, this solution is not the best or fastest. and for that, there is an option of Magento 2 Flat Catalog. I will show you here examples of how to speed up...

Check if Customer is Logged in or not in Magento 2
As we all know, there are so many conditions where we need to check whether the customer is currently logged in or not for specific functionality. In this blog post, you will have an idea about How to check Magento 2 Customers login or not in Magento 2? It is…