Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27
  1. #21
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Keeping GiftCerts out of New Products.

    You could block products_type 3 which is the Document General products_type code in the products table ...
    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!

  2. #22
    Join Date
    May 2005
    Posts
    96
    Plugin Contributions
    0

    Default Re: Keeping GiftCerts out of New Products.

    Well, there you have it!
    Linda's suggestion may be the best route as long as you don't have sub-categories in there that you don't want to be excluded...

    Thanks for your input Linda!

  3. #23
    Join Date
    Jan 2007
    Posts
    22
    Plugin Contributions
    0

    Default Re: Keeping GiftCerts out of New Products.

    Linda,


    That sounds like an ideal solution as I will also have documents like FAQ, hints and tips etc that also need keeping out of the New Products listings.

    Do you have a snippet of code as a starter?

    Thanks,

    Jonathan

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

    Default Re: Keeping GiftCerts out of New Products.

    Copy the module:
    /includes/new_products.php

    To your templates and overrides directory:
    /includes/your_template_dir/new_products.php

    and add on to the two SELECT statements additions to the WHERE clause for:
    p.products_type != 3
    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. #25
    Join Date
    Jan 2007
    Posts
    22
    Plugin Contributions
    0

    Default Re: Keeping GiftCerts out of New Products.

    Ok,

    I edited the new_products.php file as suggested and placed it in includes/modules/AtomicWorkshop_template/new_products.php the edited section is shown below:-

    if ( (!isset($new_products_category_id)) || ($new_products_category_id == '0') ) {
    $new_products_query = "select p.products_id, p.products_image, p.products_tax_class_id, p.products_price, p.products_date_added
    from " . TABLE_PRODUCTS . " p
    where p.products_type != 3
    and p.products_status = 1 " . $display_limit;
    } else {
    $new_products_query = "select distinct p.products_id, p.products_image, p.products_tax_class_id, p.products_date_added,
    p.products_price
    from " . TABLE_PRODUCTS . " p
    left join " . TABLE_SPECIALS . " s
    on p.products_id = s.products_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " .
    TABLE_CATEGORIES . " c
    where p.products_id = p2c.products_id
    and p2c.categories_id = c.categories_id
    and p.products_type != 3
    and c.parent_id = '" . (int)$new_products_category_id . "'
    and p.products_status = 1 " . $display_limit;
    }


    But, the two document-general product types (test and peter smarts blah blah blah) still show up when the 'new products...' link is clicked from the categories (products) sidebox.
    I also edited the whats_new.php sidebox file and placed it in includes/modules/sideboxes/AtomicWorkshop_template/whats_new.php override and that works fine - when I enable the what's new sidebox, those two document-general products never appear in the sidebox.

    Here's a link to the live site:-

    www.atomicworkshop.co.uk

    Any idea why the 'new products...' link from the Products sidebox still isn't working?


    Many Thanks in advance,


    Jonathan

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

    Default Re: Keeping GiftCerts out of New Products.

    The info that I gave you was for the New Products Centerbox ...

    For the New Products Listing you would need to edit the SELECT statement in:
    /includes/modules/pages/products_new/header_php.php

    There are no overrides for this so be sure to backup a copy of the original file as well as your new file for future upgrades ...
    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. #27
    Join Date
    Jan 2007
    Posts
    22
    Plugin Contributions
    0

    Default Re: Keeping GiftCerts out of New Products.

    Perfect!

    Thank you indeed!

    Jonathan

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. Out Of Stock - in New Products
    By Renz in forum General Questions
    Replies: 0
    Last Post: 18 Apr 2012, 03:22 AM
  2. Keeping on SOLD OUT and Image Pictures
    By Rabbcon in forum Customization from the Admin
    Replies: 19
    Last Post: 20 Mar 2009, 05:27 AM
  3. Sold out products listing in New products
    By sparkiii in forum Basic Configuration
    Replies: 3
    Last Post: 27 Sep 2007, 10:58 PM
  4. Keeping "New products" and "monthly special" only on homepage ?
    By Corinne in forum Basic Configuration
    Replies: 2
    Last Post: 10 Jun 2007, 10:14 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