Putting additional functionality for Commerce Files/License I am making a files selling website with Drupal 7.41. Using the Commerce Files / Commerce License Modules, I have been able to setup the after payment completes, allow file download functionality.

However the files that becomes available to download is just the raw file.
I want the file, which becomes available for download to be a zip/tar file which consists the


File sold
A simple readme.txt
A pdf file consisting license information, made for that particular user transaction. Like Envato!


Is this automation possible?
Can anybody please guide me on how I may be able to achieve this? Even pointing out the path would be helpful!
Here's what you need to get started.

You'll need to create a new license type and extend the CommerceLicenseBase class (or the file class). When your license class (whose parent class is CommerceLicenseBase) gets activated, the -&gt;activate() method ends up calling -&gt;save(). Your new class will implement -&gt;save() and within that function you can:


Generate a PDF.
Generate or load a README.txt.
Create a Zip file.
Store that file and attach it to some entity, email it, etc.