@mistercode Thanks for reaching out and we’re glad you liked the plugin.
I have a couple of questions :
Let’s say I have a category with 20 products an 5 are discontinued. When I visit the category page it shows 20 items are in the category. When I open the category archive page it shows only 15 products, because I chosen not to display the discontinued products.
You are referring to the product count here. Right?
Let’s say I have a category with 20 products but all 20 are discontinued. In this case I would expect the entiere category is not listed on the category archive page. But, currently the category is listed and shows 20 items in the category. When I select the category, I get a message saying that there are no products available in this category. It is because because I chosen not to display the discontinued products.
I’m not sure what you are talking about here. When you say “20 items” you mean the count of 20 items or 20 product listing thumbnails are showing up (which shouldn’t have shown up)? Can you share a screenshot or a small video so that we can correctly udnerstand your issue?
Thank you @saffiretech for your quick reply.
You are referring to the product count here. Right?
Yes, I refer to the product count in the category image.
https://snipboard.io/DOxYhf.jpg
I’m not sure what you are talking about here. When you say “20 items” you mean the count of 20 items or 20 product listing thumbnails are showing up (which shouldn’t have shown up)? Can you share a screenshot or a small video so that we can correctly udnerstand your issue?
Sorry for making this not clear enough: Yes, I mean the product count. I refere to the same image above. There you see a category thumbnail which shows a count of 20. But this category has 20 discontinued products and I do not want to show the discontinued products in the catalog. So, when I click on this category thumbnail I get a no products found message.
I’ll try to summarize this a bit more: The product count is wrong when I disable “Show Discontinued products in WooCommerce catalog?”
https://snipboard.io/z8MOY2.jpg
I would expect that with this setting the discontinued products would not be counted as products in this category. If I have 20 products in the category and 5 are discontinued, the count should be 15. If the result of the count is 0, the category should not be displayed.
Could I explain it better, now?
Hello @saffiretech. May I ask if you have any update regarding my request?
Thanks!
@mistercode Apologies for late reply. We were able to fix the #1 issue where the count is shown wrong. We’ll release an update by tomorrow.
For the #2 issue, can you tell us what shortcode or page you are using to render all categories? You mentioned it’sa category archieve page. So, we are wondering if that is a parent category page or it’s the same category page or some custom shortcode. Because that image with the count showing up doesn’t seem to be coming from the default WooCommerce archieve page. Can you please share URL of the page so that we can check that out?
-
This reply was modified 8 months, 1 week ago by SaffireTech.
Thank you @saffiretech for fixing this.
Regarding the second issues I’m talking about the shop main page. The page has no shortcode and is set under WooCommerce > Settings > Products > General > Shop page
. The customizer allows you to choose between products, categories or categories and products among each other.
@mistercode Okay. But it doesn’t look like a Shop page. That’s why we asked for the exact URL of the page you took the screenshot from.
Regardless, we have released an update that definetely fixes the issue #1 and also probably issue #2 that you have stated. Can you please update the plugin and confirm if both of these issues have been fixed?
@mistercode Since there is no reply from you in last 7 days, we are asuuming that the issue is resolved and closing the ticket.
If you are still facing the issue, please let us know here.
Thank you @saffiretech for your reply and work. I was out so, I had just today the chance for testing.
I’ve updated the plugin and unfortunately the problem still exists.
Please check out this page: https://www.kaerchercentersg.ch/produkt-kategorie/geraete/home-garden/
The first article “Akku-Besen” shows 3 products in this category. However, when you click on the category, only one item is displayed. The other two items are discontinued.
This website is build with the free Astra them. But, I have the same issue on a website with TwentyTwentyThree theme. Both themes use the same WooCommerce category archive page feature.
Could you have a look into this issue again, please?!
@mistercode Thanks for reaching out to us. The issue has been resolved, kindly update the plugin to the latest version.
If you have any further questions or concerns, please don’t hesitate to reach out.
@mistercode Thanks for reaching out to us. The issue has been resolved, kindly update the plugin to the latest version.
If you have any further questions or concerns, please don’t hesitate to reach out.
Thank you @saffiretech for your reply and effort to fix the issue.
I’m happy to report evything works as expcted, now.
I wish you all the best!
Hello @mihirshirke and @saffiretech .
I come back to this message: https://wordpress.org/support/topic/hide-products-from-count-on-archive-page/#post-17431061
The problem has occurred again (probably with the latest version 1.4.0 or an earlier version). When you click on https://www.kaerchercentersg.ch/produkt-kategorie/geraete/home-garden/ the first category shows 3 products but the category itself has just one product. The other two are discontinued.
Could you please look at this again?
I have opend a new thread and hope someone can have a look into this.