{% capture email_title %}ご購入いただきありがとうございました! {% endcapture %}
{% capture email_body %}
{% if requires_shipping %}
{% case delivery_method %}
{% when 'pick-up' %}
注文の受取の準備が整うと、メールが届きます。
{% when 'local' %}
{{ customer.last_name }}様、ご注文の品を配達する準備を行っております。
{% else %}
{{ customer.last_name }}様、ご注文いただき、誠にありがとうございます。注文の発送準備を行なっております。商品が発送されましたら、Eメールにてお知らせいたします。
{% endcase %}
{% if delivery_instructions != blank %}
{{ email_title }}
{{ email_body }}
{% if order_status_url %}
|
{% if shop.url %}
{% endif %}
|
{% else %}
{% if shop.url %}
{% endif %}
{% endif %}
|
|
{% assign gift_card_line_item = line_items | where: "gift_card" %}
{% if gift_card_line_item.first %}
{% endif %}
{% for line in subtotal_line_items %}
{% if line.image %}
{% endif %}
|
{% if line.product.title %}
{% assign line_title = line.product.title %}
{% else %}
{% assign line_title = line.title %}
{% endif %}
{% if line.quantity < line.quantity %}
{% capture line_display %} {{ line.quantity }} of {{ line.quantity }} {% endcapture %}
{% else %}
{% assign line_display = line.quantity %}
{% endif %}
{{ line_title }} × {{ line_display }}
{% if line.variant.title != 'Default Title' %}
{{ line.variant.title }}
{% endif %}
{% if line.selling_plan_allocation %}
{{ line.selling_plan_allocation.selling_plan.name }}
{% endif %}
{% if line.refunded_quantity > 0 %}
返金済み
{% endif %}
{% if line.discount_allocations %}
{% for discount_allocation in line.discount_allocations %}
{% if discount_allocation.discount_application.target_selection != 'all' %}
{{ discount_allocation.discount_application.title | upcase }}
(-{{ discount_allocation.amount | money }})
{% endif %}
{% endfor %}
{% endif %}
|
{% if line.original_line_price != line.final_line_price %}
{{ line.original_line_price | money }}
{% endif %}
{% if line.final_line_price > 0 %}
{{ line.final_line_price | money }}
{% else %}
無料
{% endif %}
|
|
{% endfor %}
|
{% for discount_application in discount_applications %}
{% if discount_application.target_selection == 'all' %}
{% capture discount_title %}
{% if discount_application.title %}
{{ discount_application.title | upcase }}
{% else %}
ディスカウント
{% endif %}
{% endcapture %}
ディスカウント
{{ discount_title }}
|
-{{ discount_application.total_allocated_amount | money }}
|
{% endif %}
{% endfor %}
小計
|
{{ subtotal_price | money }}
|
{% if delivery_method == 'pick-up' %}
受取
|
{{ shipping_price | money }}
|
{% else %}
配送
|
{{ shipping_price | money }}
|
{% endif %}
{% if total_duties %}
関税
|
{{ total_duties | money }}
|
{% endif %}
税金合計
|
{{ tax_price | money }}
|
{% if total_tip and total_tip > 0 %}
Tip
|
{{ total_tip | money }}
|
{% endif %}
{% assign transaction_size = 0 %}
{% assign transaction_amount = 0 %}
{% for transaction in transactions %}
{% unless transaction.kind == "capture" or transaction.kind == "void" %}
{% assign transaction_size = transaction_size | plus: 1 %}
{% assign transaction_amount = transaction_amount | plus: transaction.amount %}
{% endunless %}
{% endfor %}
{% if payment_terms %}
{% assign due_at_date = payment_terms.next_payment.due_at | date: "%b %d, %Y" %}
支払合計 (本日)
|
{{ transaction_amount | money_with_currency }}
|
支払合計期限: {{ due_at_date }}
|
{{ payment_terms.next_payment.amount_due | money_with_currency }}
|
{% else %}
合計
|
{{ total_price | money_with_currency }}
|
{% endif %}
{% if total_discounts > 0 %}
割引 {{ total_discounts | money }}
{% endif %}
{% unless payment_terms %}
{% if transaction_size > 1 or transaction_amount < total_price %}
|
|
{% for transaction in transactions %}
{% if transaction.status == "success" and transaction.kind == "authorization" or transaction.kind == "sale" %}
{% if transaction.payment_details.credit_card_company %}
{% capture transaction_name %}{{ transaction.payment_details.credit_card_company }} (カード番号下4桁: {{ transaction.payment_details.credit_card_last_four_digits }}){% endcapture %}
{% else %}
{% capture transaction_name %}{{ transaction.gateway_display_name }}{% endcapture %}
{% endif %}
{{transaction_name}}
|
{{ transaction.amount | money }}
|
{% endif %}
{% if transaction.kind == 'refund' %}
{% if transaction.payment_details.credit_card_company %}
{% assign refund_method_title = transaction.payment_details.credit_card_company %}
{% else %}
{% assign refund_method_title = transaction.gateway %}
{% endif %}
返金
{{ refund_method_title | capitalize }}
|
- {{ transaction.amount | money }}
|
{% endif %}
{% endfor %}
{% endif %}
{% endunless %}
|
|
|
{% if requires_shipping and shipping_address %}
配送先住所
{{ shipping_address | format_address }}
|
{% endif %}
{% if billing_address %}
請求先住所
{{ billing_address | format_address }}
|
{% endif %}
{% if requires_shipping and shipping_address %}
配送方法
{{ shipping_method.title }}
|
配送希望日時
{% if attributes.ngcShippingDate %}
配送希望日
{{attributes.ngcShippingDate}}
{%- elsif attributes["配送希望日"] -%}
配送希望日
{{attributes["配送希望日"]}}
{% endif %}
{%- assign shippingTime = '' -%}
{%- if attributes.ngcShippingTime -%}
{%- assign shippingTime = attributes.ngcShippingTime -%}
{%- elsif attributes["配送希望時間"] -%}
{%- assign shippingTime = attributes["配送希望時間"] -%}
{%- endif -%}
{%- if shippingTime != '' -%}
配送希望時間
{% case shippingTime %}
{% when '0812' %}
午前中
{% when '1214' %}
12~14時
{% when '1416' %}
14~16時
{% when '1618' %}
16~18時
{% when '1820' %}
18~20時
{% when '2021' %}
20~21時
{% when '1921' %}
19~21時
{% else %}
{{ shippingTime }}
{% endcase %}
{%- endif -%}
|
{% endif %}
{% assign transaction_count = transactions | size %}
{% if transaction_count > 0 %}
決済方法
{% for transaction in transactions %}
{% if transaction.status == "success" or transaction.status == "pending" %}
{% if transaction.kind == "authorization" or transaction.kind == "sale" %}
{% if transaction.payment_details.credit_card_company %}
{{ transaction.payment_details.credit_card_last_four_digits }}で終わる — {{ transaction.amount | money }}
{% elsif transaction.gateway_display_name == "Gift card" %}
{{ transaction.payment_details.gift_card.last_four_characters | upcase }}で終わる — {{ transaction.amount | money }}
ギフトカード残高: {{ transaction.payment_details.gift_card.balance | money }}
{% else %}
{{ transaction.gateway_display_name }} — {{ transaction.amount | money }}
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
|
{% endif %}
|
|
|