usrg Posted October 19, 2013 Share Posted October 19, 2013 Hi! I`m a newbie so question is dumb )) Here http://nalice.net/p156realty/-/9-nissan-note-2013-.html#/-/_-/_-1_6_/_-2013/-122_ i have only 1 value for each attribute: How to hide check pimps if there is only 1 value? Thanks! Link to comment Share on other sites More sharing options...
vekia Posted October 19, 2013 Share Posted October 19, 2013 in this case you have to modify product.tpl file there is: {elseif ($group.group_type == 'radio')} <ul> {foreach from=$group.attributes key=id_attribute item=group_attribute} <li> <input type="radio" class="attribute_radio" name="{$groupName}" value="{$id_attribute}" {if ($group.default == $id_attribute)} checked="checked"{/if} onclick="findCombination();getProductAttribute();" /> <span>{$group_attribute|escape:'htmlall':'UTF-8'}</span> </li> {/foreach} </ul> {/if} just add if condition with style="display:none;" to <input type="radio"> Link to comment Share on other sites More sharing options...
usrg Posted October 19, 2013 Author Share Posted October 19, 2013 Sorry, i think i didn`t get the needed IF sentence. I added {elseif ($group.group_type == 'radio')} <ul> {foreach from=$group.attributes key=id_attribute item=group_attribute} <li> <input type="radio" class="attribute_radio" name="{$groupName}" value="{$id_attribute}" {if ($group.default == $id_attribute)} checked="checked" {/if} style="display:none;" onclick="findCombination();getProductAttribute();" /><span>{$group_attribute|escape:'htmlall':'UTF-8'}</span> </li> {/foreach} </ul> {/if} And it doesn`t showed at all, even for 2 values. Could you please say which IF should i add for style="display:none;" to get checks for 2 and more values of attribute AND no check in case of 1 value in attribute? Link to comment Share on other sites More sharing options...
usrg Posted October 19, 2013 Author Share Posted October 19, 2013 Nobody knows? Link to comment Share on other sites More sharing options...
Recommended Posts