受取店舗(部分テンプレート)
注文情報入力画面で利用する受取方法選択フォーム用部分テンプレートです。
注文情報入力画面で include して利用します。(注文情報入力画面以外では利用できません)
テーマ管理のファイルパス
ec_force/shop/orders/_view_pickup_store_information.html.liquid
ec_force/shop/orders/_view_pickup_store_information.html+smartphone.liquid
必要なコンポーネント
任意とあるもの以外はシステム上必要なコンポーネントとなりますので、必ず使用するようにしてください。
{% unless pickup_store_is_available %}
<input type="hidden" id="pickup_store_id" name="order[pickup_store_id]">
{% else %}
<div id="view-pickup-store-information" style="{% unless pickup_at_store_is_checked %}display:none;{% endunless %}">
<label>受取店舗</label>
<select class="validate[required]" id="pickup_store_id" name="order[pickup_store_id]">
<option value="">選択してください</option>
{% if pickup_at_store_is_checked == true and pickup_stores.size == 1 %}
{% assign only_one = true %}
{% else %}
{% assign only_one = false %}
{% endif %}
{% for pickup_store in pickup_stores %}
<option value="{{ pickup_store.id }}" {% if only_one == true or order.pickup_store_id == pickup_store.id %}selected{% endif %}>
{{ pickup_store.name }} | 〒{{ pickup_store.full_zip }} {{ pickup_store.full_address }}
</option>
{% endfor %}
</select>
</div>
{% endunless %}