FoxyCart's downloadable product functionality allows for a quick, secure, and easy way to sell any type of file. While the concept of selling a downloadable product may seem pretty straightforward, there are many questions that come up, which we'll attempt to address below.
Creating a downloadable product is easy.
category
and code
. Note that without the appropriate category
and code
values, the addition of the product to the cart will either error, or will add a normal, non-downloadable product. Also worth noting is that with downloadable products you do not have to pass in the product's name
to the cart, since that is set explicitly on the server-side.
Unlike normal FoxyCart products, downloadable products must be created explicitly in the FoxyCart admin, and given a name
, code
, and price
. (Note that for downloadable products the code is required.) Downloadables must also have a category set, and that category must be set to “Downloaded by the customer” under the category's product delivery options.
The price
that is set in the admin will be the price of the downloadable, and the price
parameter in any add-to-cart link or form will be ignored unless your store is using product verification and the price is not zero.
Further, since the downloadable product's name
is set in the admin, the name
parameter need not be included in the product's add-to-cart link or form (though it won't hurt to include it).
Downloadables currently do not support product level discounts, but can still be discounted by using either category level discounts, or our coupon functionality.
A downloadable product is added to the cart just like any other product, but upon a successful transaction the receipt displays links to download the products purchased, as well as on the email receipt (as shown below).
The customer can click on either link to retrieve their product(s), and their download will begin immediately (or as close to immediately as it may take to for their web browser to load the link). The customer may be prompted to select a location to save the file, or the file may be downloaded automatically, depending on the user's browser settings.
Since there is no real-time validation of Purchase Orders or e-check payments through PayPal Express Checkout, downloadable products are not included in the initial receipt (both the web receipt and the email receipt). FoxyCart sends a special response details entry in the datafeed indicating the delayed payment method.
For payments made with a payment method other than a Purchase Order: Once the order is approved, you can login to the FoxyCart admin and manually initiate another email receipt to be sent (from the “transactions” page in the admin, each transaction includes an “(email)” link to resend the email receipt to the customer and possibly the store depending on your settings), which will include the downloadable product links.
For payments made with a Purchase Order, you will need to manually send the download links to the customer.
If you have a customer that needs downloadable links resent, you can resend the original email receipt directly from the “transactions” page in your store's admin. You can also reset the download count per product if you need to allow customers to re-download the file.
Each link to download a file is unique per order, and your downloadable products can only be accessed by a valid link generated by FoxyCart. These links can be configured to expire by two different methods:
Again, to be clear: Your files are stored in a location that is inaccessible to web users. The only way for your files to be downloaded by a customer is through the specific download link unique to their specific transaction.