Whispar1 Posted September 25, 2014 Share Posted September 25, 2014 (edited) Using 1.6.0.9, I have some attributes that use textures rather than colors. The textures do not show up in product list but do appear on the product page. This was addressed here and fixed: http://forge.prestashop.com/browse/PSCSX-2025 However, mine is still not showing. I have cleared cache and manually deleted smarty cache Any thoughts? Link: http://whts.whispardesign.com/index.php?id_category=31&controller=category Edited September 25, 2014 by Whispar1 (see edit history) Link to comment Share on other sites More sharing options...
connexiocat Posted September 25, 2014 Share Posted September 25, 2014 Hello Whispar, I solved the same issue (ps 1.6.0.8) changing my product-list-colors.tpl with these conditional and adding img tag to the file. <ul class="color_to_pick_list clearfix"> {foreach from=$colors_list item='color'} <li> {if !file_exists($col_img_dir|cat:$color.id_attribute|cat:'.jpg')} <a href="{$link->getProductLink($color.id_product, null, null, null, null, null, $color.id_product_attribute)|escape:'html':'UTF-8'}" id="color_{$color.id_product_attribute|intval}" class="color_pick"style="background: {$color.color};"> {else} <a href="{$link->getProductLink($color.id_product, null, null, null, null, null, $color.id_product_attribute)|escape:'html':'UTF-8'}" id="color_{$color.id_product_attribute|intval}" class="color_pick"> <img src="{$img_col_dir}{$color.id_attribute|intval}.jpg" alt="{$color.name|escape:'html':'UTF-8'}" title="{$color.name|escape:'html':'UTF-8'}" width="15" height="15" style="margin: 0px;padding: 0px;vertical-align: top;"/> {/if} </a> </li> {/foreach} </ul> In my case, the theme force attributes textures images to 15 px (default are 20px). changit if you needed 3 Link to comment Share on other sites More sharing options...
Whispar1 Posted September 25, 2014 Author Share Posted September 25, 2014 Brilliant! Thanks for the tip. It seems like it's not too often that any of my problems I post have solutions - check this one of my list. Much appreciated! Link to comment Share on other sites More sharing options...
Recommended Posts