I want to merge the inventory of two or more products based on their SKU
in WooCommerce.
Example: (Two products sharing the same inventory)
(Three or more products sharing the same inventory)
Most of our phone cases are made of clear, so I want these products to share the same inventory.
I found something on the Internet, the content is as follows:
The only problem is that when the product for sku1 is ordered, it updates the stock quantity for sku1 and sku2, but not if sku2 is ordered. Also, when I use the update button (which I did from here) it doesn't update both, only the product I'm updating.