I have multiple stores in my Magento. For each store I have created a home page in CMS > Pages > Manage pages
. At the design tab I use this layout update XML code:
<reference name="content">
<block type="catalog/product_new" name="home-categories" template="custom/category_grid.phtml" after="-"/>
<!--
<block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
<action method="setColumnCount"><columns>4</columns></action>
</block>
-->
</reference>
The result of including this code in the layout update XML textarea is that each category will be displayed at the homepage. See screenshots below:
Here the categories are working:
(the <ul>
tag is included in the html)
Here the categories aren't working: (the <ul>
tag is not included in the html)
The problem is that one store doesn't show the categories in the grid. I think that the solution to this problem lays somewhere else but I don't know where to look. Where can I look?
Update
The code of function getSelectSQL in "lib\Varien\Data\Collection\Db.php"
function getSelectSql($stringMode = false)
{
if ($stringMode) {
return $this->_select->__toString();
}
return $this->_select;
}
<!-- [...] -->
means that it is inactive. So including this code shouldn't result in a grid. My guess is that the grid is coming from somewhere else – Sander Mangel♦ Apr 30 '15 at 13:21