IntroductionThe digital download
plug-in allows you to offer products for sale that are
available as an immediate download following purchase.
This might be useful when selling e-books, software,
music etc where you want to provide the customer with
immediate access to your products. It is possible to
have both standard products and downloadable ones on the
same store.
Requirements
- Digital download plug-in -
buy now for $29.95
- Ecommerce Template Plus, version 4.8.0 minimum
- ASP Upload installed on the server (ASP version
only, for secure downloads)
- The digital download plug-in is not compatible
with the following payment processors that do not
use thanks.asp:
- WorldPay
- Authorize.net (SIM method)
- NOCHEX
- SecPay
ASP Version
Once you have downloaded and extracted the digital
download plug-in, upload the file dodownload.asp to your
vsadmin folder and digidownload.asp to your vsadmin/inc
directory.
Copy the file updatestore.asp to your website and
open in a browser and click the button
“ Upgrade for Digital Downloads”.
Open the file thanks.asp in HTML / code view and
search for the line . . .
< !--#include file="vsadmin/inc/incthanks.asp"-->
. . . and on the line after that add . . .
< !--#include file="vsadmin/inc/digidownload.asp"-->
You will then need to add some parameters in vsadmin/includes.asp
digidownloads=true
. . . this always needs to be set to true to enable
digital downloads. Once set on the admin products page
an extra parameter will appear “Download”, which will
allow you to enter the location of the download.
digidownloadpattern="\downloads\%pid%.zip"
If required, you can set a pattern for the download
filename, and base it on the product id. This parameter
is optional. If you use this parameter, to show which
products have a download attached enter an “A”, (meaning
“Automatic”), on the products admin page for the
download setting.

digidownloadsecret="fe2ls2pl2jJbIONowk234ksdf"
This should always be set and should be set to random
alpha-numeric text. It’s just a way of generating a code
to make it difficult for hackers to steal your downloads.
digidownloadwarn=TRUE
Setting this parameter to TRUE will mean that if someone
does attempt to download with incorrect parameters then
you will be sent an email with the subject “Failed
Download” and the IP address of the person making the
attempt. This could be useful for debugging or spotting
fraud attempts.
digidownloadmethod="aspupload"
To setup for secure downloads you need to have a
component installed on the server called ASP Upload. If
this is installed then set the above to “aspupload”.
This will mean that you can place your downloads below
the web root where they can only be accessed via the
download script. If ASP Upload is not installed then you
can still provide digital downloads, but they will not
be secure. That is, someone who guesses their location
could bypass the download script to obtain them.
Post version 4.8.6
digidownloademail="Your email message here if
any downloadable products"
This can be used to send your customers an email
informing them of how to download their products
in case they missed the original download. Instances of
%orderid% and %password% will be replaced
by the order id and password necessary to download their
products. You must have v4.8.6 or above
of Ecommerce Plus for this feature to work.
An example of its use would be . . .
digidownloademail="Your products can be downloaded for
the next 3 days by going to the URL%nl%http://www.yoursite.com/latedownload.php?ordid=%orderid%&pass=%password%%nl%Or
alternatively, go to the URL%nl%http://www.yoursite.com/latedownload.php%nl%.
. . and enter the order ID %orderid% and password %password%%nl%%nl%"
Please note how newlines are added to the email by
simply adding %nl% meaning you don't have to
worry about different email formats.
digidownloaddays=10
Setting this will make downloads available for the
number of days specified. The default is 3 days
and the example above would set it to 10.
How to set up latedownload.asp
You can make your own late download page by opening
thanks.asp and saving it as latedownload.asp
In the HTML change:
< !--#include file="vsadmin/inc/incthanks.asp"-->
to
< !--#include file="vsadmin/inc/inclatedownload.asp"-->
... and save the file.
|