Ability to make product listings with option to add to cart instead of making the customer click to product details before adding to their cart:
Code:
{* ADD TO CART by Josh Sowin | petsupplyonline.com *}
<form name=orderform_{%product.index%} method=post action="cart.php?mode=add">
<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}">
<a href="javascript: document.orderform_{%product.index%}.submit()">
{include file="buttons/add_to_cart.tpl"}</a>
</form>
Thank Josh for such luvely template editing!
kudos!