Home » Archive

Articles tagged with: Magento

Magento, Magento 2 »

[20 Nov 2017 | No Comment]

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 | No Comment]

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 | No Comment]

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 | No 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 | No Comment]

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 | No 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 | No Comment]

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 | No Comment]

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 | No Comment]

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:

Magento, Magento Extension »

[11 Mar 2017 | No Comment]

Associated Product Price in Cart is a FREE Magento extension that uses the associated simple product’s price in shopping cart instead of the configurable product’s price.
This module is compatible with Magento version 1.5 and later (Magento 1.5, 1.6, 1.7, 1.8, 1.9).

Magento, Magento 2 »

[16 Jan 2017 | No Comment]

This article shows how you can get attribute name or label, id, entity_type, etc. by attribute code in Magento 2.
If you would like get attribute name and value in Magento 1 then you may refer to this article: Magento: How to get attribute name and value?

Magento, Magento 2 »

[9 Jan 2017 | One Comment]

This article shows how to get payment methods in Magento 2. We will be fetching 3 types of payment methods. They are:

1) All Payment Methods
2) Active/Enabled Payment Methods
3) Payment Methods that have been used while placing orders

Magento, Magento 2 »

[4 Jan 2017 | One Comment]

This article shows how to get all customer groups name and id in Magento 2.
I will be showing an example in a Block class. You can write the code in other class (Helper/Model) as well.
Both ways (Dependency Injection & Object Manager way) are shown below.

Magento »

[19 Dec 2016 | No Comment]

This article shows how to get payment methods in Magento 1. We will be fetching 3 types of payment methods. They are:

1) All Payment Methods
2) Active/Enabled Payment Methods
3) Payment Methods that have been used while placing orders

Magento »

[12 Dec 2016 | No Comment]

This article shows how to get all customer groups name and id in Magento 1.
To get all customer groups, we will be using Mage_Customer_Model_Resource_Group_Collection class.
Here’s the code: