Products and sub-categories in the same category?

Open to all! Ask other shopowners for help.
Post Reply
ArtcoInc
Contributor
Posts: 119
Joined: Fri Oct 25, 2019 4:19 pm
Phoenix Version: v1.0.3.0
Has thanked: 86 times
Been thanked: 17 times

Products and sub-categories in the same category?

Post by ArtcoInc »

Can one have within a category both products and sub categories?

Malcolm
(v1.0.3.0)


Join The Code Co-op to get access to your library in the Code Co-op Forum
Dan Cole
Senior Contributor
Posts: 498
Joined: Fri Oct 25, 2019 2:14 pm
Phoenix Version: 1.0.8.21
Has thanked: 67 times
Been thanked: 61 times

Re: Products and sub-categories in the same category?

Post by Dan Cole »

ArtcoInc wrote: Wed Sep 17, 2025 11:31 pm Can one have within a category both products and sub categories?

Malcolm
(v1.0.3.0)
As I recall, you can't but it should be pretty easy to test it.

Dan
ArtcoInc
Contributor
Posts: 119
Joined: Fri Oct 25, 2019 4:19 pm
Phoenix Version: v1.0.3.0
Has thanked: 86 times
Been thanked: 17 times

Re: Products and sub-categories in the same category?

Post by ArtcoInc »

@Dan Cole My tests show that I can't, but didn't know if I was missing a configurations somewhere.
Thanks.
User avatar
Pierre_P
Contributor
Posts: 144
Joined: Fri Mar 12, 2021 5:06 am
Phoenix Version: v1.1.0.6
Has thanked: 21 times
Been thanked: 11 times

Re: Products and sub-categories in the same category?

Post by Pierre_P »

ArtcoInc wrote: Wed Sep 17, 2025 11:31 pm Can one have within a category both products and sub categories?
When it comes to bootstrap menu's this is absolutely problematic to do it this way.
Back in the old days it was done but getting to small viewports then the troubles start to creep in with the navigation part.
Well, my dilemma currently that will need to be corrected.
BrockleyJohn
Certified Developer
Posts: 173
Joined: Mon Mar 01, 2021 5:37 pm
Phoenix Version:
Has thanked: 2 times
Been thanked: 30 times

Re: Products and sub-categories in the same category?

Post by BrockleyJohn »

The core concept from osc early days carried forward is that the display of the index page has two modes for category display:
categories with categories in (nested) and categories with products in.

There's no display of products directly in nested categories but you could add a module to do that (based on the module from index_products). Otherwise they are only visible in new products for the category above, search and so on.

I have also seen shops that in the category view show subcategories as a filtering menu together with a list of all the products in all the subcategories of the current category.
User avatar
Kofod95
Senior Contributor
Posts: 748
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Has thanked: 99 times
Been thanked: 179 times

Re: Products and sub-categories in the same category?

Post by Kofod95 »

app.php/addons/free_addon/product_listi ... ex_nested/
Can be seen here: https://friiskaffeogte.dk/index.php?cPath=311_169

It needs to be updated, but that would be trivial to do - I just haven't had a lot of time these past two years...

//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply