REMOVING ITEMS FROM A SHOPPING CART

clearcart.exe

Clearcart.exe is used to clear all items from a shopping cart. it is used on the subtotal page to give your customers the option of removing everything that has been added to the shopping cart all at once, instead of item by item. It can be set up as either a text hyperlink, a button or an image:

Hyperlink:

<a href="/cgi-bin/clearcart.exe?nextpage=/subtotal.htm">Clear Cart</a>

Image:

<a href="/cgi-bin/clearcart.exe?nextpage=/subtotal.htm">
<img border="0" src="/images/clearcart.gif" width="80" height="30" alt="Clear Cart">
</a>

Clear Cart Note - You would substitute your own path and filename in the example above.

Button:

<FORM METHOD="POST" ACTION="/cgi-bin/clearcart.exe">
<input type="hidden" name="nextpage" value="/subtotal.htm">
<input type="submit" value="Clear Cart">
</FORM>





delitem.exe

Features and Details of delitem.exe

  • Works as a GET or a POST method.
  • Can delete items from shopping cart pages, subtotal page or total page.
  • Uses ItemID for accurate item deletion.
delitem.exe POST Method

<FORM METHOD="POST" ACTION="/cgi-bin/delitem.exe">
<input type="hidden" name="nextpage" value="/itemdeleted.htm">
<input type="hidden" name="template" value="\subtotal.htm">
<input type="hidden" name="ID" value="101">
<input type="submit" value="Delete">
</FORM>

nextpage This allows you to specify the path and filename to a page that will appear once delitem.exe deletes an item to confirm that the item was deleted from the Shopping Cart.

template Used on the subtotal page. Redisplays the new subtotal once an item has been deleted.

ID Specifies the item to be deleted from the shopping cart. This will match the item ID that was pulled up in the initial search of your database catalog.

delitem.exe GET Method

Please see the section Using the GET Method for further instructions.