Home » Archive

Articles in the Magento Category

Magento »

[8 Jan 2018 | One Comment]

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.

Magento, Magento 2 »

[25 Dec 2017 | Comments Off on 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 that index type.

Magento, Magento 2 »

[18 Dec 2017 | One Comment]

This article shows how you can upgrade/update Magento 2 to any particular version using composer and command line.
First of all, you have to open terminal/command prompt.

Magento, Magento 2 »

[11 Dec 2017 | Comments Off on 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

Magento »

[4 Dec 2017 | Comments Off on Upgrade Magento 1.x to Latest Version via both Browser & Command Line]

This article shows how you can upgrade/update your Magento 1.x via both Browser GUI and Command Line.
Before upgrading, we first have to create backup of our Magento site’s files and database so that we can restore the backed up files and database if by any problem the upgrade process fails.

Magento, Magento 2 »

[27 Nov 2017 | Comments Off on 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

Magento, Magento 2 »

[20 Nov 2017 | Comments Off on 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

Magento, Magento 2 »

[13 Nov 2017 | Comments Off on 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

Magento »

[19 Aug 2017 | Comments Off on Magento Error: Item (Mage_Core_Model_Store) with the same id “0” already exist]

Problem:
I transferred my Magento site files from one computer to another (it can be from local computer to online or from development site to production site). I imported the database. Now, when I try to browse the new location’s site, I get the following error:
There has been an error processing your request
Item (Mage_Core_Model_Store) with the same id “0” already exist

Magento »

[2 May 2017 | One Comment]

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.

Magento »

[25 Apr 2017 | Comments Off on 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.

Magento »

[18 Apr 2017 | One Comment]

This article shows how you can add new columns to sales order grid in Magento 1.x admin.
For this, you need to rewrite/override the Adminhtml’s sales_order_gird block class.
Here is the block override code to be written in your module’s config.xml file:

Magento »

[14 Apr 2017 | Comments Off on Magento: Create Order Programmatically]

This article show how you can create sales order programmatically through code in Magento 1.x.
This code example also includes creating new customer if the customer email is not already registered. It also shows how you can save customer address to the newly created customer. This code has been tested for simple products.
Here are the steps followed in the code below:

Magento, Magento 2, Magento Extension »

[11 Apr 2017 | 2 Comments]

Google Tag Manager is a FREE Magento 2 Extension that allows you to integrate Google Tag Manager to your site. This extension also provides ecommerce transaction tracking feature. You just need to enter your Tag Manager container id in the extension’s configuration settings.
This module is compatible with Magento version 2.0 and later.

Magento »

[4 Apr 2017 | Comments Off on Magento: Create Customer Programmatically]

This article shows how you can programmatically (through code) create customers in Magento 1.x.
In this example code, you can find saving customer general information along with saving customer’s billing address and shipping address.
Here are the steps followed in the code below: