If you deliver digital products through your WooCommerce shop, this guide walks through how to deliver your WooCommerce downloads with Dropbox: how to build a download link that just works, how to update a product’s files later, and how to swap out a preview. There is also one thing to flag for your customers before you start.
A note on school networks: Some schools and districts block Dropbox. If your customers are teachers, a Dropbox link may not open on their school network. It is worth adding a line to your product description or download email letting them know they may need to download at home or on a personal device. This is a restriction on their end, separate from how your link is set up.
Part 1: Information – Link to a folder, not a single file
When a customer lands on a standard share page (Dropbox or Google Drive), they often get confused about how to actually save the file to their computer. The fix is to link to a Dropbox folder and force the download, which the next step covers.
Two reasons to link to a folder rather than a single zip file:
- Customers get a clean, automatic download. If the folder is large, Dropbox zips it for them automatically.
- You can change the folder’s contents any time, and the same link keeps working. No re-zipping, and no re-linking inside WooCommerce.
Google Drive can force-download a single file but not a folder, and most products are a set of files. Amazon S3 works for storage but is not beginner-friendly for building folder links, so Dropbox is the simpler choice here.
Part 2: Information – Make the link download automatically
This is the part that makes the link work the way customers expect:
- In Dropbox, click Share on the file or folder, then Create link, then Copy link. (Or right-click the item and choose Copy Dropbox link.)
- Paste the link somewhere. You will notice it ends in ?dl=0.
- Change that 0 to a 1, so it ends in ?dl=1.
That one change turns the Dropbox landing page into an instant download. When a customer clicks a ?dl=1 link, the file downloads straight to their computer instead of opening a preview page. This is the link you paste into your WooCommerce product’s downloadable file field.
Note: Some preview setups require a slightly different link style. See your web developer for more information.
Part 3: Update your WooCommerce downloads with Dropbox
Because you linked to a folder, updating a product never touches your website:
- Go to Dropbox and find the product’s folder. Organizing each folder by its TPT SKU makes this quick, since you can search the SKU and go straight to it.
- Open the folder you linked to. Do not rename or delete the folder itself. Only change what is inside it.
- Delete, add, or replace files inside the folder as needed.
The next time a customer downloads from their account, they get the new contents automatically. You can add as many files as you like, and you never have to edit the product in WooCommerce.
Part 4: Update a preview PDF
A preview PDF, the sample customers look at before buying, works the same way. There are two methods.
Method A, rename and replace (fastest):
- In Dropbox, open the folder and find the preview PDF you linked to.
- Name your new preview file exactly the same as the old one. (Tip: download the current preview, copy its exact file name, then rename the new file to match.)
- Drag and drop the new file in. Dropbox cannot keep two files with the same name, so it replaces the old one.
Because the preview link is based on the file name, your site shows the new preview automatically. Reload the product page to check.
Method B, update the link manually (if you renamed the file, or want to be sure):
- In Dropbox, delete the old preview and drag in the new one. Click the three dots and choose Copy link.
- Update the link in whichever spot your product uses:
- Preview button / lightbox: paste the link, change
www.dropbox.comtodl.dropbox.comat the start, and change the ending to?raw=1. Final form:https://dl.dropbox.com/s/yourlinkPreview.pdf?raw=1 - Embedded document tab (embeddoc shortcode): paste the link and change
dl=0todl=1at the end, then click Save Tabs.
- Preview button / lightbox: paste the link, change
- Reload your product and check the preview tab and/or the preview button.
Not every product uses both a preview button and a preview tab, so just update the one you have.
Sample links to keep handy
- Embedded preview (tab):
Loading...
- Preview button / lightbox:
https://dl.dropbox.com/s/yourlinkPreview.pdf?raw=1 - Product download (force download):
your Dropbox folder link, ending in?dl=1
A quick tip on organizing
Name every Dropbox folder with the product’s TPT SKU, and use that same ID as the SKU on the matching WooCommerce product. That way you always know exactly which folder belongs to which product, and swapping files later stays quick.
Tired of keeping up with your shop? I can set all of this up for you. Learn about maintenance plans or get in touch.