We typically capture two prices against a product:
Unit Price (UP)
Regular Unit Price (RUP)
โRegular Unit Price could be the Recommended Retail Price value, but it is typically the Was price. If you compare it to the Unit Price you can identify discounted products and treat them differently.
In the example below, we use the unit values to allow us to compare the figures.
If the Regular Unit Price is greater than the Unit Price we show the Regular Unit Price as the Was price with a line through it, then the Now price:
{% if product.ruv and (product.ruv > product.uv) %}
Was<br><span style="text-decoration:line-through;">{{ product.ruv|format_currency(cart.curr,2) }}</span><br>
Now<br><span style="color:#cc2222;">{{ product.uv|format_currency(cart.curr,2) }}</span>
{% else %}
{{ product.uv|format_currency(cart.curr,2) }}
{% endif %}
If the prices match, we simply show the current price.