View Single Post
  #24  
Old 06-19-2003, 02:31 PM
  BoomBoomBap's Avatar 
BoomBoomBap BoomBoomBap is offline
 

Senior Member
  
Join Date: Nov 2002
Location: San Francisco
Posts: 184
 

Default

Wow - that was so unbelievably easy to implement I can't believe I didn't do it sooner.

Thanks for the code !

For the record - all that's needed is the addition of this form and button to customer/products.tpl (place where approriate):

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}"> <a href=product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}>More info...</a> </form>

Nice.... :P
__________________
Site 1 > XCART LIVE 3.4.12

Site 2 > XCART LIVE 4.0.17
Reply With Quote