Using the file shopaddtocartnodb.asp, it is possible to add an item to the cart without it being in the VPCARTdatabase.
You just need to pass some information along with the link – this information can be passed as part of the URL or as a form.
Required Fields
Productname |
Product name to appear in the cart |
Price |
Price |
Optional fields
Quantity |
Quantity of item that should be added to cart |
Catalogid |
An ID of the Product from the VPCART database |
Category |
An ID of the Category that this product belongs to from the VPCART database |
Returnurl |
A URL that you want the customer return to once the item has been added to their cart. If this is not specified, the cart is displayed. |
Weight |
Weight of product |
Hyperlink Examples
<a href="shopaddtocartnodb.asp?Productname=Book&price=10.00">Add to cart</a>
<a href="shopaddtocartnodb.asp?Productname=DVD&price=3.95&quantity=2&returnurl=mypage.html">Add to cart</a>
Form Example
<form method="POST" action=”shopaddtocartnodb.asp”>
<input type=”hidden” name=”Productname” value=”Book” />
<input type=”hidden” name=”price” value=”10.00” />
<input type=”submit” value=”Add to cart” />
</form>