Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>From my understanding ,i concluded with this solution :<br></p> <pre><code>&lt;?php $helper = $this-&gt;helper('catalog/category') ?&gt; &lt;?php $categories = $this-&gt;getStoreCategories() ?&gt; &lt;div id="navigation_vert"&gt; &lt;?php if (count($categories) &gt; 0): ?&gt; &lt;ul&gt; &lt;?php foreach($categories as $category): ?&gt; &lt;li&gt; &lt;a class="link" href="&lt;?php echo $helper-&gt;getCategoryUrl($category) ?&gt;"&gt; &lt;?php echo $this-&gt;escapeHtml($category-&gt;getName()) ?&gt; &lt;/a&gt; &lt;?php $subcategories = $category-&gt;getChildren() ?&gt; &lt;?php if (count($subcategories) &gt; 0): ?&gt; &lt;?php foreach($subcategories as $subcategory): ?&gt; &lt;a href="&lt;?php echo $helper-&gt;getCategoryUrl($subcategory) ?&gt;"&gt; &lt;?php echo $this-&gt;escapeHtml(trim($subcategory-&gt;getName(), '- ')) ?&gt; &lt;/a&gt; &lt;?php $subsubcategories = $subcategory-&gt;getChildren() ?&gt; &lt;?php if (count($subsubcategories) &gt; 0): ?&gt; &lt;ul&gt; &lt;?php foreach($subsubcategories as $subsubcategory): ?&gt; &lt;li&gt; &lt;a href="&lt;?php echo $helper-&gt;getCategoryUrl($subsubcategory) ?&gt;"&gt;&lt;?php echo $this-&gt;escapeHtml(trim($subsubcategory-&gt;getName(), '- ')) ?&gt;&lt;/a&gt; &lt;/li&gt; &lt;?php endforeach; ?&gt; &lt;/ul&gt; &lt;?php endif; ?&gt;&lt;!-- subsubcategories if e --&gt; &lt;?php endforeach; ?&gt;&lt;!-- subcategories for e --&gt; &lt;?php endif; ?&gt;&lt;!-- subcategories if e --&gt; &lt;/li&gt; &lt;?php endforeach; ?&gt;&lt;!-- categories e --&gt; &lt;/ul&gt; &lt;?php endif; ?&gt;&lt;!-- count main categories if e --&gt; &lt;/div&gt;&lt;!-- id navigation_vert e --&gt; </code></pre> <p><br> Here in the above code we have extracted all categories (its sub categories--->and its sub sub categories(just for reference))<br> Every category is associated with <code>&lt;a&gt;</code> tag.<br><br> On clicking ,all the respective category's products would be displayed (in a list/grid pattern).<br><br> Common mistakes <a href="http://www.aschroder.com/2009/03/top-3-solutions-when-your-magento-categories-are-not-displaying/" rel="nofollow">while managing categories.</a><br><br> For managing products check this link <a href="http://www.sboeconnect.com/blog/magentocommerce/adding-deleting-and-managing-products-in-magento-commerce-3.html" rel="nofollow">How to manage products</a><br><br> Reasons for not<a href="http://www.aschroder.com/2010/07/why-are-my-magento-products-not-showing-up/" rel="nofollow"> displaying products.</a></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.
 

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