Magento 2: Get Simple Product ID & Quantity in Configurable Product using Swatches

This article shows how you can get the associated Simple Product ID and Quantity (Qty) / inventory from a Configurable Product in frontend product detail page in Magento 2.x. – The below code assumes that Swatches have been used in the product detail page. – Suppose you have two configurable attributes (color and size) for … Read more

Magento 2: Enabling/Viewing Full Error Display

In Magento 2.x, the full error display on frontend is disabled by default. This article shows different methods on how you can see the full error message in your Magento 2 website. I have written another article on how to Enable/View Full Error Display on Magento 1.x. This one is a similar article for Magento … 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 2: Unlock Reindex Process via Command Line

This article shows how you can unlock the locked reindexing process Magento 2 via command line. Problem Sometimes a scenario comes when the indexing process gets locked at the time of reindexing. When the process or the index type is locked then you cannot reindex that particular locked index type. The reindex will always skip … Read more

Magento 2: Enable/Disable Module via Command Line

This article shows how you can enable or disable Magento 2 modules using the command line. In my previous article, I have listed out all the command line tools that can be used in Magento 2. This article specifically shows about commands to enable/disable Magento 2 modules. Get the List of All Modules First of … Read more

Magento 2: Maintenance mode via Command Line

This article shows how you can enable or disable Maintenance mode in Magento 2 using the command line. In my previous article, I have listed out all the command line tools that can be used in Magento 2. This article specifically shows about commands to enable/disable maintenance mode in Magento 2. Check Maintenance Mode Status … Read more

Magento 2: Reindex via Command Line

This article shows how you can reindex Magento 2 index types using the command line. In my previous article, I have listed out all the command line tools that can be used in Magento 2. This article specifically shows about commands to reindex Magento 2 index types. Get Index Types Info First of all, let’s … Read more

Magento 2: Enable/Disable/Clear Cache (Clean/Flush) via Command Line

This article shows how you can clear Magento 2 cache using command line. In my previous article, I have listed out all the command line tools that can be used in Magento 2. This article specifically shows about commands to clear Magento 2 cache. Check Cache Status First of all, let’s see what is the … Read more