Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    May 2010
    Posts
    2
    Plugin Contributions
    0

    Idea or Suggestion Mass update product expected dates via SQL query

    Hello~

    I've been wondering how I can mass update the product expected date through SQL query for items that have already been assigned a specific date. For example, items that come available 5/21/2010, I would like to change them all to be available 6/10/2010.

    I've tried using EasyPopulate to do this, but it didn't work for me, so I would prefer to do it this way through SQL. Just not sure how to go about it.

    Thanks!

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

    Default Re: Mass update product expected dates via SQL query

    You will need to develop a mysql update query that modifies the products_date_available field in the products table. Pay attention to the date format in the table.
    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.

  3. #3
    Join Date
    May 2010
    Posts
    2
    Plugin Contributions
    0

    Default Re: Mass update product expected dates via SQL query

    Thanks for your fast response!

    Let me see if I can give it a shot.

    UPDATE products SET products_date_available= 20100610 WHERE products_date_available = 20100521;

    A really big guess on the date formatting, but it might be right! =)

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

    Default Re: Mass update product expected dates via SQL query

    http://dev.mysql.com/doc/refman/5.0/en/update.html will help with the syntax.
    The format for the date should be 0001-01-01 00:00:00


    BACKUP!!!!!!!!!!!!!!
    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.

 

 

Similar Threads

  1. v151 Need an SQL query to select a range of products and update the product status to 0
    By oztraveller06 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 8 Mar 2014, 07:33 AM
  2. Replies: 0
    Last Post: 29 Jan 2013, 12:58 AM
  3. v150 SQL Update Query for featured products? Help
    By Limitless in forum General Questions
    Replies: 1
    Last Post: 25 Aug 2012, 07:36 PM
  4. How to change products expected dates to UK Format?
    By spoole76 in forum Basic Configuration
    Replies: 4
    Last Post: 2 Mar 2012, 04:36 AM
  5. Adding Mass Descriptions via SQL?
    By jsnacker in forum General Questions
    Replies: 3
    Last Post: 29 Jun 2011, 03:43 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