{% assign lighter_gradient_color = "#00C6FF" %} {% assign darker_gradient_color = "#0072FF" %} {% capture email_title %}Your order has been canceled{% endcapture %} {% capture email_body %} Order {{ name }} was canceled {% case cancel_reason %} {% when 'customer' %} at your request {% when 'inventory' %} because we did not have enough stock to fulfill your order {% when 'fraud' %} because we suspect it is fraudulent {% when 'other' %} due to unforeseen circumstances {% endcase %} {% if financial_status == 'voided' %} and your payment has been voided. {% elsif financial_status == 'refunded' %} and your payment has been refunded. {% endif %} {% endcapture %} {% capture intro_text_color %}#FFFFFF{% endcapture %} {% capture cart_items_heading_text %}Refunded items{% 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 %}