[-] BO : FixBug #PSCSX-91 Wrong texture display in products attributes colors
This commit is contained in:
1 parent
4a013cf537
commit
7816664911
1 file changed
+4
@@ -114,7 +114,11 @@
|
|||||||
{elseif isset($params.callback)}
|
{elseif isset($params.callback)}
|
||||||
{$tr.$key}
|
{$tr.$key}
|
||||||
{elseif $key == 'color'}
|
{elseif $key == 'color'}
|
||||||
|
{if !is_array($tr.$key)}
|
||||||
<div style="background-color: {$tr.$key};" class="attributes-color-container"></div>
|
<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}
|
{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>
|
<span title="{$tr.$key|escape:'html':'UTF-8'}">{$tr.$key|truncate:$params.maxlength:'...'|escape:'html':'UTF-8'}</span>
|
||||||
{else}
|
{else}
|
||||||
|
|||||||
Reference in new issue
Block a user