coconuter Posted March 28, 2013 Share Posted March 28, 2013 Hi friends, im messing arround with my product.tpl and one last thing ive been trying for few days and searched but couldnt fix it.... I want the attribute group and attribute name in same line but the best i manage to do is putting one `inside` the other.... therefore none is clickable.... I want the 2 in the same line like Sizes : 1 Year and not Size: 1 year The code is : <div class="product_attributes"> {if isset($groups)} <!-- attributes --> <div id="attributes"> {foreach from=$groups key=id_attribute_group item=group} {if $group.attributes|@count} <p class="select"> <label for="group_{$id_attribute_group|intval}">{$group.name|escape:'htmlall':'UTF-8'} :</label> <select class="eb-select" name="{$groupName}" id="group_{$id_attribute_group|intval}" onchange="javascript:findCombination();{if $colors|@count > 0}$('#wrapResetImages').show('slow');{/if};"> {foreach from=$group.attributes key=id_attribute item=group_attribute} <option value="{$id_attribute|intval}"{if (isset($smarty.get.$groupName) && $smarty.get.$groupName|intval == $id_attribute) || $group.default == $id_attribute} selected="selected"{/if} title="{$group_attribute|escape:'htmlall':'UTF-8'}">{$group_attribute|escape:'htmlall':'UTF-8'}</option> {/foreach} </select> {/if} {/foreach} {/if} Thanks allot! Tchau Link to comment Share on other sites More sharing options...
Mmonkey Posted September 28, 2016 Share Posted September 28, 2016 put this code as your wish <label>{$group.name}</label> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now