Get the stock of a single product. The Management Method
of your inventory has to be set to As a single product
.
{{ stock }}
Get the stock of a product variant. The Management Method
of your inventory has to be set to By product variation
.
{{ variants }}{{ stock }}{{ /variants }}