You can use predefined variables in the invoice email content.
In your email content field, you can utilize four “variables” and two “if conditions.” These variables and conditions are already included in your default email content, and you have the flexibility to remove any that you do not wish to use.
The variables and the if condition are as follows:
{{ order.customer.first_name }}
: Prints your customer’s name.
{{ order.customer.last_name }}
: Prints your customer’s last name.
{{order.name}}
: Prints your Shopify order number on your content. For example; #1234
{{ order.custom_invoice_name }}
: Prints the custom invoice number.
{% if order.is_draft %}If you would like to make a payment please click here.{% endif %}
:
The text enclosed within the “if condition” is only used for draft orders. It will not appear in the regular invoice emails sent for orders placed by customers on your Shopify store. However, if you send a draft order to a customer, this text will be included in the email alongside the other content. When customers click on the provided link, they will be redirected to your Shopify store to complete the payment.
{% if order.financial_status == 'pending' %}You can complete payment here : {{ order.checkout_url }}{% endif %}
:
The text enclosed within the “if condition” is only used for orders with a pending financial status. It will not appear in the regular invoice emails sent for completed orders placed by customers on your Shopify store. If you send an order with a pending financial status to a customer, this text will be included in the email alongside the other content. When customers click on the link, they will be redirected to your Shopify store to make a payment.