Print Page | Close Window

Displaying all products even in Sub Categories

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Getting Started
Forum Description: Installing, activating, and getting started with ProductCart
URL: https://forum.productcart.com/forum_posts.asp?TID=2410
Printed Date: 26-November-2024 at 8:27pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Displaying all products even in Sub Categories
Posted By: palagrim
Subject: Displaying all products even in Sub Categories
Date Posted: 29-January-2009 at 11:02am
Hi,

I'm in the process of setting up Product Cart, and one part of my brief is to be able to display all products in a root category - even if they're in a sub category.

For example:

Root |
      -> Category A
                   |
                    -> Product A
                    -> Product B
                    -> Product C
      -> Category B
                   |
                    -> Product D
                    -> Product E

Displaying the Root category would show products A - E, while showing either Category A or B would only show the products that are in that category...

I can't seem to find any way of doing this in the settings - do I need to hack this about myself?

Many thanks,
Craig



Replies:
Posted By: Greg Dinger
Date Posted: 29-January-2009 at 11:25am
Could you give us the context of this please?  Are you talking about the category navigation generator?

-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: palagrim
Date Posted: 29-January-2009 at 11:30am
Hi Greg,

I'm referring to the pc/viewCategories.asp?idCategory=xxx page. I need it to display all products from all sub categories that are under idCategory xxx...

So, using my example above, ViewCategories.asp?idCategory=(rootID) would display all products (A-E), ViewCategories.asp?idCategory=(CatB-ID) would show D-E...

The navigation thing is fine as it is... It's the main page content I'm looking at...

Does that make things a bit clearer?


Posted By: Greg Dinger
Date Posted: 29-January-2009 at 11:42am

Well, using this demo store which has nested categories, if you look at the following two links, is that what you have in mind?

http://pc3x.demos.greybearddesign.com/pc312standardqo/pc/viewCategories.asp?idCategory=2 - http://pc3x.demos.greybearddesign.com/pc312standardqo/pc/viewCategories.asp?idCategory=2
http://pc3x.demos.greybearddesign.com/pc312standardqo/pc/viewCategories.asp?idCategory=4 - http://pc3x.demos.greybearddesign.com/pc312standardqo/pc/viewCategories.asp?idCategory=4
 
Assuming one didn't have subcategories, as shown on the first link, would this address your requirement?


-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: palagrim
Date Posted: 29-January-2009 at 12:02pm
What I'd like is when you're viewing Category 1 you see all products under that category all the way from Product 1 to "SKU 9 - Very Deep Nesting"

Essentially tunnelling all the way through the sub categories and displaying the products found in each... Then as you click on the sub categories, it acts as a filter?

So, as another example, you could have:

Books
     -> Art
           > Drawing
                    > Drawing Book 1
                    > Drawing Book 2
           > Painting
                    > Painting Book 1
                    > Painting Book 2
           > Paper
                  > Card
                        > Card Book 1
                        > Card Book 2
                  > Crepe
                        > Crepe Book 1
     -> History
               > 1950
               > 1960

Viewing the "Books" category would display all books throughout the category tree...

Viewing the Art category would show all Art books...

Viewing Drawing would show all Art Books that were part of the Drawing category...

Viewing Paper would show all Books in categories below Paper (Card and Crepe)


Posted By: ProductCart
Date Posted: 29-January-2009 at 12:52pm
You can do this without code modifications by assigning products to multiple categories (the parent and one or more subcategories). Use the Import Product Wizard to quickly assign multiple products to multiple categories. You can import two category assignments at a time for any product. We hope this works for you.

-------------
The ProductCart Team

Home of ProductCart http://www.productcart.com" rel="nofollow - shopping cart software


Posted By: Greg Dinger
Date Posted: 29-January-2009 at 1:12pm
Sorry for the delay - got pulled away a few minutes.  Yes, as EI has suggested, and I was preparing earlier to reply - just do some experiments assigning your products at each level.
 
If you have products assigned at the parent category as well as the subcategory, you will see that they appear under both selections.


-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: palagrim
Date Posted: 30-January-2009 at 7:08am
Thanks guys! :)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net