Nixon_ Posted March 24, 2014 Share Posted March 24, 2014 (edited) 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. Edited April 6, 2014 by Nixon_ (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted March 24, 2014 Share Posted March 24, 2014 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 More sharing options...
Nixon_ Posted March 24, 2014 Author Share Posted March 24, 2014 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 More sharing options...
Nixon_ Posted March 24, 2014 Author Share Posted March 24, 2014 (edited) 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 March 24, 2014 by Nixon_ (see edit history) 1 Link to comment Share on other sites More sharing options...
nadie Posted March 27, 2014 Share Posted March 27, 2014 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 More sharing options...
Nixon_ Posted March 27, 2014 Author Share Posted March 27, 2014 Gracias nadie, me a sido de gran ayuda. Link to comment Share on other sites More sharing options...
bwaje Posted April 9, 2014 Share Posted April 9, 2014 I will need some help here, more than code, it's wich file and where in the file to insert the code, is it in product.tpl ? thanks Link to comment Share on other sites More sharing options...
vekia Posted April 10, 2014 Share Posted April 10, 2014 yes you have to edit product.tpl file located in your theme directory. path to file looks like: /themes/YOUR_THEME/product.tpl where YOUR_THEME is a name of your theme that you actually use in your shop Link to comment Share on other sites More sharing options...
Recommended Posts