Digital/Downloadable Product Handling

This tutorial builds upon Managing Products but explains downloadable products specifically.

Video Thumbnail

15:53

Setup and Configuration

  1. Go to: WooCommerce > Settings >Products > Downloadable Products.
  2. Select a File Download Method from the dropdown.
    • Redirect only – When users download a file, their link redirects to the file.
    • Force Downloads – File downloads are forced, using PHP. To ensure files are protected from direct linking, Force Downloads can be used. Files are served by PHP. However, if your files are large, or the server is underpowered, you may experience timeouts during download. In this case, you need to either look at your server or use the redirect method.
    • X-Accel-Redirect/X-Sendfile – Downloads are handled by the server (nginx/apache). This method requires the X-Accel-Redirect/X-Sendfile module be installed and enabled on the server. Confirm with your web host that one of these modules is installed before using this method. It’s the most reliable method because the file is served directly to the customer and gives you the best performance. Files are also protected by an .htaccess file, making it secure.
  3. Select a level of Access Restriction. Tick the Downloads Require Login checkbox if you want users to be logged in to download files. Guest checkout would need to be disabled.
  4. Tick the Grant access to downloadable products after payment checkbox if you wish to grant access to files when orders are Processing, instead of Completed.
  5. Save changes.

Creating downloadable products

Downloadable Simple Products

To get started:

  1. Go to: WooCommerce > Products > Add Product to add a new Simple product as outlined in Adding and Managing Products.
  2. Tick the Downloadable checkbox.After ticking this box, other options appear: Downloadable Files, Download Limit, Download Expiry, Download Type.
    WooCommerce supports multiple files per product!
  3. Select the Add file button, and then name the file. Enter the downloadable URL if it’s hosted elsewhere, or select the Choose file button to either insert an existing file from your Media Library or to Upload a new file. Upload the file and click Insert to set up each downloadable file URL. Match the URL of the product to the URL of your site. (i.e., if you have a www in your site URL, then make sure that is in the file URL.)
    • In version 2.0+, enter one per line
    • In prior versions, only one file was allowed per product. Multiple files required packaging in a ‘zip’ file.
  4. Enter the Download Limit (optional). Once a user hits this limit, they can no longer download the file.
  5. Enter the Download Expiry. If you define a number of days, download links expire after that.
  6. Select the Download Type from the dropdown.
  7. Save.

Downloadable Variations

Variable products can also have downloadable variations. When adding a variation tick the Downloadable checkbox and more options appear.

Variation Downloads

Options work the same as regular products: Set the file path, optionally choose a download limit and expiry, and save.

Combining downloadable and virtual products

If you tick the Downloadable checkboxes, products can have stock and are treated as physical products. This allows you to sell downloads and real products together.

If you want to add/sell a downloadable product that is not physical, also enable the Virtual option.

Usage

The ordering process for downloadable products is:

  1. User adds product to their cart.
  2. Users checks out and pays.
  3. After payment, several things can happen depending on your setup:
    • If items in the order are all downloadable + virtual, the order is complete.
    • If items are physical and downloadable/virtual, the order is processing until you change it.
  4. Once complete, or if the option “Grant access to downloadable products after payment” is enabled, the user can:
    • Be granted download permission
    • See download links on the order received page
    • See download links in their email notification
    • See download links on their ‘My Account’ page if logged in

Users can then download files.

Invoice/Order Email

Customer receives an invoice/order confirmation with clickable link to download, if order is processed and paid.

Managing orders with downloadable line items

  1. Go to: WooCommerce > Orders and select the order you wish to view or edit.
  2. Scroll down to the Downloadable Product Permissions meta box, which displays the download and how many times the customer had accessed it.
  3. Revoke access, grant access to new downloads, or exit order.

Download logs/reports

Downloads of digital/downloadable products have unique IDs that are tracked and logged in Reports. More at: WooCommerce Reports.

Source: https://docs.woocommerce.com/document/digital-downloadable-product-handling/

Skip to toolbar
Made with  in Viet Nam • Powered by Hoangsoft.com