Price conditions on WC single page

Hi,

I use a Global Block on WC single page but I need it to display it only if the product price is greater than or equal to 300. I tried to do it with Conditions, so I choosed String as a Condition Group and selected {{dc:woocommerce:product_price}} as query but String does not have Comparison Operators like >= ( greater than or equal to ), so I am confused with using this condition.

Any guidance would be appreciated.
Omid

Hello Omid,

Thanks for writing to us.

You need to select the Number in the condition and your condition would be like this. Please have a look at the given screenshot below.

{{dc:woocommerce:product_price}} >= 200

Tesxproduct-Layout-Builder-Pro

Please feel free to change the integer value as per your need.

Hope it helps
Thanks

1 Like

Thank you @prakash_s! It works but there is an unusual behavior on my website. I found when I enter 200 in condition area then it will interpret as 200,000 on calculations. Let’s assume I need a condition for prices greater than 200; then I should enter 0.2 as criterion of condition:
{{dc:woocommerce:product_price}} > 0.2

Is it a bug or kinda conflict?

Hello @omid020,

We cannot replicate the issue. There could be a plugin or a custom code that causes the issue on your site. By the way have tested the condition on our local test server and it is working perfectly. Check out the screenshots below.

Best Regards.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.