Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2010
    Posts
    7
    Plugin Contributions
    0

    Default mass changing expiry days on all products

    Hi guys, I have a client using ZenCart who has several hundred downloadable products, all of which expire 7 days after purchasing. She now wants to change this to 14 days.

    Is there an easy way to do this in Zencart without changing each product one by one? I can't seem to find anything on the forums about it.

    Thanks in advance!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: mass changing expiry days on all products

    I have a client using ZenCart
    If you are up on mysql DB's one could write a sql statement to change in mass
    Or hire one to write one for you
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Oct 2010
    Posts
    7
    Plugin Contributions
    0

    Default Re: mass changing expiry days on all products

    You can hire someone to do anything, yes.

    But I doubt this is the first time this has come up and I'm hoping someone in here knows what to do or has already written the query...

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: mass changing expiry days on all products

    I doubt this is the first time this has come up and I'm hoping someone in here knows what to do or has already written the query...
    Well are you doing this for your client for free??
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: mass changing expiry days on all products

    If you want to change ALL Downloads that are 7 days to 14 days you can run the following SQL statement and this will be used on future orders ...

    Code:
    UPDATE products_attributes_download SET products_attributes_maxdays = 14 WHERE products_attributes_maxdays = 7;
    NOTE: be sure to backup your database before running this SQL statement ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Oct 2010
    Posts
    7
    Plugin Contributions
    0

    Default Re: mass changing expiry days on all products

    Ajeh, you are fantastic, thank you, thank you, thank you!!!

    This will only work on future orders and not existing orders? Is it difficult to change existing orders as well?

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: mass changing expiry days on all products

    This would be very similar using:
    Code:
    UPDATE orders_products_download SET download_maxdays = 14 WHERE download_maxdays = 7;
    Do remember us when you are rich and famous and send along the coffee and donuts ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8
    Join Date
    Oct 2010
    Posts
    7
    Plugin Contributions
    0

    Default Re: mass changing expiry days on all products

    You, sir, are a gentleman and a scholar! Please give me a way to reach you to hire you for Zen Cart work in the future!

 

 

Similar Threads

  1. mass price change for all products in a specific category
    By chaiavi in forum Setting Up Categories, Products, Attributes
    Replies: 21
    Last Post: 5 May 2019, 03:28 PM
  2. v139h Attribute Controller Question about changing expiry days and download count
    By AmandaCreation in forum General Questions
    Replies: 1
    Last Post: 22 Jan 2014, 04:58 PM
  3. Mass Add Quantity box to all products
    By dgent in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 14 Jun 2011, 05:27 PM
  4. mass assigning an attribute to all products
    By keak182 in forum General Questions
    Replies: 1
    Last Post: 25 Apr 2008, 06:22 PM
  5. Mass edit of all products
    By millad in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 13 Mar 2007, 06:25 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