I'm working on a companion module for Commerce File called Commerce File Bulk that allows users to purchase any quantity of file licenses, with the quantity updating the amount of downloads they have based on the download limit variable. I needed a way to update the download limit on the user file download page and the only way that I could think was if there was a hook for calculating the download limit. I made a patch that did just that, but let me know if there's a different way that I could have gone about it.
Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| commerce_file-add_hook_for_download_limit-7.x_2.x.patch | 2.28 KB | Tyler the Creator |
Comments
Comment #1
drakythe commentedJust applied this patch and #2215357: No download credit granted to a file that has already been purchased and installed the commerce_file_bulk module. They work great!
Comment #2
bojanz commentedCommitted, thanks.