@metasequoia12
We understand you want to know how to get all stock quantities for a variation.
There’s no default feature for this. On the brighter side, WooCommerce has an extension for this in the link below:
https://woocommerce.com/products/variation-shared-inventory-for-woocommerce/
For free alternatives, you can check https://ww.wp.xz.cn/plugins/
I hope this helps! Let me know if you have further questions or if you need further assistance.
Thank you for the reply. I believe that the variation-shared-inventory-for-woocommerce extension is the exact opposite of what I am looking for. The referenced extension allows a group of variations to share a single quantity. What I would like is the ability to view on a single page the individual variation stock quantities. I have a product with 5 variations; each variation is a separately manufactured product so knowing the total stock quantity of all variations is pretty useless. I am trying to avoid having to select each variation individually to see if one needs to have more manufactured. I can supply more details if needed.
Hi @metasequoia12,
What I would like is the ability to view on a single page the individual variation stock quantities
There is a snippet here that will let you show all the stock numbers before even clicking on any of the variations.
https://stackoverflow.com/q/53367875
This should be close enough to what you want to accomplish but feel free to consult a web developer or customization expert if you further need to customize – https://woocommerce.com/customizations/.
Cheers.
Thank you Mirko,
Indeed, the snippet is close enough for my needs. Only problem is I’m not a programmer and have no idea how to get that code installed properly. Looks like I will be contacting a web developer.
Thanks,again
Doug Malone
Hey Doug @metasequoia12,
Using that code is fairly easy with the Code Snippets plugin that allows you to add custom PHP code to your site without directly accessing the functions.php file.
https://ww.wp.xz.cn/plugins/code-snippets/
Here is a link on how to use the Code Snippets plugin:
https://www.hardworkingnerd.com/how-to-add-a-code-snippet-to-woocommerce/
Hope this helps!
Hi there,
We haven’t heard from you in a while, so I’m going to mark this as resolved. Feel free to start a new thread if you have any more questions.
Cheers.