WooCommerce · Guide
How to Sell Digital Downloads With WooCommerce

Short answer
Create a product, tick Virtual and Downloadable, upload the file, and set a download limit and expiry. Choose Force Downloads or X-Accel-Redirect under WooCommerce > Settings > Products > Downloadable products so only buyers can reach the file. Orders with only virtual and downloadable items skip Processing and go straight to Completed.
Key takeaways
- Ticking Virtual removes shipping fields and the shipping calculator; ticking Downloadable adds the file, limit and expiry fields.
- A blank download limit means unlimited downloads and a blank expiry means the link never expires.
- Orders with only virtual and downloadable products skip Processing and go straight to Completed.
- Force Downloads and X-Accel-Redirect hide the file path; Redirect only leaves the file open to anyone with the link.
- Downloads require login does not apply to guest purchases.
What counts as a digital product in WooCommerce?
A digital product is a product the customer receives as a file or as online access, with no physical shipping involved.
WooCommerce's virtual and downloadable documentation says a product marked virtual or downloadable is not physically shipped, can be downloaded digitally, or both (checked November 2026). See the virtual and downloadable products documentation.
Typical examples are ebooks, templates, photos, music, software and online courses. If the buyer gets a file after paying, it is a downloadable product.
A product can be downloadable without being virtual. WooCommerce's virtual and downloadable documentation says such a product still has shipping fields and shipping costs at checkout, which suits a physical item that includes a manual as a download (checked November 2026).
How do you create a downloadable product?
Go to WooCommerce > Products > Add Product and enter the title, description and price first.
Tick both Virtual and Downloadable in the product type panel. WooCommerce's virtual and downloadable documentation says ticking Virtual disables all shipping-related fields, and the product will not trigger the shipping calculator in the cart or at checkout (checked November 2026).
Ticking Downloadable adds three fields to the General section: Downloadable files, Download limit and Download expiry. Click Add File, name the file, then upload it with Choose file or paste a full URL for a file hosted elsewhere.
Click Publish or Update to save the product. The file is now attached, but the customer only gets access after a paid order.
If you are new to the product screen, see how to add products in WooCommerce.
What do download limit and download expiry do?
The download limit sets how many times a customer can download the file, and the expiry sets how many days the link stays live after purchase.
WooCommerce's virtual and downloadable documentation says to leave the download limit blank for unlimited downloads (checked November 2026). Once a customer reaches the limit, they can no longer download the file.
WooCommerce's virtual and downloadable documentation also says to leave the download expiry blank for no expiration (checked November 2026). Enter a number of days only when the access should end, such as a 30-day course window.
Set both fields before you publish. Changing them later does not change the limits already granted on past orders.
How do you keep download files safe?
Choose a protected download method under WooCommerce > Settings > Products > Downloadable products before you sell anything.
WooCommerce's products settings documentation lists three file download methods: Force Downloads, X-Accel-Redirect/X-Sendfile and Redirect only (checked November 2026). That page is the Products settings documentation.
Force Downloads serves files through a PHP script, so files are not open to anyone but buyers and direct links stay hidden. X-Accel-Redirect/X-Sendfile works the same way with better speed and support for larger files, but your host must support it.
Redirect only links the customer straight to the file, so anyone with the URL can download it. WooCommerce's products settings documentation says most stores should use one of the first two methods to keep files safe from outside access (checked November 2026).
What other download protections should you turn on?
Tick Downloads require login if you want only signed-in customers to download, and tick Append a unique string to filename for security to make shared links harder to guess.
WooCommerce's products settings documentation says the login requirement does not apply to guest purchases (checked November 2026). A guest buyer still gets the link in their order email.
Tick Grant access to downloadable products after payment to give access when the order is Processing rather than Completed. That matters for orders that sit in Processing while you check something else.
Since WooCommerce 6.5 you can also set approved download directories. WooCommerce's products settings documentation says the settings at WooCommerce > Settings > Products > Approved download directories help manage where downloadable files are stored and served (checked November 2026).
How do customers get their files after paying?
The customer gets the download link on the order confirmation page, in the order email and in their account.
WooCommerce's virtual and downloadable documentation says orders with only products that are both virtual and downloadable skip the Processing status and move directly to Completed (checked November 2026). That Completed status is what makes the download available.
If an order also holds a physical item, it follows the normal flow instead. The download for a mixed order waits until the order reaches the status your settings allow.
Tell buyers where to find the link. A short note in the product description, such as “Your download link arrives by email after payment”, stops most support messages.
How do you sell different versions of one file?
Use a variable product when one file comes in more than one format, licence or size.
For variable products, the Virtual checkbox appears for each variation. WooCommerce's virtual and downloadable documentation says the same for the Downloadable box: each variation gets its own file, price and limits (checked November 2026).
Create an attribute such as Format with values PDF and ePub, then add a variation for each value. Upload the matching file to each variation and set its own price.
This is also how software sellers offer a single-user licence and a team licence. The product screen has no licence key field, so a key needs a separate plugin from the directory or marketplace.
What payment settings do digital products need?
Connect at least one payment gateway before you publish, or customers cannot pay for the file at all.
Card payments suit digital sales because the order completes at once and the download becomes available right away. See how to set up Stripe in WooCommerce for the card route.
PayPal is the common second option, and it also supports automatic payments for repeat billing. See how to set up PayPal in WooCommerce.
Compare the fees before you choose, because the fee comes off every sale. See WooCommerce payment gateway fees compared for the current numbers.
Switch off cash on delivery and bank transfer for digital-only products. A buyer who picks a manual method gets no file until you mark the order paid.
What about tax on digital sales?
Set your tax rates before the first sale, because digital goods are taxed where the buyer is in many countries.
WooCommerce's tax settings sit under WooCommerce > Settings > Tax. For the full setup, see how to set up taxes in WooCommerce.
Check the tax rules for each country you sell to. Some places treat an ebook differently from a software licence, and the rate can change with the product type.
Keep the invoice simple. The order email already lists the price, the tax and the download link, so do not promise a separate licence email unless you send one.
How do you check that downloads work?
Place a test order with a real payment method, then open the download link from the confirmation page and from the order email.
Use a small test file first, then the real file. A large file can fail on a host with a low upload limit even when a small file works fine.
Check your host meets the current baseline before selling large files. WooCommerce's server recommendations list WordPress 6.9 or later, PHP 8.3 or later, MySQL 8.0 or later (or MariaDB 10.6 or later), HTTPS and a 256 MB memory limit (checked November 2026). See the server recommendations.
If the download fails, check the file download method first. Redirect only looks like it works until someone shares the link, while Force Downloads fails loudly when the server blocks PHP file serving.
| Setting | Where to find it | What it does |
|---|---|---|
| Virtual | Product data panel | Removes shipping fields and the shipping calculator |
| Downloadable | Product data panel | Adds file, limit and expiry fields |
| Download limit | Product data > General | Caps downloads per customer; blank means unlimited |
| Download expiry | Product data > General | Days until the link expires; blank means no expiry |
| File Download Method | WooCommerce > Settings > Products > Downloadable products | Force Downloads, X-Accel-Redirect/X-Sendfile or Redirect only |
| Downloads require login | WooCommerce > Settings > Products > Downloadable products | Limits downloads to signed-in customers |
What mistakes should you avoid?
Do not use Redirect only for paid files, because anyone with the link can download without paying.
Do not leave the download limit and expiry blank by accident. Blank means unlimited and never expires, which is fine for a template but wrong for a time-limited course.
Do not tick Downloadable and forget Virtual. The product will then ask the buyer for a shipping address and add shipping costs at checkout.
Do not sell a licence key as a plain file. A text file with keys can be copied and shared, so use a licence plugin built for the job.
Do not skip the test order. A broken download link is found by the first paying customer if you do not find it first.
Frequently asked questions
How do I sell an ebook in WooCommerce?
Yes. Tick Virtual and Downloadable on the same product, then upload the file in the General section. Virtual removes the shipping fields and the shipping calculator, while Downloadable adds the file, limit and expiry fields. The order then skips Processing and goes straight to Completed.
How do I allow unlimited downloads in WooCommerce?
Leave the Download limit field blank and WooCommerce allows unlimited downloads for that product. The same applies to Download expiry: blank means the link never expires. Set a number only when you want to cap downloads or end access after a set time.
How do I stop customers sharing my download link?
Use Force Downloads or X-Accel-Redirect/X-Sendfile under WooCommerce > Settings > Products > Downloadable products. Both hide the real file path from non-buyers. Redirect only links straight to the file, so anyone with the URL can download it without paying.
Where does the customer find the download link?
The customer gets the link on the order confirmation page, in the order email and in their account. If the product is both virtual and downloadable, the order moves straight to Completed, which makes the download available. Check the spam folder if the email is missing.
Can WooCommerce create licence keys for software?
No. WooCommerce delivers the file but has no licence key field on the product screen. You need a separate licence plugin from the WordPress.org directory or the WooCommerce Marketplace to create and check keys for software sales.
How do I sell the same file in two formats or licences?
Use a variable product with an attribute such as Format or Licence. Each variation gets its own Virtual and Downloadable boxes, its own file and its own price. A buyer then picks the version they want before adding it to the cart.
Sources
- Virtual and downloadable products WooCommerce
- Products Settings Documentation WooCommerce
- WooCommerce Server Recommendations WooCommerce
- WooCommerce WordPress.org
- Detailed Plugin Guidelines WordPress Developer Resources
- How to design a simple extension WooCommerce Developer Documentation
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


