Home » Archive

Articles in the Magento Category

Magento »

[13 Jun 2011 | One Comment | 1,230 views]

Suppose, you have added a new extension to MagentoConnect. You may have situation to delete that extension later on. However, there is no delete option in Manage Extension section in MagentoCommerce (My Account -> Extensions and Languages -> Manage Extensions). You can Edit your extensions yourself but you cannot delete them. To delete you extension, [...]

Magento »

[7 Jun 2011 | 5 Comments | 2,103 views]

Here is a quick tip to sort/order latest product by both created date and new from date. Created At date is automatically added when you add a new product. However, you have to set New from Date manually while adding or editing product. You may have product with same new from date. And, then you [...]

Magento »

[31 May 2011 | 8 Comments | 3,144 views]

In Magento, Transactional Email Templates can be created from System -> Transactional Emails. This article shows how we can send transactional emails programmatically. There are few necessary things for any transactional email in Magento. They are:-

Magento »

[26 May 2011 | No Comment | 1,010 views]

Magento has a default feature of Tell a Friend or Email a Friend (whatsoever we say :)). To enable this feature,

Magento, PHP »

[24 May 2011 | No Comment | 567 views]

Magento works fine in PHP 5.3 from versions 1.4 and later. But, error is displayed in different pages when we use older versions (prior to 1.4) of Magento in PHP 5.3. This is because some php functions are deprecated in PHP 5.3 and those functions have been used in Magento Older Versions.

Magento »

[17 May 2011 | 12 Comments | 3,387 views]

You have built a custom magento extension (magento module) and you want to package it and submit it to magento connect (magento extension directory). This article shows how to create Magento extension package. I have included images for every step which I followed while creating extension package for my module (Auto Currency Switcher).

Magento »

[16 May 2011 | 3 Comments | 849 views]

Problem: I have a payment method which is displayed well in general Magento checkout. But it is not displayed in Multiple Addresses Checkout. Solution:

Magento, Zend »

[10 May 2011 | One Comment | 2,053 views]

Here is a quick function code to send email in Magento. I am using the Zend_Mail class. Hope this helps. Thanks.

Magento »

[4 May 2011 | 5 Comments | 1,429 views]

Here, I will show you how you can assign different shipping rate for different country in Magento. Like, there might be different shipping rate for US and Canada. Moreover, there might be different shipping rate for various regions within US as well. Like, there might be different shipping rate for Florida and California. In Magento, [...]

Magento »

[1 May 2011 | 2 Comments | 1,174 views]

This article shows how to add default value to any system configuration option fields. System configuration option fields means those options under System -> Configuration. Suppose, you have the following system.xml file. System.xml file is necessary to add admin configuration options.

Magento »

[29 Apr 2011 | No Comment | 738 views]

Scenario:- I am getting the fatal error saying:- Fatal error: Call to a member function getTable() on a non-object in /var/www/magento/app/code/core/Mage/Core/Model/Mysql4/Collection/Abstract.php on line 456 This error occurs when I try to browse Configurable product in frontend. Or, when I try to add Configurable product in backend.

Magento »

[25 Apr 2011 | 22 Comments | 8,384 views]

Here, I will show you how you can get information about all items in your Magento Shopping Cart. You will see how you can :- – Get products id, name, price, quantity, etc. present in your cart. – Get number of items in cart and total quantity in cart. – Get base total price and [...]

Magento »

[18 Apr 2011 | 2 Comments | 958 views]

Here, I will show you how to track visitor’s data information in Magento. By visitor’s information, I mean information like remote address, http host, user agent (browser), referer url, first visit date time, last visit date time, etc. The following code fetches the vistor data:-

Magento »

[11 Apr 2011 | 3 Comments | 1,315 views]

I created a module, let’s say, ‘MyModule’. When I go to the Admin -> System -> Configuration section of this module, I get this weird error. Fatal error: Class ‘Mage_MyModule_Helper_Data’ not found

Magento »

[4 Apr 2011 | 6 Comments | 1,319 views]

Case: Here, I am taking the scenario of a custom Magento module. You are developing a custom Magento module and you don’t want to show the ‘Add New’ button in the Grid. The Add New button is present in top right corner of Grid Page. Rename ‘Add New’ button