How can i remove choose option from configurable product drop-down in both listing and details page.
- Please refer this stackoverflow.com/a/36405457/7530855Dhaval Solanki– Dhaval Solanki2018-05-25 05:09:38 +00:00Commented May 25, 2018 at 5:09
- yes i have already done that but still its not working.Puspalata Panigrahi– Puspalata Panigrahi2018-05-25 05:11:51 +00:00Commented May 25, 2018 at 5:11
Add a comment |
1 Answer
app/design/frontend/base/default/template/catalog/product/view/type/options/configurable.phtml
<?php $_product = $this->getProduct(); $_attributes = Mage::helper('core')->decorateArray($this->getAllowAttributes()); ?> <?php if ($_product->isSaleable() && count($_attributes)):?> <dl> <?php foreach($_attributes as $_attribute): ?> <dt><label class="required"><em>*</em><?php echo $_attribute->getLabel() ?></label></dt> <dd<?php if ($_attribute->decoratedIsLast){?> class="last"<?php }?>> <div class="input-box"> <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> </select> </div> </dd> <?php endforeach; ?> </dl> <script type="text/javascript"> var spConfig = new Product.Config(<?php echo $this->getJsonConfig() ?>); </script> <?php endif;?> Just remove the option of Choose an Option... by rewriting it in your custom theme.