Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2010
    Posts
    900
    Plugin Contributions
    0

    Default Display products on a category page that has subcategories?

    Hi!

    I'm hoping this is a very basic question.

    SETUP:
    1. Let's say I have 2 top categories: Cars; Trucks
    2. Inside of "Cars", I have the following products for sale: Porche 911; Ford Pinto (In case my customers live in a cold climate)
    3. But I also have the following subcategories inside of "Cars": Accessories for Porche 911; Accessories for Ford Pinto

    I want my visitor to be able to click on "Cars" and to see the Porche and Pinto I am selling. But I also want them to be able to dig deeper and accessorize.

    THE QUESTION:
    How do I make sure that any category that contains a product displays the product? Even if that category has subcategories?

    The reason I hope the answer is simple: my database has thousands and thousands of products, buried in hundreds of subcategories.

    Thanks,
    Mike

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: How to display products on a category page that has subcategories?

    You can't have both products and subcategories in a category in Zencart without possibly causing weird display problems.

  3. #3
    Join Date
    Apr 2010
    Posts
    900
    Plugin Contributions
    0

    Default Re: How to display products on a category page that has subcategories?

    Oh nooooooo! Say it ain't sooooo!

    Mega bummer. So how could I restructure the example above in a sensible way? Without cluttering up the view?

    I can't see a way to do it... what if I have 20 cars listed, I can't very well bump all the accessory categories up.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Display products on a category page that has subcategories?

    Perhaps one of the cross-sell mods suits your need?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Apr 2010
    Posts
    900
    Plugin Contributions
    0

    Default Re: Display products on a category page that has subcategories?

    After some creative searching the product file I was about to upload, I've discovered that there are only a dozen or so products that won't show up because of this issue. I thought this was much more pervasive. Since it's not, I've decided to drop them all into other categories. Problem gone! :)

    Thanks for the input, gentlemen!

 

 

Similar Threads

  1. v154 Category has SubCategories Products cannot be added
    By bearlymakinit in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 25 Mar 2015, 05:17 PM
  2. Showing Products from subcategories on category page
    By Seanriceaz in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 10 Mar 2010, 02:50 AM
  3. Display all products in subcategories when category selected
    By paperboard in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 28 Oct 2009, 08:34 PM
  4. Category has SubCategories Products cannot be added
    By m4w29c in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 28 Apr 2009, 09:24 PM
  5. Split a category to subcategories when it has products
    By chancer in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 9 Apr 2008, 05:18 AM

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