NO BUG: Condition based on product price does not work well

Browser: Chrome (new)
OS: macOS / Windows / Linux / etc.
URL: Link to a page that illustrates this issue

Hi,

I want to display a badge for products with a price less than $50 in the query loop. Therefore, I set the following condition.

condition

This works well. But the problem is that it displays the desired bagde for all variable products. In fact, it also displays variable products as products with a price of less than $20. While their price is more than $20.

Hi Jolia,

A variable product has no regular price/it is empty. This condition should work in your case:

Best,
timmse

1 Like

hello @timmse,

I apologize for forgetting to reply. But there still seems to be a problem. If I set a condition like below, the desired badge will be displayed exactly for products with a price of $35.

{woo_product_price:value}
==
35

But if we want to display the badge for products with a price less than or more than $35, it doesn’t work and displays the badge for all products. Based on the following condition:

{woo_product_price:value}
<
35