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.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.
Hide Empty Product Category
Re: Hide Empty Product Category
Re: Hide Empty Product Category
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.
Re: Hide Empty Product Category
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.
You do not have the required permissions to view the files attached to this post.
Re: Hide Empty Product Category
Perfect! Problem solved, this works like a charmKenSO wrote: ↑Sun Aug 08, 2021 6:59 pmNo 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

-
- Posts: 8
- Joined: Thu Mar 25, 2021 7:35 pm
- Has thanked: 1 time
Re: Hide Empty Product Category
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 pmNo 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
-
- VIP Member
- Posts: 2315
- Joined: Mon Oct 07, 2019 4:39 am
- : Buy Me A Beverage
- Has thanked: 31 times
- Been thanked: 218 times
Re: Hide Empty Product Category
This recent Addon includes a facility to hide/disable categories:
app.php/addons/free_addon/categories_extended/