Monthly Archives: June 2011

Magento get category subcategories

One thing we will meet for sure in magento is the category. One of the task we will need to do is the listing of child categories, the subcategories. In the following example will be listed the subcategories of a … Continue reading

Posted in Categories | Tagged , , , | Leave a comment

eBay Agrees to Acquire Magento

Some interesting news regarding Magento received two weeks ago by Magento newsletter. The past several years have been an amazing journey for Magento, as we’ve grown from a new open source platform into an eCommerce leader. Along the way, we’ve … Continue reading

Posted in News | Tagged , | Leave a comment

Magento disable block cache

As  an example if you want to disable caching for the footer block you have to make a copy of app/code/coreMage/Page/Block/Html in app/code/local/Mage/Page/Block/Html. If you have copied the file open it from local and in the _construct function comment out … Continue reading

Posted in Cache | Tagged , , | 5 Comments

Magento search terms

If you don’t want to use magento popular search on a single page like this, then you can spice up your webpage by editing your catalogsearch.xml layout page  and after  <default> you can add a new block like this … Continue reading

Posted in Templates | Tagged , , | 2 Comments

Magento static block in template

A very useful feature in magento is the static block which you can print out in any of your template page. You can do it in the following way by changing ‘block-id’ for the block identifier you choosed to use. … Continue reading

Posted in Static blocks, Templates | Tagged , | 1 Comment

Magento search gives 404 page

If you happened to notice that simple search results with  404 page (page not found) for Magento 1.4 , check if you have installed  Customers who bought this product also purchased magento extension. The fix is pretty simple. Open app/code/local/Jain/Bought/etc/config.xml … Continue reading

Posted in Errors, extensions | Tagged , , , , | 3 Comments

Magento category bestseller

The first subject I tackle is the bestseller. I will extend the exemple provided by inchoo net for the magento product bestseller. First download the code. Modify the following lines from bestseller.phtml $_productCollection = Mage::getResourceModel(’reports/product_collection’) ->addAttributeToSelect(’*') ->addOrderedQty() ->addAttributeToFilter(’visibility’, $visibility) ->setOrder(’ordered_qty’, … Continue reading

Posted in bestseller | Tagged , , , , , | 6 Comments