Product Count per Category

Hi, does any body know how I could show how many products are in each category? Also, in 2.2.2 the back in stock product notification, can it be done for category for example they get a notification when products are added in a category?



BTW: the search function to find answers on this forum really blows, I'm sure you can make it more accurate.



Thanks,



D.

To view what products are in a category just go to “Products>>Categories”. Then you will see a gray box off to the write that has various numbers in them. Just click on top of that gray box and it will show you what is in that category.



I'm not for sure on the “back in stock”.



On the search in the forum, it is very limited but you can go to…

Knowledge Base - http://kb2.cs-cart.com/

Reference Guide - https://www.cs-cart.com/reference-guide.html

Some of the information is a little out of date, but I'm sure it will be updated soon.

[quote name='clips' timestamp='1317002535' post='122287']

To view what products are in a category just go to “Products>>Categories”. Then you will see a gray box off to the write that has various numbers in them. Just click on top of that gray box and it will show you what is in that category.



I'm not for sure on the “back in stock”.



On the search in the forum, it is very limited but you can go to…

Knowledge Base - http://kb2.cs-cart.com/

Reference Guide - https://www.cs-cart.com/reference-guide.html

Some of the information is a little out of date, but I'm sure it will be updated soon.

[/quote]



Thanks a lot for your help Clips,



What I was looking for is not to see how many products per category in the admin but on the live site. I saw an add on for this before that I can't find anymore but with version 2.2.2 I was thinking this would be an option already.



I did check the references and knowledge base with no success.

Thanks again.



D.

I just installed this free addon from http://www.codingstaff.com/products/cs-cart-addons/extended-categories-menu and it works really well. I had to do a couple of changes to make it “fit” my site, but not much.



Hope that helps,



Brandon

Now I see what you are looking for.



The problem with the mod from Coding Staff is it is free to download, but it needs a password to unzip it.

I just tried to email the Coding Staff via email and the message came back to me saying…

[quote]The email account that you tried to reach does not exist.[/quote]

Did anyone else get the request for the pw?

I actually downloaded it and installed it right from the link I provided above. No passwords anywhere.



Thanks,



Brandon

When I add a new category (MAIN/SUB) I see a different view now on the “location” section whereas I used to see a drop down menu 1 hour ago. How do I change the view back the way I want? Refer attachment.



Please don't double post and keep new messages relevant to the current thread.

My apologies and I understand your concern. Any solution to my problem?

I agree with Tony about the double posting being annoying, but the solution to your problem is in config.php



Near the top, you should have:


define('CATEGORY_THRESHOLD', 40); // if number of categories less than this value, all categories will be retrieved, otherwise subcategories will be retrieved by ajax



Basically that makes it so that if you have over 40 categories, that style of selection is used. If you don't like that style, just change this to 100 or whatever works for you.



Hope that helps,



Brandon

Thank you and sorry for the inconvenience caused

[quote name='brandonvd' timestamp='1317012904' post='122295']

I just installed this free addon from http://www.codingsta…categories-menu and it works really well. I had to do a couple of changes to make it “fit” my site, but not much.



Hope that helps,



Brandon

[/quote]



Hi, just installed it and works great except for one thing I'm hoping I can get some help with.



Most of my store products have an inventory of 1 and have the site is set so that the product doesn't show in inventory once the inventory is at 0. Is there a way that when a product inventory is set to 0 to change the product status to disabled because it still shows in the product per category count.



For example I have a category with only 2 products but sold 48 before in this category and now it shows there are 50 items in this category but when you click on it, it shows the 2 product with inventory of 1.



Or maybe a way to set the product count per category to show count only products with an inventory of at least 1.



Thanks in advance for your help.

It is tracking the product count per category regardless of the status of the product. Think about it, how would the category know when a product status was chagned or the inventory of the product was changed? Be a lot of overhead to have it rebuild the category count each time a product is updated. But it could be done with an 'update_product' hook.

[quote name='tbirnseth' timestamp='1327302748' post='129761']

It is tracking the product count per category regardless of the status of the product. Think about it, how would the category know when a product status was chagned or the inventory of the product was changed? Be a lot of overhead to have it rebuild the category count each time a product is updated. But it could be done with an 'update_product' hook.

[/quote]



Hi, I agree the product status shouldn't make a difference but it shouldn't say there is a product when the product inventory is 0 and set not to show if inventory is set to 0. Do you think this could be fix easily? I really don't want to go all over and change the product status to disabled when the inventory is 0.



Thanks.

“easily” is quite a variable term. It could be done. I would think most would want the product to show “out of stock” but still be shown. Seems like good advertising. But if your products are one-off, why not just delete them after they sell or change their status to disabled?

[quote name='tbirnseth' timestamp='1327376639' post='129816']

“easily” is quite a variable term. It could be done. I would think most would want the product to show “out of stock” but still be shown. Seems like good advertising. But if your products are one-off, why not just delete them after they sell or change their status to disabled?

[/quote]



I like to keep them so I can clone them if I have a similar one later but also I have about 20 to 50 sales per day, I would hate to have to change each one to disabled everytime. Would much rather have the addon set to count only product with an inventory of 1 or more. I do understand for those wanting to use the out of stock notification it is perfect but in my case it doesn't really work.



Also, the addon doesn't work if the category is set to manual. I have like 450 categories and want to show only like 50 on the front page and another 50 on some different page page. Now if I use this addon, it only work if I show all category.



Since I have it set in the backend not to show items with inventory of 0, the addon should see this and set accordingly.



I'll send you an email. Thanks for your fast replies and help.



Thanks,



D.

Assuming the addon you are referring to is the FREE addon that brandon supplied and that's why you want it to recognize the category count for hiding the category if there are no in-stock items in the category. Makes sense, but it is rather a special need. Talk to Brandon, he'll work with you.

Thanks, I just contact him.



D.