{"id":119720,"date":"2020-04-14T14:04:15","date_gmt":"2020-04-14T14:04:15","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/wc-stock-dependencies\/"},"modified":"2025-10-11T01:30:31","modified_gmt":"2025-10-11T01:30:31","slug":"wc-stock-dependencies","status":"publish","type":"plugin","link":"https:\/\/azb.wordpress.org\/plugins\/wc-stock-dependencies\/","author":123915,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.0.0","stable_tag":"2.0.0","tested":"6.8.5","requires":"5.0","requires_php":"7.0","requires_plugins":null,"header_name":"Stock Dependencies for WooCommerce","header_author":"Kevin McCall","header_description":"Make the products and variations in your WooCommerce store dependent on the inventory of your other products or variations with WC Stock Dependencies.","assets_banners_color":"9fcedf","last_updated":"2025-10-11 01:30:31","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/kmac420\/stock-dependencies-for-woocommerce","header_author_uri":"https:\/\/kef.ca","rating":4.6,"author_block_rating":0,"active_installs":100,"downloads":5649,"num_ratings":9,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"KevinMcCall","date":"2020-04-14 14:17:35"},"1.1":{"tag":"1.1","author":"KevinMcCall","date":"2020-05-29 20:23:18"},"1.1.1":{"tag":"1.1.1","author":"KevinMcCall","date":"2020-06-11 18:40:59"},"1.1.2":{"tag":"1.1.2","author":"KevinMcCall","date":"2020-08-06 15:16:33"},"1.2":{"tag":"1.2","author":"KevinMcCall","date":"2020-08-20 15:21:40"},"1.2.1":{"tag":"1.2.1","author":"KevinMcCall","date":"2020-08-24 14:30:07"},"1.3":{"tag":"1.3","author":"KevinMcCall","date":"2021-01-20 01:19:02"},"1.3.1":{"tag":"1.3.1","author":"KevinMcCall","date":"2021-05-14 17:08:24"},"1.4":{"tag":"1.4","author":"KevinMcCall","date":"2021-07-06 18:31:39"},"1.5":{"tag":"1.5","author":"KevinMcCall","date":"2022-04-30 03:02:03"},"1.6":{"tag":"1.6","author":"KevinMcCall","date":"2023-12-23 03:31:09"},"1.6.1":{"tag":"1.6.1","author":"KevinMcCall","date":"2024-04-06 20:55:55"},"1.6.2":{"tag":"1.6.2","author":"KevinMcCall","date":"2024-04-29 02:58:47"},"2.0.0":{"tag":"2.0.0","author":"KevinMcCall","date":"2025-10-11 01:30:31"}},"upgrade_notice":{"1.5":"<ul>\n<li>Performance improvements<\/li>\n<li>Cancelling an order restocks dependencies<\/li>\n<li>Verified compatibility with WordPress 5.9 and WooCommerce 6.4<\/li>\n<\/ul>","1.4":"<ul>\n<li>Reduces frequency of certain plugin queries<\/li>\n<\/ul>","1.3":"<ul>\n<li>Verified compatibility with WordPress 5.6 and WooCommerce 4.9 and added some minor features<\/li>\n<\/ul>","1.2.1":"<ul>\n<li>Plugin verified with WooCommerce 4.4<\/li>\n<\/ul>","1.2":"<ul>\n<li>Upgrade to get the latest feature and have your stock dependencies restocked during a refund<\/li>\n<\/ul>","1.1.2":"<ul>\n<li>Tested with WordPress 5.5 and WooCommerce 4.3<\/li>\n<\/ul>","1.1.1":"<ul>\n<li>Bug fixes<\/li>\n<\/ul>","1.1":"<ul>\n<li>This update adds support for orders created in admin and fixes an issue\nwith order status displayed in admin<\/li>\n<\/ul>","1.0":"<ul>\n<li>This is the initial release of the Stock Dependencies for WooCommerce plugin.<\/li>\n<\/ul>"},"ratings":{"1":1,"2":0,"3":0,"4":0,"5":8},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2283241,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2283241,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2283241,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2283241,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.1.1","1.1.2","1.2","1.2.1","1.3","1.3.1","1.4","1.5","1.6","1.6.1","1.6.2","2.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2283241,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2283241,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2283241,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"When editing a simple or variable product, easily add Stock Dependencies.","2":"The quantity of items available is calculated by the plugin based on the dependencies' quantities.","3":"The inventory of each product dependency is automatically reduced by the appropriate number based on the order quantity and the dependency quantity."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[19240,7486,6601,746,286],"plugin_category":[45],"plugin_contributors":[184240],"plugin_business_model":[],"class_list":["post-119720","plugin","type-plugin","status-publish","hentry","plugin_tags-dependency","plugin_tags-group","plugin_tags-inventory","plugin_tags-product","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_contributors-kevinmccall","plugin_committers-kevinmccall"],"banners":{"banner":"https:\/\/ps.w.org\/wc-stock-dependencies\/assets\/banner-772x250.png?rev=2283241","banner_2x":"https:\/\/ps.w.org\/wc-stock-dependencies\/assets\/banner-1544x500.png?rev=2283241","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/wc-stock-dependencies\/assets\/icon-128x128.png?rev=2283241","icon_2x":"https:\/\/ps.w.org\/wc-stock-dependencies\/assets\/icon-256x256.png?rev=2283241","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/wc-stock-dependencies\/assets\/screenshot-1.png?rev=2283241","caption":"When editing a simple or variable product, easily add Stock Dependencies."},{"src":"https:\/\/ps.w.org\/wc-stock-dependencies\/assets\/screenshot-2.png?rev=2283241","caption":"The quantity of items available is calculated by the plugin based on the dependencies' quantities."},{"src":"https:\/\/ps.w.org\/wc-stock-dependencies\/assets\/screenshot-3.png?rev=2283241","caption":"The inventory of each product dependency is automatically reduced by the appropriate number based on the order quantity and the dependency quantity."}],"raw_content":"<!--section=description-->\n<p>With Stock Dependencies for WooCommerce, you can make the products and\nvariations in your WooCommerce store dependent on the inventory of your other\nproducts or variations. Customers will be able to select and purchase the\nproduct without seeing the products on which it depends in their cart, during\ntheir checkout, or on their receipt. Inventory management in Woo Commerce is\ngreatly simplified since you only have to manage inventory levels for the\nitem(s) on which your product or variation is dependent.<\/p>\n\n<p>Stock Dependencies for WooCommerce works for Simple and Variable product types\nin WooCommerce and you can make a product or variation dependent on a\ncombination of other products and variations. Stock Dependencies for WooCommerce\nlets you create dependencies on quantities of one or more of the other products.<\/p>\n\n<p>Stock Dependencies for WooCommerce is ideal for:<\/p>\n\n<ul>\n<li>Selling products in multiple quantities. For an product you already have in\nyour inventory, you can use Stock Dependencies for WooCommerce to sell, for\nexample, a package of six items and and package of 12 items. With Stock\nDependencies for WooCommerce you do not need to maintain inventory levels for\neach quantity of the product as the product inventory is managed for only the\nsingle quantity item.<\/li>\n<li>Selling bundled products. You can create a bundle of\nmultiple items and sell them as a single item. With Stock Dependencies for\nWooCommerce your customers will only see the bundle product in their cart,\nduring the checkout process, and on their order receipt.<\/li>\n<\/ul>\n\n<p>When a product with stock dependencies is displayed in your store, Stock\nDependencies for WooCommerce will check the inventory of the products on which\nit depends and will only show the product as being available if all the\ndependent stock items are available. When a product with stock dependencies is\nadded to a shopping cart and eventually purchased, the customer will only see\nthe single product in their cart and order, and will not see the products on\nwhich it is dependent. When the product is purchased, Stock Dependencies for\nWooCommerce will reduce the inventory of the items on which it is dependent by\nthe appropriate amount.<\/p>\n\n<h3>Configuring<\/h3>\n\n<p>Stock Dependencies for WooCommerce is easy to configure for any simple or\nvariable product in your WooCommerce store. A single checkbox is added to each\nsimple product or variation in your WordPress admin that allows you to enable\nstock dependencies for that product or variation. Once checked, two fields are\nadded for the SKU and the quantity of the dependency. Additional dependencies\ncan be easily added.<\/p>\n\n<h3>Shopping<\/h3>\n\n<p>When a customer views a product with dependencies in your WooCommerce store,\nthey will see the product as you have configured it, but the available quantity\nand in-stock status will be determined by Stock Dependencies for WooCommerce\nfrom the available quantities of each of the products and variations on which it\nis dependent.<\/p>\n\n<h3>Cart, Checkout, and Receipt<\/h3>\n\n<p>Customers will only see the product they selected, and not the products upon\nwhich it is dependent, in their shopping cart, during the checkout process, and\non their receipt.<\/p>\n\n<h3>Restocking Refunds and Cancelled Orders<\/h3>\n\n<p>When you issue a refund or cancel an order that has stock dependencies, the\nplugin will restock the dependency products.<\/p>\n\n<h3>Privacy<\/h3>\n\n<p>The Stock Dependencies for WooCommerce plugin does not affect the way personal\ninformation is collected or stored within your WooCommerce store or your\nWordPress installation.<\/p>\n\n<h3>Open Source<\/h3>\n\n<p>The Stock Dependencies for WooCommerce plugin is open source software. Feel free\nto contribute or fork this code on\n<a href=\"https:\/\/github.com\/kmac420\/stock-dependencies-for-woocommerce\/\">GitHub<\/a>.<\/p>\n\n<!--section=installation-->\n<p>Install the WooCommerce Stock Dependencies plugin<\/p>\n\n<ol>\n<li>Download and install the plugin from the <a href=\"https:\/\/github.com\/kmac420\/stock-dependencies-for-woocommerce\/releases\">release\npage<\/a> or\ninstall directly from the <a href=\"https:\/\/wordpress.org\/plugins\/wc-stock-dependencies\">WordPress plugin\ndirectory<\/a>.<\/li>\n<li>Activate the plugin.<\/li>\n<li>In your WordPress admin, navigate to the Products listing page and select a\nproduct to configure.<\/li>\n<li>Enable stock dependencies.<\/li>\n<li>For simple products, edit the product and navigate to the Inventory tab and\ncheck the \"Add stock dependency\" checkbox. Add the SKU and the quantity for each\nproduct or variation on which this product is dependent.<\/li>\n<li>For variable products, edit the product and navigate to the Variations tab\nand check the \"Add stock dependency\" checkbox for each variation. Add the SKU\nand the quantity for each product or variation on which this product variation\nis dependent.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='why%20would%20i%20use%20stock%20dependencies%20for%20woocommerce%3F'><h3>Why would I use Stock Dependencies for WooCommerce?<\/h3><\/dt>\n<dd><p>Stock Dependencies for WooCommerce is ideal for selling groups of one or more\nproducts without having to maintain inventory numbers for each grouping and\nwithout having each product in the grouping appear as a separate line item in\nthe order and on the receipt.<\/p><\/dd>\n<dt id='how%20is%20stock%20dependencies%20for%20woocommerce%20different%20from%20other%20product%20grouping%20plugins%3F'><h3>How is Stock Dependencies for WooCommerce different from other product grouping plugins?<\/h3><\/dt>\n<dd><p>Other product grouping plugins allow you to create different combinations of\nproducts within your store but still treat each as a separate product in the\ncustomer's shopping cart, during the checkout process, and on the customer's\norder receipt.<\/p><\/dd>\n<dt id='how%20are%20dependencies%20defined%3F'><h3>How are dependencies defined?<\/h3><\/dt>\n<dd><p>Each dependency that a product or variation has on another product or variation\nis defined using the (unique) SKU of the product and the quantity of that\nproduct that is required.<\/p><\/dd>\n<dt id='can%20stock%20dependencies%20be%20created%20with%20product%20ids%20or%20other%20identifiers%3F'><h3>Can stock dependencies be created with Product IDs or other identifiers?<\/h3><\/dt>\n<dd><p>No. Stock dependencies can only be created with a unique SKU of the product or\nvariation on which the dependency exists.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.0.0<\/h4>\n\n<ul>\n<li>Verified with WordPress 6.8<\/li>\n<li>Adds unit tests<\/li>\n<li>Fixes some known bugs<\/li>\n<li>Refactored some code and added error handling<\/li>\n<\/ul>\n\n<h4>1.6.2<\/h4>\n\n<ul>\n<li>Adds an admin tool to check dependencies<\/li>\n<\/ul>\n\n<h4>1.6.1<\/h4>\n\n<ul>\n<li>Verified with Wordpress 6.5<\/li>\n<li>Verified with WooCommerce 8.7<\/li>\n<li>Added a plugin tools page and a feature to clear Stock Dependency database transients<\/li>\n<\/ul>\n\n<h4>1.6<\/h4>\n\n<ul>\n<li>Confirmed compatibility with WooCommerce High Performance Order Tables\n\n<ul>\n<li>Confirmed compatibility with WordPress 6.4<\/li>\n<li>Plugin will now update the inventory quantity in admin to match the quantity\ndetermined by the stock depedencies after each purchase, refund, or order\ncancellation. Note that this only affects the behaviour of the plugin in admin\nas the actual inventory is calculated every time a product page is loaded in the\nshop<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<h4>1.5<\/h4>\n\n<ul>\n<li>Stores product IDs for stock dependencies in WordPress transients to speed up lookups<\/li>\n<li>Cancelling an order restocks dependencies<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>Enforces SKU validity during dependency configuration<\/li>\n<li>Reduces the need to lookup product IDs from SKUs by storing the ID in the dependency metadata<\/li>\n<\/ul>\n\n<h4>1.3.1<\/h4>\n\n<ul>\n<li>Verified with Wordpress 5.7<\/li>\n<li>Verified with WooCommerce 5.3<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Verified with Wordpress 5.6<\/li>\n<li>Verified with WooCommerce 4.9<\/li>\n<li>Display stock dependencies on order line items in admin<\/li>\n<li>Support for allowing backorders<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Verified with WooCommerce 4.4<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Stock dependencies are restocked during a refund<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>Tested with WordPress 5.5 and WooCommerce 4.3<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Fixes an issue where orders created in WooCommerce admin have their stock depedencies reduced twice<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Adds support for stock dependencies in orders created from within WooCommerce admin<\/li>\n<li>Fixes an issue where product inventory status was not displayed correctly in WooCommerce admin<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release of Stock Dependencies for WooCommerce<\/li>\n<\/ul>","raw_excerpt":"Make your products&#039; availability and stock dependent on the inventory of other products in your WooCommerce store.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/119720","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=119720"}],"author":[{"embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/kevinmccall"}],"wp:attachment":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=119720"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=119720"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=119720"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=119720"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=119720"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=119720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}