Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2007
    Location
    St. Louis
    Posts
    110
    Plugin Contributions
    0

    Default Prevent Doc-Gen from 'New Products'

    I am attempting to create a simple gallery of items that are NOT for sale by specifying them as 'documents - general', but they show up in 'New Products' and 'New Products for December', etc and I'd like to prevent this.

    I posted this before and I got this response...
    Code:
    Make them OLD and not NEW ... 
    
    Change the field in the database for the products_date_added to an older date than your definition of New Products that you have Naturally set in the Maximum Values ...
    
    Quote:
    New Product Listing - Limited to ...
    Limit the New Product Listing to
    0= All Products
    1= Current Month
    7= 7 Days
    14= 14 Days
    30= 30 Days
    60= 60 Days
    90= 90 Days
    120= 120 Days
    I can figure out the Maximum Values part but am a little unclear on 'Change the field in the database for the products_date_added to an older date'

    Could someone clarify how to go about this or have any ideas that may help? I appreciate all input.

    Thanks :)

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

    Default Re: Prevent Doc-Gen from 'New Products'

    If you browse your database products table in phpMyAdmin you will find there is a field called products_date_added ...

    This is the physical date that you added the Product to the database ...

    If all Products that are products_type 3 had a products_date_added of:
    2003-02-21 06:08:17

    Then those Products are outside the range of the New Product definition that you set and will not show in the New Product sidebox, centerbox nor New Product Listing ...
    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: v1.5.5]
    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!

  3. #3
    Join Date
    Aug 2007
    Location
    St. Louis
    Posts
    110
    Plugin Contributions
    0

    Default Re: Prevent Doc-Gen from 'New Products'

    Quote Originally Posted by Ajeh View Post
    If you browse your database products table in phpMyAdmin you will find there is a field called products_date_added ...

    This is the physical date that you added the Product to the database ...

    If all Products that are products_type 3 had a products_date_added of:
    2003-02-21 06:08:17

    Then those Products are outside the range of the New Product definition that you set and will not show in the New Product sidebox, centerbox nor New Product Listing ...
    Okay... I'm there. Do I have to manually edit the date for each 'type 3' product or is there a way to automatically do this via PHP?

    Thank you

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

    Default Re: Prevent Doc-Gen from 'New Products'

    Backup database first ...

    Next, backup the database ...

    Followed by repeat step 1 and 2 ...

    Next, you can run this either in phpMyAdmin or in your Zen Cart Admin in the Tools ... Install SQL Patches ...
    PHP Code:
    UPDATE products SET products_date_added '2003-02-21 06:08:17' WHERE products_type 3
    Voila!
    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: v1.5.5]
    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!

  5. #5
    Join Date
    Aug 2007
    Location
    St. Louis
    Posts
    110
    Plugin Contributions
    0

    Default Re: Prevent Doc-Gen from 'New Products'

    Thanks for responding back Ajeh. I am correct in assuming that I'm going to have to update the DB everytime something is added as a 'document-general'?

    Thanks :)

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

    Default Re: Prevent Doc-Gen from 'New Products'

    Only if you don't want then to show under New Products ...

    Or, you could customize the code to skip products_type 3 on the SELECT statements ...
    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: v1.5.5]
    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!

  7. #7
    Join Date
    Aug 2007
    Location
    St. Louis
    Posts
    110
    Plugin Contributions
    0

    Default Re: Prevent Doc-Gen from 'New Products'

    Quote Originally Posted by Ajeh View Post
    Or, you could customize the code to skip products_type 3 on the SELECT statements ...
    Man... you are a TEASE!

 

 

Similar Threads

  1. v151 Prevent new products from appearing as new? Possible?
    By doooomed in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 15 Mar 2013, 03:59 PM
  2. How to prevent products from displaying randomly?
    By tseven in forum General Questions
    Replies: 0
    Last Post: 4 May 2009, 07:55 AM
  3. Prevent products from displaying randomly.
    By tseven in forum Basic Configuration
    Replies: 0
    Last Post: 30 Apr 2009, 04:09 AM
  4. Replies: 4
    Last Post: 18 Mar 2009, 02:43 AM
  5. How to prevent New Products from displaying on category page
    By JHouse in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 2 Apr 2008, 01:07 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