Adding a downloadable file to a product
WooCommerce is just as good to sell virtual products as it is to sell physical products. The beauty of the way it's set up is that any product type can be a virtual product. It could be a simple product, a variable product, a subscription product (which we'll cover in Chapter 4, Running a Membership Site), and so on. WooCommerce handles all of the download permissions. Fulfilling virtual products is completely automated. As soon as you receive payment, the customer receives an email with a special link to download to the file.
The simple product I set up in previous recipes is a poster. I could change this product so that it includes a digital download in addition to the physical product or I could even change it so that the customer only receives a digital download and there is no physical product shipped.
Getting ready
Make sure you already have a simple product in your store.
How to do it…
In the first section, I'm going to add a downloadable file to...