Downloadable product
A downloadable product can be anything that you can deliver as a file, such as an eBook, music, video, software application, or update. You can offer an album for sale and sell each song individually. You can also use a downloadable product to deliver an electronic version of your product catalog.
Because the download is not available until after the purchase, you can provide samples, such as an excerpt from a book, a clip from an audio file, or a trailer from a video. A sample is something that the customer can try before purchasing the product. The files that you make available for download can be either uploaded to your server or from a different server.
{width="700" modal="regular"}
Downloadable products can be configured to require that the customer logs in to an account to receive the link or can be sent by email and shared with others. The status of the order before the download becomes available, default values, and other delivery options are set in the configuration. As you plan your downloadable catalog additions, take note of the following:
-
Downloadable products can be uploaded to the server or linked to from another server on the internet.
-
You can determine the number of times a customer can download a product.
-
Customers who purchase a downloadable product can be required to log in before going through checkout.
-
The delivery of a downloadable product can be made when the order is in either a
Pending
orInvoiced
status. -
Because downloadable products are not shipped, the Shipping step of the checkout is skipped when the cart contains only the downloadable product.
Configure the download options
The downloadable configuration settings determine the default values and delivery options for downloadable products and specify if guests can purchase downloads.
-
On the Admin sidebar, go to Stores > Settings > Configuration.
-
In the left panel, expand Catalog and choose Catalog underneath.
-
Expand the Downloadable Product Options section.
{width="700" modal="regular"}
For a detailed list of these configuration options, see Downloadable Product Options in the Configuration Reference.
-
To determine the status of the order process when the download becomes available, set Order Item Status to Enable Downloads to one of the following:
Pending
Invoiced
-
To set a default limit on the number of downloads that a single customer can make, enter the number for Default Maximum Number of Downloads.
-
Set Shareable to one of the following:
Yes
- Allows customers to email the download link to others.No
- Prevents customers from sharing the download link with others by requiring customers to log in to their accounts to access download links.
-
For Default Sample Title, enter the heading that you want to appear above the selection of samples.
{width="400"}
-
For Default Link Title, enter the default text that you want to use for download links.
-
If you want the download link to open in a new browser window, set Opens Links in New Window to
Yes
.This setting is used to keep the browser window to your store open.
-
To determine how downloadable content is delivered, set Use Content Disposition to one of the following:
Attachment
- Delivers the download link by email as an attachment.Inline
- Delivers the download link as a link on a web page.
-
If you want to require that purchasers register for a customer account and log in before purchasing a download, set Disable Guest Checkout if Cart Contains Downloadable Items to
Yes
. -
When complete, click Save Config.
Create a downloadable product
The following instructions demonstrate the process of creating a downloadable product using a product template, required fields, and basic settings. Each required field is marked with a red asterisk (*
). When you finish the basics, you can complete the other product settings as needed.
Step 1: Choose the product type
-
On the Admin sidebar, go to Catalog > Products.
-
On the Add Product ( {width="25"} ) menu at the upper-right corner, choose
Downloadable Product
.{width="700" modal="regular"}
Step 2: Choose the attribute set
The sample data includes an attribute set called Downloadable that has special fields for downloadable products. You can use an existing template or create another before the product is saved.
To choose the attribute set that is used as a template for the product, do one of the following:
-
For Search, enter the name of the attribute set.
-
In the list, choose the
Downloadable
attribute set.
The form is updated to reflect the change.
{width="600" modal="regular"}
Step 3: Complete the required settings
-
Enter the Product Name.
-
Accept the default SKU that is based on the product name or enter another.
-
Enter the product Price.
-
Because the product is not yet ready to publish, set Enable Product to
No
. -
click Save and continue.
When the product is saved, the Store View chooser appears in the upper-left corner.
-
Choose the Store View where the product is to be available.
{width="600" modal="regular"}
Step 4: Complete the basic settings
-
Set Tax Class to one of the following:
None
Taxable Goods
-
Enter the Quantity of the product that is in stock.
Take note of the following:
-
By default, Stock Status is set to
Out of Stock
. -
Because downloadable products are not shipped, the Weight field is not used. If you enable this feature, it becomes a Simple product and the Is this downloadable product? tab cannot be used.
note note NOTE If you enable Inventory Management, Single Source merchants set the quantity in this section. Multi Source merchants add sources and quantities in the Sources section. See the following Assign Sources and Quantities (Inventory Management) section. -
-
Accept the default Visibility setting of
Catalog, Search
. -
To feature the product in the list of new products, select the Set Product as New checkbox.
-
To assign Categories to the product, click the Select… box and do either of the following:
Choose an existing category:
-
Start typing in the box until you find a match.
-
Select the checkbox of each category that is to be assigned.
Create a category:
-
Click New Category.
-
Enter the Category Name and choose the Parent Category, which determines its position in the menu structure.
-
Click Create Category.
-
-
Set Format to one of the following:
Download
DVD
If necessary, you can edit the attribute to add more values.
There might be additional attributes that describe the product. The selection varies by attribute set and you can complete them later.
Assign sources and quantities (Inventory Management)
For multisource merchants using Inventory Management, scroll down to the Sources section and assign sources and quantities:
-
To add a source, click Assign Sources.
-
Browse or search sources and select the checkbox next to the sources that you want to add for the product.
{width="600" modal="regular"}
-
Click Done to add the sources.
-
To manage the quantity and status of the source, click Advanced Inventory and set Manage Stock to
Yes
. -
Set Source Item Status to
In Stock
. -
Enter an amount update the Qty for on-hand stock.
-
To set a notification for inventory quantities, do one of the following:
-
Custom Notify Quantity - Clear the Notify Quantity Use Default checkbox and enter an amount in Notify Quantity.
-
Default Notify Quantity - Select the Notify Quantity Use Default checkbox. Commerce checks and uses the setting in Advanced Inventory or global store configuration.
{width="600" modal="regular"}
-
Step 5: Complete the downloadable information
Scroll down, expand the Downloadable Information section, and select the Is this downloadable product? checkbox.
When enabled, the Downloadable Information section has two parts. The first part describes each download link, and the second part describes each sample file. The default value for many of these options can be set in the configuration.
{width="600" modal="regular"}
Complete the links
-
In the Links section, enter the Title that you want to use as a heading for the download links.
-
If applicable, select the Links can be purchased separately checkbox.
-
Click Add Link and do the following:
-
Enter the Title and Price of the download.
-
For both File and Sample files, choose one of the following methods of distribution for the downloads:
Upload File
- Choose this method to upload the distribution file to the server. Browse to the file and select it for upload.URL
- Choose this method to access the distribution file from a URL. Enter the full URL to the download file.
note note NOTE You cannot use links to external resources as downloadable products. Valid link domains are predefined programmatically in the env.php
file (see env.php reference in the Configuration Guide).-
Set Shareable to one of the following:
-
No
- Requires customers to log in to their accounts to access the download link. -
Yes
- Sends the link by email, which customers can share with others. -
Use Config
- Uses the method that is specified in the Downloadable Product Options configuration.
-
-
Do one of the following:
- To limit downloads per customer, enter the maximum number for Max. Downloads.
- To allow unlimited downloads, select the Unlimited checkbox.
{width="600" modal="regular"}
-
-
To add another link, click Add Link and repeat these steps.
Complete the samples
-
In the Samples section, enter the Title that you want to use as a heading for the samples.
-
To complete the information for each sample, click Add Link.
{width="600" modal="regular"}
-
Complete the link detail as follows:
-
Enter the Title of the individual sample.
-
Choose one of the following distribution methods:
Upload File
- Choose this method to upload the distribution file to the server. Browse to the file and select it for upload.URL
- Choose this method to access the distribution file from a URL. Enter the full URL to the download file.
-
To add another sample, click Add Link and repeat these steps.
-
To change the order of the samples, grab the Change Order ( ) icon and drag the sample to a new position.
-
Step 6: Complete the product information
Scroll down and complete the information in the following sections as needed:
Step 7: Publish the product
If you are ready to publish the product in the catalog, set Enable Product to Yes
and do one of the following:
Method 1: Save and Preview
-
In the upper-right corner, click Save.
-
To view the product in your store, choose Customer View on the Admin ( ) menu.
The store opens in a new browser tab.
{width="600" modal="regular"}
Method 2: Save and Close
On the Save ( {width="25"} ) menu, choose Save & Close.
Storefront experience
In the customer account dashboard, the My Downloadable Products page links to each order of downloadable products. The downloads become available from the customer’s account when the order is complete.
{width="700" modal="regular"}
The following table describes the My Downloadable Products values:
To download a product file from the account dashboard
-
In their account dashboard, the customer chooses My Downloadable Products.
-
Finds the order in the list and clicks the link after the title.
-
In the lower-right corner of the download window, clicks the download icon.
-
Locates the file in their downloads location and saves the file to the desired location.