Magento 2 API: Get Admin Token

To authenticate the API, we can pass the admin token, customer token, or integration token along with the API request in Magento 2. This type of authentication process is called Token-based authentication. Introduction to Magento 2 API and different types of API authentication mechanism used in Magento 2 are present in my previous article. In … Read more

Magento 2: Disable Admin Password Expiration/Change

Magento’s backend/admin password expires in 90 days by default. So, in every 90 days, when you login to admin, you will be asked to change your admin user’s password. This is a useful security feature in production/live site. However, this can be annoying to have in a development/testing site. This article shows on how you … Read more

Magento 2: Admin ERR_TOO_MANY_REDIRECTS

This article provides a solution to the redirect loop error while logging in to the Magento admin panel. Did set up an existing Magento shop. Went to the Magento admin login page Entered admin username and password Got the ERR_TOO_MANY_REDIRECTS error The website has a redirect loop ERR_TOO_MANY_REDIRECTS Cause The problem is with the Cookie … Read more

Magento 2 Admin Error: Exception #0 (ReflectionException): Class Authorization Model Acl GroupFactory does not exist

Problem: Opened Magento 2 Admin Entered the correct admin login information And then, got the following error: Exception #0 (ReflectionException): Class Magento\Authorization\Model\Acl\Role\GroupFactory does not exist Cause: It’s related to the factory classes that Magento generates inside var/generation directory. Solution: Clearing var/generation directory solved the error. Open terminal/command-prompt Go to your Magento root directory Run the … Read more

Magento: Add new column to Product Grid in Admin

This article shows how you can add new columns to product grid (Catalog -> Manage Products) in Magento 1.x admin. For this, you need to rewrite/override the Adminhtml’s catalog_product_grid block class. Here is the block override code to be written in your module’s config.xml file: YourCompany/YourModule/etc/config.xml <global> <blocks> <yourmodule> <class>YourCompany_YourModule_Block</class> </yourmodule> <adminhtml> <rewrite> <catalog_product_grid>YourCompany_YourModule_Block_Adminhtml_Catalog_Product_Grid</catalog_product_grid> </rewrite> … Read more

Magento: Add new column to Customer Grid in Admin

This article shows how you can add new column to customer grid in Magento 1.x admin. In this example, we will be adding a fetching the fax field value from customer’s billing address and showing in the customer grid in Magento admin. For this, you need to rewrite/override the Adminhtml’s customer_grid block class. Here is … Read more