Setting Up WooCommerce Attribute Stock Management 

Managing Product Stock at Attribute Level

Creating Shared Stock Rules on a Global Level

Go to WooCommerce > Attribute Stock > Rules.

Here, you can:

  • View and manage a complete list of all shared stock rules created in a log
  • Add a new attribute stock rule
  • Import and export rules
  • Perform bulk actions to edit or delete a rule
  • Apply date-based filter to rules
  • Search for an attribute stock in a search bar
  • View the following details of the attribute stock rules:
    • SKU
    • Stock
    • Threshold

To add new attribute stock rules, Click on “Add New” in the Attribute Stock Rules section. Fill in the following details:

Add Title: A descriptive title for the rule

Inventory Settings

SKU: The Stock Keeping Unit for the item

Stock Quantity: The current stock quantity of the attribute stock item

Notes: Add custom notes

Low Stock Threshold: Define the minimum stock level at which you want to be notified

Match All Groups: Enable this option to reduce stock for multiple matching attribute groups at the same time

Match Rules

Click on “Add Group”.

Within the “Add Group” section, you can further define your attribute stock rule:

Set Title: Provide a title for the attribute group

Quantity Multiplier: Define how stock quantity should be affected based on this attribute group

Select Attribute Type: Choose the relevant attribute type from options like:

  • Color 
  • Design 
  • Free Gift
  • Mug Size 
  • Mug Style
  • Package Size 
  • Quantity 
  • Size

Specify Variation: Indicate the specific attribute variation

Choose to add multiple attributes by clicking on “Add Attribute”.

Applicable To

Include Product: Select specific products to apply this stock rule. Leave this field empty to apply the rule to all products that have the selected attributes

Include Category: Define the product categories to which this rule should apply

Product Tag: Select products based on tags to apply this stock rule

Importing/Exporting Shared Attribute Stock Rules

Import:

Import CSV: Under “Import,” click on “Import CSV.”

Choose a CSV file from your computer.

Click “Upload” to import the rules 

Export: 

Click on “Export” to download a file containing your attribute stock rules

Managing Attribute Report

Go to WooCommerce > Attribute Stock > Attribute Report.

Generate attribute reports for: 

  • Low In Stock
  • Out of Stock
  • Most Stock

You can edit or update the quantity of each stock category based on the generated reports to ensure that your inventory is well-maintained.

Creating Product-Based Attribute Stock Rules

Go to Products > Add New. Locate Product Data and choose “Variable Data” from the dropdown. 

Next, select Shared Variation Stock and proceed to fill in the following details for your product-based attribute stock rules:

Quantity Manager: 

Manage Shared Variation Inventory: Enable this checkbox to manage shared variation inventory as a group of variations

Click on “Add Group” to create multiple stock groups.

Group Title: Provide a title for the stock group

Group Quantity: Specify the quantity for the stock group

Variation(s): Define the variations to which this rule should apply

Displaying Custom Error Messages

Go to WooCommerce > Settings > Attribute And Variation Stock Manager.

Setting Attribute Stock Error Messages

Set custom error messages for attribute stock. These messages will appear in specific scenarios, such as when adding products to the cart or updating the cart. You can use placeholders to display dynamic information in the messages.

Attribute Stock Error Message:

Add To Cart: Set an error message that will appear when a product is added to the cart

  • Use {product_name} to display the product name in the message
  • Use {remaining_quantity} to display the remaining quantity in the message
  • Use {attribute_name} to display the attribute name in the message

Update Cart: Set error messages that will appear when a user updates their cart

  • Use {product_name} to display the product name in the message
  • Use {remaining_quantity} to display the remaining quantity in the message
  • Use {attribute_name} to display the attribute name in the message

Setting Variation Stock Error Messages

Set custom error messages for variation stock, similar to attribute stock error messages.

Variation Stock Error Message:

Add To Cart: Set an error message that will appear when a product variation is added to the cart

  • Use {product_name} to display the product name in the message
  • Use {remaining_quantity} to display the remaining quantity in the message

Update Cart: Set error messages that will appear when a user updates their cart with product variations

  • Use {product_name} to display the product name in the message
  • Use {remaining_quantity} to display the remaining quantity in the message