Need Help - Add to Cart Link Won't Work!
I am trying to modify product.tpl to put an add to cart link at the top of the page.
When I use the code below it won't add the product to the cart. I must be missing some little detail so if you could help me out that would be great.
This is what I have:
<form name="orderform-{$product.productid}" 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: orderform.submit()">
{include file="buttons/add_to_cart.tpl"}</a>
</form>
I have read several posts and tried many variations so I am wondering if my version requires something different that what has been suggested.
Thanks,
Randal
__________________
***********************
Visit Our Other Web Sites!
∙ Nutritional Herbs and Supplements
<a href="http://www.theherbsplace.com"> The Herbs Place </a>
∙ Frugal Ideas and a Forum To Submit Your Questions
<a href="http://www.thefrugallife.com"> The Frugal Life </a>
∙ Healthy and Natural Pet Products
<a href="http://www.healthypetcorner.com"> Healthy Pet Corner </a>
***********************
Joined 08/02/05
X-Cart Gold Version 4.3.2
Linux RedHat Enterprise
|