<?php $_product = $this->getProduct(); ?>
<?php if($_product->isSaleable()): ?>
<div class="add-to-cart">
<?php if(!$_product->isGrouped()): ?>
<div class="qty_inc">
<label for="qty"><?php echo $this->__('Qty:') ?></label>
<a href="javascript:void(0)" onclick="decrementQty('qty');" class="menos" title="Menos"><span></span></a>
<input type="text" name="qty" id="qty" maxlength="12" value="<?php echo $this->getProductDefaultQty() * 1 ?>" title="Quantidade" class="input-text qty" />
<a href="javascript:void(0);" onclick="incrementQty('qty');" class="mais" title="Mais"><span></span></a>
</div>
<?php endif; ?>
<div class="paginaproduto">
<button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button botaocomprar" onclick="productAddToCartForm.submit(this)"></button>
<?php echo $this->getChildHtml('', true, true) ?>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
function decrementQty(id) {
var val = parseInt($(id).getValue());
if(val != 0)
document.getElementById(id).value = val - 1;
}
function incrementQty(id) {
var val = parseInt($(id).getValue());
document.getElementById(id).value = val + 1;
}
//]]>
</script>
<?php endif; ?>