Home » Archive

Articles in the Magento Category

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 | 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 | Comments Off on Magento: Add New Column to Sales Order Grid in Admin]

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 | Comments Off on Google Tag Manager: Magento 2 Extension [FREE]]

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:

Magento, Magento Extension »

[11 Mar 2017 | Comments Off on Associated Simple Product Price in Cart: Magento Extension [FREE]]

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 | Comments Off on Magento 2: Get Attribute Id, Name, Value from Attribute Code]

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 | Comments Off on Magento: Get Payment Methods (All/Active/Used)]

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 | Comments Off on Magento: Get Customer Groups]

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:

Magento, Magento 2 »

[3 Oct 2016 | One Comment]

This article/tutorial show how to download and install Magento 2 through command line interface (CLI). We will be using Composer to download Magento 2 from Magento’s repository.
Here is the step-by-step guide on installing Magento 2 via command line:

Magento, Magento 2 »

[26 Sep 2016 | One Comment]

This article shows how to get custom option values of products/items added to cart or products of any order in Magento 2.
I will simply be using ObjectManager for this example.

Magento, Magento 2 »

[19 Sep 2016 | 3 Comments]

This article shows how we can get list of all categories from current product or any particular product as well.
Both ways (Dependency Injection & Object Manager way) are shown below: