Home » Archive

Articles in the Magento Category

Magento »

[2 Aug 2010 | 2 Comments | 2,238 views]

Scenario: You have created a custom module. You have entered certain data in your database. You need to show the data randomly. Solution:

Magento »

[24 Jul 2010 | One Comment | 8,982 views]

There are different important functions that you can implement in your Collection object. The functions are present in Varien_Data_Collection_Db class. The class file is present in lib/Varien/Data/Collection/Db.php Here are some of the functions that you can use in your collection object:-

Magento »

[22 Jul 2010 | 7 Comments | 2,511 views]

Scenario: I have a fresh installation of Magento 1.4. I already have installed the sample data for Magento. Now, when I go to the category listing page, no products are displayed. It says “There are no products matching the selection.“.

Magento »

[20 Jul 2010 | 3 Comments | 2,846 views]

In my previous article, I have written about how you can change the currency symbol by making some change in the Zend (lib/Zend/Locale/Data/en.xml) file. It’s easy way but the main drawback of this method is that all your changes will vanish once you upgrade Magento.

Magento »

[20 Jul 2010 | 9 Comments | 9,124 views]

A configurable product can have multiple other products associated to it. Here is the code to fetch all the children products that are associated with a configurable product. Here goes the code :)

Magento »

[18 Jul 2010 | 8 Comments | 5,103 views]

Magento: How to change Currency symbol? I had a hectic day changing the currency symbol in Magento. Though different blogs and magento forum helped me, I am writing this article for my reference. ;) I had to change the currency symbol of Nepalese Rupee (from Nrs to Rs). By default, the currency symbol for Nepalese [...]

Magento »

[16 Jul 2010 | 5 Comments | 2,097 views]

You can see the currency Rates from Magento Admin System -> Manage Currency Rates You can change base currency and allowed currencies from System -> Configuration -> GENERAL -> Currency Setup -> Currency Options Now, here I will show you how you can get currency rates values for any given currency code.

Magento »

[14 Jul 2010 | 20 Comments | 13,133 views]

Here, I will show you, how you can change your order status programmatically (with PHP coding). First, you need to load your order. If you have order id, you can load order in the following way:-

Magento »

[12 Jul 2010 | 22 Comments | 5,787 views]

I got this error message when migrating my Magento files and database from one server to another. Notice: Undefined index: 0 in app/code/core/Mage/Core/Model/Mysql4/Config.php on line 92 Solution:

Magento »

[29 Jun 2010 | 5 Comments | 995 views]

Problem: I am using Magento 1.4. Homepage loads fine. When I go to category (product listing) page, it works fine. But when I go to any product detail page, I get the following error:- There has been an error processing your request

Magento »

[9 Jun 2010 | 13 Comments | 8,851 views]

This article will show how you can override Magento Block, Controller, Model and Helper files. We will be dealing with the config XML files and the class files to override. We override Magento core classes to update/modify the core functionalities according to our need. We can directly makes changes in the core Magento classes but [...]

Magento »

[1 Jun 2010 | 9 Comments | 7,190 views]

Here is a quick and easy way to create order invoice programmatically. Suppose, $_order contains your order. Here goes the code to create invoice:-

Magento »

[24 May 2010 | 5 Comments | 1,245 views]

Scenario: – I created downloadable products. – Then I created a grouped product. – But, when I go to the ‘Associated Products’ tab in product add/edit page for Grouped product, I don’t see the downloadable products that I created before in the list. Cause/Solution:

Magento »

[17 May 2010 | 3 Comments | 1,151 views]

Scenario: I have enabled Authorize.net payment method but it is not displayed in Payment Information section while Checkout. Problem:

Magento »

[27 Apr 2010 | 7 Comments | 3,825 views]

Problem: When I try to add products to shopping cart, I get redirected to enable-cookies CMS page. Similarly, when I try to login as customer from customer account login, I get redirected to the same (enable-cookies) page. The enable-cookies page asks me to enable cookies in my browser. The message says “Please enable cookies in [...]