# Basic Usage
# Add stock to an attribute
Adding stock to an attribute is almost exactly the same as adding stock to a product. Simply navigate to the product attribute you want to add stock to, e.g.
T-Shirt Sizes >
Medium, and set the stock fields accordingly:
- Manage Stock? — Toggle stock management for this attribute term.
- Stock quantity — Set the current quantity for this attribute term.
Once stock has been enabled and set for the attribute, you can view it conveniently from the list of attribute terms.
# Attribute-level stock
Stock can also be enabled and set at the product attribute level. That is, the stock quantity is not set per attribute term, but instead is set for the entire attribute. This is similar to product-level stock vs variation-level stock.
This type of stock is useful for when you need different amounts of stock to be deducted per attribute term. For example, if you sold Tea per grams, you could set your total Tea stock on an attribute
Tea and add attribute terms such as
100g, etc. Each term can then be set to deduct the respective amount from the total
Tea stock using the quantity multiplier option.
# Link products to attribute stock
Associating products with attribute stock could not be easier. In fact, if you already have products set up in your WooCommerce store, chances are you've already done it!
All you need to do to start tracking attribute stock for your products is to add the attributes to each of your products just like you normally would. No extra configuration is required.
All attributes (and attribute terms) with stock enabled will immediately start reducing stock when the products are purchased.
# Product types
By default, all product types that can manage stock (e.g. simple and variable products) can make use of attribute stock.
Product types that cannot manage stock, such as grouped or external products, will not affect attribute stock even if the attribute has been assigned to the product.
Simple products will match attribute stock according to all assigned attributes, whereas variable products will match according to each variation's attributes individually. The exception to this is attributes that are not used for variations — these attributes will be used by all variations for matching.
Valid product types can be filtered per attribute stock from the advanced interface.
# Exclude products
If you don't want a particular product to make use of attribute stock, you can simply exclude it by enabling the
Ignore attribute stock option:
Or per product variation:
Ignore attribute stock at the product level will exclude all variations, regardless of their individual setting.