Hi There,
I have a question because my developer is on holiday.
I have a custom made metric for our invoices. And would like to change the lay out of the invoice. Because it doesn’t look good.
At this moment I have the following lay out:

I would like to change it into a 3 table view. And want to have the original price and selling price in one column. And the original price with a strike through when there is a discount.
Now I’ve found the following code.
{% if item.compare_at_price %}<s>{% currency_format item.compare_at_price|floatformat:2 %}</s>{% else %} {% endif %} Price: {% currency_format item.line_price|floatformat:2 %}
I’ve tried to change with my event lines. But it doesn’t work out as it should be. Because he’s only showing the price with the discount. And not the original price. Can you see what I’m doing wrong?
Code I’ve created
{% if event.product_price_regular %}<s>{% currency_format event.line_total|floatformat:2 %}</s>{% else %} {% endif %} Price: {% currency_format event.line_total|floatformat:2 %}

Thank you.
Regards a html newbee