title: OpenCart - Displaying Manufacturer logos in Category page
body: <p>OK so I want to display manufacturer logos for each category. Manufacturer logos should relate to the category i.e. the Mobile Phones category should display only those manufacturer logos which belong to the category Mobile Phones like the logo for Microsoft or Sony shouldn't be displayed here (Mobile Phones Category) but instead, it should be displayed in Gaming Consoles category.</p>
  
  <p><strong>catalog/controller/product/category.php</strong></p>
  
  <pre><code>$this-&gt;load-&gt;model('catalog/manufacturer');
  
  $this-&gt;data['manufacturers'] = array();
  
    $results = $this-&gt;model_catalog_manufacturer-&gt;getManufacturers();
      foreach ($results as $result) {
         $this-&gt;data['manufacturers'][] = array(
         'manufacturer_image' =&gt; $this-&gt;model_tool_image-&gt;resize($result['image'],80,80),
          'name' =&gt; $result['name'],
          'href' =&gt; $this-&gt;url-&gt;link('product/manufacturer/info', 'manufacturer_id=' . $result['manufacturer_id'])
  );
  } 
  </code></pre>
  
  <p><strong>category.tpl</strong></p>
  
  <pre><code>&lt;?php foreach ($manufacturers as $manufacturer) { ?&gt;
  &lt;img src="&lt;?php echo $manufacturer['manufacturer_image']; ?&gt;" /&gt;
  &lt;?php } ?&gt;
  </code></pre>
  
  <p>Currently it shows all manufacturer logos in all categories.</p>