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]

Problem:
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.

Magento »

[25 Feb 2011 | 4 Comments]

Gift Message facility is present in Magento by default. You can add gift message in order as a whole or in individule order items.
By default, the gift message is not enabled in Magento.

Magento »

[22 Feb 2011 | 7 Comments]

Magento has this cool functionality of Event Observer. Magento follows the Observer Design Pattern for its event hooking system. With this Event Observer Hook, additional functionality can be added without modifying the core code.
The full list of Magento Event Observer Hooks is present over here:- Magento Event/Observer Hooks Cheat Sheet

Magento »

[14 Feb 2011 | 4 Comments]

Suppose you have a Magento shop installed. You also have another php installation in your server (may it be wordpress, joomla, drupal, or any other php code system).
Now, you want to get Magento shop data in your external website which is not Magento. So, how to do this?

Magento »

[9 Feb 2011 | 8 Comments]

Suppose you have a multi select attribute and you have displayed it in admin grid. You have displayed the multi select attribute options as selection list. Now, you want to filter/search the grid by the multiselect attribute.
The problem here is that the multiselect attribute value is store as comma separated value in database. When we send single value from the selection list, the filter doesn’t work properly.

PHP, Review »

[7 Feb 2011 | 5 Comments]

Here, I will be writing about two pdf creation PHP Classes. They are FPDF and TCPDF. With these classes, you can quickly, easily and effectively generate PDF files.
FPDF is smaller in size compared to TCPDF. But, in functionalities, TCPDF wins. TCPDF has lots of features and functionalities.

PHP, Review »

[2 Feb 2011 | One Comment]

As far as I see, I find phpThumb() as the best of all PHP thumbnail image generator. It has lots of thumbnail generation features. You can create thumbnail in a number of ways with phpThumb().

phpThumb() uses the GD library to create thumbnails from images (JPEG, PNG, GIF, BMP, etc) on the fly. Basic functionality is available even if GD functions are not installed (as long as ImageMagick is installed).