I'm searching for an approach for selling printed books as well as e-books in different file formats with Drupal Commerce:
- Hardcopy (variation type 1)
- PDF file (variation type 2)
- ePUB file (variation type 2)
While variation type 1 works fine as a regular product variation, variation type 2 is working with commerce_license and commerce_file: Product option 1 (hardcopy) will be shipped and will NOT include a file or license, options 2 and 3 will NOT be shipped, but will include a downloadable file and a license.
It would be great if I could use different variation types for the same product, then they can be used as different options for the same product, instead of splitting the different options into two different products (when they are the same product for 95% of the fields – same title, description, images, etc.).
To my knowledge, a single product with multiple variation types isn't possible with Drupal Commerce. This shortcoming is discussed in https://www.drupal.org/comment/reply/3089040, but unfortunately that thread is not easily understandable for me, deals with backward-compatibility and dates back to 2019.
So what's a good approach for selling printed and digital versions of books with Drupal Commerce in 2023 when starting with a clean Drupal 10? No need for backward compatibility, instead, the approach should focus on future-proofness and should be as little hacky as possible.