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

Re: Hide Empty Product Category

Post by shopify »

burt wrote: Thu Jul 08, 2021 1:15 pm 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.
What file(s) display the product categories in the sidebar? I'll like to have a crack at modifying file noot to show a category that has no products in it. So bring it on, I'm getting my hands dirty with this cart and learning.
KenSO
Posts: 42
Joined: Fri Mar 05, 2021 12:01 pm
Has thanked: 36 times
Been thanked: 4 times

Re: Hide Empty Product Category

Post by KenSO »

I was interested in this too a while ago and managed to do a hack which works very well for my shop. I'll send you a message with code. It should work easily if you are using a similar version of phoenix.
lambro28
Posts: 55
Joined: Sun Jan 03, 2021 2:47 pm
Has thanked: 10 times
Been thanked: 8 times

Re: Hide Empty Product Category

Post by lambro28 »

I'll chip in for the cost.
KenSO
Posts: 42
Joined: Fri Mar 05, 2021 12:01 pm
Has thanked: 36 times
Been thanked: 4 times

Re: Hide Empty Product Category

Post by KenSO »

lambro28 wrote: Sun Aug 08, 2021 5:24 pm I'll chip in for the cost.
No need to chip in for anything. I've attached the file to this post. In my case, my tree_display.php file is located in catalog/includes/system/versioned/1.0.7.other/1.0.7.12

So you will need to drop this file into your versioned folder as above. I hope it works out for you.
tree_display.zip
You do not have the required permissions to view the files attached to this post.
shopify
Posts: 54
Joined: Tue Mar 30, 2021 3:36 pm
Has thanked: 23 times
Been thanked: 3 times

Re: Hide Empty Product Category

Post by shopify »

KenSO wrote: Sun Aug 08, 2021 6:59 pm
lambro28 wrote: Sun Aug 08, 2021 5:24 pm I'll chip in for the cost.
No need to chip in for anything. I've attached the file to this post. In my case, my tree_display.php file is located in catalog/includes/system/versioned/1.0.7.other/1.0.7.12

So you will need to drop this file into your versioned folder as above. I hope it works out for you.

tree_display.zip
Perfect! Problem solved, this works like a charm :D
WP Horlogebanden
Posts: 8
Joined: Thu Mar 25, 2021 7:35 pm
Has thanked: 1 time

Re: Hide Empty Product Category

Post by WP Horlogebanden »

The attached file uses tep_db_query which is no longer supported. Could you make an update?
KenSO wrote: Sun Aug 08, 2021 6:59 pm
lambro28 wrote: Sun Aug 08, 2021 5:24 pm I'll chip in for the cost.
No need to chip in for anything. I've attached the file to this post. In my case, my tree_display.php file is located in catalog/includes/system/versioned/1.0.7.other/1.0.7.12

So you will need to drop this file into your versioned folder as above. I hope it works out for you.

tree_display.zip
heatherbell
VIP Member
VIP Member
Posts: 2315
Joined: Mon Oct 07, 2019 4:39 am
Has thanked: 31 times
Been thanked: 218 times

Re: Hide Empty Product Category

Post by heatherbell »

WP Horlogebanden wrote: Sat Jan 11, 2025 7:36 pm Could you make an update?
This recent Addon includes a facility to hide/disable categories:
app.php/addons/free_addon/categories_extended/
Post Reply