iisCART™ Documentation

 

iisCART2000 Common tasks, How do I...

Send Email Notification
Edit your billing.asp and uncomment (remove the preceding single quote from the line 'call SendEmail) the SendEmail subroutine.  

Also be sure to set your SMTP mail server by changing the line: 
Cart.Mail.Host = "mail.yourmailserver.com"

Set the address the mail is from with:
Cart.Mail.From = "address@email.com"

Set an internal address to notifiy you of a new order with:
Cart.Mail.AddAddress "address@email.com"

 
Customize email that is sent
If you examine the SendEmail code you will see it makes use of the Items collection to build up a string of the order details and also appends some other text.  You are free to alter any text as well as control the item details which are included.  For example, if you wanted the properties to be listed as well you could add Item.PropertyValues within the For loop.
 
Show Cart Items without DisplayCart
Using the items collection you can iterate through the cart contents, perform calculations on the prices, display specific details, analyze data for custom shipping implementations etc.

The items collections supports the following syntax:

for each item in Cart.Items
    response.write (item.name)
next

 
Show Cart Items PROPERTIES without DisplayCart
Using the items collection you can iterate through the cart contents, perform calculations on the prices, display specific details, analyze data for custom shipping implementations etc.

The items collections supports the following syntax:

for each item in Cart.Items
    for i = 1 to item.propertycount
        response.write item.propertyname(i)
        response.write item.propertyvalue(i)
    next
next

 
Use SLL for billing.asp
iisCART2000 was designed to work with both dedicated secure certificates and shared secure certificates (often provided by hosting companies).

This becomes an issue as one is typically creating a different ASP session when going 'secure'.  iisCART2000 provides complete flexibility for SSL, you can even push the cart data to another server to complete the processing.

In showtotal the details can be encrypted and posted through to another system or web address.  That page would then decrypt the data and continue the order process. 

 
Link Back to items from cart
The NameLink option provides the ability to have displaycart give links back to your own custom frontend for displaying 
 
Display Each row in the cart with an alternating background color
Cart.Color "CFDFFC, CFDFFC" 
 
Conditionally display status of cart / message when cart empty
After handlecommands but before displaycart in displaycart.asp you can evaluate gridtotalquantity.  You could also use this to display a custom x number in cart image.  You can conditionally display a set of cart images along with the number based on the number of items in the cart.  Also, you can omit the displaycart, redirect or do as you please when quantity is zero. 
 
Send orders securely via email
Using the saveorderencrypt method (see methods in docs for details) iisCART2000 generates an encrypted binary which can be sent via email using the attachment feature of the mail object.  On your client system when you double click the file which should have a .enc extension you can associate it with the client application iisCARTdecrypt.exe.  The result is that any further email attachments can simply be clicked to view the full order details in notepad.  From there you can save into any program you wish, print, edit etc.

This option is intended for small stores that do not want to work with a database on the backend for orders.

 

� Corporate Web Solutions 1998, 1999, 2000, 2001.