在Woocommerce中隐藏“缺货"产品 [英] Hide 'out of stock' products in Woocommerce
问题描述
在产品"和库存"下,我检查了以下设置: 隐藏目录中的缺货商品"
Under "Products" and "Inventory" I have checked the following setting: "Hide out of stock items from the catalog"
现在,所有售罄的产品都隐藏在存档/类别视图中.到目前为止一切顺利.
Now all sold out products are hidden in the archive/category view. So far so good.
问题是每页计算隐藏的(缺货)产品.因此,如果首页上售罄的产品有3种,则只有库存的产品显示(6).
The problem is that the hidden (out of stock) products are counted per page. So if there are 3 products that are sold out on the first page, only the ones in stock are showing (6).
似乎这些隐藏"产品仍然可以搜索,并且可以通过不同的小部件看到.
It also seems that these "hidden" products still are searchable as well, and visible through the different widgets.
有什么办法解决此问题吗?我的意思是真正地隐藏缺货的产品.还是我需要手动将其删除?
Any ideas how to fix this? I mean to REALLY hide products that are out of stock. Or do I need to manuallly remove them?
推荐答案
注意事项:始终从开发人员那里读取变更日志.
Note to self: Always read the changelog from developer.