Thanks for the suggestion Funk, however I still can't seem to get it to work. I'm using the standard Add to Cart code that has been floating around the forum
Code:
<form name=orderform_{%product.index%} method=post action="cart.php?mode=add">
<a href="javascript: document.orderform_{%product.index%}.submit()">
{include file="buttons/add_to_cart.tpl"}</a>
<input type=hidden name=amount value=1>
<input type=hidden name=mode value=add>
<input type=hidden name=productid value="{$products[product].productid}">
<input type=hidden name=cat value="{$smarty.get.cat}">
<input type=hidden name=page value="{$smarty.get.page}">
</form>
The code in product.tpl works fine with automatically changing things to "0" and Out of Stock. I just need the same functionality in the products.tpl page as well.