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.

Comments

drakythe’s picture

Status: Needs review » Reviewed & tested by the community

Just 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!

bojanz’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks.

  • bojanz committed b0c0836 on 7.x-2.x authored by Tyler Pepper
    Issue #2219835 by Tyler Pepper: Commerce File Download Limit Hook -...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.