My first post, i have code where i can individually remove add-to-cart options from products using an additional attribute in the back end, added in addtocart.phtml.
The problem i am having is that i do not want this to affect the add to cart button just the quantity box and label.
I have tried many variations and nothing seems to help, i am thinking that i have this code inserted in an incorrect file but i am not sure.
You can see the code below, i was wondering if anyone could assist me in amending this code in order to achieve the functionality that i am looking for:
<?php $_product = $this->getProduct() ?>
<?php $attTest= $_product->getData(); ?>
<?php if($attTest['sell_online']): ?>
<?php if($_product->isSaleable()): ?>
<div class="add-to-cart">
<?php if(!$_product->isGrouped()): ?>
<label for="qty"><?php echo $this->__('Number of weeks:') ?></label>
<input type="text" name="qty" id="qty" maxlength="12" value="<?php echo $this->getMinimalQty($_product) ?>" title="<?php echo $this->__('Number of Weeks') ?>" class="input-text qty" />
<?php endif; ?>
<button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="productAddToCartForm.submit()"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
<?php echo $this->getChildHtml('', true, true) ?>
</div>
<?php endif; ?>
<?php endif; ?>
Any help with this would be much appreciated. thanks in advance.