I am selling digital codes on my wordpress site. The product is virtual/downloadable. However, for each product purchase, I need to provide a different file for download.
For eg. If a customer purchase an Steam Code of $50, they will get a downloadable PDF with a unique code on it (say ABCD). When the second customer purchases a $50 Steam code, they will get a new set of code (say 1234).
Currently, the woocommerce virtual/downloadable product allows me to insert a fixed file url, so every purchase will give the customer the same code. I'm trying to figure out how to go about this as I couldn't find a plugin that will allow me to put a separate downloadable file for every purchase.
I am wondering if it is possible to dynamically change the downloadable file url whenever a customer purchases the code? I can't seem to find where the file url is stored within the wordpress database so I'm not sure if the download url is product specific or if it is order specific.
WooCommerce is an eCommerce platform for selling both physical and digital products on WordPress websites. In fact, as a WordPress plugin, WooCommerce itself can be considered a digital product! The core WooCommerce plugin is free and open source.
Setup and Configuration If you'd like to customize the labels used, go to WooCommerce > Settings > Products > Downloadable Products. You can also change in the WooCommerce Bulk Download section: Download Zip Button Text – Default (if blank): Download All Files (. zip)
to sell digital files in this way, I suggest using plugins such as License Manager Woocommerce It has the ability to automatically deliver the sold file or code to the customer in each purchase and replace the next one.
Two of the best plugins to do this : https://wordpress.org/plugins/license-manager-for-woocommerce/
https://codecanyon.net/item/woocommerce-license-manager/16636748
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With