Hide Empty Product Category

Ask the community for help with CE Phoenix Cart.
shopify
Posts: 54
Joined: Tue Mar 30, 2021 3:36 pm
Has thanked: 23 times
Been thanked: 3 times

Hide Empty Product Category

Post by shopify »

Is there a setting to hide categories with no products from display in store front?
ThatSweetShop

Re: Hide Empty Product Category

Post by ThatSweetShop »

shopify wrote: Sun Jul 04, 2021 4:30 pm Is there a setting to hide categories with no products from display in store front?
This is something I'd be very interested in too.
ThatSweetShop

Re: Hide Empty Product Category

Post by ThatSweetShop »

Any help with this please, anyone?
14Steve14
Posts: 772
Joined: Fri Oct 25, 2019 7:01 pm
Has thanked: 10 times
Been thanked: 54 times

Re: Hide Empty Product Category

Post by 14Steve14 »

There used to be an addon called 'Category manager' i think it was, which allowed you to disable categories and sub categories. Not too sure whether its available from this sites addons area though. I have it working on my 1.0.7.11 version.
ThatSweetShop

Re: Hide Empty Product Category

Post by ThatSweetShop »

14Steve14 wrote: Mon Jul 05, 2021 6:45 am There used to be an addon called 'Category manager' i think it was, which allowed you to disable categories and sub categories. Not too sure whether its available from this sites addons area though. I have it working on my 1.0.7.11 version.
Thanks for reply. Actually I wasn't looking to disable a category - just not list it in shop front if it's empty i.e no active products in it. Reason is that I have a promos catgegory with limited offers. When offers end, I disable the products. I don't want the category showing in categories list thereafter. This is similar to WordPress categories which do not display is they are empty.

After a very bad experience with addons a little while back, I'm very wary of addons these days. I can't afford to have my site fall over and having to unpick the damage to get it wrking again.
14Steve14
Posts: 772
Joined: Fri Oct 25, 2019 7:01 pm
Has thanked: 10 times
Been thanked: 54 times

Re: Hide Empty Product Category

Post by 14Steve14 »

ThatSweetShop wrote: Mon Jul 05, 2021 9:14 am
14Steve14 wrote: Mon Jul 05, 2021 6:45 am There used to be an addon called 'Category manager' i think it was, which allowed you to disable categories and sub categories. Not too sure whether its available from this sites addons area though. I have it working on my 1.0.7.11 version.
Thanks for reply. Actually I wasn't looking to disable a category - just not list it in shop front if it's empty i.e no active products in it. Reason is that I have a promos catgegory with limited offers. When offers end, I disable the products. I don't want the category showing in categories list thereafter. This is similar to WordPress categories which do not display is they are empty.

After a very bad experience with addons a little while back, I'm very wary of addons these days. I can't afford to have my site fall over and having to unpick the damage to get it wrking again.
You are going to have to pay a developer to do it for you then if you don't want to use something that has been created and works from someone else. I always test addons first on a test site just to make sure that they work. if they do its then just a case of uploading them to the live site.

The addon I mentioned leaves the category in the back end and only does not show it in the front end. It does not remove anything from the admin, and products are still there. It just does not show the category on the store side until you activate it again. Its something similar to the red and green ticks and crosses when disabling and enabling products.
ThatSweetShop

Re: Hide Empty Product Category

Post by ThatSweetShop »

14Steve14 wrote: Mon Jul 05, 2021 3:40 pm
ThatSweetShop wrote: Mon Jul 05, 2021 9:14 am
14Steve14 wrote: Mon Jul 05, 2021 6:45 am There used to be an addon called 'Category manager' i think it was, which allowed you to disable categories and sub categories. Not too sure whether its available from this sites addons area though. I have it working on my 1.0.7.11 version.
Thanks for reply. Actually I wasn't looking to disable a category - just not list it in shop front if it's empty i.e no active products in it. Reason is that I have a promos catgegory with limited offers. When offers end, I disable the products. I don't want the category showing in categories list thereafter. This is similar to WordPress categories which do not display is they are empty.

After a very bad experience with addons a little while back, I'm very wary of addons these days. I can't afford to have my site fall over and having to unpick the damage to get it wrking again.
You are going to have to pay a developer to do it for you then if you don't want to use something that has been created and works from someone else. I always test addons first on a test site just to make sure that they work. if they do its then just a case of uploading them to the live site.

The addon I mentioned leaves the category in the back end and only does not show it in the front end. It does not remove anything from the admin, and products are still there. It just does not show the category on the store side until you activate it again. Its something similar to the red and green ticks and crosses when disabling and enabling products.
I'd have tried your suggestion to test that addon on a test installation but where could one locate the addon? (comment removed by Admin)
admin
Site Admin
Site Admin
Posts: 234
Joined: Wed Oct 30, 2019 1:34 pm
Has thanked: 20 times
Been thanked: 23 times

Re: Hide Empty Product Category

Post by admin »

ThatSweetShop wrote: Tue Jul 06, 2021 1:47 pm where could one locate the addon?
It is not available in the Addons Library. Links to Addons published by service providers other than Phoenix Cart or Certified Developers will be removed.
Nigel
Posts: 107
Joined: Mon Jan 11, 2021 1:39 am
Has thanked: 25 times
Been thanked: 6 times

Re: Hide Empty Product Category

Post by Nigel »

This is one of the facilities that would preferably be available by default.
With the break away (release) from "that other version", many of the Addons could be classed as worthy and required default facilities. These would raise the phoenix to another level.

I know, understand and appreciate the effort put in by the coders and the model used. This isn't a criticism but an opinion offered because I really like this software but still feel the need to look at other options because of missing facilities.
burt
Lead Developer
Lead Developer
Posts: 3001
Joined: Tue Oct 29, 2019 9:37 am
Has thanked: 52 times
Been thanked: 167 times

Re: Hide Empty Product Category

Post by burt »

You would override the category tree class with your own.

It is a no core code change (I think), but would require a developer to make it (as it would not be completely straightforward)... you might like to enquire here, getting a quotation, then post back in this thread to see if anyone would like to share the cost (or of course, if the quote is super low, you might just "do it" as nike would say). If you can get 3 or 4 of you willing to share, it would (likely) be the cost of a few cups of coffee each.
Post Reply