USING THE GET METHOD
|
additem.exe GET METHOD The GET method allows you to use additem.exe to add to the Shopping Cart in a pre-determined way. You can hardcode a value to be submitted to the Shopping Cart that is a referenced piece of hypertext, or an image. You will be able to submit the following values with the GET method: ID value, Price, Description, Shipping Price, Quantity, WEIGHT and DL. (for information on the "DL" Tag see the Pay Per Download Documentation) The code below is a correct example of a working GET method statement. The first part of the line is an anchor tag <a href> that references the additem.exe function and then after the ? symbol all the values are passed to the server. Notice that each value starts with the field name ID and then = the value like the example below AP10103 but with out any quotation marks. Each field value must be separated by a comma.
<a href="/cgi-bin/additem.exe?ID=AP10103,PRICE=5.50,DESC=Aproduct,SHIPPING=10.00,QUAN=3,WEIGHT=1"> Add to Cart </a> Nextpage. Within additem.exe GET statement you can specify a value for a nextpage. This will allow you to specify a special page that will appear when an additem.exe does a submission. This feature is great for use as a way to confirm that an item added to the Shopping Cart. You will need to specify a value of nextpage and then submit the full URL.
<a href="/cgi-bin/additem.exe?ID=AP10103,PRICE=5.50,DESC=Aproduct,SHIPPING=10.00,QUAN=3,WEIGHT=1,TAXABLE=NO,nextpage=/cart/item_added.htm"> Add to Cart </a> Template. Within additem.exe GET statement you can specify a template page to appear upon additem.exe submission. A template page can be a Total page or a Subtotal page where template values are pulled from the Shopping Cart. You will need to specify a value of template and then code the path as a local path with \ slashes.
<a href="/cgi-bin/additem.exe?ID=AP10103,PRICE=5.50,DESC=Aproduct,SHIPPING=10.00,QUAN=3,WEIGHT=1,TAXABLE=NO,template=\cart\item_added.htm"> Add to Cart</a> You can use the GET method on images as well. You should make the images in a way that people understand that if they are clicking on the image they are adding an item to their shopping cart.The GET method allows you to use delitem.exe to delete item(s) from the Shopping Cart. that is referenced by either a hypertext link or an image. If you are using fillcart.exe or allinone.exe, you need to hardcode the value to be deleted from the Shopping Cart: <a href="/cgi-bin/delitem.exe?ID=101">Delete This Item</a> The ID=101 identifies the item to delete from the cart. Adding a nextpage to the above statement will allow you to specify the path and filename of a separate web page that will appear once the item has been deleted from the cart:<a href="/cgi-bin/delitem.exe?ID=101,nextpage=http://www.yoursite.com/itemdeleted.htm">Delete This Item</a> Use the template call to redisplay the subtotal page with the item deleted from the cart:<a href="/cgi-bin/delitem.exe?ID=101,template=\subtotal.htm">Delete This Item</a> If you are using a database-driven catalog, you won't know beforehand the exact item number to be deleted. Therefore, your delete item code would go like this:<a href="/cgi-bin/delitem.exe?template=\subtotal.asp,ID=##ITEMID_VAL##"> You would add this to either your subtotal.asp if you are using the default subtotal table, or to your subtotal table file if you are using Custom Tables.The GET method can be used to link images as well:
<img src="/delete.gif" border="0" width="11" height="11" alt="Delete Item ##ITEMID_VAL##"></a> Clickable Thumbnail Images The following example lines of code show how to make clickable links that will pull up everything your database has for the categories specified, and display the results in user-definable rows of either additional links or images:
<a href="/cgi-bin/dbsearch.exe?mdb=\path\filename.mdb,tbl=Products,template=\path\filename.asp,DB_Category=Bracelets,DBCOMP=ABS,EveryXthValue=3,EveryXthData=</tr><tr>">Bracelets</a> The second example will display every item in the 'Watches' category in rows of 5.
|