Home » Archive

Articles tagged with: collection

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,976 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, MySQL »

[31 Dec 2009 | 15 Comments | 19,068 views]

Suppose, you have a product collection and you want to filter it by category. Suppose, you want to filter it by more than one category. You can use addCategoryFilter if you have only one category. But, what if you want to filter by more than one category? Category ids are stored for product in a [...]