Hello,
i would like at the 'find your favorite brand' (manufactures list) page to add an image into certain brands. Could you please advise how can i accomplish that? Please also see the attachment for better understanding. I'm using OC 1.5.6.4.
Thank you in advance for any help,
Kostas
Well, some VqMods exist, to make this work in OC v.1.5.6.x, like the one shown below!
But if you use a Custom Theme, you may have to modify the SEARCH content of this section:
Good Luck!
Ernie
---
Like shown here:
http://www.evelo.li/shop/index.php?rout ... nufacturer

But if you use a Custom Theme, you may have to modify the SEARCH content of this section:
Code: Select all
<file name="catalog/view/theme/*/template/product/manufacturer_list.tpl">
Code: Select all
<li><a href="<?php echo $category['manufacturer'][$i]['href']; ?>"><?php echo $category['manufacturer'][$i]['name']; ?></a></li>
Ernie
---
Like shown here:
http://www.evelo.li/shop/index.php?rout ... nufacturer
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id>Brand Logos</id>
<version>1.0</version>
<vqmver>2.4.1</vqmver>
<author>EseLoCCo</author>
<file name="catalog/controller/product/manufacturer.php">
<operation>
<search position="before"><![CDATA['href' => $this->url->link('product/manufacturer/info', 'manufacturer_id=' . $result['manufacturer_id'])]]></search>
<add><![CDATA[
'image'=> $this->model_tool_image->resize($result['image'],$this->config->get('config_image_related_width'),$this->config->get('config_image_related_height')),
]]></add>
</operation>
</file>
<file name="catalog/view/theme/*/template/product/manufacturer_list.tpl">
<operation>
<search position="replace"><![CDATA[<li><a href="<?php echo $category['manufacturer'][$i]['href']; ?>"><?php echo $category['manufacturer'][$i]['name']; ?></a></li>]]></search>
<add><![CDATA[
<?php if($category['manufacturer'][$i]['image']){ ?>
<li><a href="<?php echo $category['manufacturer'][$i]['href']; ?>"><img src="<?php echo $category['manufacturer'][$i]['image']; ?> " alt="<?php echo $category['manufacturer'][$i]['name']; ?>" title="<?php echo $category['manufacturer'][$i]['name']; ?>"/></a></li>
<?php }else{ ?><li><a href="<?php echo $category['manufacturer'][$i]['href']; ?>"><?php echo $category['manufacturer'][$i]['name']; ?></a></li><?php } ?>
]]></add>
</operation>
</file>
</modification>
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Who is online
Users browsing this forum: Bing [Bot] and 87 guests