Magento get popular products by ordered qty

Posted by Damodar Bashyal on May 10, 2013

 

Magento product report resource collection allows you to get most popular products based on different options.

functions we will use: addOrderedQty, setOrder

Let's load this resource collection first like this:

More»

100s of free magento themes and templates

Posted by Damodar Bashyal on April 30, 2013

 

Here are the list of free magento templates / themes demo and download where available. Suggest us more templates to grow this list.

More»

Magento getModel with or without parameters

Posted by Damodar Bashyal on April 30, 2013

 

In Magento you can load your model with getModel. You can optionally pass parameters to the model class constructor. All you need to do is:

Mage::getModel('model_class', 'arguments_as_array_if_any');

For example: I want to load Data.php model from: https://github.com/dbashyal/Magento-General-Module-Extension

More»