Showing results for 
Search instead for 
Did you mean: 

Show only sizes


Show only sizes

I have configurable items, and the underlaying simple products only have one color. (and many sizes)

How can i fix that the costumer don't have to choose the only color available, but (programmaticly) only have to choose the size.

And yes this will be for all the configurable items on the shop! (so an shopping item only has one color and many sizes)

(And no it didn't work to create a new attribute set, I already tried)


Re: Show only sizes


Add conidition in configurable.phtml file. Change attribute id as per your need



if (!$_rendered):
       <?php if($_attribute->getAttributeId() != 'Your_Attribute_Id') {?>
        <dt><label class="required"><em>*</em><?php echo $_attribute->getLabel() ?></label></dt>
        <dd<?php if ($_attribute->decoratedIsLast){?> class="last"<?php }?>>
            <div class="input-box123">
                <select name="super_attribute[<?php echo $_attribute->getAttributeId() ?>]" id="attribute<?php echo $_attribute->getAttributeId() ?>" class="required-entry super-attribute-select">
                    <option><?php echo $this->__('Choose an Option...') ?></option>
<?php }else{?>
<select name="super_attribute[Your_attribute_id]" id="attribute{Your_attribute_id}" style="display:none">
		<option value="26" price="0" data-label="red" selected>Red</option>
<?php }?>
        <?php endif; ?>


Re: Show only sizes

Thnx, i will try !!