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 1.x: Enabling/Viewing Full Error Display

In Magento 1.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 on your Magento 1 website. Method 1: View full error from var/report folder By default, you will see the following message if any Magento-related error happens in your … Read more

Magento: Get Custom Options & Configurable Product’s Options on Shopping Cart

This article shows how you can get custom options values and configurable options values in shopping cart page in Magento 1.x. We use the checkout session quote collection for this purpose. Here’s the full code: // Get visible items collection in shopping cart $itemsCollection = Mage::getSingleton('checkout/session') ->getQuote() ->getAllVisibleItems(); foreach ($itemsCollection as $item) { // Get … 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

Upgrade Magento 1.x to the latest version

This article shows how you can upgrade/update your Magento 1.x via both Browser GUI and Command Line. Note: – Magento/Adobe ended support for Magento 1.x software on June 30, 2020. – After that day, the Magento 1 software repo was removed. – All Magento 1 extensions were removed from the official extension site. When you … 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