Title: Stock Dependencies for WooCommerce
Author: KevinMcCall
Published: <strong>Sáwir 14, 2020</strong>
Last modified: Aqırap 11, 2025

---

Search plugins

![](https://ps.w.org/wc-stock-dependencies/assets/banner-772x250.png?rev=2283241)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/wc-stock-dependencies/assets/icon-256x256.png?rev=2283241)

# Stock Dependencies for WooCommerce

 By [KevinMcCall](https://profiles.wordpress.org/kevinmccall/)

[Download](https://downloads.wordpress.org/plugin/wc-stock-dependencies.2.0.0.zip)

 * [Details](https://kaa.wordpress.org/plugins/wc-stock-dependencies/#description)
 * [Reviews](https://kaa.wordpress.org/plugins/wc-stock-dependencies/#reviews)
 *  [Installation](https://kaa.wordpress.org/plugins/wc-stock-dependencies/#installation)
 * [Development](https://kaa.wordpress.org/plugins/wc-stock-dependencies/#developers)

 [Support](https://wordpress.org/support/plugin/wc-stock-dependencies/)

## Description

With Stock Dependencies for WooCommerce, you can make the products and
 variations
in your WooCommerce store dependent on the inventory of your other products or variations.
Customers will be able to select and purchase the product without seeing the products
on which it depends in their cart, during their checkout, or on their receipt. Inventory
management in Woo Commerce is greatly simplified since you only have to manage inventory
levels for the item(s) on which your product or variation is dependent.

Stock Dependencies for WooCommerce works for Simple and Variable product types
 
in WooCommerce and you can make a product or variation dependent on a combination
of other products and variations. Stock Dependencies for WooCommerce lets you create
dependencies on quantities of one or more of the other products.

Stock Dependencies for WooCommerce is ideal for:

 * Selling products in multiple quantities. For an product you already have in
    
   your inventory, you can use Stock Dependencies for WooCommerce to sell, for example,
   a package of six items and and package of 12 items. With Stock Dependencies for
   WooCommerce you do not need to maintain inventory levels for each quantity of
   the product as the product inventory is managed for only the single quantity 
   item.
 * Selling bundled products. You can create a bundle of
    multiple items and sell
   them as a single item. With Stock Dependencies for WooCommerce your customers
   will only see the bundle product in their cart, during the checkout process, 
   and on their order receipt.

When a product with stock dependencies is displayed in your store, Stock
 Dependencies
for WooCommerce will check the inventory of the products on which it depends and
will only show the product as being available if all the dependent stock items are
available. When a product with stock dependencies is added to a shopping cart and
eventually purchased, the customer will only see the single product in their cart
and order, and will not see the products on which it is dependent. When the product
is purchased, Stock Dependencies for WooCommerce will reduce the inventory of the
items on which it is dependent by the appropriate amount.

### Configuring

Stock Dependencies for WooCommerce is easy to configure for any simple or
 variable
product in your WooCommerce store. A single checkbox is added to each simple product
or variation in your WordPress admin that allows you to enable stock dependencies
for that product or variation. Once checked, two fields are added for the SKU and
the quantity of the dependency. Additional dependencies can be easily added.

### Shopping

When a customer views a product with dependencies in your WooCommerce store,
 they
will see the product as you have configured it, but the available quantity and in-
stock status will be determined by Stock Dependencies for WooCommerce from the available
quantities of each of the products and variations on which it is dependent.

### Cart, Checkout, and Receipt

Customers will only see the product they selected, and not the products upon
 which
it is dependent, in their shopping cart, during the checkout process, and on their
receipt.

### Restocking Refunds and Cancelled Orders

When you issue a refund or cancel an order that has stock dependencies, the
 plugin
will restock the dependency products.

### Privacy

The Stock Dependencies for WooCommerce plugin does not affect the way personal
 
information is collected or stored within your WooCommerce store or your WordPress
installation.

### Open Source

The Stock Dependencies for WooCommerce plugin is open source software. Feel free

to contribute or fork this code on [GitHub](https://github.com/kmac420/stock-dependencies-for-woocommerce/).

## Screenshots

[⌊When editing a simple or variable product, easily add Stock Dependencies.⌉⌊When
editing a simple or variable product, easily add Stock Dependencies.⌉[

When editing a simple or variable product, easily add Stock Dependencies.

[⌊The quantity of items available is calculated by the plugin based on the dependencies'
quantities.⌉⌊The quantity of items available is calculated by the plugin based on
the dependencies' quantities.⌉[

The quantity of items available is calculated by the plugin based on the dependencies’
quantities.

[⌊The inventory of each product dependency is automatically reduced by the appropriate
number based on the order quantity and the dependency quantity.⌉⌊The inventory of
each product dependency is automatically reduced by the appropriate number based
on the order quantity and the dependency quantity.⌉[

The inventory of each product dependency is automatically reduced by the appropriate
number based on the order quantity and the dependency quantity.

## Installation

Install the WooCommerce Stock Dependencies plugin

 1. Download and install the plugin from the [release page](https://github.com/kmac420/stock-dependencies-for-woocommerce/releases)
    or install directly from the [WordPress plugin directory](https://wordpress.org/plugins/wc-stock-dependencies).
 2. Activate the plugin.
 3. In your WordPress admin, navigate to the Products listing page and select a product
    to configure.
 4. Enable stock dependencies.
 5. For simple products, edit the product and navigate to the Inventory tab and check
    the “Add stock dependency” checkbox. Add the SKU and the quantity for each product
    or variation on which this product is dependent.
 6. For variable products, edit the product and navigate to the Variations tab and 
    check the “Add stock dependency” checkbox for each variation. Add the SKU and the
    quantity for each product or variation on which this product variation is dependent.

## FAQ

### Why would I use Stock Dependencies for WooCommerce?

Stock Dependencies for WooCommerce is ideal for selling groups of one or more
 products
without having to maintain inventory numbers for each grouping and without having
each product in the grouping appear as a separate line item in the order and on 
the receipt.

### How is Stock Dependencies for WooCommerce different from other product grouping plugins?

Other product grouping plugins allow you to create different combinations of
 products
within your store but still treat each as a separate product in the customer’s shopping
cart, during the checkout process, and on the customer’s order receipt.

### How are dependencies defined?

Each dependency that a product or variation has on another product or variation

is defined using the (unique) SKU of the product and the quantity of that product
that is required.

### Can stock dependencies be created with Product IDs or other identifiers?

No. Stock dependencies can only be created with a unique SKU of the product or
 
variation on which the dependency exists.

## Reviews

![](https://secure.gravatar.com/avatar/713045477bb23d63949acf8dd8515dc9e7699979f1b4d81b03bea304dc3f729e?
s=60&d=retro&r=g)

### 󠀁[Exactamente lo que buscaba](https://wordpress.org/support/topic/exactamente-lo-que-buscaba-2/)󠁿

 [velozer](https://profiles.wordpress.org/velozer/) Sáwir 9, 2022

Después de probar varios plugins mucho más pesados y complejos, he encontrado este
que hace exactamente lo que necesito. Si vendo un pack que incluye 2 o más unidades
de uno o varios productos, el stock se actualiza instantáneamente.

![](https://secure.gravatar.com/avatar/cb1ff1d322ab926d371eba46db08dbd147c6d1314ee106ce5d402452fa855798?
s=60&d=retro&r=g)

### 󠀁[plugins without new updates](https://wordpress.org/support/topic/plugins-without-new-updates/)󠁿

 [wberes](https://profiles.wordpress.org/wberes/) Sáwir 1, 2022

Hello! I'm using your plugins it is great, but your plugins still do not have new
updates… When I made an update to WordPress 5.9.2 your plugin made many problems
on my page and on the server. When I made a backup to 5.7.6 everything worked well
again. We can use your plugins only if you plan the next updates. Now it is not 
proffesional. Sorry. WB.

![](https://secure.gravatar.com/avatar/b74a61c88d2d1a6a426e013e6554cc5bb6601219436c863fdac241335b50afbb?
s=60&d=retro&r=g)

### 󠀁[Awesome plugin](https://wordpress.org/support/topic/awesome-plugin-6265/)󠁿

 [tufty](https://profiles.wordpress.org/tufty/) Jeddi 12, 2021

I've been waiting for this kind of function for so long. In the meantime I have 
been using Product Bundles to achieve something similar, but this is much more seamless.
It's perfect for multibuy products on discount and lower affiliate rate, or subscriptions
sharing the same stock. Also geolocated redirections to different product attributes.
I hope before long there will be refund functionality to put the products back in
stock and integration with Product Batches by WP Overnight. I'd be happy if this
was in a premium paid version.

![](https://secure.gravatar.com/avatar/5d143969bdeed8af6d7873812d8b95a0dfeecf7e2de125f340693c0dbc30a5c3?
s=60&d=retro&r=g)

### 󠀁[Amazing!](https://wordpress.org/support/topic/amazing-2957/)󠁿

 [rostyslavsd](https://profiles.wordpress.org/rostyslavsd/) Dáliw 27, 2021

I usually don't leave reviews for plugins, but this plugin is amazing! Surprised
to see it open source

![](https://secure.gravatar.com/avatar/22ad148abd04c7f8c448c810311a58de76c4f541a05791439e342ea20e0ae2c1?
s=60&d=retro&r=g)

### 󠀁[Amazing plugin! thank you!](https://wordpress.org/support/topic/amazing-plugin-thank-you-10/)󠁿

 [crealys](https://profiles.wordpress.org/crealys/) Dáliw 20, 2021

This plugin is the missing part of the puzzle to manage your stock. makes managing
global stock of a variation possible. In a restaurant for ex. it could manage your
stock of ingredients that are used in many different dishes. If one ingredient is
out of stock , the whole dish will be unavailable! Wonderful support from Kevin!
Ludo

![](https://secure.gravatar.com/avatar/cec2abd17657a3dbfcbe6dccdf38b32bbbcd46eea5bbb27d3aaa10332b860a26?
s=60&d=retro&r=g)

### 󠀁[An EXCELLENT plugin – thank you](https://wordpress.org/support/topic/an-excellent-plugin-thank-you-2/)󠁿

 [iainbeaumont](https://profiles.wordpress.org/iainbeaumont/) Dáliw 7, 2021

This plugin was exactly what we required on one of our e-commerce sites, and it 
worked perfectly. Very simple to use and a great UX for customers (i.e no confusing
messages). Everything is managed on the back-end and if one of the dependant products
is not in stock, the 'parent' product shows as sold out on the front end. Stock 
management for the warehouse will be much easier. Huge thanks to the developer.

 [ Read all 9 reviews ](https://wordpress.org/support/plugin/wc-stock-dependencies/reviews/)

## Contributors & Developers

“Stock Dependencies for WooCommerce” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ KevinMcCall ](https://profiles.wordpress.org/kevinmccall/)

“Stock Dependencies for WooCommerce” has been translated into 1 locale. Thank you
to [the translators](https://translate.wordpress.org/projects/wp-plugins/wc-stock-dependencies/contributors)
for their contributions.

[Translate “Stock Dependencies for WooCommerce” into your language.](https://translate.wordpress.org/projects/wp-plugins/wc-stock-dependencies)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wc-stock-dependencies/),
check out the [SVN repository](https://plugins.svn.wordpress.org/wc-stock-dependencies/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/wc-stock-dependencies/)
by [RSS](https://plugins.trac.wordpress.org/log/wc-stock-dependencies/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.0.0

 * Verified with WordPress 6.8
 * Adds unit tests
 * Fixes some known bugs
 * Refactored some code and added error handling

#### 1.6.2

 * Adds an admin tool to check dependencies

#### 1.6.1

 * Verified with WordPress 6.5
 * Verified with WooCommerce 8.7
 * Added a plugin tools page and a feature to clear Stock Dependency database transients

#### 1.6

 * Confirmed compatibility with WooCommerce High Performance Order Tables
    - Confirmed compatibility with WordPress 6.4
    - Plugin will now update the inventory quantity in admin to match the quantity
      
      determined by the stock depedencies after each purchase, refund, or order 
      cancellation. Note that this only affects the behaviour of the plugin in admin
      as the actual inventory is calculated every time a product page is loaded 
      in the shop

#### 1.5

 * Stores product IDs for stock dependencies in WordPress transients to speed up
   lookups
 * Cancelling an order restocks dependencies

#### 1.4

 * Enforces SKU validity during dependency configuration
 * Reduces the need to lookup product IDs from SKUs by storing the ID in the dependency
   metadata

#### 1.3.1

 * Verified with WordPress 5.7
 * Verified with WooCommerce 5.3

#### 1.3

 * Verified with WordPress 5.6
 * Verified with WooCommerce 4.9
 * Display stock dependencies on order line items in admin
 * Support for allowing backorders

#### 1.2.1

 * Verified with WooCommerce 4.4

#### 1.2

 * Stock dependencies are restocked during a refund

#### 1.1.2

 * Tested with WordPress 5.5 and WooCommerce 4.3

#### 1.1.1

 * Fixes an issue where orders created in WooCommerce admin have their stock depedencies
   reduced twice

#### 1.1

 * Adds support for stock dependencies in orders created from within WooCommerce
   admin
 * Fixes an issue where product inventory status was not displayed correctly in 
   WooCommerce admin

#### 1.0

 * Initial release of Stock Dependencies for WooCommerce

## Meta

 *  Version **2.0.0**
 *  Last updated **12 ай ago**
 *  Active installations **100+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **6.8.11**
 *  PHP version ** 7.0 or higher **
 *  Languages
 * [Danish](https://da.wordpress.org/plugins/wc-stock-dependencies/) and [English (US)](https://wordpress.org/plugins/wc-stock-dependencies/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/wc-stock-dependencies)
 * Tags
 * [dependency](https://kaa.wordpress.org/plugins/tags/dependency/)[group](https://kaa.wordpress.org/plugins/tags/group/)
   [inventory](https://kaa.wordpress.org/plugins/tags/inventory/)[product](https://kaa.wordpress.org/plugins/tags/product/)
   [woocommerce](https://kaa.wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://kaa.wordpress.org/plugins/wc-stock-dependencies/advanced/)

## Ratings

 4.6 out of 5 stars.

 *  [  8 5-star reviews     ](https://wordpress.org/support/plugin/wc-stock-dependencies/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/wc-stock-dependencies/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/wc-stock-dependencies/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/wc-stock-dependencies/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/wc-stock-dependencies/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wc-stock-dependencies/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wc-stock-dependencies/reviews/)

## Contributors

 *   [ KevinMcCall ](https://profiles.wordpress.org/kevinmccall/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wc-stock-dependencies/)