Woocommerce Variable Product on Query Loop

Hello, I want to ask about the query loop for variable products.

I want to display “only product on sale” with a query loop, and it perfectly works when I use “_sale_price” on meta query except for variable product, how to display variable product on this query loop too?

thank you

bump please, anyone?

Haven’t tested it but maybe try adding another meta query that checks for


Maybe this stack overflow thread helps in figuring out what’s needed wordpress - WooCommerce: Display ONLY on-sale products in Shop - Stack Overflow


Did you find a soution to display variable product on sale with a querry ?