View Single Post
  #2  
Old 11-30-2002, 10:33 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

Just doing this myself.

Just add the following into the product.tpl template where you want it.

<form name=orderform_{%product.index%} method=post action="cart.php?mode=add">
<td align=left width=25%><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}">
</td>
</form>
__________________
ex x-cart guru
Reply With Quote