title: OpenCart Manufactures DropDown
body: <p>I'm trying to add manufacturers to the dropdown menu dynamically, I wrote a foreach statement but nothing is showing up on the front page.</p>
  
  <p>Can anyone check the code and shed some light, would appreciate the help.</p>
  
  <pre><code>&lt;?php if ($categories) { ?&gt;
  &lt;div id="menu-holder" class="&lt;?php echo (isset($styler['menu_style']) &amp;&amp; ($styler['menu_style']!='')) ? $styler['menu_style']."_menu" : '' ;?&gt;"&gt;
  &lt;div id="menu"&gt;
    &lt;ul&gt;
          &lt;li&gt;&lt;a href="&lt;?php echo $home; ?&gt;"&gt;&lt;span class='home_icon'&gt;&lt;/span&gt;&lt;/a&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;?php if ($category['children']) { ?&gt;&lt;span&gt;&lt;/span&gt;&lt;?php } ?&gt;&lt;/a&gt;
        &lt;?php if ($category['children']) { ?&gt;
        &lt;div&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&lt;?php echo ($i==(count($category['children'])-1) ? " class='last_submenu_item'" : '');?&gt; href="&lt;?php echo $category['children'][$i]['href']; ?&gt;"&gt;&lt;span&gt;&lt;?php echo $category['children'][$i]['name']; ?&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
            &lt;?php } ?&gt;
            &lt;?php } ?&gt;
          &lt;/ul&gt;
          &lt;?php } ?&gt;
        &lt;/div&gt;
        &lt;?php } ?&gt;
      &lt;/li&gt;
      &lt;?php } ?&gt;
    &lt;/ul&gt;
    &lt;ul&gt;
      &lt;?php foreach ($manufacturers as $manufacturer) { ?&gt;
      &lt;li&gt;&lt;a href="&lt;?php echo $manufacturer['href']; ?&gt;"&gt;&lt;?php echo $manufacturer['name']; ?&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;?php } ?&gt;
    &lt;/ul&gt;
    &lt;ul&gt;
  &lt;li&gt;&lt;a href="#"&gt;Football Clubs&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;?php } ?&gt;
  </code></pre>