2021/07/06更新
+ 追加した行
- 削除した行
付与予定ポイント表示機能追加
cart > 注文情報確認画面
テーマ管理のファイルパス
ec_force/shop/orders/confirm.html.liquid
ec_force/shop/orders/confirm.html+smartphone.liquid
<!-- 合計 -->
{{ order.total | number_to_currency: format: '%n %u' }}
+ <!-- 付与予定ポイント(任意) -->
+ {% if base_info.use_point? and customer_signed_in %}
+ {{ order.grant_plan_point }}
+ {% endif %}
mypage > 購入履歴詳細画面 基本情報
テーマ管理のファイルパス
ec_force/shop/customer/orders/show.html.liquid
ec_force/shop/customer/orders/show.html+smartphone.liquid
<!-- 支払い合計(任意) -->
{{ order.payment_total | number_to_currency: format: '%n %u' }}
+<!-- 付与予定ポイント(任意) -->
+{% if base_info.use_point? %}
+ {{ order.grant_plan_point }}
+{% endif %}
<!-- 支払い方法(任意) -->
{{ order.payment_method.name }}
mypage > ポイント履歴一覧画面
テーマ管理のファイルパス
ec_force/shop/customer/points/index.html.liquid
ec_force/shop/customer/points/index.html+smartphone.liquid
<!-- 有効期限 -->
{{ current_customer.point_expired_datetime }}
+<!-- 付与予定ポイント -->
+{{ current_customer.grant_plan_point }}
エポスバナーを変更できるようにする
cart > 支払い方法(部分テンプレート)
テーマ管理のファイルパス
ec_force/shop/orders/_view_payment_information.html.liquid
ec_force/shop/orders/_view_payment_information.html+smartphone.liquid
<input id="input_app_source_id" type="hidden" name="order[payment_attributes][source_id]" value='{{ order.payment.source_id }}'/>
{% endif %}
</div>
- <div id="payment_method_description"></div>
+ {% if base_info.epos_banner.url != '/assets/missing.png' %}
+ <p id="epos">
+ <button id="epos_apply" type="button" style="background:none; border:0">
+ <img width="100%" src="{{ base_info.epos_banner.url }}">
+ </button>
+ </p>
+ {% else %}
+ <div id="payment_method_description"></div>
+ {% endif %}
<!-- AmazonPayフォーム -->
セット商品機能 除外フィルター対応
mypage > 定期注文詳細画面 セット商品の編集
テーマ管理のファイルパス
ec_force/shop/customer/subs_orders/sets/edit.html.liquid
ec_force/shop/customer/subs_orders/sets/edit.html+smartphone.liquid
<!-- セット名 -->
{{ set.name }}
+ <div>
+ <button class='btn btn-default btn-filter'>除外フィルター</button>
+ </div>
+
<!-- productは必須classになります -->
- <div class='product'>
+ <div class='product' id='filter-product-id-{{ product.id }}'>
<!-- class:set_statusに商品の個数/上限が更新されます。-->
- <div class='set_status'>0/{{ set.quantity }}</div>
+ <div class='set_status'>
+ {% if set.quantity > 0 %}
+ 0/{{ set.quantity }}
+ {% else %}
+ {{ set.quantity_under_limit }}以上{{ set.quantity_upper_limit }}以下の個数を選んでください 0件
+ {% endif%}
+ </div>
<!-- class:select_clearの要素がクリックされたときにselect_menuに追加された商品が削除されます。-->
<div class='select_clear'>全て削除</div>
<form id="form" action="/shop/customer/subs_orders/{{ subs_order.number }}/sets" accept-charset="UTF-8" method="post">
<input name="utf8" type="hidden" value="✓" />
<input type="hidden" name="_method" value="patch" />
+ <input id="selected-filter" type="hidden" name="selected_filter" value="" />
set > セット選択画面
テーマ管理のファイルパス
ec_force/shop/sets/show.html.liquid
ec_force/shop/sets/show.html+smartphone.liquid
<!-- セット名 -->
{{ set.name }}
+ <div>
+ <button class='btn btn-default btn-filter'>除外フィルター</button>
+ </div>
+
{% for product in set_products %}
<!-- productは必須classになります -->
- <div class='product'>
+ <div class='product' id='filter-product-id-{{ product.id }}'>
<div class='select_menu'>
<!-- class:set_statusに商品の個数/上限が更新されます。-->
- <div class='set_status'>0/{{ set.quantity }}</div>
+ <div class='set_status'>
+ {% if set.quantity > 0 %}
+ 0/{{ set.quantity }}
+ {% else %}
+ {{ set.quantity_under_limit }}以上{{ set.quantity_upper_limit }}以下の個数を選んでください 0件
+ {% endif%}
+ </div>
<!-- class:select_clearの要素がクリックされたときにselect_menuに追加された商品が削除されます。-->
<div class='select_clear'>全て削除</div>
<form id="form" action="/shop/sets/{{ set.id }}" accept-charset="UTF-8" method="post">
<input name="utf8" type="hidden" value="✓" />
<input type="hidden" name="_method" value="patch" />
+ <input id="selected-filter" type="hidden" name="selected_filter" value="" />
<div class='select_area'>
<!-- class:select_templateを基準に追加された商品が記載されます。-->
その他細かな更新
mypage > 定期注文詳細画面 商品の編集
テーマ管理のファイルパス
ec_force/shop/customer/subs_orders/order_items/edit.html.liquid
ec_force/shop/customer/subs_orders/order_items/edit.html+smartphone.liquid
- <button name="button" type="submit">更新</button>
+ <button name="button" type="submit" id="update_button">更新</button>
<!-- 送信リンク -->
- <input type="submit" name="commit" value="保存" data-disable-with="保存中...">
+ <input type="submit" name="commit" value="保存" id="save_button" data-disable-with="保存中...">
cart > 請求先住所(部分テンプレート)
テーマ管理のファイルパス
ec_force/shop/orders/_view_billing_information.html.liquid
ec_force/shop/orders/_view_billing_information.html+smartphone.liquid
<span>〒</span>
- <input type="text" class='validate[required,custom[integer]]' id='order_billing_address_attributes_zip01' maxlength='5' name='order[billing_address_attributes][zip01]' value='{% if order.billing_address %}{{ order.billing_address.zip01 }}{% else %}{{ order.customer.billing_address.zip01 }}{% endif %}'>
+ <input type="text" class='validate[required,custom[integer]]' id='order_billing_address_attributes_zip01' maxlength='3' name='order[billing_address_attributes][zip01]' 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]' value='{% if order.billing_address %}{{ order.billing_address.zip02 }}{% else %}{{ order.customer.billing_address.zip02 }}{% endif %}'>
- <input type="tel" class='validate[required,custom[integer]]' maxlength='4' name='order[billing_address_attributes][tel01]' value='{% if order.billing_address %}{{ order.billing_address.tel01 }}{% else %}{{ order.customer.billing_address.tel01 }}{% endif %}'>
+ <input type="tel" class='validate[required,custom[integer]]' maxlength='5' name='order[billing_address_attributes][tel01]' value='{% if order.billing_address %}{{ order.billing_address.tel01 }}{% else %}{{ order.customer.billing_address.tel01 }}{% endif %}'>
<span>-</span>
<input type="tel" class='validate[required,custom[integer]]' maxlength='4' name='order[billing_address_attributes][tel02]' value='{% if order.billing_address %}{{ order.billing_address.tel02 }}{% else %}{{ order.customer.billing_address.tel02 }}{% endif %}'>
- <input type="tel" maxlength='4' name='order[billing_address_attributes][fax01]' value='{% if order.billing_address %}{{ order.billing_address.fax01 }}{% else %}{{ order.customer.billing_address.fax01 }}{% endif %}'>
+ <input type="tel" maxlength='5' name='order[billing_address_attributes][fax01]' value='{% if order.billing_address %}{{ order.billing_address.fax01 }}{% else %}{{ order.customer.billing_address.fax01 }}{% endif %}'>
cart > お届け先住所(部分テンプレート)
テーマ管理のファイルパス
ec_force/shop/orders/_view_shipping_information.html.liquid
ec_force/shop/orders/_view_shipping_information.html+smartphone.liquid
- <input type="tel" class="validate[required,custom[integer]]" maxlength="4" name="order[shipping_address_attributes][tel01]" value="{{ order.shipping_address.tel01 }}">
+ <input type="tel" class="validate[required,custom[integer]]" maxlength="5" name="order[shipping_address_attributes][tel01]" value="{{ order.shipping_address.tel01 }}">
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]" id="customer_billing_address_attributes_zip01" />
+ <input class="validate[required,custom[integer]]" type="text" value="" name="customer[billing_address_attributes][zip01]" 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]" id="customer_billing_address_attributes_zip01" />
+ <input class="validate[required,custom[integer]]" type="text" value="" name="customer[billing_address_attributes][zip01]" 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]" id="customer_billing_address_attributes_zip02" />
+ <input class="validate[required,custom[integer]]" type="text" value="" name="customer[billing_address_attributes][zip02]" id="customer_billing_address_attributes_zip02" maxlength='4' />
{% endif %}
<!-- 電話番号 -->
<label for="customer_billing_address_attributes_tel01">電話番号</label>
{% if shop_form_settings['tel_1_field'] %}
- <input class="validate[required,custom[integer]]" type="text" value="" name="customer[billing_address_attributes][tel01]" id="customer_billing_address_attributes_tel01" />
+ <input class="validate[required,custom[integer]]" type="text" value="" name="customer[billing_address_attributes][tel01]" id="customer_billing_address_attributes_tel01" maxlength='12' />
{% else %}
- <input class="validate[required,custom[integer]]" type="text" value="" name="customer[billing_address_attributes][tel01]" id="customer_billing_address_attributes_tel01" />
+ <input class="validate[required,custom[integer]]" type="text" value="" name="customer[billing_address_attributes][tel01]" id="customer_billing_address_attributes_tel01" maxlength='5' />
<span>−</span>
- <input class="validate[required,custom[integer]]" type="text" value="" name="customer[billing_address_attributes][tel02]" id="customer_billing_address_attributes_tel02" />
+ <input class="validate[required,custom[integer]]" type="text" value="" name="customer[billing_address_attributes][tel02]" id="customer_billing_address_attributes_tel02" maxlength='4' />
<span>−</span>
- <input class="validate[required,custom[integer]]" type="text" value="" name="customer[billing_address_attributes][tel03]" id="customer_billing_address_attributes_tel03" />
+ <input class="validate[required,custom[integer]]" type="text" value="" name="customer[billing_address_attributes][tel03]" id="customer_billing_address_attributes_tel03" maxlength='4' />
{% endif %}
<!-- FAX番号 -->
{% if shop_form_settings['fax'] %}
<label for="customer_billing_address_attributes_fax01">FAX番号</label>
{% if shop_form_settings['fax_1_field'] %}
- <input type="text" value="" name="customer[billing_address_attributes][fax01]" id="customer_billing_address_attributes_fax01" />
+ <input type="text" value="" name="customer[billing_address_attributes][fax01]" id="customer_billing_address_attributes_fax01" maxlength='12' />
{% else %}
- <input type="text" value="" name="customer[billing_address_attributes][fax01]" id="customer_billing_address_attributes_fax01" />
+ <input type="text" value="" name="customer[billing_address_attributes][fax01]" id="customer_billing_address_attributes_fax01" maxlength='5' />
<span>−</span>
- <input type="text" value="" name="customer[billing_address_attributes][fax02]" id="customer_billing_address_attributes_fax02" />
+ <input type="text" value="" name="customer[billing_address_attributes][fax02]" id="customer_billing_address_attributes_fax02" maxlength='4' />
<span>−</span>
- <input type="text" value="" name="customer[billing_address_attributes][fax03]" id="customer_billing_address_attributes_fax03" />
+ <input type="text" value="" name="customer[billing_address_attributes][fax03]" id="customer_billing_address_attributes_fax03" maxlength='4' />
{% endif %}
{% 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]" id="customer_billing_address_attributes_zip01">
+ <input class="validate[required,custom[integer]]" type="tel" value="{{ current_customer.billing_address.full_zip }}" name="customer[billing_address_attributes][zip01]" 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]" id="customer_billing_address_attributes_zip01">
+ <input class="validate[required,custom[integer]]" type="tel" value="{{ current_customer.billing_address.zip01 }}" name="customer[billing_address_attributes][zip01]" 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]" id="customer_billing_address_attributes_zip02">
+ <input class="validate[required,custom[integer]]" type="tel" value="{{ current_customer.billing_address.zip02 }}" name="customer[billing_address_attributes][zip02]" id="customer_billing_address_attributes_zip02" maxlength='4'>
{% endif %}
<label for="customer_billing_address_attributes_tel01">電話番号</label>
{% if shop_form_settings['tel_1_field'] %}
- <input class="validate[required,custom[integer]]" type="tel" value="{{ current_customer.billing_address.full_tel }}" name="customer[billing_address_attributes][tel01]" id="customer_billing_address_attributes_tel01">
+ <input class="validate[required,custom[integer]]" type="tel" value="{{ current_customer.billing_address.full_tel }}" name="customer[billing_address_attributes][tel01]" id="customer_billing_address_attributes_tel01" maxlength='12'>
{% else %}
- <input class="validate[required,custom[integer]]" type="tel" value="{{ current_customer.billing_address.tel01 }}" name="customer[billing_address_attributes][tel01]" id="customer_billing_address_attributes_tel01">
+ <input class="validate[required,custom[integer]]" type="tel" value="{{ current_customer.billing_address.tel01 }}" name="customer[billing_address_attributes][tel01]" id="customer_billing_address_attributes_tel01" maxlength='5'>
- <input class="validate[required,custom[integer]]" type="tel" value="{{ current_customer.billing_address.tel02 }}" name="customer[billing_address_attributes][tel02]" id="customer_billing_address_attributes_tel02">
+ <input class="validate[required,custom[integer]]" type="tel" value="{{ current_customer.billing_address.tel02 }}" name="customer[billing_address_attributes][tel02]" id="customer_billing_address_attributes_tel02" maxlength='4'>
- <input class="validate[required,custom[integer]]" type="tel" value="{{ current_customer.billing_address.tel03 }}" name="customer[billing_address_attributes][tel03]" id="customer_billing_address_attributes_tel03">
+ <input class="validate[required,custom[integer]]" type="tel" value="{{ current_customer.billing_address.tel03 }}" name="customer[billing_address_attributes][tel03]" id="customer_billing_address_attributes_tel03" maxlength='4'>
{% endif %}
{% if shop_form_settings['fax'] %}
<label for="customer_billing_address_attributes_fax01">FAX番号</label>
{% if shop_form_settings['fax_1_field'] %}
- <input type="tel" value="{{ current_customer.billing_address.full_fax }}" name="customer[billing_address_attributes][fax01]" id="customer_billing_address_attributes_fax01">
+ <input type="tel" value="{{ current_customer.billing_address.full_fax }}" name="customer[billing_address_attributes][fax01]" id="customer_billing_address_attributes_fax01" maxlength='12'>
{% else %}
- <input type="tel" value="{{ current_customer.billing_address.fax01 }}" name="customer[billing_address_attributes][fax01]" id="customer_billing_address_attributes_fax01">
+ <input type="tel" value="{{ current_customer.billing_address.fax01 }}" name="customer[billing_address_attributes][fax01]" id="customer_billing_address_attributes_fax01" maxlength='5'>
- <input type="tel" value="{{ current_customer.billing_address.fax02 }}" name="customer[billing_address_attributes][fax02]" id="customer_billing_address_attributes_fax02">
+ <input type="tel" value="{{ current_customer.billing_address.fax02 }}" name="customer[billing_address_attributes][fax02]" id="customer_billing_address_attributes_fax02" maxlength='4'>
- <input type="tel" value="{{ current_customer.billing_address.fax03 }}" name="customer[billing_address_attributes][fax03]" id="customer_billing_address_attributes_fax03">
+ <input type="tel" value="{{ current_customer.billing_address.fax03 }}" name="customer[billing_address_attributes][fax03]" id="customer_billing_address_attributes_fax03" maxlength='4'>
{% endif %}
{% 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]" id="address_customer_shipping_zip01">
+ <input class="validate[required,custom[integer]]" type="tel" value="{{ shipping_address.full_zip }}" name="address_customer_shipping[zip01]" 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]" id="address_customer_shipping_zip01">
+ <input class="validate[required,custom[integer]]" type="tel" value="{{ shipping_address.zip01 }}" name="address_customer_shipping[zip01]" 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]" id="address_customer_shipping_zip02">
+ <input class="validate[required,custom[integer]]" type="tel" value="{{ shipping_address.zip02 }}" name="address_customer_shipping[zip02]" id="address_customer_shipping_zip02" maxlength='4'>
{% endif %}
<!-- 電話番号 -->
<label for="address_customer_shipping_tel01">電話番号</label>
{% if shop_form_settings['tel_1_field'] %}
- <input class="validate[required,custom[integer]]" type="tel" value="{{ shipping_address.full_tel }}" name="address_customer_shipping[tel01]" id="address_customer_shipping_tel01">
+ <input class="validate[required,custom[integer]]" type="tel" value="{{ shipping_address.full_tel }}" name="address_customer_shipping[tel01]" id="address_customer_shipping_tel01" maxlength='12'>
{% else %}
- <input class="validate[required,custom[integer]]" type="tel" value="{{ shipping_address.tel01 }}" name="address_customer_shipping[tel01]" id="address_customer_shipping_tel01">
+ <input class="validate[required,custom[integer]]" type="tel" value="{{ shipping_address.tel01 }}" name="address_customer_shipping[tel01]" id="address_customer_shipping_tel01" maxlength='5'>
<span>−</span>
- <input class="validate[required,custom[integer]]" type="tel" value="{{ shipping_address.tel02 }}" name="address_customer_shipping[tel02]" id="address_customer_shipping_tel02">
+ <input class="validate[required,custom[integer]]" type="tel" value="{{ shipping_address.tel02 }}" name="address_customer_shipping[tel02]" id="address_customer_shipping_tel02" maxlength='4'>
<span>−</span>
- <input class="validate[required,custom[integer]]" type="tel" value="{{ shipping_address.tel03 }}" name="address_customer_shipping[tel03]" id="address_customer_shipping_tel03">
+ <input class="validate[required,custom[integer]]" type="tel" value="{{ shipping_address.tel03 }}" name="address_customer_shipping[tel03]" id="address_customer_shipping_tel03" maxlength='4'>
{% endif %}
<!-- FAX番号 -->
{% if shop_form_settings['fax'] %}
<label for="address_customer_shipping_fax01">FAX番号</label>
{% if shop_form_settings['fax_1_field'] %}
- <input type="tel" value="{{ shipping_address.full_fax }}" name="address_customer_shipping[fax01]" id="address_customer_shipping_fax01">
+ <input type="tel" value="{{ shipping_address.full_fax }}" name="address_customer_shipping[fax01]" id="address_customer_shipping_fax01" maxlength='12'>
{% else %}
- <input type="tel" value="{{ shipping_address.fax01 }}" name="address_customer_shipping[fax01]" id="address_customer_shipping_fax01">
+ <input type="tel" value="{{ shipping_address.fax01 }}" name="address_customer_shipping[fax01]" id="address_customer_shipping_fax01" maxlength='5'>
<span>−</span>
- <input type="tel" value="{{ shipping_address.fax02 }}" name="address_customer_shipping[fax02]" id="address_customer_shipping_fax02">
+ <input type="tel" value="{{ shipping_address.fax02 }}" name="address_customer_shipping[fax02]" id="address_customer_shipping_fax02" maxlength='4'>
<span>−</span>
- <input type="tel" value="{{ shipping_address.fax03 }}" name="address_customer_shipping[fax03]" id="address_customer_shipping_fax03">
+ <input type="tel" value="{{ shipping_address.fax03 }}" name="address_customer_shipping[fax03]" id="address_customer_shipping_fax03" maxlength='4'>
{% endif %}
{% 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]" id="address_subs_order_shipping_zip01">
+ <input class="validate[required,custom[integer]]" type="tel" value="{{ subs_order.shipping_address.full_zip }}" name="address_subs_order_shipping[zip01]" 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]" id="address_subs_order_shipping_zip01">
+ <input class="validate[required,custom[integer]]" type="tel" value="{{ subs_order.shipping_address.zip01 }}" name="address_subs_order_shipping[zip01]" 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]" id="address_subs_order_shipping_zip02">
+ <input class="validate[required,custom[integer]]" type="tel" value="{{ subs_order.shipping_address.zip02 }}" name="address_subs_order_shipping[zip02]" id="address_subs_order_shipping_zip02" maxlength='4'>
{% endif %}
<!-- 電話番号 -->
<label for="address_subs_order_shipping_tel01">電話番号</label>
{% if shop_form_settings['tel_1_field'] %}
- <input class="validate[required,custom[integer]]" type="tel" value="{{ subs_order.shipping_address.full_tel }}" name="address_subs_order_shipping[tel01]" id="address_subs_order_shipping_tel01">
+ <input class="validate[required,custom[integer]]" type="tel" value="{{ subs_order.shipping_address.full_tel }}" name="address_subs_order_shipping[tel01]" id="address_subs_order_shipping_tel01" maxlength='12'>
{% else %}
- <input class="validate[required,custom[integer]]" type="tel" value="{{ subs_order.shipping_address.tel01 }}" name="address_subs_order_shipping[tel01]" id="address_subs_order_shipping_tel01">
+ <input class="validate[required,custom[integer]]" type="tel" value="{{ subs_order.shipping_address.tel01 }}" name="address_subs_order_shipping[tel01]" id="address_subs_order_shipping_tel01" maxlength='5'>
<span>−</span>
- <input class="validate[required,custom[integer]]" type="tel" value="{{ subs_order.shipping_address.tel02 }}" name="address_subs_order_shipping[tel02]" id="address_subs_order_shipping_tel02">
+ <input class="validate[required,custom[integer]]" type="tel" value="{{ subs_order.shipping_address.tel02 }}" name="address_subs_order_shipping[tel02]" id="address_subs_order_shipping_tel02" maxlength='4'>
<span>−</span>
- <input class="validate[required,custom[integer]]" type="tel" value="{{ subs_order.shipping_address.tel03 }}" name="address_subs_order_shipping[tel03]" id="address_subs_order_shipping_tel03">
+ <input class="validate[required,custom[integer]]" type="tel" value="{{ subs_order.shipping_address.tel03 }}" name="address_subs_order_shipping[tel03]" id="address_subs_order_shipping_tel03" maxlength='4'>
{% endif %}
<!-- FAX番号 -->
{% if shop_form_settings['fax'] %}
<label for="address_subs_order_shipping_fax01">FAX番号</label>
{% if shop_form_settings['fax_1_field'] %}
- <input type="tel" value="{{ subs_order.shipping_address.full_fax }}" name="address_subs_order_shipping[fax01]" id="address_subs_order_shipping_fax01">
+ <input type="tel" value="{{ subs_order.shipping_address.full_fax }}" name="address_subs_order_shipping[fax01]" id="address_subs_order_shipping_fax01" maxlength='12'>
{% else %}
- <input type="tel" value="{{ subs_order.shipping_address.fax01 }}" name="address_subs_order_shipping[fax01]" id="address_subs_order_shipping_fax01">
+ <input type="tel" value="{{ subs_order.shipping_address.fax01 }}" name="address_subs_order_shipping[fax01]" id="address_subs_order_shipping_fax01" maxlength='5'>
<span>−</span>
- <input type="tel" value="{{ subs_order.shipping_address.fax02 }}" name="address_subs_order_shipping[fax02]" id="address_subs_order_shipping_fax02">
+ <input type="tel" value="{{ subs_order.shipping_address.fax02 }}" name="address_subs_order_shipping[fax02]" id="address_subs_order_shipping_fax02" maxlength='4'>
<span>−</span>
- <input type="tel" value="{{ subs_order.shipping_address.fax03 }}" name="address_subs_order_shipping[fax03]" id="address_subs_order_shipping_fax03">
+ <input type="tel" value="{{ subs_order.shipping_address.fax03 }}" name="address_subs_order_shipping[fax03]" id="address_subs_order_shipping_fax03" maxlength='4'>
{% endif %}
{% endif %}
contact > お問い合わせ登録画面
テーマ管理のファイルパス
ec_force/shop/contacts/draft.html.liquid
ec_force/shop/contacts/draft.html+smartphone.liquid
{% if shop_form_settings['tel_1_field'] %}
<!-- フォーム初入力かつログイン済の場合 -->
{% if contact.id == nil and customer_signed_in %}
- <input class="validate[required, custom[integer]]" type="tel" name="contact[address_attributes][tel01]" id="contact_address_attributes_tel01" value="{{ current_customer.billing_address.full_tel }}">
+ <input class="validate[required, custom[integer]]" type="tel" name="contact[address_attributes][tel01]" id="contact_address_attributes_tel01" value="{{ current_customer.billing_address.full_tel }}" maxlength='12'>
{% else %}
- <input class="validate[required, custom[integer]]" type="tel" name="contact[address_attributes][tel01]" id="contact_address_attributes_tel01" value="{{ contact.address.full_tel }}">
+ <input class="validate[required, custom[integer]]" type="tel" name="contact[address_attributes][tel01]" id="contact_address_attributes_tel01" value="{{ contact.address.full_tel }}" maxlength='12'>
{% endif %}
{% else %}
<!-- フォーム初入力かつログイン済の場合 -->
{% if contact.id == nil and customer_signed_in %}
- <input class="validate[required, custom[integer]]" type="tel" name="contact[address_attributes][tel01]" id="contact_address_attributes_tel01" value="{{ current_customer.billing_address.tel01 }}">
+ <input class="validate[required, custom[integer]]" type="tel" name="contact[address_attributes][tel01]" id="contact_address_attributes_tel01" value="{{ current_customer.billing_address.tel01 }}" maxlength='5'>
- <input class="validate[required, custom[integer]]" type="tel" name="contact[address_attributes][tel02]" id="contact_address_attributes_tel02" value="{{ current_customer.billing_address.tel02 }}">
+ <input class="validate[required, custom[integer]]" type="tel" name="contact[address_attributes][tel02]" id="contact_address_attributes_tel02" value="{{ current_customer.billing_address.tel02 }}" maxlength='4'>
- <input class="validate[required, custom[integer]]" type="tel" name="contact[address_attributes][tel03]" id="contact_address_attributes_tel03" value="{{ current_customer.billing_address.tel03 }}">
+ <input class="validate[required, custom[integer]]" type="tel" name="contact[address_attributes][tel03]" id="contact_address_attributes_tel03" value="{{ current_customer.billing_address.tel03 }}" maxlength='4'>
{% else %}
- <input class="validate[required, custom[integer]]" type="tel" name="contact[address_attributes][tel01]" id="contact_address_attributes_tel01" value="{{ contact.address.tel01 }}">
+ <input class="validate[required, custom[integer]]" type="tel" name="contact[address_attributes][tel01]" id="contact_address_attributes_tel01" value="{{ contact.address.tel01 }}" maxlength='5'>
- <input class="validate[required, custom[integer]]" type="tel" name="contact[address_attributes][tel02]" id="contact_address_attributes_tel02" value="{{ contact.address.tel02 }}">
+ <input class="validate[required, custom[integer]]" type="tel" name="contact[address_attributes][tel02]" id="contact_address_attributes_tel02" value="{{ contact.address.tel02 }}" maxlength='4'>
- <input class="validate[required, custom[integer]]" type="tel" name="contact[address_attributes][tel03]" id="contact_address_attributes_tel03" value="{{ contact.address.tel03 }}">
+ <input class="validate[required, custom[integer]]" type="tel" name="contact[address_attributes][tel03]" id="contact_address_attributes_tel03" value="{{ contact.address.tel03 }}" maxlength='4'>
{% endif %}
{% endif %}