Month / May 2014

  1. Clearing Magento Model instance

    As we all know, it’s always better to use collections in Magento than to instantiate model inside a loop. Database hit is one of the most expensive operations you can do. You should always try to make one query in order to get the collection and then loop through it’s elements instead of loading and […]

  2. Magento category image widget

    Widgets can be thought of as small applications embedded on a web page. I think this definition could also apply to Magento widget which is a small piece of server side and/or client side code that can be added to a CMS page or a static block. There are many predefined widgets in Magento for […]