Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21
  1. #11
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Set future Product Availability Date For All Products?

    Quote Originally Posted by Webskipper View Post
    Is there an update to this? Doesn’t work since the PHP update this Summer. Thanks again; in advance.

    admin->tools->Install SQL Patch

    Code:

    UPDATE products SET products_date_available = 'yyyy-mm-dd 00:00:00';
    When posting about an issue, please provide as much information as possible, even if posting because aggravated or "tried everything". Not doing so only slows down getting a solution.

    What doesn't work?

    Does the available date not display to the customer?
    Is the date not in the database?
    Does the product not become active at the date/time in question?
    Does executing the query cause an error?
    From what php to what php version?

    Take a moment and think of other things about the information provided and what types of questions may be asked. Giving more information than thought necessary isn't a bad thing as long as it isn't say privacy like information. We don't need to know the specific house number of someone's address, but understanding the country involved may be of help, etc...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #12
    Join Date
    Nov 2007
    Location
    USA
    Posts
    874
    Plugin Contributions
    5

    Default Re: Set future Product Availability Date For All Products?

    v157C

    PHP Version: 7.4.27 (Zend: 3.4.0)


    Date is in 2022: UPDATE products SET products_date_available = ‘2022-01-01 01:01:01';


    Results: WARNING: An Error occurred ….


    This patch did work last year. I have the shop closed for Winter. Shop stays is Showcase no price. Fails in normal Store mode, too.
    Cheers!
    v2.0+

  3. #13
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,671
    Plugin Contributions
    123

    Default Re: Set future Product Availability Date For All Products?

    Bear in mind that things can fail silently in Install SQL Patches. You might need to use phpMyAdmin and run the command there to report back on the error. Just be sure to specify the prefix (if one is used) when you provide a table name (e.g. UPDATE zc_products ... if the prefix is 'zc_').
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  4. #14
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Set future Product Availability Date For All Products?

    Quote Originally Posted by Webskipper View Post
    v157C

    PHP Version: 7.4.27 (Zend: 3.4.0)


    Date is in 2022: UPDATE products SET products_date_available = ‘2022-01-01 01:01:01';


    Results: WARNING: An Error occurred ….


    This patch did work last year. I have the shop closed for Winter. Shop stays is Showcase no price. Fails in normal Store mode, too.
    What does the resulting myDebug-adm- log have to say about the operation? (Obscure the admin directory if posting the log. Also just before pasting it, look in the messagebox toolbar for the # symbol so that post between CODE tags.

    If haven't yet, can install display logs in the modules->plugin manager section...

    This appears will likely be a mysql related issue rather than a ZC issue.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #15
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,682
    Plugin Contributions
    9

    Default Re: Set future Product Availability Date For All Products?

    Quote Originally Posted by Webskipper View Post
    v157C

    PHP Version: 7.4.27 (Zend: 3.4.0)


    Date is in 2022: UPDATE products SET products_date_available = ‘2022-01-01 01:01:01';


    Results: WARNING: An Error occurred ….


    This patch did work last year. I have the shop closed for Winter. Shop stays is Showcase no price. Fails in normal Store mode, too.
    you quotes look off...
    Code:
    //from
    UPDATE products SET products_date_available = ‘2022-01-01 01:01:01';
    //to
    UPDATE products SET products_date_available = ‘2022-01-01 01:01:01‘;
    //or
    UPDATE products SET products_date_available = '2022-01-01 01:01:01';
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  6. #16
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,671
    Plugin Contributions
    123

    Default Re: Set future Product Availability Date For All Products?

    Nice! Eagle-eyed @carlwhat to the rescue!
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #17
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,682
    Plugin Contributions
    9

    Default Re: Set future Product Availability Date For All Products?

    Quote Originally Posted by swguy View Post
    Nice! Eagle-eyed @carlwhat to the rescue!
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  8. #18
    Join Date
    Nov 2007
    Location
    USA
    Posts
    874
    Plugin Contributions
    5

    Default Re: Set future Product Availability Date For All Products?

    Thanks Carl for the Catch!

    Admin debug sez:
    #1 trigger_error() called at [/includes/classes/db/mysql/query_factory.php:170]
    #2 queryFactory->show_error() called at [/includes/classes/db/mysql/query_factory.php:142]
    #3 queryFactory->set_error() called at [/includes/classes/db/mysql/query_factory.php:269]
    #4 queryFactory->Execute() called at [/sniFf-mbN-Truck/sqlpatch.php:294]
    #5 executeSql() called at [/sniFf-mbN-Truck/sqlpatch.php:735]
    #6 require(/sniFf-mbN-Truck/sqlpatch.php) called at [/sniFf-mbN-Truck/index.php:11]
    --> PHP Fatal error: 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '01:01:01‘' at line 1 :: UPDATE products SET products_date_available = ‘2022-01-01 01:01:01‘; ==> (as called by) /sniFf-mbN-Truck/sqlpatch.php on line 294 <== in /includes/classes/db/mysql/query_factory.php on line 170.

    v157C
    PHP Version: 7.4.27 (Zend: 3.4.0)
    Store mode is Showcase only
    Cheers!
    v2.0+

  9. #19
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,682
    Plugin Contributions
    9

    Default Re: Set future Product Availability Date For All Products?

    this works for me.

    Code:
    UPDATE products SET products_date_available = '2022-01-01'
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  10. #20
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,671
    Plugin Contributions
    123

    Default Re: Set future Product Availability Date For All Products?

    I think he may have the same issue as before.

    Be sure you use the forward quote ' not the back quote `.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. who set my all my products date available at 1970-01-01?
    By andy2012 in forum General Questions
    Replies: 1
    Last Post: 18 Aug 2012, 10:41 AM
  2. Help cant get product to be unavailable until a future date
    By bluebikerboy1 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 30 Dec 2011, 06:54 AM
  3. Expected date products - change date for all.
    By navido in forum General Questions
    Replies: 2
    Last Post: 8 Nov 2010, 06:06 PM
  4. Date Format for Product Availability
    By jorsara in forum General Questions
    Replies: 10
    Last Post: 21 Mar 2010, 09:48 PM
  5. Can Future Product Availability Not Be ordered?
    By thevintagesound in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 12 Feb 2008, 10:45 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR