Ecommerce Templates Canada

Logiciel de commerce électronique
pour Dreamweaver, FrontPage et GoLive.
En version ASP et PHP.
Boutique »
Version ASP
Version PHP
Outils eCommerce
Votre panier
Aide et ressources »
Survol du logiciel
Aide pour la version ASP
Aide pour la version PHP
Recherche sur le site
Ressources
Forum de support
Questions et réponses
Mise à jour et correctifs
Clients/Exemples
Boutique de démonstration
Développeurs
Passerelles de paiement
Hébergement
Téléchargement numérique
Accueil > Aide Php : Téléchargement numérique
Veuillez prendre note que cette page n'est pas encore traduite. Merci!
Introduction

The 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
  • The digital download plug-in is not compatible with the following payment processors that do not use thanks.php:
    • WorldPay
    • Authorize.net (SIM method)
    • NOCHEX
    • SecPay

PHP Version

Once you have downloaded and extracted the digital download plug-in, upload the file dodownload.php to your vsadmin folder and digidownload.php to your vsadmin/inc directory.

Copy the file updatestore.php to your website and open in a browser and click the button
“ Upgrade for Digital Downloads”.

Open the file thanks.php in HTML / code view and search for the line . . .
<?php include "vsadmin/inc/incthanks.php" ?>
. . . and on the line after that add . . .
<?php include "vsadmin/inc/digidownload.php" ?>

You will then need to add some parameters in vsadmin/includes.php

$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.

Download

$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="filesystem";
To use the operating systems filesystem set the above parameter. This will allow you to specify for instance files outside your web root for instance . . .
/your/path/to/yourfile.zip
Otherwise by default the system will use http for the file location, allowing you to specify for instance
http://www.yoursite.com/yourdirectory/yourfile.zip

$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.php and saving it as latedownload.php
In the HTML change:

<?php include "vsadmin/inc/incthanks.php" ?>

to

<?php include "vsadmin/inc/inclatedownload.php" ?>

... and save the file.


ACCUEIL | PRODUITS | SUPPORT | EXEMPLES | CONTACTEZ-NOUS
 

Canada |  France | Espagne | Australie | Allemagne | Hollande | IrlandePortugal | Afrique du Sud | Grande-Bretagne
© Copyright 2002 - 2006 Logiciel de commerce électronique par Internet Business Solutions SL
Tous droits réservés