Browser: Chrome new OS: macOS / Windows / Linux / etc. URL: Link to a page that illustrates this issue
Hi,
If we use {woo_product_stock:value} to display the stock quantity in queru loop, it will display the total number of variables in the variable products. Now, if we display the order of products based on _stock in the query loop, it will display the variable products at the end of the list.
Please see this link. Here, iphone 15 pro is a variable product and the total stock quantity of its variables is 7 (Black 3 + Gold 0 + Green 4 = 7 ).
In the link above, I have sorted the products by _stock - descending. But as you can see, the variable product is at the end of the product list. While it should be first. Am I doing something wrong?