|
|||||||||
< D O W N L O A D S > :.
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". 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. 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.
This option will appear with the product as shown below: (it is operational)
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.
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. |
................................................................. |
|
KingCart e-commerce shopping cart S O L U T I O N S |