[-] BO : FixBug #PSCSX-91 Wrong texture display in products attributes colors

This commit is contained in:
Jerome Nadaud
2013-12-10 10:14:15 +01:00
parent 4a013cf537
commit 7816664911
@@ -114,7 +114,11 @@
{elseif isset($params.callback)}
{$tr.$key}
{elseif $key == 'color'}
{if !is_array($tr.$key)}
<div style="background-color: {$tr.$key};" class="attributes-color-container"></div>
{else} {*TEXTURE*}
<img src="{$tr.$key.texture}" alt="{$tr.name}" class="attributes-color-container" />
{/if}
{elseif isset($params.maxlength) && Tools::strlen($tr.$key) > $params.maxlength}
<span title="{$tr.$key|escape:'html':'UTF-8'}">{$tr.$key|truncate:$params.maxlength:'...'|escape:'html':'UTF-8'}</span>
{else}