is it possible to do so that in the admin panel in the product view make it so that the number of available products for each variant is displayed as in the example below?:
I have absolutely no idea how to do that. I will be grateful for your help
is it possible to do so that in the admin panel in the product view make it so that the number of available products for each variant is displayed as in the example below?:
I have absolutely no idea how to do that. I will be grateful for your help
2
Answers
Add the code in your active theme functions.php file.
First create new column using the filter
manage_edit-product_columns
After that using
manage_product_posts_custom_column
action you can pull the data you want.Code goes in the functions.php of your theme or child theme. Tested and works.