dynamic stock quantity

suppose i have a product in wocommerce with a weight of 100 gram and it has 3 variations 3.5 gm, 7gm, 25gm in wocommerce. for example. if a user buys a 25 gm variant, then the remaining 75 gm of the product should be split in all varitaions like, 21 stocks for 3.5gm, 10 stocks for 7gm and 3 stocks for 25 gm. how can i do that in wocommerce

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer