简体   繁体   English

woocommerce-显示库存变化

[英]woocommerce - display variations in stock

I have enabled the attributes widgets on the shop page. 我已在商店页面上启用了属性小部件。 My products use two attributes: style and size. 我的产品使用两个属性:样式和大小。 Let's say a customer selects style as boys and size as large. 假设客户选择样式为男孩,尺寸选择为大。 All the products with the variation boys large show up. 所有带有变体男孩的产品都会出现。

But many of these variations are out of stock. 但是,这些变体中的许多都没有货。 How can I restrict the display to show only products with that variation that is in stock? 如何限制显示范围,使其仅显示具有该变化的产品?

example: display products with the variation (boys large) in stock and hide products with the variation (boys large) out of stock. 示例:显示库存变化较大(男孩大)的产品,隐藏库存变化较大(男孩大)的产品。

From the dashboard: 从仪表板:

  • Go to the WooCommerce -> Settings 转到WooCommerce->设置
  • In the settings go to the Products tab and then Inventory sub-tab 在设置中,依次转到“产品”标签和“库存”子标签
  • About 3/4 way down the page there is an option called "Out Of Stock Visibility", tick it 在页面下3/4处有一个名为“缺货可见性”的选项,勾选它
  • Save the changes and the if the variation is out of stock it should no longer appear as an option. 保存更改,并且如果版本缺货,则不应再将其显示为选项。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 对于没有托管库存的 WooCommerce 变体显示“有货”通知 - Display “In Stock” notice for WooCommerce variations with no Managed Stock 显示用于 woocommerce 缺货产品变体的自定义 div 块 - Display a custom div block for woocommerce out of stock product variations 显示 现货 WooCommerce 单品简短描述 - Display In stock available variations in WooCommerce single product short description 基于 Woocommerce 产品变体库存数据复选框选项的自定义显示 - Custom display based on Woocommerce product variations stock data checkbox option 在 wp-admin 列中显示每个 woocommerce 变体库存数量 - Display each woocommerce variations stock quantity in wp-admin column 如果 WooCommerce 中的所有变体都缺货,则显示已售罄的灰色按钮 - Display a Sold out greyed button if all variations are out of stock in WooCommerce 检查 WooCommerce 产品(简单或变体)是否有库存并将标签显示为短代码 - Check if WooCommerce product (simple or variations) are in stock and display label as shortcode 显示在 WooCommerce 可变产品上售罄,当所有变体都缺货时 - Display sold out on WooCommerce variable product when all variations are out of stock Woocommerce产品变化:更改“库存”的位置 - Woocommerce product variations: Change position of „in stock“ 显示和隐藏缺货变化 woocommerce - Showing and hiding out of stock variations woocommerce
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM