Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2010
    Posts
    263
    Plugin Contributions
    0

    Default How to Seperate New General Documents from New Products ?

    Is it possible to Separate New Documents from New Products in the New Products listing option ? When I list new products, it's also listing new Document General items, that I don't want listed along with new products, as they clutter up the actual new products list.
    Thanks,
    007

  2. #2
    Join Date
    Sep 2010
    Posts
    263
    Plugin Contributions
    0

    Default Re: How to Seperate New General Documents from New Products ?

    V 1.39h

    I gather it might be a limitation of the ZenCart search function, unless it can be switched off to ignore Document General.
    Thanks,
    007

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

    Default Re: How to Seperate New General Documents from New Products ?

    You could customize the SELECT statements to exclude the products_type that you do not want included on New Products ...

    For example, in the:
    /includes/modules/pages/products_new/header_php.php

    Code:
      $products_new_query_raw = "SELECT p.products_id, p.products_type, pd.products_name, p.products_image, p.products_price,
                                        p.products_tax_class_id, p.products_date_added, m.manufacturers_name, p.products_model,
                                        p.products_quantity, p.products_weight, p.product_is_call,
                                        p.product_is_always_free_shipping, p.products_qty_box_status,
                                        p.master_categories_id
                                 FROM " . TABLE_PRODUCTS . " p
                                 LEFT JOIN " . TABLE_MANUFACTURERS . " m
                                 ON (p.manufacturers_id = m.manufacturers_id), " . TABLE_PRODUCTS_DESCRIPTION . " pd
                                 WHERE p.products_status = 1
    AND p.products_type != 3
                                 AND p.products_id = pd.products_id
                                 AND pd.language_id = :languageID " . $display_limit . $order_by;
    Add the code in RED to exclude the General Document Products from the New Products page ...

    Then, work you way through the code for the New Products Centerbox and Sidebox ...
    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!

  4. #4
    Join Date
    Sep 2010
    Posts
    263
    Plugin Contributions
    0

    Default Re: How to Seperate New General Documents from New Products ?

    Ahh ok thanks. I will give it a try. Can I apply this as an override ? rather than editing the original code ?
    Thanks,
    007

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

    Default Re: How to Seperate New General Documents from New Products ?

    Not on that particular file ... but you could on the New Products module and New Products sidebox ...
    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!

 

 

Similar Threads

  1. v139h How do I remove empty photo box on documents-general items?
    By smurfy1 in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 8 Jun 2013, 04:41 AM
  2. v139g how to remove duplicate products from new products listed in main page
    By amruta2104 in forum General Questions
    Replies: 1
    Last Post: 7 Aug 2012, 03:16 PM
  3. new products on seperate page
    By bigblue in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 9 Sep 2010, 12:14 AM
  4. Display New Products in Admin In a Seperate Page.
    By CoolCarPartsOnline in forum General Questions
    Replies: 0
    Last Post: 9 Jun 2009, 05:53 PM
  5. Replies: 12
    Last Post: 24 Jul 2008, 09:36 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