Hi there!
Thank you for contacting us! 🙂
I understand you’d like to know what’s the best way to offer external URLs as downloadable files in WooCommerce, now that the Redirect Only method is being deprecated.
As per the message on WooCommerce – If you use a remote server for downloadable files (such as Google Drive, Dropbox, Amazon S3), you may optionally wish to "allow using redirects as a last resort". Enabling that and/or selecting any of the other options will make this notice go away.
If the “allow using redirects as a last resort” option isn’t working for you, you can try modifying order download template by cloning it from woocommerce/templates/order/order-downloads.php to yourtheme/woocommerce/order/order-downloads.php and change the download button URL to link to the Google document directly which is specified in the Product.
The file URL is stored under the variable $download['file']['file']:

I hope this points you in the right direction!
Thanks for the reply!
I’m still confused though. 🙂
If I change the URL in order-downloads.php to link to the document, won’t that affect EVERY download? I have multiple products that need to link to different files.
For reference, I need to be able to link to files and have them open like this:
https://docs.google.com/document/d/1bIjos90u_q0_Aq9C-YIGaumwzT_WaUfTTmbGGYOSXNQ/template/preview
I also have Canva files that need to open directly in Canva like this:
https://www.canva.com/design/DAD8nugjSVc/HO-rj7c_bDiUctbgV48uXw/view?utm_content=DAD8nugjSVc&utm_campaign=designshare&utm_medium=link&utm_source=publishsharelink&mode=preview
These files cannot be hosted outside of Google Docs/Canva for them to function as needed. That’s why I need a redirect link instead of a download link.
I’m really confused on what to do to make my shop work properly.
I chose Woocommerce because of the download redirect option, because it was not obvious before shop set up that this feature was being deprecated. 🙁
Please let me know if there’s a good workaround so that I can sell my templates properly. Or if Woocommerce can’t easily handle this anymore, so I can explore other shop options.
Thanks!
Hi there!
Thanks for getting back.
The solution I shared above will work perfectly for your use case.
You can have multiple products with different download links.
The customization I shared above will simply link the respective file associated with the purchased product to the download button.
As soon as someone presses the button, they’ll be redirected to the Google Doc or Canva file.
You don’t need to hard code the URL in order-downloads.php but simply change that to $download['file']['file'], as I mentioned in the screenshot above.
To clarify, by default, it is $download['download_url'] which you need to change to $download['file']['file'].
I hope this helps! 🙂
Ah, gotcha! Thank you so much!
Hi @eef-ink,
I’m glad we were able to help!
If you have a few minutes, we’d love it if you could leave us a review:
https://wordpress.org/support/plugin/woocommerce/reviews/