canyon88 Posted March 10, 2012 Share Posted March 10, 2012 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 More sharing options...
canyon88 Posted March 12, 2012 Author Share Posted March 12, 2012 Up Link to comment Share on other sites More sharing options...
canyon88 Posted March 14, 2012 Author Share Posted March 14, 2012 I've found other prestashop website with only the pick color function in the product page so it's possible to do this, nobody can help me ? Link to comment Share on other sites More sharing options...
_stardust_ Posted March 14, 2012 Share Posted March 14, 2012 Put display to none in css. Not a permanent solution but it's a quick fix. Can we see the site? Link to comment Share on other sites More sharing options...
imps Posted May 20, 2012 Share Posted May 20, 2012 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 More sharing options...
Prestawise Posted August 23, 2012 Share Posted August 23, 2012 Any solution to this problem? 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