Jump to content

[SOLVED] How to add logo with link manufacturer?


Nixon_

Recommended Posts

 

Hello, very good, I need to add logo with link manufacturer to products. 
 
PS 1.5.6 In the code works perfectly, but failing to translate the code for PS 1.6.
 
Greatly appreciate it, please!!
 
Pardon my English.

 

 

can you show what code you used in 1.5 ?

Link to comment
Share on other sites

The code I use in 1.5 is:

{* Fabricante *}
<div class="product_manufacturer">
    <a  href="{$base_dir}manufacturer.php?id_manufacturer={$product->id_manufacturer}" rel="nofollow">
        <img src="{$img_ps_dir}m/{$product->id_manufacturer}.jpg" alt="" width="80" />
    </a>
</div>
Link to comment
Share on other sites

In version 1.6 I got the logo: 

{if $product->id_manufacturer > 0} 
    <div class="manufacturer"><img src="{$img_manu_dir}{$product->id_manufacturer}-medium_default.jpg" alt=""" /></div>
{/if}

But I can not add the link to the manufacturer, can you help me?

Edited by Nixon_ (see edit history)
  • Like 1
Link to comment
Share on other sites

In version 1.6 I got the logo: 

{if $product->id_manufacturer > 0} 
    <div class="manufacturer"><img src="{$img_manu_dir}{$product->id_manufacturer}-medium_default.jpg" alt=""" /></div>
{/if}
But I can not add the link to the manufacturer, can you help me?

 

Code:

 

<a href="{$link->getmanufacturerLink($product->id_manufacturer)}"> .... . .. .</a>
Link to comment
Share on other sites

  • 2 weeks later...
×
×
  • Create New...