Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2008
    Location
    USA, North East
    Posts
    212
    Plugin Contributions
    0

    Default This product was added to our catalog date

    Hello to all. Question, I erased a product that was on my site for years. I made a mistake. I now need to put that item back but the bottom says "This product was added to our catalog on [today's date]" Since this particular item is an older version of the design (We create new versions every couple years and upload that as a separate new SKU, separate UPC...totally new product for each variation), i want the erased item to read the date it was added years ago. How can i change that back?

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

    Default Re: This product was added to our catalog date

    Simplest method is to add the item and change the product_date_added in the database's products table using phpMyAdmin.

    Or run the following from YOUR_ADMIN >> Tools >> Install SQL Patches after changing the ### to the new product's ID
    Code:
    UPDATE products SET products_date_added = NOW() WHERE products_id = '###';
    NOTE: if you're your database has a prefix to the products table name, you will need to match that in the code. i.e., if you have a prefix of Zen_, the code would be
    Code:
    UPDATE zen_products SET products_date_added = NOW() WHERE products_id = '###';

  3. #3
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: This product was added to our catalog date

    Note though about the table prefix, for ZC 1.5.7 (and many of the more recent versions), the DB_PREFIX is not required to be added when using the Install SQL Patches tool as the tool is expected (generally speaking) to address the prefix.
    Put another way, the second query above is applicable to phpMyAdmin not to ZCs Install SQL Patches Tool.

    Pssstttt.. dbltoe, thought they wanted to change the date to some old date rather than NOW()...

    Normally, the date is stored in a YYYY-MM-DD hh:mm:ss format
    so if wanted it to be entered on December 18, 2018 then:
    Code:
    UPDATE products SET products_date_added = '2018-12-18 00:00:00' WHERE products_id = '###';
    again replacing the ### with the products_id should update to indicate that the product was added at midnight on that day.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

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

    Default Re: This product was added to our catalog date



    I was playing with now() meaning to change it to the date later.


    Forgot about the prefix non-use in the admin.

    Gotta get more sleep

  5. #5
    Join Date
    Dec 2008
    Location
    USA, North East
    Posts
    212
    Plugin Contributions
    0

    Default Re: This product was added to our catalog date

    other than looking at the top of the URL to find products_id...where do i find the products_id?

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

    Default Re: This product was added to our catalog date

    Go to Admin > Catalog > Categories Products, search for the product and the ID is on the left hand side.
    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. #7
    Join Date
    Dec 2008
    Location
    USA, North East
    Posts
    212
    Plugin Contributions
    0

    Default Re: This product was added to our catalog date

    Follow up... worked well. thank you to all.

 

 

Similar Threads

  1. Alter date This product was added to our catalog on
    By btman in forum General Questions
    Replies: 1
    Last Post: 16 Jun 2011, 07:03 AM
  2. This product was added to our catalog on????
    By evergreenpipes in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 13 Jan 2011, 03:08 AM
  3. "This Product was added to our Catalog" -- change date format?
    By chris32882 in forum General Questions
    Replies: 7
    Last Post: 25 Oct 2008, 12:27 PM
  4. This product was added to our catalog on %s
    By notset4life in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 3 Sep 2006, 07:16 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