Magento »

[4 Apr 2011 | 8 Comments]

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

Magento »

[28 Mar 2011 | 11 Comments]

I was creating a module. I already had one Grid displayed in admin. The Grid was being displayed by a Block class, for example: MyNamespace_MyModule_Block_Adminhtml_MyModule
Now, I had to display another Grid using a new Block class. Let’s say, I created a new Block class: MyNamespace_MyModule_Block_Adminhtml_MyNewGrid
I just copied code from MyNamespace_MyModule_Block_Adminhtml_MyModule and copied it to MyNamespace_MyModule_Block_Adminhtml_MyNewGrid class.

PHP, Review »

[21 Mar 2011 | 3 Comments]

The ionCube PHP Encoder makes it easy to protect your PHP 4 & 5 source code, including sources using the PHP 5.3 language, from easy observation, theft and change. Encoded files run on a wide range of operating systems such as Linux, Windows, FreeBSD and others.

Google »

[14 Mar 2011 | 2 Comments]

You can use multiple email addresses with your single Gmail account.
Trick #1
Suppose, you have your Gmail account as:
With Gmail, you can also use it as: or or

Google »

[11 Mar 2011 | One Comment]

Backing up browser means getting backup of all the browsing history, bookmarks, extensions installed, etc.
Google Chrome is a browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier. I love Google Chrome.

Magento »

[9 Mar 2011 | 12 Comments]

Here is a quick code to get the admin user’s data (id, name, username, email, password, etc).
By admin user, I mean the users that login through the admin panel and those who have access to the admin panel of Magento. The users can be administrator, or with some specific roles.

$userArray = Mage::getSingleton(‘admin/session’)->getData();

Sports »

[4 Mar 2011 | 3 Comments]

From the past records of World Cup Cricket, we find that the hosting team has never won the World Cup.
In 1996, the World Cup was hosted jointly by India, Pakistan and Sri Lanka. The final match was played in Pakistan. And, Sri Lanka had won the World Cup.

Magento »

[3 Mar 2011 | 10 Comments]

I transfered my Magento site files from one computer to another. I imported the database. Now, when I try to login to admin (when I go to admin login url), it shows 404 Not Found Error page. The same error is also displayed in the module’s page that are installed in site.
However, the frontend part is working fine. There is no such error in browsing categories and pages in frontend.

Javascript, jQuery, Magento »

[2 Mar 2011 | 7 Comments]

By default, Magento contains and uses the Prototype javascript library. You can also integrate the other most popular javascript library ‘jQuery‘ in your Magento site.
While integrating jQuery in Magento, you might get some javascript conflict and errors as you will be using two javascript libraries (prototype and jQuery) at a time. This is caused because prototype also uses ‘$‘ as a function or variable name, just as jQuery does.