Order Printer - Text if order above

SimonLand
New Member
2 0 0

I'm trying to set up invoice from Order Printer to add text with discount code if order is above 50 euros.

{% if order.total_price | money > 5000 %}
10%voucher
{% endif %}

 

text doesn't appear on all invoices below or aboce 50 euros... 

0 Likes
SimonLand
New Member
2 0 0

finaly got it correct:

{% if subtotal_price >= 5000  %}
         <div style="margin: 0 0 1.5em 0; padding: 0.75em; border: 1px solid black;">
         <strong>10%voucher</strong>
         </div>
         {% endif %}
0 Likes