Any working solution for 1.6 guys? Thanks
I can´t get it to work properly ...
I have used this code:
<ul id="color_to_pick_list" class="clearfix"> {assign var="default_colorpicker" value=""} {foreach from=$group.attributes key=id_attribute item=group_attribute name=attributes} {assign var='id_image' value=0} {foreach from=$combinationImages item=combinationImage name=combinations} {if $smarty.foreach.combinations.iteration == $smarty.foreach.attributes.iteration} {assign var='id_image' value=$combinationImage.0.id_image} {/if} {/foreach} {*{assign var='img_color_exists' value=file_exists($col_img_dir|cat:$id_attribute|cat:'.jpg')}*} <li{if $group.default == $id_attribute} class="selected"{/if}> <a href="{$link->getProductLink($product)|escape:'html':'UTF-8'}" id="color_{$id_attribute|intval}" name="{$colors.$id_attribute.name|escape:'html':'UTF-8'}" class="color_pick{if ($group.default == $id_attribute)} selected{/if}" {*{if !$img_color_exists && isset($colors.$id_attribute.value) && $colors.$id_attribute.value}*}{if $id_image} style="background-image:url({$link->getImageLink($product->link_rewrite, $id_image, 'small_default')|escape:'html':'UTF-8'}); background-size:100%"{/if} title="{$colors.$id_attribute.name|escape:'html':'UTF-8'}"{* {if $img_color_exists}style="background: url({$img_col_dir}{$id_attribute|intval}.jpg) repeat;"{/if}*}></a> </li> {if ($group.default == $id_attribute)} {$default_colorpicker = $id_attribute} {/if} {/foreach} </ul>
And it shows as:
Can you please help? ... Appreciate your time! Hope you are doing well