{% assign current_date = date | date: "%b %d" %}
{% assign current_time = date | date: "%l:%M %P" %}
{% if customer.name %}
{{ customer.name }}が{{ current_date }}の{{ current_time | strip }}に、{{ name }}の注文を行いました。
{% else %}
誰かが{{ current_date }}の{{ current_time | strip }}に、{{ name }}の注文を行いました。
{% endif %}
|
|
|
注文概要
{% for line in subtotal_line_items %}
{% if line.image %}
{% endif %}
|
{% if line.quantity < line.quantity %}
{% capture line_display %} {{ line.quantity }} of {{ line.quantity }} {% endcapture %}
{% else %}
{% assign line_display = line.quantity %}
{% endif %}
{% if line.product.title == blank %}
{{ line.title }}
{% else %}
{{ line.product.title }}
{% endif %}
{% if line.quantity %}
{% if line.original_line_price != line.final_line_price %}
{{ line.original_price | money }}
{% endif %}
{{ line.final_price | money }} × {{ line.quantity }}
{% endif %}
{% if line.variant.title != 'Default Title' %}
{{ line.variant.title }}
{% if line.sku != blank %}
•
{% endif %}
{% endif %}
{% if line.sku != blank %}
SKU: {{ line.sku }}
{% endif %}
{% if line.selling_plan_allocation != nil %}
{{ line.selling_plan_allocation.selling_plan.name }}
{% endif %}
|
{% if line.final_line_price > 0 %}
{{ line.final_line_price | money }}
{% else %}
無料
{% endif %}
|
|
{% endfor %}
{% assign discount_value = 0 %}
{% for discount_application in discount_applications %}
{% if discount_application.target_selection == 'all' %}
{% assign discount_value = discount_application.total_allocated_amount %}
{% endif %}
{% endfor %}
{% if titleBold %}
小計
{% else %}
小計
{% endif %}
|
{% if valueBold %}
{{ subtotal_price | plus: discount_value | money }}
{% else %}
{{ subtotal_price | plus: discount_value | money }}
{% endif %}
|
{% 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 %}
{% if titleBold %}
ディスカウント
{% else %}
ディスカウント
{% endif %}
{% if discount_title.size > 0 %}({{ discount_title | strip }}){% endif %}
|
{% if valueBold %}
-{{ discount_application.total_allocated_amount | money }}
{% else %}
-{{ discount_application.total_allocated_amount | money }}
{% endif %}
|
{% endif %}
{% endfor %}
{% if delivery_method == 'pick-up' %}
{% if titleBold %}
受取
{% else %}
受取
{% endif %}
|
{% if valueBold %}
{{ shipping_price | money }}
{% else %}
{{ shipping_price | money }}
{% endif %}
|
{% else %}
{% if titleBold %}
配送
{% else %}
配送
{% endif %}
{% if shipping_method.title.size > 0 %}({{ shipping_method.title }}){% endif %}
|
{% if valueBold %}
{{ shipping_price | money }}
{% else %}
{{ shipping_price | money }}
{% endif %}
|
{% endif %}
{% for tax_line in tax_lines %}
{% if titleBold %}
税
{% else %}
税
{% endif %}
{% if tax_line.title.size > 0 %}({{ tax_line.title }} {{ tax_line.rate | times: 100 }}%){% endif %}
|
{% if valueBold %}
{{ tax_line.price | money }}
{% else %}
{{ tax_line.price | money }}
{% endif %}
|
{% endfor %}
{% if titleBold %}
合計
{% else %}
合計
{% endif %}
|
{% if valueBold %}
{{ total_price | money_with_currency }}
{% else %}
{{ total_price | money_with_currency }}
{% endif %}
|
|
|
|
{% if gateway %}
{% endif %}
{% if requires_shipping and shipping_address %}
{% if shipping_methods.first %}
配達方法
{% for shipping_method in shipping_methods %}
{{ shipping_method.title }}
{% endfor %}
|
{% endif %}
配送先住所
{{ shipping_address.name }}
{{ shipping_address.street }}
{{ shipping_address.city }},
{{ shipping_address.province }}
{{ shipping_address.zip }}
{{ shipping_address.country }}
{{ shipping_address.phone }}
|
{% endif %}
配送希望日時
{% 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 -%}
|
|
|