Table of Contents
Downloadable Products with FoxyCart
About Downloadable Products
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.
How to Create Downloadable Products
Creating a downloadable product is easy.
- Ensure you have a category with a “product delivery option” set to “downloaded by the customer”. While you can make your default category “downloaded by the customer”, this is not recommended unless you are only selling downloadables, as otherwise it can lead to unintended errors with non-downloadable products.
- Click the “downloadables” link in your FoxyCart admin navigation, then click the “add a product” link.
- Select the appropriate file to upload, and the appropriate category, product name (as displayed to the customer), product code (unique per product, per category), and price.
- Upload the file.
- Create an add-to-cart link or form, making sure to include the necessary
code. Note that without the appropriate
codevalues, 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
nameto the cart, since that is set explicitly on the server-side.
How Are Downloadables Different from Normal Products?
Unlike normal FoxyCart products, downloadable products must be created explicitly in the FoxyCart admin, and given a
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.
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).
How Are Products Delivered?
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.
How Are Downloads Secured?
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:
- Maximum downloads. For example, if this is set to “3”, the link will allow the product to be downloaded up to 3 times, after which point it will display an expiration message rather than allowing the customer to download the file.
- Hours for maximum downloads. This is basically a timed expiration. If the maximum downloads are 1000 but the “hours” is set at “24”, the FoxyCart-generated download link will expire after 24 hours from the purchase, regardless of the number of downloads at that point.
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.
Limitations and Considerations
- The current filesize limit per downloadale product is 200MB.
- Multiple downloadable products can be ordered simultaneously, but one product can only have one file. So, if you wanted to have one product with multiple separate files you'd have to zip those files together first.
- Similarly, if you wanted to do 10 separate and individual album tracks at $0.99 but the entire 10 track album at $6.99, you'd have to make them all separate products. You could get creative on the add-to-cart link or form to emulate that behavior, but there isn't any native FoxyCart functionality to do rule-based product adding and removing.
- Subscriptions with downloadables are not a recommended approach. For example, if you want to have a monthly billing arrangement where users can download a new file each month, we recommend using FoxyCart's subscription functionality to manage user permissions or access on your own system, then use that access to allow downloads (from your site) as appropriate.