Results 1 to 9 of 9
  1. #1
    Join Date
    Aug 2005
    Posts
    32
    Plugin Contributions
    0

    Default New Listing with only 1 CATEGORY

    I have multi categories and I only want 1 category to be displayed in the main page / new listing.

    For example:

    I have categories: Cars Wheels Tires Accessories plus more....

    Now I only want "CARS" to be cycled through the "NEW LISTING"

    I do not want to see the other products cycle through the New Listing area on the main page just the CARS ....

    So i need to find a way to have the NEW LISTING on the main page and only show the CARS category and exclude the rest of the categories.

    Any help would be great.
    Thanx
    GR8TEC

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: New Listing with only 1 CATEGORY

    New parses based upon date(ie "new") and does not look at category....

    Try turning it off in the admin and then select either featured or specials and then you can add what you want. See if this is mor to your liking
    Zen-Venom Get Bitten

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

    Default Re: New Listing with only 1 CATEGORY

    Do you use Linked Categories or just 1 category per product?

    If it is just the 1 category and you do not have any in linked categories you could customize the code to limit it to the master_categories_id being the 1 categories_id that you want to pull new products from for the centerbox ...
    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!

  4. #4
    Join Date
    Aug 2005
    Posts
    32
    Plugin Contributions
    0

    Default Re: New Listing with only 1 CATEGORY

    And how would I do that?

    Basiclly, I have these categories with it's sub categories

    Accessories
    - Wheels
    - 15 inch
    - 16 inch
    - 17 inch
    - 18 inch
    - Tires
    - 15 inch
    - 16 inch
    - 17 inch
    - 18 inch

    - Seats
    - Baby
    - Stock
    - Racing

    Vehicles
    - BMW
    - Audi
    - Nissan
    - Infiniti
    - Lexus

    Because all types of products are added daily, NEW PRODUCTS pick up everything. (which is a realistic process)....

    BUT, I only want the Vechicles categorey and its sub directories to be cycled through on the main page.

    If you can help that would be great.



    I know if I add the Vehicles to the FEATURED PRODUCTS it will work, but I can not afford to keep adding and subtracting from the Featured module, to many cars and not enough time.

    Thank you in advance.
    Gr8tec

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

    Default Re: New Listing with only 1 CATEGORY

    This would take quite a bit of coding as it is not just 1 Category but a Category and all of its little friends ... er ... subcategories ...

    Now, do those subcategories also have categories?
    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!

  6. #6
    Join Date
    Aug 2005
    Posts
    32
    Plugin Contributions
    0

    Default Re: New Listing with only 1 CATEGORY

    Yes the Vehicles sub cat:

    Vehicles
    - BMW
    -Cars
    -SUV
    -Convertibles

    - Audi
    -Cars
    -SUV
    -Convertibles

    - Nissan
    -Cars
    -SUV
    -Convertibles

    So Vehicles is the TOP category. BMW, Audi, Nissian is the sub. and the vehicle type is the sub sub categorey.

    I wan to scroll through the VEHICLES ONLY in the main page.


    Currently i am using the Featured Products, but that is a pain in the ########..

    here is the URL...

    www.malibumotors.ca

    any other tips and tricks would be greatly helpfull.

    Again, thank you in advance.

    Cheers
    Gr8tec
    Last edited by GR8TEC; 8 Mar 2007 at 09:17 PM. Reason: wrong url spelling

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

    Default Re: New Listing with only 1 CATEGORY

    Take two ... what is your URL?
    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!

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

    Default Re: New Listing with only 1 CATEGORY

    You might be able to do this backwards ...

    In the module:
    /includes/modules/new_products.php

    Copy that to your templates and overrides directory:
    /includes/modules/your_templates_dir/new_products.php

    And change the select so that the parent_id on the categories table is not 32 ... as 32 is your Accessories ...

    This may give you the effect that you are looking for ...
    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!

  9. #9
    Join Date
    Aug 2005
    Posts
    32
    Plugin Contributions
    0

    Default Re: New Listing with only 1 CATEGORY

    Thank you..

    I found the new_products.php file and placed it in my /includes/modules/your_templates_dir/ as suggested.

    Now when I open that file, I found the parent_id line, but I do not know how to edit it to reflect your suggestions. If I just add 32, where do I put it exactly?


    Here is a copy of that section in my new_products.php

    TABLE_CATEGORIES . " c
    where p.products_id = p2c.products_id
    and p2c.categories_id = c.categories_id
    and c.parent_id = '" . (int)$new_products_category_id . "'
    and p.products_status = 1 " . $display_limit;



    Cheers and thanx in advance.
    Gr8Tec

 

 

Similar Threads

  1. Replies: 3
    Last Post: 12 Dec 2015, 11:00 PM
  2. Replies: 2
    Last Post: 30 Jul 2014, 11:58 AM
  3. ADD TO CART on Category Listing in One Category only
    By ald0413 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 31 Jan 2011, 07:05 PM
  4. Show Product listing with only one in the category
    By xuhuamao in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 31 Mar 2007, 12:49 AM
  5. making New Products Listing look like Category/Manufacturer Listing ??
    By simplifiedmedia in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 May 2006, 10:43 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