Magento 2 Create Customer Programmatically

In Magento 2, there are some ways to create a new customer, fill the form in register page, create customer in backend, checkout … However, if you want to create account in some automation process, you will have to do it with code. This tutorial will…

Magento 2 Permission for Files and Directories

In Magento 2 permission is very important. Some features ( or whole website ) won’t work properly if you don’t set the permission correctly. So what are the correct file and folder permissions for Magento 2 and How to set Magento 2 file/folder permissions? Let’s…

Magento 2 clear – flush cache programmatically

Magento 2 clear – flush cache programmatically. In this post, let’s find out how to clear/flush cache programmatically in Magento 2. It will be useful for you in your custom module or new feature.  In Magento 1, it’s quite simple using:

In Magento 2, we…

Magento 2 component manager please wait stop loading

Magento 2 component manager please wait problem  In Magento 2 backend, when you try to upgrade modules or Magento using Component Manager, you may get this problem: Magento keeps showing ‘Please wait’ message and it won’t stop. There are many reasons why you get this…

Manage cache Magento 2 using command line

Manage cache Magento 2 using command line – In Magento 2 there are 2 ways to manage cache, going to “System -> Cache Management” in backend or using command line. You can run commands in following ways: cd <your Magento install dir>/bin and run them as…

Cache types in Magento 2

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…

Magento 2 get Base URL

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…

Magento 2 Add a menu item in backend

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…

Magento 2 – Create system configuration – system.xml

In this blog post we will see how to create System Configuration for your module in Magento 2 System configuration in Magento 2 is very similar to Magento 1 System configuration is divided into different parts; tab, section, group and field which is described in…

1 2 3