0
votes

i'm quite new to woo commerce and i don't know what i'm doing. hope you guys could help me.

you see i have a product which has a downloadable one. its kinda like a music shop so the attached file would be an mp3 when you configure it on the product. the idea is that while processing thru payment using paypal or after the payment, the user will generate a download link or generate a link in email to download it. now the problem is that when i tried the payment using sandbox or Test Payment Module for Woocommerce plugin, the file is not generating a link to download or a generated link that would go to the email.

i tried this code but its not working. Create a downloadable product with audio file in woocommerce

any ideas guys? Thank you very much in advance. really appreciate it mates! :)

1

1 Answers

0
votes

WooCommerce already has this functionality installed. In order to create a downloadable MP3, you have to set your product as a virtual product as well as downloadable. This gives a brief explanation on how to set this up here.

Once you have done this a section to add your MP3 file will appear.

woocommerce downloadable file

If the user completes the checkout process and their order has been marked as complete then they should receive an email with a download link to their MP3 file.

enter image description here

The link should have a few little things in it allowing them to download the file, and only allowing their account to:

http://www.example.com/?download_file=67&order=wc_order_582db5bbe844f&email={User Email}&key=bc4f3619931ee586ed03d3ed7148a9e7

This is how I setup my downloadable product using WooCommerce, hope it works the same for you.