Been staring at this for hours so I give up and am asking.

I think I have most of what I need to get the quantity box working but it's not actually adding to the cart. I put this in category.tpl from product.tpl, changed it a bit:
Code: Select all
<div class="cart"><div>
<a id="button-cart" class="button"><span><?php echo $button_cart; ?></span></a>
<input type="text" name="quantity" size="2" value="1" />
<input type="hidden" name="product_id" size="2" value="<?php echo $product['product_id']; ?>" />
</div></div>
and then I put the javascript button-cart from product.tpl in category.tpl too. Everything displays fine, it just doesn't do anything when I click.
I know it's going to be something stupid

but I don't understand this code well enough yet, and I'm not that strong of a web coder. Do I need anything from the product.php file? I couldn't find anything that looked important.
Thanks,
mark