Apply condition to parent loop
-
Hello,
I use this plugin to display woocommerce products.
I have a loop that returns variable products and a nested loop that returns the product’s variations that have stock >0.
My problem is that if the product has no variation with stock > 0 the product still is returned. I don’t know how to make the first loop evaluate if there is any child variation with stock >0 so that then and only then the product info is displayed.
Is this possible using this plugin? Can you offer any guidance?
Thank you
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Apply condition to parent loop’ is closed to new replies.