I want to hide the qty box on the product details page but only for items with a certain attribute set. I know i need to edit the addtocart.phtml file with an if statement. I found a similar issue solved with this if statement which works:
<?php if($_product->getStockItem()->getMaxSaleQty() > 1): ?>
<div class="qty-wrapper">
<label for="qty"><?php echo $this->__('Qty:') ?></label>
<input type="text" name="qty" id="qty" maxlength="12" value="<?php echo $this->getProductDefaultQty() * 1 ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Qty')) ?>" class="input-text qty" />
</div>
<?php endif; ?>
But, I don't want to base it off of MaxSaleQty. I want to base the condition on the qty available. Solution?