Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2009
    Posts
    895
    Plugin Contributions
    0

    Default Setting all downloads to not expire

    In my store, I offer digital downloads of scripts for PaintShop Pro. To me, there is no need to limit the duration of the downloads. I have no reason for the links to expire.

    For now, I set the Expiry Days to 0 (which should be unlimited), but it does not always behave that way, as occasionally, some people will email me because their download link expired. Is that the incorrect way to go?

    Also, is there a way to set that 'unlimited' number of days for ALL past products? If so, how?
    Last edited by CaroleAs; 4 Sep 2025 at 02:52 PM.

  2. #2
    Join Date
    Feb 2009
    Posts
    895
    Plugin Contributions
    0

    Default Re: Setting all downloads to not expire

    I know this is an older post, but I wonder why my links still expire.
    I always set the expiring to 0 (unlimited), however, customers still email me because their links have expired. Is there something else I should do?

  3. #3
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: Setting all downloads to not expire

    It is because the download max days are stored on an order-by-order basis.
    So only new orders will get the new setting. Existing orders have the settings that were set at the time of their order.
    You would have to go into the orders_products_download table and set the download_maxdays column to 0 for every order.
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  4. #4
    Join Date
    Feb 2009
    Posts
    895
    Plugin Contributions
    0

    Default Re: Setting all downloads to not expire

    Quote Originally Posted by barco57 View Post
    It is because the download max days are stored on an order-by-order basis.
    So only new orders will get the new setting. Existing orders have the settings that were set at the time of their order.
    You would have to go into the orders_products_download table and set the download_maxdays column to 0 for every order.
    Why would it be "per order" if I need to enter the number of days until expiration when I set up individual products?

    But what you describe does not really happen. For example, I had a big sale in April. All the products are already set for 0 days to expiration, yet, some customers emailed me since, while they didn't have time to download their large purchase immediately, saying that now, some products are expired (not all).

    I have been setting the download expiration when I upload my products in the store for a couple of years now. And I had someone change all the previous products to not expire, but they still do.

  5. #5
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,684
    Plugin Contributions
    11

    Default Re: Setting all downloads to not expire

    In your Admin > Configuration > Attribute Settings, are Download Expiration and Number of Downloads Allowed both set to zero?

    Also, make sure your three settings for Downloads Controller are set properly to match your payment module. If you have created a different status, it may not match what's in the admin config.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  6. #6
    Join Date
    Feb 2009
    Posts
    895
    Plugin Contributions
    0

    Default Re: Setting all downloads to not expire

    Quote Originally Posted by dbltoe View Post
    In your Admin > Configuration > Attribute Settings, are Download Expiration and Number of Downloads Allowed both set to zero?
    I have the Download Expiration set to 0 but why would I set the Number of downloads Allowed to 0?

    Quote Originally Posted by dbltoe View Post
    Also, make sure your three settings for Downloads Controller are set properly to match your payment module. If you have created a different status, it may not match what's in the admin config.
    I am using the default values for all those.

  7. #7
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,684
    Plugin Contributions
    11

    Default Re: Setting all downloads to not expire

    You are correct. Should have just been Download Expiration.

    You didn't let us know all the deets the posting tips ask for. Mind telling us version, PHP, mods, etc?
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  8. #8
    Join Date
    Feb 2009
    Posts
    895
    Plugin Contributions
    0

    Default Re: Setting all downloads to not expire

    Quote Originally Posted by dbltoe View Post
    You are correct. Should have just been Download Expiration.

    You didn't let us know all the deets the posting tips ask for. Mind telling us version, PHP, mods, etc?
    Sorry for missing those details.
    I am using v1.5.7c
    PHP Version: 7.4.33 (that is what shows in the zencart backend (even though on my host panel it is set to PHP 8.3)
    As for mods, i have a few but mostly for language, one-page checkout, and Stripe.

    Would this help?

  9. #9
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,873
    Plugin Contributions
    96

    Default Re: Setting all downloads to not expire

    Quote Originally Posted by barco57 View Post
    It is because the download max days are stored on an order-by-order basis.
    So only new orders will get the new setting. Existing orders have the settings that were set at the time of their order.
    You would have to go into the orders_products_download table and set the download_maxdays column to 0 for every order.
    Right, it has nothing to do with the number of downloads allowed.

    To set downloads as "unrestricted" for all ordered products (once you've set Attribute Settings :: Download Expiration (Number of Days) to 0 (no limit)), you can copy/paste this into your admin's Tools :: Install SQL Patches (after you've created a backup of the database):
    Code:
    UPDATE orders_products_download SET download_maxdays = 0;

 

 

Similar Threads

  1. Setting products to expire at certain date
    By jlavetan in forum Basic Configuration
    Replies: 39
    Last Post: 29 Jul 2010, 11:30 PM
  2. Setting downloads to 7 day expiration with unlimited downloads
    By Chestnut Junction in forum Setting Up Categories, Products, Attributes
    Replies: 38
    Last Post: 26 Oct 2009, 05:31 AM
  3. not all my downloads are available after purchase
    By buzzby247 in forum General Questions
    Replies: 14
    Last Post: 23 Dec 2008, 04:59 PM
  4. Setting up downloads - why are they all expired ?
    By mediaman in forum Setting Up Categories, Products, Attributes
    Replies: 13
    Last Post: 15 May 2007, 05:33 PM
  5. not all downloads showing
    By Laney in forum Managing Customers and Orders
    Replies: 3
    Last Post: 12 Dec 2006, 10:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg