I have found how to add Sold out in variable drop down in Woocommerce what I want to do is to place the number of stock beside the variable.
SIZE – Dropdown
X – 1 in stock
M – out of stock
L – 3 in stock
Like on the image: drop down with number of stock
This link is for the sold out stock inside the variables but i cannot find for number of stock.
https://www.skyverge.com/blog/add-sold-out-to-woocommerce-variable-product-dropdow/
Thank you for reading this, and help me.
Read more here: Add ‘Number of stock’ to WooCommerce Variable Product Dropdown