2023/06/20更新
+ 更新した行
- 削除した行
Google Analytics 4 連携
設定方法はFAQ: Google Tag Managerを利用したGoogle Analytics 4へのデータ連携 (opens in a new tab) をご確認ください。
layout > 購入(レイアウト)/ layout > 購入以外(レイアウト)
layouts/ec_force/shop/order.html.liquid
layouts/ec_force/shop/order.html+smartphone.liquid
layouts/ec_force/shop.html.liquid
layouts/ec_force/shop.html+smartphone.liquid
※以下の変更をする前に読み込み用のshared_partialファイル ( shared_partial> body_google_tag_manager , shared_partial > head_google_tag_manager ) の作成が必要です。
<!-- metaタグや外部CSS/JSの読み込み等で使用する -->
{% include 'ec_force/shop/shared/header.html' %}
+ <!-- Google Tag Managerを利用するときにタグとデータレイヤーの出力に使用する -->
+ {% include 'ec_force/shop/shared/head_google_tag_manager.html' %}
+
<!-- ショップ共通タグ (header 要素の最後に追加) -->
{{ 'header_append' | shop_shared_tag }}
<body>
+ <!-- Google Tag Managerを利用するときにnoscriptタグの出力に使用する -->
+ {% include 'ec_force/shop/shared/body_google_tag_manager.html' %}
+
<!-- ショップ共通タグ (body 要素の最初に追加) -->
{{ 'body_prepend' | shop_shared_tag }}
shared_partial > body_google_tag_manager(shared_partial)
ec_force/shop/shared/_body_google_tag_manager.html.liquid
ec_force/shop/shared/_body_google_tag_manager.html+smartphone.liquid
※新規追加ファイルです。
shared_partial > head_google_tag_manager(shared_partial)
ec_force/shop/shared/_head_google_tag_manager.html.liquid
ec_force/shop/shared/_head_google_tag_manager.html+smartphone.liquid
※新規追加ファイルです。
郵便番号の桁数が不足しているときにエラーを出す
cart > 請求先住所(部分テンプレート)
ec_force/shop/orders/_view_billing_information.html.liquid
ec_force/shop/orders/_view_billing_information.html+smartphone.liquid
<label>郵便番号</label>
{% if shop_form_settings['zip_1_field'] %}
<span>〒</span>
- <input type="text" class='validate[required,custom[integer]]' id='order_billing_address_attributes_zip01' maxlength='7' name='order[billing_address_attributes][zip01]' autocomplete="postal-code" value='{% if order.billing_address %}{{ order.billing_address.full_zip }}{% else %}{{ order.customer.billing_address.full_zip }}{% endif %}'>
+ <input type="tel" class='validate[required,custom[integer],minSize[7]]' id='order_billing_address_attributes_zip01' maxlength='7' name='order[billing_address_attributes][zip01]' autocomplete="postal-code" value='{% if order.billing_address %}{{ order.billing_address.full_zip }}{% else %}{{ order.customer.billing_address.full_zip }}{% endif %}'>
{% else %}
<span>〒</span>
- <input type="text" class='validate[required,custom[integer]]' id='order_billing_address_attributes_zip01' maxlength='3' name='order[billing_address_attributes][zip01]' autocomplete="postal-code" value='{% if order.billing_address %}{{ order.billing_address.zip01 }}{% else %}{{ order.customer.billing_address.zip01 }}{% endif %}'>
+ <input type="tel" class='validate[required,custom[integer],minSize[3]]' id='order_billing_address_attributes_zip01' maxlength='3' name='order[billing_address_attributes][zip01]' autocomplete="postal-code" value='{% if order.billing_address %}{{ order.billing_address.zip01 }}{% else %}{{ order.customer.billing_address.zip01 }}{% endif %}'>
<span>−</span>
- <input type="text" class='validate[required,custom[integer]]' id='order_billing_address_attributes_zip02' maxlength='4' name='order[billing_address_attributes][zip02]' autocomplete="none" value='{% if order.billing_address %}{{ order.billing_address.zip02 }}{% else %}{{ order.customer.billing_address.zip02 }}{% endif %}'>
+ <input type="tel" class='validate[required,custom[integer],minSize[4]]' id='order_billing_address_attributes_zip02' maxlength='4' name='order[billing_address_attributes][zip02]' autocomplete="none" value='{% if order.billing_address %}{{ order.billing_address.zip02 }}{% else %}{{ order.customer.billing_address.zip02 }}{% endif %}'>
{% endif %}
</div>
cart > お届け先住所(部分テンプレート)
ec_force/shop/orders/_view_shipping_information.html.liquid
ec_force/shop/orders/_view_shipping_information.html+smartphone.liquid
<label>郵便番号</label>
{% if shop_form_settings['zip_1_field'] %}
<span>〒</span>
- <input type="tel" class="validate[required,custom[integer]]" id="order_shipping_address_attributes_zip01" maxlength="7" name="order[shipping_address_attributes][zip01]" autocomplete="postal-code" value="{% if order.shipping_address %}{{ order.shipping_address.full_zip }}{% else %}{{ order.customer.shipping_address.full_zip }}{% endif %}">
+ <input type="tel" class="validate[required,custom[integer],minSize[7]]" id="order_shipping_address_attributes_zip01" maxlength="7" name="order[shipping_address_attributes][zip01]" autocomplete="postal-code" value="{% if order.shipping_address %}{{ order.shipping_address.full_zip }}{% else %}{{ order.customer.shipping_address.full_zip }}{% endif %}">
{% else %}
<span>〒</span>
- <input type="tel" class="validate[required,custom[integer]]" id="order_shipping_address_attributes_zip01" maxlength="3" name="order[shipping_address_attributes][zip01]" autocomplete="postal-code" value="{% if order.shipping_address %}{{ order.shipping_address.zip01 }}{% else %}{{ order.customer.shipping_address.zip01 }}{% endif %}">
+ <input type="tel" class="validate[required,custom[integer],minSize[3]]" id="order_shipping_address_attributes_zip01" maxlength="3" name="order[shipping_address_attributes][zip01]" autocomplete="postal-code" value="{% if order.shipping_address %}{{ order.shipping_address.zip01 }}{% else %}{{ order.customer.shipping_address.zip01 }}{% endif %}">
<span>−</span>
- <input type="tel" class="validate[required,custom[integer]]" id="order_shipping_address_attributes_zip02" maxlength="4" name="order[shipping_address_attributes][zip02]" autocomplete="none" value="{% if order.shipping_address %}{{ order.shipping_address.zip02 }}{% else %}{{ order.customer.shipping_address.zip01 }}{% endif %}">
+ <input type="tel" class="validate[required,custom[integer],minSize[4]]" id="order_shipping_address_attributes_zip02" maxlength="4" name="order[shipping_address_attributes][zip02]" autocomplete="none" value="{% if order.shipping_address %}{{ order.shipping_address.zip02 }}{% else %}{{ order.customer.shipping_address.zip01 }}{% endif %}">
{% endif %}
auth > 会員ログイン/会員登録画面, 会員登録画面
ec_force/shop/customers/sessions/new.html.liquid
ec_force/shop/customers/sessions/new.html+smartphone.liquid
ec_force/shop/customers/registrations/new.html.liquid
ec_force/shop/customers/registrations/new.html+smartphone.liquid
<label for="customer_billing_address_attributes_zip01">郵便番号</label>
{% if shop_form_settings['zip_1_field'] %}
<span>〒</span>
- <input class="validate[required,custom[integer]]" type="text" value="" name="customer[billing_address_attributes][zip01]" autocomplete="postal-code" id="customer_billing_address_attributes_zip01" maxlength='7' />
+ <input class="validate[required,custom[integer],minSize[7]]" type="tel" value="" name="customer[billing_address_attributes][zip01]" autocomplete="postal-code" id="customer_billing_address_attributes_zip01" maxlength='7' />
{% else %}
<span>〒</span>
- <input class="validate[required,custom[integer]]" type="text" value="" name="customer[billing_address_attributes][zip01]" autocomplete="postal-code" id="customer_billing_address_attributes_zip01" maxlength='3' />
+ <input class="validate[required,custom[integer],minSize[3]]" type="tel" value="" name="customer[billing_address_attributes][zip01]" autocomplete="postal-code" id="customer_billing_address_attributes_zip01" maxlength='3' />
<span>−</span>
- <input class="validate[required,custom[integer]]" type="text" value="" name="customer[billing_address_attributes][zip02]" autocomplete="none" id="customer_billing_address_attributes_zip02" maxlength='4' />
+ <input class="validate[required,custom[integer],minSize[4]]" type="tel" value="" name="customer[billing_address_attributes][zip02]" autocomplete="none" id="customer_billing_address_attributes_zip02" maxlength='4' />
{% endif %}
mypage > 会員情報変更画面
ec_force/shop/customer/base/edit.html.liquid
ec_force/shop/customer/base/edit.html+smartphone.liquid
<label for="customer_billing_address_attributes_zip01">郵便番号</label>
〒
{% if shop_form_settings['zip_1_field'] %}
- <input class="validate[required,custom[integer]]" type="tel" value="{{ current_customer.billing_address.full_zip }}" name="customer[billing_address_attributes][zip01]" autocomplete="postal-code" id="customer_billing_address_attributes_zip01" maxlength='7'>
+ <input class="validate[required,custom[integer],minSize[7]]" type="tel" value="{{ current_customer.billing_address.full_zip }}" name="customer[billing_address_attributes][zip01]" autocomplete="postal-code" id="customer_billing_address_attributes_zip01" maxlength='7'>
{% else %}
- <input class="validate[required,custom[integer]]" type="tel" value="{{ current_customer.billing_address.zip01 }}" name="customer[billing_address_attributes][zip01]" autocomplete="postal-code" id="customer_billing_address_attributes_zip01" maxlength='3'>
+ <input class="validate[required,custom[integer],minSize[3]]" type="tel" value="{{ current_customer.billing_address.zip01 }}" name="customer[billing_address_attributes][zip01]" autocomplete="postal-code" id="customer_billing_address_attributes_zip01" maxlength='3'>
−
- <input class="validate[required,custom[integer]]" type="tel" value="{{ current_customer.billing_address.zip02 }}" name="customer[billing_address_attributes][zip02]" autocomplete="none" id="customer_billing_address_attributes_zip02" maxlength='4'>
+ <input class="validate[required,custom[integer],minSize[4]]" type="tel" value="{{ current_customer.billing_address.zip02 }}" name="customer[billing_address_attributes][zip02]" autocomplete="none" id="customer_billing_address_attributes_zip02" maxlength='4'>
{% endif %}
mypage > お届け先情報フォーム(部分テンプレート)
ec_force/shop/customer/shipping_addresses/_form.html.liquid
ec_force/shop/customer/shipping_addresses/_form.html+smartphone.liquid
<!-- 郵便番号 -->
<label for="address_customer_shipping_zip01">郵便番号</label>
{% if shop_form_settings['zip_1_field'] %}
<span>〒</span>
- <input class="validate[required,custom[integer]]" type="tel" value="{{ shipping_address.full_zip }}" name="address_customer_shipping[zip01]" autocomplete="postal-code" id="address_customer_shipping_zip01" maxlength='7'>
+ <input class="validate[required,custom[integer],minSize[7]]" type="tel" value="{{ shipping_address.full_zip }}" name="address_customer_shipping[zip01]" autocomplete="postal-code" id="address_customer_shipping_zip01" maxlength='7'>
{% else %}
<span>〒</span>
- <input class="validate[required,custom[integer]]" type="tel" value="{{ shipping_address.zip01 }}" name="address_customer_shipping[zip01]" autocomplete="postal-code" id="address_customer_shipping_zip01" maxlength='3'>
+ <input class="validate[required,custom[integer],minSize[3]]" type="tel" value="{{ shipping_address.zip01 }}" name="address_customer_shipping[zip01]" autocomplete="postal-code" id="address_customer_shipping_zip01" maxlength='3'>
<span>−</span>
- <input class="validate[required,custom[integer]]" type="tel" value="{{ shipping_address.zip02 }}" name="address_customer_shipping[zip02]" autocomplete="none" id="address_customer_shipping_zip02" maxlength='4'>
+ <input class="validate[required,custom[integer],minSize[4]]" type="tel" value="{{ shipping_address.zip02 }}" name="address_customer_shipping[zip02]" autocomplete="none" id="address_customer_shipping_zip02" maxlength='4'>
{% endif %}
mypage > 購入履歴詳細画面 お届け先情報の編集
ec_force/shop/customer/orders/shipping_addresses/edit.html.liquid
ec_force/shop/customer/orders/shipping_addresses/edit.html+smartphone.liquid
<label for="address_order_shipping_zip01">郵便番号</label>
{% if shop_form_settings['zip_1_field'] %}
<span>〒</span>
- <input class="validate[required,custom[integer]]" type="tel" value="{{ order.shipping_address.full_zip }}" name="address_order_shipping[zip01]" autocomplete="postal-code" id="address_order_shipping_zip01" maxlength="7">
+ <input class="validate[required,custom[integer],minSize[7]]" type="tel" value="{{ order.shipping_address.full_zip }}" name="address_order_shipping[zip01]" autocomplete="postal-code" id="address_order_shipping_zip01" maxlength="7">
{% else %}
<span>〒</span>
- <input class="validate[required,custom[integer]]" type="tel" value="{{ order.shipping_address.zip01 }}" name="address_order_shipping[zip01]" autocomplete="postal-code" id="address_order_shipping_zip01" maxlength="3">
+ <input class="validate[required,custom[integer],minSize[3]]" type="tel" value="{{ order.shipping_address.zip01 }}" name="address_order_shipping[zip01]" autocomplete="postal-code" id="address_order_shipping_zip01" maxlength="3">
<span>−</span>
- <input class="validate[required,custom[integer]]" type="tel" value="{{ order.shipping_address.zip02 }}" name="address_order_shipping[zip02]" autocomplete="none" id="address_order_shipping_zip02" maxlength="4">
+ <input class="validate[required,custom[integer],minSize[4]]" type="tel" value="{{ order.shipping_address.zip02 }}" name="address_order_shipping[zip02]" autocomplete="none" id="address_order_shipping_zip02" maxlength="4">
{% endif %}
mypage > 定期注文詳細画面 お届け先情報の編集
ec_force/shop/customer/subs_orders/shipping_addresses/edit.html.liquid
ec_force/shop/customer/subs_orders/shipping_addresses/edit.html+smartphone.liquid
<label for="address_subs_order_shipping_zip01">郵便番号</label>
{% if shop_form_settings['zip_1_field'] %}
<span>〒</span>
- <input class="validate[required,custom[integer]]" type="tel" value="{{ subs_order.shipping_address.full_zip }}" name="address_subs_order_shipping[zip01]" autocomplete="postal-code" id="address_subs_order_shipping_zip01" maxlength='7'>
+ <input class="validate[required,custom[integer],minSize[7]]" type="tel" value="{{ subs_order.shipping_address.full_zip }}" name="address_subs_order_shipping[zip01]" autocomplete="postal-code" id="address_subs_order_shipping_zip01" maxlength='7'>
{% else %}
<span>〒</span>
- <input class="validate[required,custom[integer]]" type="tel" value="{{ subs_order.shipping_address.zip01 }}" name="address_subs_order_shipping[zip01]" autocomplete="postal-code" id="address_subs_order_shipping_zip01" maxlength='3'>
+ <input class="validate[required,custom[integer],minSize[3]]" type="tel" value="{{ subs_order.shipping_address.zip01 }}" name="address_subs_order_shipping[zip01]" autocomplete="postal-code" id="address_subs_order_shipping_zip01" maxlength='3'>
<span>−</span>
- <input class="validate[required,custom[integer]]" type="tel" value="{{ subs_order.shipping_address.zip02 }}" name="address_subs_order_shipping[zip02]" autocomplete="none" id="address_subs_order_shipping_zip02" maxlength='4'>
+ <input class="validate[required,custom[integer],minSize[4]]" type="tel" value="{{ subs_order.shipping_address.zip02 }}" name="address_subs_order_shipping[zip02]" autocomplete="none" id="address_subs_order_shipping_zip02" maxlength='4'>
{% endif %}
商品カテゴリー管理「商品テキスト」機能への対応
商品カテゴリー管理 (opens in a new tab) で設定した「商品テキスト」を することにより、商品詳細ページに「各商品の商品カテゴリ」に対応した「商品テキスト」を表示することが可能になりました。
product > 商品詳細画面
ec_force/shop/products/show.html.liquid
ec_force/shop/products/show.html+smartphone.liquid
<!-- 商品テキスト(商品カテゴリ) -->
{% for product_extra_text in product.extra_text_from_product_category %}
{{ product_extra_text }}
{% endfor %}
軽微な修正
cart > 注文情報入力画面 (修正推奨)
ec_force/shop/orders/new.html.liquid
ec_force/shop/orders/new.html+smartphone.liquid
※ <div id="AmazonPayWidgetJs"></div>
の挿入箇所が変更になりました。
<!-- AmazonPay -->
- <div id="AmazonPayWidgetJs"></div>
{% if amazon_pay_available or amazon_pay_v2_available %}
{% if check_amazon_pay %}
+ <div id="AmazonPayWidgetJs"></div>
<div id="AmazonPayOneClickOrderArea" style="display: none;">
<div class="amazon_pay_box">
<div class="amazon_pay_title">ワンクリックで簡単お申込みする!</div>
cart > 注文情報確認画面
ec_force/shop/orders/confirm.html.liquid
ec_force/shop/orders/confirm.html+smartphone.liquid
<!-- お届けサイクル -->
- {% if order.subs_order %}
- {% assign show_scheduled_delivery_dates = subs_order_settings["show_scheduled_delivery_dates?"] %}
- {% else %}
- {% assign show_scheduled_delivery_dates = order_settings["show_scheduled_delivery_dates?"] %}
- {% endif %}
-
- {% if show_scheduled_delivery_dates %}
+ {% if scheduled_delivery_dates_visibility %}
<!-- 1回目お届け日 -->
{% if order.scheduled_to_be_delivered_at %}
今後のリリース予定機能の準備のため
cart > 注文情報入力画面
ec_force/shop/orders/new.html.liquid
ec_force/shop/orders/new.html+smartphone.liquid
<!-- 各入力フォーム部分テンプレート(PC用) -->
<!-- 請求先住所(お客様情報)の入力 -->
{% include 'ec_force/shop/orders/view_billing_information.html' %}
+ <!-- 受取方法の選択 -->
+ {% include 'ec_force/shop/orders/view_how_to_receive.html' %}
<!-- お届け先住所(お届け先情報)の入力 -->
{% include 'ec_force/shop/orders/view_shipping_information.html' %}
+ <!-- 受取店舗の選択 -->
+ {% include 'ec_force/shop/orders/view_pickup_store_information.html' %}
<!-- ラッピングの選択 -->
{% include 'ec_force/shop/orders/view_wrapping_information.html'
<!-- 各入力フォーム部分テンプレート(スマートフォン用) -->
<!-- 請求先住所(お客様情報)の入力 -->
{% include 'ec_force/shop/orders/view_billing_information.html+smartphone' %}
+ <!-- 受取方法の選択 -->
+ {% include 'ec_force/shop/orders/view_how_to_receive.html+smartphone' %}
<!-- お届け先住所(お届け先情報)の入力 -->
{% include 'ec_force/shop/orders/view_shipping_information.html+smartphone' %}
+ <!-- 受取店舗の選択 -->
+ {% include 'ec_force/shop/orders/view_pickup_store_information.html+smartphone' %}
<!-- ラッピングの選択 -->
{% include 'ec_force/shop/orders/view_wrapping_information.html+smartphone' %}
cart > 注文情報確認画面
ec_force/shop/orders/confirm.html.liquid
ec_force/shop/orders/confirm.html+smartphone.liquid
<!-- ショップからのお知らせ -->
{% if order.customer.optin %}受け取る{% else %}受け取らない{% endif %}
+ <!-- 受取店舗情報 -->
+ {% if order.pickup_store %}
+
+ <!-- 店舗名 -->
+ {{ order.pickup_store.name }}
+
+ <!-- フリガナ -->
+ {{ order.pickup_store.kana }}
+
+ <!-- 住所 -->
+ {{ order.pickup_store.full_address }}
+
+ <!-- 電話番号 -->
+ {{ order.pickup_store.full_tel }}
+
+ <!-- FAX番号 -->
+ {{ order.pickup_store.full_fax }}
+
+ <!-- 営業時間 -->
+ {{ order.pickup_store.business_hours }}
<!-- お届け先情報 -->
+ {% else %}
<!-- お名前 -->
{{ order.shipping_address.full_name }}
<!-- フリガナ -->
{{ order.shipping_address.full_kana }}
<!-- 住所 -->
{{ order.shipping_address.full_address }}
<!-- 電話番号 -->
{{ order.shipping_address.full_tel}}
+ {% endif %}
<!-- ラッピング -->
<!-- 配送業者名 -->
- {{ order.shipping_carrier.name }}
+ {% unless order.pickup_store %}
+ {{ order.shipping_carrier.name }}
+ {% endunless%}
<!-- お支払い情報 -->
<!-- お届けサイクル -->
- {% if order.subs_order %}
- {% assign show_scheduled_delivery_dates = subs_order_settings["show_scheduled_delivery_dates?"] %}
- {% else %}
- {% assign show_scheduled_delivery_dates = order_settings["show_scheduled_delivery_dates?"] %}
- {% endif %}
-
- {% if show_scheduled_delivery_dates %}
+ {% if scheduled_delivery_dates_visibility %}
<!-- 1回目お届け日 -->
{% if order.scheduled_to_be_delivered_at %}
cart > お届け先住所(部分テンプレート)
ec_force/shop/orders/_view_shipping_information.html.liquid
ec_force/shop/orders/_view_shipping_information.html+smartphone.liquid
<!-- 部分テンプレート(お届け先住所の入力) -->
+{% if pickup_store_is_available == true and delivery_to_address_is_checked == false %}
+ {% assign own_style = 'display: none;' %}
+{% else %}
+ {% assign own_style = '' %}
+{% endif %}
-<div id="view-shipping-information">
+<div id="view-shipping-information" style="{{ own_style }}">
<!-- お届け先情報の選択 -->
<div class="hide-on-amazon-pay">
<label>お届け先住所</label>
<select id="shipping_address_id" name="order[shipping_address_id]">
- <option value='same' {% if !order.shipping_address or order.shipping_address == order.billing_address %}selected{% endif %}>上記住所と同じ</option>
+ <option value='same' {% if selected_shipping_address_value == 'same' %}selected{% endif %}>上記住所と同じ</option>
{% if customer_signed_in %}
{% for shipping_address in current_customer.shipping_addresses %}
- <option value='{{ shipping_address.id }}' {% if order.shipping_address_id == shipping_address.id %}selected{% endif %}>{{ shipping_address.full_name }} | 〒{{ shipping_address.full_zip }} {{ shipping_address.full_address }}</option>
+ <option value='{{ shipping_address.id }}' {% if selected_shipping_address_value == shipping_address.id %}selected{% endif %}>{{ shipping_address.full_name }} | 〒{{ shipping_address.full_zip }} {{ shipping_address.full_address }}</option>
{% endfor %}
{% endif %}
- <option value='new' {% if order.shipping_address and order.shipping_address == order.billing_address %}selected{% endif %}>新しく入力する</option>
+ <option value='new' {% if selected_shipping_address_value == 'new' %}selected{% endif %}>新しく入力する</option>
</select>
</div>
cart > 配送業者(部分テンプレート)
ec_force/shop/orders/_view_shipping_carrier.html.liquid
ec_force/shop/orders/_view_shipping_carrier.html+smartphone.liquid
<!-- 部分テンプレート(配送業者の選択) -->
+{% if pickup_store_is_available == true and delivery_to_address_is_checked == false %}
+ {% assign own_style = 'display: none;' %}
+{% else %}
+ {% assign own_style = '' %}
+{% endif %}
-<div id='view-shipping-carrier'>
+<div id='view-shipping-carrier' style="{{ own_style }}">
cart > お届けサイクル(部分テンプレート)
ec_force/shop/orders/_view_payment_schedule.html.liquid
ec_force/shop/orders/_view_payment_schedule.html+smartphone.liquid
<!-- 部分テンプレート(お届けサイクルの選択) -->
+{% if pickup_store_is_available == true and delivery_to_address_is_checked == false %}
+ {% assign own_style = 'display: none;' %}
+{% else %}
+ {% assign own_style = '' %}
+{% endif %}
-<div id='view-payment-schedule'>
+<div id='view-payment-schedule' style="{{ own_style }}">
cart > 注文情報確認プレビュー(部分テンプレート)
ec_force/shop/orders/_view_payment_preview.html.liquid
ec_force/shop/orders/_view_payment_preview.html+smartphone.liquid
{% for item in (1..max_item_length) %}
<div id="parsed_caution02_{{ forloop.index0 }}" aria-hidden="true"></div>
{% endfor %}
+ <div id="pickup_store_table">
+ <div>
+ <label>受取店舗</label>
+ <span id="pickup_store_name"></span>
+ </div>
+ <div>
+ <label>住所</label>
+ <span id="pickup_store_full_address"></span>
+ </div>
+ </div>
+ <div id="shipping_address_table">
<div>
<label>お名前</label>
<span id="shipping_address_full_name"></span>
</div>
<div>
<label>住所</label>
<span id="shipping_address_full_address"></span>
</div>
+ </div>
mypage > 購入履歴一覧画面
ec_force/shop/customer/orders/index.html.liquid
ec_force/shop/customer/orders/index.html+smartphone.liquid
+ {% if order.pickup_store %}
+ <!-- 受取店舗情報(店舗名)(任意) -->
+ {{ order.pickup_store.name }}
+ <!-- 受取店舗情報(フリガナ)(任意) -->
+ {{ order.pickup_store.kana }}
+ <!-- 受取店舗情報(郵便番号)(任意) -->
+ {{ order.pickup_store.full_zip }}
+ <!-- 受取店舗情報(住所)(任意) -->
+ {{ order.pickup_store.full_address }}
+ <!-- 受取店舗情報(電話番号)(任意) -->
+ {{ order.pickup_store.full_tel }}
+ <!-- 受取店舗情報(FAX番号)(任意) -->
+ {{ order.pickup_store.full_fax }}
+ <!-- 受取店舗情報(営業時間)(任意) -->
+ {{ order.pickup_store.business_hours }}
+ {% else %}
<!-- お届け先情報(お名前)(任意) -->
{{ order.shipping_address.full_name }}
<!-- お届け先情報(フリガナ)(任意) -->
{{ order.shipping_address.full_kana }}
<!-- お届け先情報(郵便番号)(任意) -->
{{ order.shipping_address.full_zip }}
<!-- お届け先情報(都道府県)(任意) -->
{{ order.shipping_address.prefecture.name }}
<!-- お届け先情報(住所)(任意) -->
{{ order.shipping_address.full_address }}
<!-- お届け先情報(電話番号)(任意) -->
{{ order.shipping_address.full_tel }}
<!-- お届け先情報(FAX番号)(任意) -->
{{ order.shipping_address.full_fax }}
<!-- 配送業者(任意) -->
{{ order.shipping_carrier.name }}
+ {% endif %}
mypage > 購入履歴詳細画面
ec_force/shop/customer/orders/show.html.liquid
ec_force/shop/customer/orders/show.html+smartphone.liquid
<!-- 注文日時 -->
{{ order.completed_at | date: "%Y/%m/%d %H:%M:%S" }}
+ {% if order.pickup_store %}
+ <!-- 受取店舗情報(店舗名)(任意) -->
+ {{ order.pickup_store.name }}
+ <!-- 受取店舗情報(フリガナ)(任意) -->
+ {{ order.pickup_store.kana }}
+ <!-- 受取店舗情報(郵便番号)(任意) -->
+ {{ order.pickup_store.full_zip }}
+ <!-- 受取店舗情報(住所)(任意) -->
+ {{ order.pickup_store.full_address }}
+ <!-- 受取店舗情報(電話番号)(任意) -->
+ {{ order.pickup_store.full_tel }}
+ <!-- 受取店舗情報(FAX番号)(任意) -->
+ {{ order.pickup_store.full_fax }}
+ <!-- 受取店舗情報(営業時間)(任意) -->
+ {{ order.pickup_store.business_hours }}
+
+ {% else %}
<!-- お届け先情報(お名前)(任意) -->
{{ order.shipping_address.full_name }}
<!-- お届け先情報(フリガナ)(任意) -->
{{ order.shipping_address.full_kana }}
<!-- お届け先情報(郵便番号)(任意) -->
{{ order.shipping_address.full_zip }}
<!-- お届け先情報(都道府県)(任意) -->
{{ order.shipping_address.prefecture.name }}
<!-- お届け先情報(住所)(任意) -->
{{ order.shipping_address.full_address }}
<!-- お届け先情報(電話番号)(任意) -->
{{ order.shipping_address.full_tel }}
<!-- お届け先情報(FAX番号)(任意) -->
{{ order.shipping_address.full_fax }}
+ {% endif %}
<!-- カスタム項目 -->
mypage > 購入履歴詳細タブ(部分テンプレート)
ec_force/shop/customer/orders/shared/_nav.html.liquid
ec_force/shop/customer/orders/shared/_nav.html+smartphone.liquid
<a {% unless template == 'shop/customer/orders' %}href="/shop/customer/orders/{{ order.number }}"{% endunless %}>基本情報</a>
-<a {% unless template == 'shop/customer/orders/shipping_address' %}href="/shop/customer/orders/{{ order.number }}/shipping_address"{% endunless %}>お届け先住所</a>
+{% if order.pickup_store %}
+ <a {% unless template == 'shop/customer/orders/pickup_store' %}href="/shop/customer/orders/{{ order.number }}/pickup_store"{% endunless %}>受取店舗</a>
+{% else %}
+ <a {% unless template == 'shop/customer/orders/shipping_address' %}href="/shop/customer/orders/{{ order.number }}/shipping_address"{% endunless %}>お届け先住所</a>
+{% endif %}
shared_partial > nav (shared_partial)
ec_force/shop/shared/_nav.html.liquid
ec_force/shop/shared/_nav.html+smartphone.liquid
+{% if current_order %}
+ {% assign target_order = current_order %}
+{% else %}
+ {% assign target_order = order %}
+{% endif %}
+
{% unless order.cv_confirm? %}
<!-- カート画面へのリンク -->
- {% if order.completed? or order.converted? %}
+ {% if target_order.completed? or target_order.converted? %}
<a href="/shop/cart">カートを見る <span id="header-order-quantity">0</span> 点</a>
{% else %}
- <a href="/shop/cart">カートを見る <span id="header-order-quantity">{% if current_order %}{{ current_order.quantity }}{% else %}{{ order.quantity }}{% endif %}</span> 点</a>
+ <a href="/shop/cart">カートを見る <span id="header-order-quantity">{{ target_order.quantity }}</span> 点</a>
{% endif %}
※新規追加ファイルです
cart > 受取方法(部分テンプレート)
ec_force/shop/orders/_view_how_to_receive.html.liquid
ec_force/shop/orders/_view_how_to_receive.html+smartphone.liquid
cart > 受取店舗(部分テンプレート)
ec_force/shop/orders/_view_pickup_store_information.html.liquid
ec_force/shop/orders/_view_pickup_store_information.html+smartphone.liquid
mypage > 購入履歴詳細画面 受取店舗情報
ec_force/shop/customer/orders/pickup_stores/show.html.liquid
ec_force/shop/customer/orders/pickup_stores/show.html+smartphone.liquid