0
 <label for="qty"><?php echo $this->__('Quantity') ?></label>
<select class="input-text qty" name="qty" id="qty">

    <?php $i = 1 ?>
    <?php $productQty = (int)Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty(); ?>
    <?php do { ?>
        <option value="<?php echo $i ?>">
            <?php echo $i ?>
            <?php $i++ ?>
        </option>
        <?php if ($i == 11) {
            break;
        } ?>
<?php } while ($i <= $productQty) ?></select>

configurable product that is not working showing only 1 Qty on every configurable products.but on simple products working fine..

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.