King Cart Solutions.


    KingCart
 e-commerce shopping cart
       S  O  L  U  T  I  O  N  S
Print this page?

Quality, flexible online shopping cart service... < D O W N L O A D S >
  Back to Previous Page :.
Selling Downloads from KingCart


 You can set up your product for the customer to download the item instead of shipping it. Thus you can sell software, music files, documents, poems, recipies and so forth. The system will email the user with the link to allow him to download the file after the item has been paid for. It can be set up so that the download cannot be done more than once from any purchase, even though the download comes from your site if you have cgi-bin access.

The easiest way to do this is to simply enter the url to be downloaded in the field for "User Field Five" for that product in the add a product or edit a product screen of the manager:

 I.E. http://king-cart/instructions.html

 If a key is entered, then an id/password will be appended to the end of the url as shown below where the password is generated from the key. This is a typical entry if the file and download script are both on the KingCart server, and the item is "poem". The key for the password is "testing2".
 I.E. if the following is entered for the User Field 5:

http://king-cart.com/cgi-bin/download.pl?item=poem testing2

 Then the following link will be emailed to the customer when payment is received:

http://king-cart.com/cgi-bin/download.pl?item=poem&id=mdudley-558-1&password=tejTyaVyxFuY

 The "558" is the invoice number, and the "1" means it is the first downloadable item for that invoice.
For this a script MUST be used to check the password and send the file so it cannot be downloaded more than once; and hackers cannot post a url or password to download it.

Once a file has completed downloading, it will be written to a log file by the script so it cannot be downloaded again with that purchase, or the script can be configured to allow multiple downloads for a certain number of days after purchase.

 To tell the cart this item is downloaded and to allow the item to be either downloaded or shipped, the download is handled as an "option". If the download option is selected than the shipping weight is forced to "0".

 This option file for downloading can be used if the item can only be downloaded:

<input type=hidden NAME = "option|1|%%PRODUCT_ID%%" value="[download]">

When a download is called for, there is normally no shipping associated with it. Thus the above link will not charge any shipping normally. If however you are wanting to ship something in addition to the download, and wish to charge shipping, then use the following option file instead:

<input type=hidden NAME = "option|1|%%PRODUCT_ID%%" value="[Download]">

Note the "D" in download is capitalized to force it to charge shipping. As with any product you will likely need to enter a weight in for the shipped portion.

 This is one of your standard option files, that can be selected by entering "download.html" in the options box.
If you want the customer to choose between download and shipping the item, then put "downloadship.html" in the options field for that item. This is a standard option file as well. You can edit it once you have put it in this field.

<TABLE CELLPADDING="0" CELLSPACING="4" BORDER="0">
<TR ALIGN="CENTER"><TD><FONT FACE=ARIAL SIZE="2">
<B>Select Download or Ship</B>
<br>
</FONT></TD></TR>
<TR ALIGN="CENTER"><TD><SELECT NAME = "option|1|%%PRODUCT_ID%%">
<OPTION VALUE = "[download]|">Download
<OPTION VALUE = "Ship item|3.00"> Ship a Disk (+$3.00)
</SELECT></TD></TR>
</TABLE>

 This option will appear with the product as shown below: (it is operational)

Select Download or Ship

 This will allow your customer to select if they want to download the item, or have it shipped to them on a disk. The shipping option has a $3.00 adder which automatically gets added to the order if they select it.
On your server you will need to run a cgi script to check the password, prevent re-use of the same password by someone else and, if you have more than one product, send the correct product to the customer.

 The script download.pl will accomplish this for you. Copy the code to the cgi-bin directory on your site. This is normally done by saving it to your hard drive, then uploading it to your webserver. Then in the "User Field Five" for the item(s) to be downloaded, enter:

http://yoururl.com/cgi-bin/download.pl?item=[alias] [password]

 Note that [alias] is a unique id of that item that the script can use to look up the filename of the download, and [password] is the key to be used to generate the password. They should be be alphanumerics, avoid punctuation characters such as apostrophe's. Each item can use their own password. Of course the "yoururl.com" is the domain of your site, and if you have the script in a directory other than cgi-bin, that needs to correspond with the actual directory name.

Important: The password must be a minimum of 8 characters, or the password checking will fail.

 The cgi code requires configuration so it can find the files to be downloaded, and will know the keys used for the password. Once you have put the script into your cgi-bin directory and set the permissions to be readable and executable by anyone, browse to http://your_domain.com/cgi-bin/download.pl where your_domain is the domain of your site, and cgi-bin is the directory you put download.pl into. When you do this the first time it will ask you for you master password. Once you enter it then you will be put into the download manager where you can tell it where the downloadable files are located and the alias, filename and password for each item. You need perl 5 or later for this script to operate properly.



Online shopping cart service that is flexible and versatile to meet your business e-commerce needs.. King Cart Solutions: Your competitive edge in web cart software service. Features and price that no other e-cart offers.

<< BACK to Previous Page  •  PRINT THIS PAGE
.................................................................
    KingCart
 e-commerce shopping cart
       S  O  L  U  T  I  O  N  S


url: www.king-cart.com • E-mail: mdudley@king-cart.com
King Cart Solutions / Services • Copyright © 2004, TriMark Engineering • All Rights Reserved
Website Design and Development, and Logo Design by Mark Webb
Mark Webbdesign • E-mail: mwebbdesign@att.net