You can use predefined variables for the invoice email content.
You can use 3 “variables” and 1 “if condition” in your email content field. These variables and conditions are already added to your default email content and you can remove the ones that you don’t wish to use.
The variables and the if condition is 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 ID on your content. For example; #1234
{{ order.custom_invoice_name }}
: Prints the Custom Invoice name/number.
{% if order.is_draft %}If you would like to make a payment please click here.{% endif %}
:
The sentence visible between the start and end of the “if condition” is used only for draft orders. It won’t be visible in your regular invoice emails sent for your Shopify orders placed by your customers. If you send a draft order to your customer, this sentence will be visible in the email sent to your customers alongside the other content. If your customers click on the link, they will be redirected to your Shopify store to make a payment.
{% if order.financial_status == 'pending' %}You can complete payment here : {{ order.checkout_url }}{% endif %}
: The sentence visible between the start and end of the “if condition” is used only for the orders in which the financial status of the order is pending. It won’t be visible in your regular invoice emails sent for your Shopify orders placed by your customers. If you send an order with the pending financial status to your customer, this sentence will be visible in the email sent to your customers alongside the other content with the payment link. If your customers click on the link, they will be redirected to your Shopify store to make a payment.