{% if not is_subscription_dunning_cancellation and not is_subscription_dunning_reminder and not is_expiring_payment_reminder %}
{% endif %}
|
{% if is_order %}
{{ config.lang.email_html_message_order|replace({
'{{ config.store_domain }}': config.store_domain
})|raw }}
{% elseif is_subscription_dunning_reminder %}
{% set sub = subscriptions|first %}
{% if sub %}
{{ config.lang.email_html_message_subscription_dunning_reminder|replace({
'{{ sub_token_url }}': sub.sub_token_url
})|replace(
{
'{{ days_since_first_failed_transaction }}': days_since_first_failed_transaction
})|raw }}
{% endif %}
{% elseif is_expiring_payment_reminder %}
{{ config.lang.email_html_message_expiring_payment_reminder|replace({
'{{ billing_address.first_name }}': billing_address.first_name
})|replace({
'{{ billing_address.last_name }}': billing_address.last_name
})|replace({
'{{ cc_exp_year }}': cc_exp_year
})|replace({
'{{ cc_exp_month }}': cc_exp_month
})|replace({
'{{ config.store_domain }}': config.store_domain
})|replace({
'{{ customer_email }}': customer_email
})|raw }}
{% elseif is_updateinfo %}
{{ config.lang.email_message_updateinfo|replace({
'{{ config.store_domain }}': config.store_domain
})|raw }}
{% elseif is_subscription_modification %}
{{ config.lang.email_message_subscription_modification|raw }}
{% elseif is_subscription_cancel %}
{% if is_subscription_dunning_cancellation %}
{{ config.lang.email_message_subscription_dunning_cancel|raw }}
{% else %}
{{ config.lang.email_message_subscription_cancel|raw }}
{% endif %}
{% endif %}
{% if status == 'pending' and is_show_additional_payment_data %}
{{ config.lang.email_paypal_plus_pui|raw }}
{% endif %}
{% if payment_is_authorized %}
{{ config.lang.receipt_message_authorized|raw }}
{% endif %}
|
{% if has_downloadables and is_subscription_cancel == false %}
{% endif %}
{% if not is_expiring_payment_reminder %}
{% if not is_subscription_dunning_cancellation and not is_subscription_dunning_reminder %}
{% if not is_updateinfo %}
{{ config.lang.email_html_order_summary|raw }}
|
{% endif %} {# is not update info #}
{{ config.lang.checkout_merchant|raw }}
{{ config.store_name }}
{% if is_order %}
{{ config.lang.email_order_number|raw }}
{% else %}
{{ config.lang.email_reference_number|raw }}
{% endif %}
{{ order_id }}
{{ config.lang.checkout_date|raw }}
{{ checkout_date }}
|
{% if (payment_type == 'plastic' or payment_type == 'pos') and cc_number_masked %}
{{ config.lang.checkout_payment_method|raw }}
{{ cc_number_masked }} {% if cc_type|lower in ['amex','discover', 'maestro', 'mastercard', 'solo', 'switch', 'visa'] %}  {% endif %}
{% endif %}
{% if purchase_order %}
{{ config.lang.checkout_purchase_order|raw }}
{{ purchase_order }}
{% endif %}
{% if shipping_address.has_shippable_products and not has_multiship %}
{{ config.lang.email_shipping|raw }}
{{ shipping_address.shipping_service_description|raw }}
{% endif %}
{% if is_order %}
{{ config.lang.cart_order_total|raw }}
{{ total_order|money_format }}
{% endif %}
{{ config.lang.checkout_processor_response|raw }}
{{ processor_response|raw }}
{% if has_visible_custom_fields %}
{# {{ config.lang.checkout_additional_information|raw }} #}
{% for key,custom_field in custom_fields %}
{% if not custom_field.is_hidden %}
{{ key|replace({'_': ' '})|title }}: {{ custom_field.value }}
{% endif %}
{% endfor %}
{% endif %}
|
|
{% endif %} {# is_subscription_dunning_reminder #}
{% if not has_multiship %}
{% if shipping_address.has_shippable_products %}
{% endif %}
{% else %}
{% endif %}
{% if subscriptions|length > 0 and not is_subscription_cancel %}
{{ config.lang.email_html_manage_subscriptions|raw }}
|
|
{{ config.lang.email_html_subscription_instructions|raw }}
|
{% for subscription in subscriptions %}
-
{{ subscription.description }}
{{ subscription.html_links|raw }}
{% endfor %}
|
{% endif %}
{% if items|length > 0 and not is_updateinfo %}
{{ config.lang.cart_items|raw }}
|
|
{{ config.lang.cart_item|raw }} |
{{ config.lang.cart_price }} |
{{ config.lang.cart_qty|raw }} |
{{ config.lang.cart_total|raw }} |
| {{ config.lang.cart_subtotal|raw }}: |
{% if has_inclusive_taxes %}
{{ total_item_with_tax_price|money_format }}
{% else %}
{{ total_item_price|money_format }}
{% endif %}
|
{% if shipping_address.has_shippable_products %}
| {{ config.lang.cart_shipping_and_handling|raw }} |
{% if has_inclusive_taxes %}
{{ total_shipping_with_tax|money_format }}
{% else %}
{{ total_shipping|money_format }}
{% endif %}
|
{% elseif total_shipping > 0 %}
| {{ shipping_and_handling_label|raw }} |
{% if has_inclusive_taxes %}
{{ total_shipping_with_tax|money_format }}:
{% else %}
{{ total_shipping|money_format }}:
{% endif %}
|
{% endif %}
{% if has_multiship %}
|
{% if has_inclusive_taxes %}
{{ config.lang.cart_inclusive_tax|raw }}:
{% else %}
{{ config.lang.cart_tax|raw }}:
{% endif %}
|
{{ total_tax|money_format }}
|
{% else %}
{% for tax in shipping_address.taxes %}
{% if tax.rate is null %}
{% set tax_rate = '' %}
{% else %}
{% set tax_rate = ' (%)' %}
{% endif %}
|
{{ tax.name }}{{ tax_rate|raw }}:
|
{{ tax.amount|money_format }}
|
{% endfor %}
{% endif %}
{% for key,coupon_data in coupons %}
{% if coupon_data is not array %}
{% set coupon_data = [coupon_data] %}
{% endif %}
{% set coupon_code = key %}
{% for i, coupon in coupon_data %}
|
{{ coupon.name }}: {{ coupon_code }}
|
{{ coupon.display }} |
{% endfor %}
{% endfor %}
{% for key,gift_card_data in gift_cards %}
{% if gift_card_data is not array %}
{% set gift_card_data = [gift_card_data] %}
{% endif %}
{% set gift_card_code = key %}
{% for i, gift_card in gift_card_data %}
|
{{ gift_card.name }}: {{ gift_card_code }}
|
{{ gift_card.amount|money_format }} |
{% endfor %}
{% endfor %}
| {{ config.lang.cart_order_total|raw }}: |
{{ total_order|money_format }} |
{% for item in items %}
{% if has_multiship and item.multiship != "-1" %}
| {{ config.lang.cart_shipto|raw }}{{ item.shipto }} |
{% endif %}
{% if item.image %}
{% if item.url %}{% endif %}
{% if item.url %}{% endif %}
{% endif %}
|
{{ item.name }}
{# Begin block product_options from cart.inc.twig, inlined here to allow for inline CSS #}
{% set show_product_options = true %}
{% set show_product_weight = true %}
{% set show_product_category = true %}
{% set show_product_code = true %}
{% set show_sub_frequency = true %}
{% set show_sub_startdate = true %}
{% set show_sub_nextdate = true %}
{% set show_sub_enddate = true %}
{% set hidden_product_options = [] %}
{% if config.template_config.cart_display_config.usage != "none" %}
{% set show_product_options = config.template_config.cart_display_config.show_product_options %}
{% set show_product_weight = config.template_config.cart_display_config.show_product_weight %}
{% set show_product_category = config.template_config.cart_display_config.show_product_category %}
{% set show_product_code = config.template_config.cart_display_config.show_product_code %}
{% set show_sub_frequency = config.template_config.cart_display_config.show_sub_frequency %}
{% set show_sub_startdate = config.template_config.cart_display_config.show_sub_startdate %}
{% set show_sub_nextdate = config.template_config.cart_display_config.show_sub_nextdate %}
{% set show_sub_enddate = config.template_config.cart_display_config.show_sub_enddate %}
{% set hidden_product_options = config.template_config.cart_display_config.hidden_product_options %}
{% endif %}
{% if item.options|length == 0 and item.code == '' and item.category == 'DEFAULT' and item.weight == 0 and item.sub_frequency == '' %}
{% set show_product_options = false %}
{% endif %}
{% if show_product_options %}
{% for option in item.options %}
{% if (option.name|lower not in hidden_product_options) and (option.class|lower not in hidden_product_options) %}
-
{{ option.name }}:
{{ option.value }}
{% endif %}
{% endfor %}
{% if item.code and show_product_code %}
-
{{ config.lang.cart_code|raw }}:
{{ item.code }}
{% endif %}
{% if item.category != 'DEFAULT' and show_product_category %}
-
{{ config.lang.cart_category|raw }}:
{{ item.category }}
{% endif %}
{% if item.weight != 0 and show_product_weight %}
-
{{ config.lang.cart_weight|raw }}:
{{ item.weight }} {{ weight_uom }}
{% endif %}
{% if item.sub_frequency and (show_sub_frequency or show_sub_nextdate or show_sub_startdate or show_sub_enddate) %}
-
{{ config.lang.cart_subscription_details|raw }}
{% if show_sub_frequency %}
-
{{ config.lang.cart_frequency|raw }}:
{{ item.sub_frequency }}
{% endif %}
{% if show_sub_startdate %}
-
{{ config.lang.cart_start_date|raw }}:
{{ item.sub_startdate }}
{% endif %}
{% if show_sub_nextdate and item.sub_enddate != item.sub_nextdate and (item.sub_enddate == "0000-00-00" or (item.sub_enddate != "0000-00-00" and item.sub_enddate > item.sub_nextdate)) %}
-
{{ config.lang.cart_next_date|raw }}:
{{ item.sub_nextdate }}
{% endif %}
{% if show_sub_enddate and item.sub_enddate != "0000-00-00" %}
-
{{ config.lang.cart_end_date|raw }}:
{{ item.sub_enddate }}
{% endif %}
{% endif %}
{% endif %}
{# End block product_options #}
|
{% if has_inclusive_taxes %}
{% set item_price_each = item.price_each_with_tax %}
{% set item_price = item.price_with_tax %}
{% else %}
{% set item_price_each = item.price_each %}
{% set item_price = item.price %}
{% endif %}
{% if item.quantity > 1 %}{{ item_price_each|money_format }} ×{% endif %} |
{{ item.quantity }} |
{{ item_price|money_format }} |
{% endfor %}
{% endif %}
{% if has_future_products %}
{# Begin block future_products from cart.inc.twig #}
{% if future_subscription_totals_by_date|length > 0 %}
{% if future_subscription_totals_by_date|length > 1 %}
{{ config.lang.cart_future_charges|raw }}
{% else %}
{{ config.lang.cart_future_charge|raw }}
{% endif %}
{% endif %}
{% set has_future_subscription_details = false %}
{% if future_subscription_totals_by_date|length > 0 and (has_future_shipping or future_coupons|length > 0 or has_future_taxes) %}
{% set has_future_subscription_details = true %}
{% endif %}
{% for key, subscription_item_total in future_subscription_totals_by_date %}
-
| {{ key|date("F jS, Y") }} |
{{ subscription_item_total.total|money_format }} |
{% if has_future_subscription_details %}
| {{ config.lang.cart_subtotal|raw }}: |
{{ subscription_item_total.total_item_price|money_format }} |
{% for key,coupon in future_coupons %}
| {{ coupon.name }}: {{ key }} |
{{ coupon.display }} |
{% endfor %}
{% if has_future_shipping %}
| {{ shipping_address.future_shipping_service_description }}: |
{{ subscription_item_total.total_shipping|money_format }} |
{% endif %}
{% if has_future_taxes %}
| {{ config.lang.cart_tax|raw }}: |
{{ subscription_item_total.total_tax|money_format }} |
{% endif %}
| {{ config.lang.cart_total|raw }}: |
{{ subscription_item_total.total|money_format }} |
{% endif %}
{% endfor %}
|
{% endif %}
{% if transaction_history_data %}
{{ config.lang.receipt_transaction_history|raw }}
|
{% for historical_data in transaction_history_data %}
{% set action = historical_data.request_type|split('_')[1] %}
{% set amount = historical_data.amount|money_format ~ " " ~ (action|capitalize) %}
{% if action in ['refund', 'void'] %}
{% set amount = "" ~ amount ~ "" %}
{% endif %}
-
{{ historical_data.date }}: {{ amount|raw }} ({{ historical_data.processor_response }})
{% endfor %}
|
{% endif %} {# transaction_history_data #}
{% endif %} {# is_expiring_payment_reminder #}
{% if processor_response_details %}
{% for detail in processor_response_details %}
{% endfor %}
{% endif %}
|
|