Currently browsing

Magento: Join, filter, select and sort attributes, fields and tables

In my previous article (Magento: Very Useful Collection Functions), I had written about database interaction functions present in class Varien_Data_Collection_Db. Here, I am going to explain some database interaction functions present in the class Mage_Eav_Model_Entity_Collection_Abstract. These collection functions are very useful to select data from Magento database. We need them …

Magento: Get list of all Categories

Here, I will show you how you can get list of all categories of your Magento Shop. You might want to display all categories in homepage or any CMS page. There are different ways to get the category listing. Here are some:- Get all categories The following code will fetch …

Magento: Show Currency Selector in header

Here, I will show you how you can change the location of currency selector to header in Magento. By default, the currency selector is displayed in the left sidebar. Here, I will show you how you can show it in header just below the language selector. Looking for improvement for …