Back to blog
4 min read Content Sync

Sync WooCommerce Downloadable Products with Their Files Between Stores

A downloadable WooCommerce product, such as an e-book, sheet music or a price list, is two things: the product and the file the customer gets after paying. The file usually sits in the protected woocommerce_uploads folder, and the product stores its address. Copy the product to another store and that address points either to the old store or to a file that isn’t there, and since WooCommerce 6.4 a file outside the store’s approved download directories is refused anyway. With Import Export by RockStarLab PRO, a product push copies the download file into the other store’s woocommerce_uploads folder and points the product at it.

PRO: WooCommerce product sync is a PRO feature and needs PRO with a license on both sites. The test below used Import Export by RockStarLab 2.2.13 and PRO 2.1.31.

Short Answer

Push the downloadable product from Products with Sync Content. The file is copied to the other store, into wp-content/uploads/woocommerce_uploads/, which WooCommerce approves for downloads by default, and the product’s file URL is changed to it. Download name, download limit and download expiry are copied too. Pushing again doesn’t copy the file a second time.

The product we pushed

On the source store, the virtual product Home Brewing Guide (PDF) had one download, the PDF in woocommerce_uploads/2026/11/, a download limit of 5 and an expiry of 30 days:

Product data of a virtual downloadable product on the source store with one downloadable file, download limit 5 and expiry 30
The downloadable product on the source store.

In Products we ticked it, clicked Sync Content, chose the other store and clicked Push to Site. The product was new there:

Map Posts for Sync dialog with Home Brewing Guide (PDF) set to Create New Post
The product is new on the other store.

What the other store got

After Confirm & Sync, the product on the other store was downloadable and virtual, with the same download name, limit and expiry. Its file URL was http://<other store>/wp-content/uploads/woocommerce_uploads/2026/11/home-brewing-guide.pdf, and the PDF was in that folder:

Product data on the receiving store with the same downloadable file name, a file URL on that store, download limit 5 and expiry 30
On the other store the file URL points to its own copy.

WooCommerce > Settings > Products > Advanced > Approved download directories on the other store listed only the woocommerce_uploads folder, and WooCommerce accepted the new file URL as approved. A customer who buys the product on the other store gets a working download.

Downloadable product data On the other store after the push
File in the Media Library (any folder) Copied into woocommerce_uploads; URL points to it
Download name Copied
Download limit and expiry Copied
Virtual / Downloadable checkboxes Copied
Second push of the same product No second copy of the file

Things to know

  • The plugin sends files from the source store’s Media Library, which is where Choose file on the product puts them. A file uploaded by FTP joins in after one step with Media Sync from the same plugin (see PDFs uploaded by FTP).
  • Files hosted on Amazon S3 or another external host keep their URL, so the copy downloads from the same place; add that host to the other store’s approved download directories.
  • Image files used as downloads stay in the regular uploads folder, so WooCommerce needs that folder approved for downloads; for PDFs, ZIPs and other files the move to woocommerce_uploads happens automatically.

As before any push, back up the store you push to, or ask your AI agent to start the backup.

With an AI agent

Import Export by RockStarLab gives AI agents its exports, imports and Content Sync as abilities. Through the WordPress MCP Adapter, WordPress itself offers an agent only read-only abilities for site, user and environment information, so without the plugin the agent cannot do the steps above (to connect an agent, see connecting Claude Code to WordPress). With it, one request is enough:

With Import Export by RockStarLab, on this store, is the product with SKU EBOOK-BREW downloadable, and is it virtual?

In our check, the agent called WooCommerce’s woocommerce/products-query ability with the SKU. It returned the product with downloadable: true, virtual: true and the price 6.00, the same as on the source store.

FAQ

Are downloadable product files copied when I sync WooCommerce products?

Yes. A file from the Media Library is copied to the other store’s woocommerce_uploads folder, and the product points to the copy.

Why does a copied downloadable product say the file is not in an approved directory?

WooCommerce only serves downloads from approved folders. If a copy tool put the file elsewhere or kept the old store’s URL, it is refused. A product push puts the file in woocommerce_uploads, which is approved by default.

Are download limit and expiry kept?

Yes. Both are copied with the product.

Can customers who bought on the first store download from the second?

Not through a product push. Download permissions are part of orders, which stay on the store where they were placed.

Get the free plugin on WordPress.org.

Dmitriy
About author

Dmitriy

WordPress Developer with 15+ years of commercial experience. Elite Author on ThemeForest and creator of custom WordPress plugins. Passionate about clean code, performance optimization, and building useful tools for the WordPress community.

JOIN THE CONVERSATION

Comments 0

Have a question or a tip to share? Leave it below.

Leave a comment

Your email address will not be published. Required fields are marked *

We store your name, email and comment to show and moderate it; your email is never published. Spam protection is provided by Cloudflare Turnstile and profile pictures by Gravatar. See our Privacy Policy.


Try the plugin with no risks!

New users get 1 month with access to all premium features. Experience the most powerful WordPress data engine today.

Download Now
Get PRO for FREE