title: get third level category in opencart
body: <p>I want to <code>foreach</code> third level in OpenCart category module,
  here is code which only generates 2 level category, please help and modify so that it will genarate third level:</p>
  
  <pre><code>&lt;ul id="menu"&gt;
      &lt;?php foreach ($categories as $category) { ?&gt;
      &lt;li&gt;&lt;a href="&lt;?php echo $category['href']; ?&gt;"&gt;&lt;?php echo $category['name']; ?&gt;&lt;/a&gt;
        &lt;?php if ($category['children']) { ?&gt;
          &lt;?php for ($i = 0; $i &lt; count($category['children']);) { ?&gt;
          &lt;ul&gt;
            &lt;?php $j = $i + ceil(count($category['children']) / $category['column']); ?&gt;
            &lt;?php for (; $i &lt; $j; $i++) { ?&gt;
            &lt;?php if (isset($category['children'][$i])) { ?&gt;
            &lt;li&gt;&lt;a href="&lt;?php echo $category['children'][$i]['href']; ?&gt;"&gt;&lt;?php echo $category['children'][$i]['name']; ?&gt;&lt;/a&gt;&lt;/li&gt;
            &lt;?php } ?&gt;
            &lt;?php } ?&gt;
          &lt;/ul&gt;
          &lt;?php } ?&gt;
        &lt;?php } ?&gt;
      &lt;/li&gt;
      &lt;?php } ?&gt;
    &lt;/ul&gt;
  </code></pre>