Skip to content

Global Settings

Attribute Stock includes a few site-wide settings for further control of your stock. You can find these settings under ProductsAttribute StockSettings.

Available settings

Modify product stockAuto / Everywhere / No

  • Set whether attribute stock affects product stock availability. Auto will only modify stock on the frontend, in cron tasks, and during certain actions. Everywhere will modify stock in admin views, and may improve compatibility with other plugins. This setting also affects product stock multipliers.

Sync product visibilityAuto / Yes / No

  • Update visibility taxonomy for top-level products to reflect attribute stock status. This allows product queries to respect attribute stock, for example when using the "Hide out of stock items" setting. Auto mirrors the "Hide out of stock items" setting.

Trigger product stock actionsYes / No

  • Trigger product stock change actions when attribute stock changes. Many plugins require these actions to know when stock changes on your site. However, in some cases this might cause issues with certain plugins, or simply not be needed and use unnecessary system resources.

Allow backordersDo not allow / Allow, but notify customer / Allow

  • Allow backorders for products using attribute stock. Does not affect products with stock management enabled, or products that are not using attribute stock. This setting can be overridden per attribute stock item.

Product stock formatDefault / Decimal / Decimal (Show whole numbers)

  • Setting this to decimal allows products to use fractional stock quantities. This is required when using decimal product stock multipliers or else quantities will always be rounded down. You can optionally show whole numbers so customers don't see fractional stock quantities on the frontend.

Out of stock variationsOut of stock / Greyed out / Hidden

  • Select how variation options will be displayed when out of stock. This only applies when the Hide out of stock items setting is disabled, and affects all variation options site-wide regardless of attribute stock.
  • If your products have a lot of variations you'll need to increase the Ajax variation threshold for this to work.

Unmatched "Any" variationsVisible / Out of stock / Greyed out / Hidden

  • Select how "Any" variation options that don't match attribute stock will be displayed on the frontend. Only affects product variations with "Any" selected for some or all attribute terms.

Ajax variation threshold — Default: 30

  • Allows changing the default WooCommerce Ajax Variation Threshold value. When products have more than this number of variations, WooCommerce will load them via Ajax. This is often problematic as it incurs extra loading times and prevents hiding or disabling out-of-stock options. Most servers running WooCommerce can handle a value of at least 300.

Components max depth — Default: 5

  • The maximum number of levels to query for stock item components. E.g. for A > B > C, component C is at a depth of 2. Try to set this as low as possible to maximize performance. A depth of 0 effectively disables all component stock relationships.

WooCommerce settings

In addition to the above settings, attribute stock will also respect all of the standard WooCommerce inventory settings, such as Manage stock, Stock notifications, Stock thresholds, Out of stock visibility, and Stock display format.▹