Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>For some reason, the above answer did not work for me. I am also using Magento 1.7.x. </p> <p>I found <a href="https://stackoverflow.com/questions/7201433/magento-displays-subcategories-description-on-category-list-phtml">Magento displays subcategories description on category list.phtml</a> link to be helpful. </p> <p>I am trying to do the same as you so I adjusted the above answer from</p> <pre><code>&lt;?php $children = explode( ",", $this-&gt;getCurrentCategory()-&gt;getChildren() ); ?&gt; &lt;div class="category-products"&gt; &lt;ul class="products-grid"&gt; &lt;?php foreach( $children as $child ): ?&gt; &lt;?php $_child = Mage::getModel( 'catalog/category' )-&gt;load( $child ); ?&gt; &lt;li class="item"&gt;&lt;?php echo $_child-&gt;getDescription(); ?&gt;&lt;/li&gt; &lt;?php endforeach; ?&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p>to:</p> <pre><code>&lt;?php $children = explode( ",", $this-&gt;getCurrentCategory()-&gt;getChildren() ); ?&gt; &lt;div class="category-products"&gt; &lt;ul class="products-list"&gt; &lt;?php foreach( $children as $child ): ?&gt; &lt;?php $_child = Mage::getModel( 'catalog/category' )-&gt;load( $child ); ?&gt; &lt;li class="item"&gt;&lt;a href="&lt;?php echo $_child-&gt;getUrl() ?&gt;"&gt; &lt;?php echo $_child-&gt;getName() ?&gt; &lt;/a&gt;&lt;/li&gt; &lt;?php endforeach; ?&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p>Just like the above answer, you can change the div class to </p> <pre><code>&lt;div class="products-grid"&gt; </code></pre> <p>instead of listing them. But you have asked how to list. </p> <p>I hope this helps people in the future. There are tons of other related questions on Stack overflow as well. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload