ANIM8R Posted March 30, 2013 Share Posted March 30, 2013 Good day All .. Very new to Prestashop ( after being a long time OSC user ) ... Im now a convert lol. I can add the Manufacturer image in the admin and it shows up fine, but on the client site it just shows no image available. Here is my snippet from "Manufacture-list.tpl" <div class="logo"> {if $manufacturer.nb_products > 0}<a href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$manufacturer.name|escape:'htmlall':'UTF-8'}" class="lnk_img">{/if} <img src="{$img_manu_dir}{$manufacturer.image|escape:'htmlall':'UTF-8'}-medium_default.jpg" alt=""/> {if $manufacturer.nb_products > 0}</a>{/if} </div> 4:30 in the am and im banging my head Thank you in advance - Brandon Link to comment Share on other sites More sharing options...
NemoPS Posted March 30, 2013 Share Posted March 30, 2013 Hi, Maybe there is no "medium" size for manufacturers. Have a look in image preferences, and see medium_default. Check that manufacturers is set as an image type for that size Link to comment Share on other sites More sharing options...
Aimée H. Posted March 30, 2013 Share Posted March 30, 2013 Hello, simply change the img tag below : <img src="{$img_manu_dir}{$manufacturer.image|escape:'htmlall':'UTF-8'}-medium_default.jpg" alt=""/> by <img src="{$img_manu_dir}{$manufacturer.id_manufacturer|escape:'htmlall':'UTF-8'}-medium_default.jpg" alt="" /> and do the same on supplier-list.tpl file AH 1 Link to comment Share on other sites More sharing options...
ANIM8R Posted March 30, 2013 Author Share Posted March 30, 2013 Hello, simply change the img tag below : <img src="{$img_manu_dir}{$manufacturer.image|escape:'htmlall':'UTF-8'}-medium_default.jpg" alt=""/> by <img src="{$img_manu_dir}{$manufacturer.id_manufacturer|escape:'htmlall':'UTF-8'}-medium_default.jpg" alt="" /> and do the same on supplier-list.tpl file AH Thank you very much Aimee ... That did the trick ! - Cheers Link to comment Share on other sites More sharing options...
vekia Posted April 3, 2013 Share Posted April 3, 2013 thanks for sharing solution i decided to mark this thread as solved because this works like a charm :-) Link to comment Share on other sites More sharing options...
libreriasemola Posted May 11, 2013 Share Posted May 11, 2013 I had the same problem and it worked perfectly. Thank you! Link to comment Share on other sites More sharing options...
Generaal Posted May 16, 2013 Share Posted May 16, 2013 Hello, I use the v 5.4.1, one lang, Dutch, and the show the follow snipe on the Manufacture-list.tpl: <!-- logo --> <div class="logo"> {if $manufacturer.nb_products > 0}<a href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$manufacturer.name|escape:'htmlall':'UTF-8'}" class="lnk_img">{/if} <img src="{$img_manu_dir}{$manufacturer.image|escape:'htmlall':'UTF-8'}-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {if $manufacturer.nb_products > 0}</a>{/if} </div> <!-- name --> Thnx, Roger I have it chance in these tpl, but nothing will works, the logo are showing in the BO, I have also upload a small for testing. Link to comment Share on other sites More sharing options...
Recommended Posts