Features
Digital downloads
Sell software, e-books and other files as WooCommerce downloadable products, with a Downloads page in the account, the files on every order, and each file served from the storefront's own address.
Software, an e-book, a print-at-home pattern: when the product is a file, shoppers want it straight after paying and again whenever they need it. The storefront gives them a Downloads page in their account and the files on the order itself, and serves every file from your store’s own address. WooCommerce keeps counting downloads and ending access exactly as it does today.
- Where it shows
/account/downloads, the order confirmation and/account/orders/{id}, and the download links in WooCommerce's emails- Configure in
- Each product's downloadable files in WooCommerce, and WooCommerce → Settings → Products → Downloadable products
- Requires
- The Companion plugin 1.5.0 or later; the Storefront URL set
- Try it in Demo Mode
- Sign in as
demo@retail.store/demo1234: the Downloads page holds the Candle Care Guide (eBook) and the Seasonal Recipe Collection
What shoppers get
Section titled “What shoppers get”- A Downloads page in the account. Under Downloads in the account menu, one row per file, newest order first: the product (linked to its page) with the file’s name, when access Expires (a date, or Never), the order (linked to it), and Download with the downloads left (“3 downloads left”, or “Unlimited downloads”). On a phone each row is a card. Only files they can download now are listed: an expired or used-up file isn’t.
- Files on the order. Once an order is paid, its confirmation page and its page in the account have a Downloads section with the same rows. A guest finds the files on the confirmation page straight after checkout.
- Links in their emails. WooCommerce’s own emails keep their downloads table, and every link opens the storefront. A link in an older email that still points at WordPress is sent on to the storefront.
- A clear answer when a link can’t be used. Instead of an error, a page says why: the link isn’t valid, it has reached its limit, it has expired, the Shopper must sign in, or the download couldn’t start. It offers Sign in to see your downloads where signing in helps, and Go to shop otherwise.
How it works
Section titled “How it works”Every download link points at the storefront’s /download address, carrying the same parts as WooCommerce’s own link:
the product, the order key, the buyer’s email (as a hash) and the file. The storefront asks the Companion plugin
for the file and streams it on to the Shopper. The WordPress address never shows, an interrupted download can resume,
and the file is marked private and kept out of search engines.
WooCommerce decides who may download. The Companion plugin asks WooCommerce’s own checks (the order is paid, the file is still on the product, the limit and the expiry, signing in where it is required) and then hands over to WooCommerce’s download handler, which counts the download and sends the file. The account page is WooCommerce’s own list of the customer’s available downloads. The storefront decides nothing about access.
WordPress’s My account → Downloads page sends shoppers on to the storefront’s Downloads page.
Set it up
Section titled “Set it up”- Make the product downloadable as usual. In Products, tick Virtual and Downloadable, add the files, and set a Download limit and Download expiry if you want them. The files must be in an approved download directory: see WooCommerce → Settings → Products → Approved download directories.
- Set the Storefront URL under StoreFrontSettingsGeneral. The download links in WooCommerce’s emails then open the storefront. Without it, they stay on WordPress, and WooCommerce serves the files itself.
- Keep WooCommerce’s Downloads account page on. The Downloads endpoint, under Account endpoints in WooCommerce → Settings → Advanced → Page setup, must not be empty: blanking it hides the storefront’s Downloads page too.
- Run the Companion plugin 1.5.0 or later. An older plugin has no download routes, and the storefront then shows no Downloads anywhere.
- Test one purchase end to end: buy a downloadable product, then download it from the confirmation page and from the account’s Downloads page.
What the storefront follows
Section titled “What the storefront follows”| WooCommerce setting | On the storefront |
|---|---|
| A product’s Download limit and Download expiry | Followed: WooCommerce counts each download and ends access. Files past either aren’t listed. |
| Grant access to downloadable products after payment | Followed: files appear on an order once WooCommerce grants access to it, and never on an unpaid order. |
| Downloads require login | Followed for files bought while signed in: the Shopper signs in on the storefront to download them. Files bought as a guest are unaffected. |
| File download method | Applied by WooCommerce. Force downloads is the method tested with the storefront (see Good to know). |
| Approved download directories | Applied by WooCommerce: a file outside them can’t be downloaded. |
| Append a unique string to filename for security | WooCommerce’s own, applied when a file is uploaded. |
Good to know
Section titled “Good to know”- The account lists the signed-in customer’s own files. A guest order appears on the Downloads page only once WooCommerce links it to the customer’s account.
- Order tracking (
/track-order) doesn’t show downloads; the confirmation page and the account do. - Every download passes through the storefront. On Cloudflare Workers, each one is a Worker request, so downloads stop while the storefront is down.
- Invoices are separate: a PDF invoice is offered on the order, not on the Downloads page. See Orders and invoices.