Post by eekostas » Wed Nov 29, 2017 1:32 am

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

Attachments

find_your_favorite_brand.jpg

find_your_favorite_brand.jpg (60 KiB) Viewed 569 times


New member

Posts

Joined
Sun Jun 02, 2013 11:11 pm

Post by IP_CAM » Wed Nov 29, 2017 4:32 am

Well, some VqMods exist, to make this work in OC v.1.5.6.x, like the one shown below! :D
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>
Good Luck!
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.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: Bing [Bot] and 87 guests