{% assign lighter_gradient_color = "#00C6FF" %} {% assign darker_gradient_color = "#0072FF" %} {% capture order_id_text %}Order {{ order_name }}{% endcapture %} {% if refund_line_items.size == item_count %} {% capture email_title %}Your order has been refunded{% endcapture %} {% elsif refund_line_items.size == 0 %} {% capture email_title %}You have received a refund{% endcapture %} {% else %} {% capture email_title %}Some items in your order have been refunded{% endcapture %} {% endif %} {% capture email_body %}Total amount refunded: {{ amount | money_with_currency }}{% endcapture %} {% capture intro_text_color %}#FFFFFF{% endcapture %} {% capture view_order_link_text %}View your order →{% endcapture %} {% capture view_order_button_color %}#FFFFFF{% endcapture %} {% capture cart_items_heading_text %}Order summary{% endcapture %} {{ email_title }} {% for line in line_items %} {% if line.product.title %} {% assign line_title = line.product.title %} {% else %} {% assign line_title = line.title %} {% endif %} {% endfor %}