Jump to content

(Solved) Attribute Textures missing in product list


Whispar1

Recommended Posts

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 by Whispar1 (see edit history)
Link to comment
Share on other sites

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
  • Like 3
Link to comment
Share on other sites

×
×
  • Create New...