Include automatically calculated variables

Display remaining amount to be reached in order to benefit free delivery for an abandoned basket

Hello {{ contact.firstname }}, tu y es presque ;) Encore {{ 20 | minus: order.total_price }} euros pour profiter de la livraison gratuite.  
Arrondir un nombre à l’excès : {{ 123.4567 | ceil }}r  
Arrondir un nombre à l’inférieur : {{ 123.4567 | floor }}  
Arrondir au nombre le plus proche : {{ 123.4567 | round }}

Note: 123.5 is always rounded up


Format the price of an order by replacing the “.” with a “,” and always displaying two digits after the decimal point

{% assign parts = order.total_price | split: "." %}
{% assign decimal = parts[1] | append: "00" | slice: 0, 2 %}

{{ parts[0] }},{{ decimal }} €