View Single Post
  #1  
Old 09-21-2002, 02:43 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default Product listing with "add to cart" functionality

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!
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote