I’m trying to grant access to a file to a client after he completed the order by selecting the file under “Downloadable product permissions” in the order page. But I can’t find any files using this field. I just get an error message: “no matches found”. The files were uploaded to the Approved Download Directory. Thanks.
In any case, my problem is not with generate download permissions. I know I’m doing this successfully because the client can see the newly assigned file in the download list in their account. My only problem is that the email sent to the customer when I change the order status from “processing” to “completed” does not include the newly assigned file. The customer must log in to their account and find it only in the downloads list.
Let’s focus on the email that’s being sent to the customer when the order status changes from “Processing” to “Completed.”
Could you please share a screenshot of that email? I’d like to review it to determine if this is the expected behavior or if there’s an issue that needs to be addressed.
Hi again @brian964! Thanks for your patience and additional information.
For this to work as expected, the downloadable product also needs to be a line item in the order itself. That’s the default behavior described here in the WooCommerce documentation. So, for existing orders (that do not contain the downloadable product yet), follow these steps:
Set the existing order status to On Hold.
Edit the order to add the product as a line item. The associated downloadable files are automatically added to the Downloadable product permissions panel.
Set the order status back to Processing or Completed.
Send the order email again; it will contain a section with links to the downloadable product(s) as shown here in the documentation.
It is, in theory, possible to add a product to the Downloadable product permissions panel even if it’s not a line item in the order.
Do note: as this is not how it’s intended to be used, it’s not guaranteed to work in all scenarios, and might be confusing, as the download links for products added in this way, won’t show in normal emails.
If you’d like to try it regardless, follow these steps:
Add the product via the Downloadable product permissions panel.
Copy the Customer download link from next to the downloadable product you just added.
Add an Order note and set the note as Note to customer.
When you click to Add the order comment, an email, similar to the Order completed email, is sent to the customer, but contains the note you just added at the top.
A download added in this way will also be available to the customer on your site, if they log into their account and navigating to their My Account> Downloads page.
I tested the above and here’s how it looks. First, the order. Note that the Beanie was all that was originally purchased. Single was added after the fact, and sent to the customer by way of a Note to customer:
Here’s what the email sent to the customer looks like:
I hope that points you in the right direction and helps you achieve your goal. Let us know how it turns out.