Hi Quentin,
If the product stock quantity is “0”, the {woo_product_stock} dynamic data tag shows “Out of stock” instead of “0”, so comparing it against “0” doesn’t work.
You can use “Contains” » “Out of stock” or “Does not contain” » “Out of stock”, which seems to work fine in my tests.
Stumbled upon this old topic from search. Thank you for the fix. For me, 1:1 this didn’t work, but using just the word “Out” in place of “Out of stock”, works!
Note that I added :value at the end, so Dynamic data looks like this: {woo_product_stock:value}, then in the last field, just compare to whatever number you want.
In my case, it will show the element if the stock is equal to 1.
{woo_product_stock:value} works for both simple and variable products.
But I can never work with {woo_product_stock_status}. While it should support “Out of stock” or “In stock” values. But it still doesn’t work. What is actually the use of {woo_product_stock_status}?