Simple html links with product option selected
Hi,
I use xcart only as a back end shopping cart and only use the generated html links for the add to cart buttons on my website. What I am trying to do is to create a one line html link that will add a product to the cart with a particular product option pre-selected, so that when the customer clicks the link 1 item is added to the cart with option 1, 2 or 3 already selected.
Below is the form that is generated by xcart but I just want a simple html link.
Thank you
<form name="orderform_16291" method="post" action="http://www.hollywood-collectibles.com/store/cart.php">
<input type="hidden" name="mode" value="add" />
<input type="hidden" name="productid" value="16291" />
<table width="100%">
<tr>
<td valign="top">
<br />
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="ProductPriceConverting" valign="top">Price:</td>
<td valign="top">
<font class="ProductDetailsTitle"><span class="currency">$299.95</span></font><font class="MarketPrice"> </font>
</td>
</tr>
<tr>
<td class="property-name product-input">
Order Option
</td>
<td class="property-value" colspan="2">
<select id="po448" name="product_options[448]">
<option value="4142" selected="selected">
Regular Order (1 payment, due when item ships)
</option>
<option value="4138">
4Pay (4 installments)
</option>
<option value="4139">
6Pay (6 installments)
</option>
</select>
</td>
</tr>
<tr>
<td height="25" width="30%">
Quantity </td>
<td>
<script type="text/javascript">
//<![CDATA[
var min_avail = 1;
var avail = 50;
var product_avail = 1001;
//]]>
</script>
<select id="product_avail" name="amount" onchange="javascript: check_wholesale(this.value);">
<option value="1">1</option>
<option value="2">2</option>
</select>
</td>
</tr>
<tr>
<td colspan="2">
<br />
<table cellspacing="0" class="SimpleButton"><tr><td><a class="simple-button simple-arrow-button" href="javascript:void(0);" onclick="javascript: document.orderform_16291.submit();">Add to cart</a></td></tr></table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
__________________
4.4
|