title: Want to change opencart category plugin to show subcategories
body: <p>I have installed the category plugin and have it displayed down the left hand side of my site. It currently shows the main parent categories but I would like to know how to change it so that it shows the submenu items instead (I only have one level below the parent categories). </p>
  
  <p>The code I currently have is: </p>
  
  <pre><code>&lt;div class="box"&gt;
    &lt;div class="box-heading"&gt;&lt;?php echo $heading_title; ?&gt;&lt;/div&gt;
    &lt;div class="box-content"&gt;
   &lt;div class="box-category"&gt;
    &lt;ul&gt;
      &lt;?php foreach ($categories as $category) { ?&gt;
      &lt;li&gt;
        &lt;?php if ($category['category_id'] == $category_id) { ?&gt;
        &lt;a href="&lt;?php echo $category['href']; ?&gt;" class="active"&gt;&lt;?php echo $category['name']; ?&gt;&lt;/a&gt;
        &lt;?php } else { ?&gt;
        &lt;a href="&lt;?php echo $category['href']; ?&gt;"&gt;&lt;?php echo $category['name']; ?&gt;&lt;/a&gt;
        &lt;?php } ?&gt;
      &lt;/li&gt;
      &lt;?php } ?&gt;
    &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>
      </p>
  
  <p>I tried suggestions in other posts to use $child but I wasn't sure how to do it. </p>
  
  <p>Many thanks.</p>