[英]Out of stock Products, Still showing in product count in categories
I Hided out of stock items from the catalog in Woocommerce > settings > inventory and The out of stock products didn't appear in category page or any listing page and that is good so far .. However My product Categories widget is still counting my products including the out of stock products.我在Woocommerce > 设置 > 库存中的目录中隐藏了缺货项目,并且缺货产品没有出现在类别页面或任何列表页面中,到目前为止这很好.. 但是我的产品类别小部件仍在计算我的产品包括缺货的产品。
How can I also make the product Categories widget counting in stock products only ?我怎样才能使产品类别小部件仅计入库存产品?
Thanks in advance.提前致谢。
I hope this answer will be useful for someone.我希望这个答案对某人有用。
Usually, the issue gets solved by Recounting the Terms.通常,通过重新计算条款来解决问题。 You will find that button by navigating to WooCommerce > Status > Tools > Term Counts .您可以通过导航到WooCommerce > Status > Tools > Term Counts找到该按钮。
But sometimes, the changes might not appear immediately for another category even after recounting the terms.但有时,即使在重新计算条款后,其他类别的更改也可能不会立即出现。 In that case, you need to Recount the Terms again.在这种情况下,您需要重新计算条款。 Hope it will help.希望它会有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.