Please help: Order confirmation email with the site credit

New Member
1 0 0

Hi community,

I'm trying to customize the order confirmation - we have our own site credit system so "total_price" should be further deducted with site credit used on the receipt on the order confirmation.

Do you know how I can subtract the value of {{ attributes.credits }} from {{ total_price }} to show the total amount? Or if you know the variable for "Paid by Customer" I believe that will also work! Thank you so much!

AS-IS ------

{% if attributes.credits %}
<strong>Credits used:</strong> -${{ attributes.credits }}
<br />
{% endif %}<strong>Total:</strong> {{ total_price|money }} {% else %} {% endif %}