I’m trying to have some logic for the product prices.
I tried removing the dollar $ sign but it’s still evaluating it as a string it seems. I also couldn’t find a function to convert a string to numeric?
For example event.Price = $359 will trigger the first if statement.
{% if event.Price|find_replace:"$| " >= 400 %}
$50 discount
{% elif event.Price|find_replace:"$| " >= 150 %}
$30 discount
Thanks