Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2007
    Posts
    28
    Plugin Contributions
    0

    Default New Products Sidebox Show Products from one category?

    Hi!

    I want in my new products sidebox category on main page to show only products from one main category like when is selected this category.

    For Example: I have two main categories "t-shirts" and "jenas". On main page in new products sidebox show new products from both categories, buth i want products only from "t-shirts" to be showed.

    I look at code of new_products.php and I thing that must change this sql 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_status = 1 " . $display_limit"

    ...but I dont know how.

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

    Default Re: New Products Sidebox Show Products from one category?

    If you do not use linked products, then the easiest method would be to use the master_categories_id in the select statement to limit the categories_id being shown when on the main page ...
    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!]
    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. how to disable "new products" and "all products" from category sidebox?
    By phingoc in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 31 Mar 2014, 12:40 AM
  2. Replies: 4
    Last Post: 18 Mar 2009, 02:43 AM
  3. Replies: 4
    Last Post: 24 Oct 2008, 10:17 AM
  4. Products from disabled categories show up in New Products on home page.
    By peppyone in forum Setting Up Categories, Products, Attributes
    Replies: 11
    Last Post: 23 Jun 2008, 07:20 PM
  5. How do I get new products to show in new products sidebox?
    By brimsjewelry in forum Basic Configuration
    Replies: 3
    Last Post: 20 Sep 2007, 09:18 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