Jump to content

Hide Color select box, only show the color picker


Recommended Posts

Hello,

 

I am trying to hide the color select box in the product page. Right now the color picker and the color select box are both showing in the product page.

 

I have find the code and try to modify it manually but without sucess.

 

<div class="clearblock"></div>

{* attributes *}

{if isset($groups)}

{foreach from=$groups key=id_attribute_group item=group}

{if $group.attributes|@count}

<p>

{assign var="groupName" value="group_$id_attribute_group"}

<label for="group_{$id_attribute_group|intval}">{$group.name|escape:'htmlall':'UTF-8'}:</label><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>

 

</p>

{/if}

{/foreach}

{/if}

</div>

Link to comment
Share on other sites

  • 2 months later...

since there is no id for the select I dont think that a display:none is a good solution. I think the good idea should be to create an exception for the group, so when the group id = id of color it won't show up. Anybody have done this before? I checked this but code it's corrupted

Link to comment
Share on other sites

  • 3 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...