Overview
Configuration
PayPal Configuration
Adding Packages
The Order Process
php Download Manager allows you to easily set up a download system for soft goods that are purchased from your website. A customer adds items to their shopping cart and then pays for the order via PayPal. The payment gateway sends back a message to the download manager. The download manager checks to see if this is a new customer (based on email address). If it is a new customer then a new member is created and the customer is sent the new member email. The download manager then checks each item ordered to see if the member (customer) had previously ordered that item and if so, it updates the item with a new expiration date based on the amount of time that was previously left on the item. If the item ordered is marked as auto-activate then the order email will contain information about that product. Once all the items are processed an order email is sent to the customer with information specific to each product that was ordered. Any items that may have been fraudulent are marked in the database for later review. Any item that requires manual activation is also marked in the database for review. Download Manager is not a shopping cart. You must have your own shopping cart or use the PayPal shopping cart or Buy-It-Now buttons.
Configuring the Download Manager is easy. There are three parts:
Once you have completed the installation you must edit the Connections/DownloadMan.php file with the proper database configuration information. This includes the MySQL server host name (usually localhost or 127.0.0.1), your database name, your database user name and your database user password.
The next step is to configure the settings in the Download Manager admin control panel. The settings that you must configure are:
The Download Manager uses the Paypal IPN interface to be notified of completed orders. Type typical IPN URL would be http://www.yourdomain.com/downloadmanager/paypal_ipn.php. There are two ways to tell Paypal where to send the IPN information.
Adding packages takes 3 easy steps:
Once you have built a package it is ready for download.
Packages:
Any item that you want to provide to customers as an automatic download must be entered into the download manager as a package. A package can have one or more files associated with it. A file can be associated with one or more packages. When you set up a package you determine how long the package will be available for downloads after the purchase (or after approval for pending orders). You also determine if that package will be automatically active (ready for download immediately after order) or if the package will go into a pending state that requires manual approval. Each package can have text associated with it that will be appended to the order email. The text is processed for the following tags:
%%EXPIRES%% - This is the date the package will no longer be available for download.
%%PACKAGE%% - This is the name of the package.
Ordering:
When a customer orders items and then pays for the item, the payment gateway sends back a message to the download manager with the customer information and all of the items that were ordered. The download manager creates a new customer account if required and then sets up a download record for each item. If the item is marked as "auto activate" in the database then it is ready for download immediately. When the download manager is finished processing the order an order email will be sent to the customer for all active packages.
Downloading:
Once the order email is received the customer can log into the download manager and view all of the packages that are available for download along with the time the download will expire. The customer can then click on one of the packages to view the files associated with that package. The customer can then click on each of the files to download them. There are no restrictions to the number of times that the customer can download the files.
Pending Orders
If a package is not marked as "auto activate" in the database then when the order is completed the order email will not contain any information about that particular package. Pending orders must be manually approved by the administrator. Once the pending order is approved, another order email goes to the customer with the informtion about that package.
Price Mismatches
If "suspend on price mismatch" is checked in the download manager configuration then when the order is processed each item is checked to see if the price that was paid is the same as the price in the database. If the price is different then that item is "suspended" and must be manually processed. All other items will be processed as usual. Note that if you use a coupon system to lower the price of an item you can't use the Price Mismatch system or it will suspend all orders that use a coupon.