• Resolved Mr Lucky

    (@voodoochill)


    When you choose regenerate download permissions, as expected it resets to 0 downloads, so the customer can try further downloads (up to the max permitted for the product)

    However the expiry is not changed, so very often they still cannot download as it has passed the number of days.

    When you regenerate download permissions, it should regenerate the expiry from the date you click on regenerate, not leave it as it was.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Grigorij S. a11n

    (@grigaswp)

    Hi there,

    This is intended behaviour – more often than not, the expiry date doesn’t have to be extended when downloadable product permissions are regenerated.

    Download expiry is set within a product and it can be amended within the order.

    You can see this area here:

    https://docs.woocommerce.com/document/digital-downloadable-product-handling/#section-7

    I found this code which can be used to modify that behavior:

    https://gist.github.com/bdaley/d6cdb1d52ca8011003c79e072ef02391

    I hope this helps!

    Thread Starter Mr Lucky

    (@voodoochill)

    Sorry, I can’t think of any reason you’d reset the downloads without resetting the expiry date. Reset means reset, not half reset!

    Thanks for the code though, but the fact it is out there means it makes sense to reset everything, so why not have it in the core so we don’t have to use a hack for what should be expected behaviour?

    “more often than not, the expiry date doesn’t have to be extended when downloadable product permissions are regenerated”

    Really, @grigaswp? Do you have some stats on that? Because the only reason I’ve ever had to reset the downloads is because someone has missed the time limit for downloading. And when their order contains 20 products it is a massive pain in the behind to edit every single one of them.

    I suggest that the expected behavior for users is that the expiration time be reset.

    • This reply was modified 6 years, 5 months ago by Bodhipaksa.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Regenerate download permissions not regenerating expiry’ is closed to new replies.