app/template/kaorime/Shopping/index.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  4. http://www.ec-cube.co.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8. {% extends 'default_frame.twig' %}
  9. {% form_theme form 'Form/form_div_layout.twig' %}
  10. {% block javascript %}
  11.     <script>
  12.         $(function() {
  13.             var $redirectCallback = function() {
  14.                 loadingOverlay();
  15.                 $('#shopping_order_redirect_to').val($(this).attr('data-path'));
  16.                 $('#shopping-form').attr('action', '{{ url("shopping_redirect_to") }}').submit();
  17.                 setTimeout(function () {
  18.                     loadingOverlay("hide");
  19.                 }, 2000);
  20.             };
  21.             $('[data-trigger]').each(function() {
  22.                 $(this).on($(this).attr('data-trigger'), $redirectCallback);
  23.             });
  24.             {% if is_granted('ROLE_USER') == false %}
  25.             var edit = $('.customer-edit');
  26.             var hidden = $('.customer-in');
  27.             var form = $('.customer-form');
  28.             $('#customer').click(function() {
  29.                 $(edit).each(function(index) {
  30.                     var name = $(this).text();
  31.                     var input = $('<input id="edit' + index + '" type="text" />').val(name);
  32.                     $(form[index]).empty().append(input);
  33.                 });
  34.                 $('.non-customer-display').hide();
  35.                 $('.non-customer-edit').show();
  36.                 $('.mod-button').show();
  37.             });
  38.             $('#customer-ok').click(function() {
  39.                 $(form).each(function(index) {
  40.                     $(hidden[index]).val($(form[index]).children('input').val());
  41.                 });
  42.                 var postData = {};
  43.                 $(hidden).each(function() {
  44.                     postData[$(this).attr('name')] = $(this).val();
  45.                 });
  46.                 loadingOverlay();
  47.                 $.ajax({
  48.                     url: "{{ url('shopping_customer') }}",
  49.                     type: 'POST',
  50.                     data: postData,
  51.                     dataType: 'json'
  52.                 }).done(function(data) {
  53.                     if (data.status == 'OK') {
  54.                         $(form).each(function(index) {
  55.                             $(edit[index]).empty().text($(form[index]).children('input').val());
  56.                             $(form[index]).empty();
  57.                         });
  58.                         // kana field
  59.                         $(edit[2]).empty().text(data.kana01);
  60.                         $(edit[3]).empty().text(data.kana02);
  61.                         $('#customer-kana01').val(data.kana01);
  62.                         $('#customer-kana02').val(data.kana02);
  63.                     }
  64.                 }).fail(function() {
  65.                     alert('更新に失敗しました。入力内容を確認してください。');
  66.                 }).always(function(data) {
  67.                     // overlayを無効
  68.                     loadingOverlay('hide');
  69.                 });
  70.                 $('.non-customer-display').show();
  71.                 $('.non-customer-edit').hide();
  72.                 $('.mod-button').hide();
  73.             });
  74.             $('#customer-cancel').click(function() {
  75.                 $('.non-customer-display').show();
  76.                 $('.non-customer-edit').hide();
  77.                 $('.mod-button').hide();
  78.             });
  79.             {% endif %}
  80.         });
  81.     </script>
  82. {% endblock javascript %}
  83. {% block main %}
  84.     <div class="ec-role">
  85.         <div class="ec-pageHeader">
  86.             <h1>{{ 'ご注文手続き'|trans }}</h1>
  87.         </div>
  88.     </div>
  89.     <div class="ec-cartRole">
  90.         <div class="ec-cartRole__progress">
  91.             <ul class="ec-progress">
  92.                 {% set step = 1 %}
  93.                 <li class="ec-progress__item">
  94.                     <div class="ec-progress__number">{{ step }}{% set step = step + 1 %}
  95.                     </div>
  96.                     <div class="ec-progress__label">{{ 'カートの商品'|trans }}
  97.                     </div>
  98.                 </li>
  99.                 {% if is_granted('ROLE_USER') == false %}
  100.                     <li class="ec-progress__item">
  101.                         <div class="ec-progress__number">{{ step }}{% set step = step + 1 %}
  102.                         </div>
  103.                         <div class="ec-progress__label">{{ 'お客様情報'|trans }}
  104.                         </div>
  105.                     </li>
  106.                 {% endif %}
  107.                 <li class="ec-progress__item is-complete">
  108.                     <div class="ec-progress__number">{{ step }}{% set step = step + 1 %}
  109.                     </div>
  110.                     <div class="ec-progress__label">{{ 'ご注文手続き'|trans }}
  111.                     </div>
  112.                 </li>
  113.                 <li class="ec-progress__item">
  114.                     <div class="ec-progress__number">{{ step }}{% set step = step + 1 %}
  115.                     </div>
  116.                     <div class="ec-progress__label">{{ 'ご注文内容確認'|trans }}
  117.                     </div>
  118.                 </li>
  119.                 <li class="ec-progress__item">
  120.                     <div class="ec-progress__number">{{ step }}{% set step = step + 1 %}
  121.                     </div>
  122.                     <div class="ec-progress__label">{{ '完了'|trans }}
  123.                     </div>
  124.                 </li>
  125.             </ul>
  126.         </div>
  127.         <!-- アラートメッセージ -->
  128.         {{ include('Shopping/alert.twig') }}
  129.     </div>
  130.     <form id="shopping-form" method="post" action="{{ url('shopping_confirm') }}">
  131.         {{ form_widget(form._token) }}
  132.         {{ form_widget(form.redirect_to) }}
  133.         <div class="ec-orderRole">
  134.             <div class="ec-orderRole__detail">
  135.                 <div class="ec-orderAccount">
  136.                     <div class="ec-rectHeading">
  137.                         <h2>{{ 'お客様情報'|trans }}</h2>
  138.                     </div>
  139.                     {% if is_granted('ROLE_USER') == false %}
  140.                         <div class="ec-orderAccount__change non-customer-display">
  141.                             <button id="customer" class="ec-inlineBtn" type="button">{{ '変更'|trans }}</button>
  142.                         </div>
  143.                     {% endif %}
  144.                     <div class="ec-orderAccount__account non-customer-display">
  145.                         <p class="ec-halfInput">{{ ''|trans }}<span class="customer-edit customer-name01">{{ Order.name01 }}</span> <span class="customer-edit customer-name02">{{ Order.name02 }}</span>{{ ' 様'|trans }}</p>
  146.                         <p class="ec-halfInput"><span class="customer-edit customer-kana01">{{ Order.kana01 }}</span> <span class="customer-edit customer-kana02">{{ Order.kana02 }}</span></p>
  147.                         <p class="ec-input"><span class="customer-edit customer-company_name">{{ Order.companyName }}</span></p>
  148.                         <p class="ec-zipInput">〒<span class="customer-edit customer-postal_code">{{ Order.postal_code }}</span></p>
  149.                         <p class="ec-input"><span class="customer-edit customer-pref">{{ Order.pref }}</span><span class="customer-edit customer-addr01">{{ Order.addr01 }}</span><span class="customer-edit customer-addr02">{{ Order.addr02 }}</span></p>
  150.                         <p class="ec-telInput"><span class="customer-edit customer-phone_number">{{ Order.phone_number }}</span></p>
  151.                         <p class="ec-input"><span class="customer-edit customer-email">{{ Order.email }}</span></p>
  152.                     </div>
  153.                     {% if is_granted('ROLE_USER') == false %}
  154.                         <div class="ec-borderedDefs  non-customer-edit" style="display:none;">
  155.                             <dl>
  156.                                 <dt>
  157.                                     <label class="ec-label required">{{ 'お名前'|trans }}</label>
  158.                                     <span class="ec-required">{{ '必須'|trans }}</span>
  159.                                 </dt>
  160.                                 <dd>
  161.                                     <div class="ec-halfInput">
  162.                                         <span class="customer-form customer-name01"></span>
  163.                                         <span class="customer-form customer-name02"></span>
  164.                                     </div>
  165.                                 </dd>
  166.                             </dl>
  167.                             <dl>
  168.                                 <dt>
  169.                                     <label class="ec-label required">{{ 'お名前(カナ)'|trans }}</label>
  170.                                     <span class="ec-required">{{ '必須'|trans }}</span>
  171.                                 </dt>
  172.                                 <dd>
  173.                                     <div class="ec-halfInput">
  174.                                         <span class="customer-form customer-kana01"></span>
  175.                                         <span class="customer-form customer-kana02"></span>
  176.                                     </div>
  177.                                 </dd>
  178.                             </dl>
  179.                             <dl>
  180.                                 <dt>
  181.                                     <label class="ec-label" for="nonmember_company_name">{{ '会社名'|trans }}</label>
  182.                                 </dt>
  183.                                 <dd>
  184.                                     <div class="ec-halfInput">
  185.                                         <span class="customer-form customer-company_name"></span>
  186.                                     </div>
  187.                                 </dd>
  188.                             </dl>
  189.                             <dl>
  190.                                 <dt>
  191.                                     <label class="ec-label required">{{ '住所'|trans }}</label>
  192.                                     <span class="ec-required">{{ '必須'|trans }}</span>
  193.                                 </dt>
  194.                                 <dd>
  195.                                     <div class="ec-zipInput">
  196.                                         <span>{{ '〒'|trans }}</span>
  197.                                         <span class="customer-form customer-postal_code"></span>
  198.                                         <div class="ec-zipInputHelp">
  199.                                             <div class="ec-zipInputHelp__icon">
  200.                                                 <div class="ec-icon">
  201.                                                     <img src="{{ asset('assets/icon/question-white.svg') }}" alt="">
  202.                                                 </div>
  203.                                             </div>
  204.                                             <a href="https://www.post.japanpost.jp/zipcode/" target="_blank">
  205.                                                 <span>{{ '郵便番号検索'|trans }}</span>
  206.                                             </a>
  207.                                         </div>
  208.                                     </div>
  209.                                     <div class="ec-select">
  210.                                         <span class="customer-form customer-address_pref"></span>
  211.                                     </div>
  212.                                     <div class="ec-input">
  213.                                         <span class="customer-form customer-address_addr01"></span>
  214.                                     </div>
  215.                                     <div class="ec-input">
  216.                                         <span class="customer-form customer-address_addr02"></span>
  217.                                     </div>
  218.                                 </dd>
  219.                             </dl>
  220.                             <dl>
  221.                                 <dt>
  222.                                     <label class="ec-label required" for="nonmember_phone_number">{{ '電話番号'|trans }}</label>
  223.                                     <span class="ec-required">{{ '必須'|trans }}</span>
  224.                                 </dt>
  225.                                 <dd>
  226.                                     <div class="ec-telInput">
  227.                                         <span class="customer-form customer-phone_number"></span>
  228.                                     </div>
  229.                                 </dd>
  230.                             </dl>
  231.                             <dl>
  232.                                 <dt>
  233.                                     <label class="ec-label required">{{ 'メールアドレス'|trans }}</label>
  234.                                     <span class="ec-required">{{ '必須'|trans }}</span>
  235.                                 </dt>
  236.                                 <dd>
  237.                                     <div class="ec-input">
  238.                                         <span class="customer-form customer-email"></span>
  239.                                     </div>
  240.                                 </dd>
  241.                             </dl>
  242.                         </div>
  243.                         <div class="mod-button" style="display:none;">
  244.                             <span id="customer-ok"><button type="button" class="ec-inlineBtn">{{ 'OK'|trans }}</button></span>
  245.                             <span id="customer-cancel"><button type="button" class="ec-inlineBtn">{{ 'キャンセル'|trans }}</button></span>
  246.                         </div>
  247.                         <input type="hidden" id="customer-name01" class="customer-in" name="customer_name01" value="{{ Order.name01 }}">
  248.                         <input type="hidden" id="customer-name02" class="customer-in" name="customer_name02" value="{{ Order.name02 }}">
  249.                         <input type="hidden" id="customer-kana01" class="customer-in" name="customer_kana01" value="{{ Order.kana01 }}">
  250.                         <input type="hidden" id="customer-kana02" class="customer-in" name="customer_kana02" value="{{ Order.kana02 }}">
  251.                         <input type="hidden" id="customer-company-name" class="customer-in" name="customer_company_name" value="{{ Order.companyName }}">
  252.                         <input type="hidden" id="customer-postal_code" class="customer-in" name="customer_postal_code" value="{{ Order.postal_code }}">
  253.                         <input type="hidden" id="customer-pref" class="customer-in" name="customer_pref" value="{{ Order.pref }}">
  254.                         <input type="hidden" id="customer-addr01" class="customer-in" name="customer_addr01" value="{{ Order.addr01 }}">
  255.                         <input type="hidden" id="customer-addr02" class="customer-in" name="customer_addr02" value="{{ Order.addr02 }}">
  256.                         <input type="hidden" id="customer-phone_number" class="customer-in" name="customer_phone_number" value="{{ Order.phone_number }}">
  257.                         <input type="hidden" id="customer-email" class="customer-in" name="customer_email" value="{{ Order.email }}">
  258.                     {% endif %}
  259.                 </div>
  260.                 <div class="ec-orderDelivery">
  261.                     <div class="ec-rectHeading">
  262.                         <h2>{{ '配送情報'|trans }}</h2>
  263.                     </div>
  264.                     {% for shipping in Order.shippings %}
  265.                         {% set idx = loop.index0 %}
  266.                         {% set isShowReducedTaxMess = false %}
  267.                         <div class="ec-orderDelivery__title">{{ 'お届け先'|trans }}{% if Order.multiple %}({{ loop.index }}){% endif %}
  268.                             <div class="ec-orderDelivery__change">
  269.                                 {% if is_granted('ROLE_USER') %}
  270.                                     <button class="ec-inlineBtn" data-id="{{ shipping.id }}" data-trigger="click" data-path="{{ path('shopping_shipping', {'id': shipping.id}) }}">{{ '変更'|trans }}</button>
  271.                                 {% else %}
  272.                                     <button class="ec-inlineBtn" data-id="{{ shipping.id }}" data-trigger="click" data-path="{{ path('shopping_shipping_edit', {'id': shipping.id}) }}">{{ '変更'|trans }}</button>
  273.                                 {% endif %}
  274.                             </div>
  275.                         </div>
  276.                         <div class="ec-orderDelivery__item">
  277.                             <ul class="ec-borderedList">
  278.                                 {% for orderItem in shipping.productOrderItems %}
  279.                                     <li>
  280.                                         <div class="ec-imageGrid">
  281.                                             <div class="ec-imageGrid__img"><img src="{{ asset((orderItem.product is null ? null : orderItem.product.MainListImage)|no_image_product, 'save_image') }}" alt="{{ orderItem.productName }}"></div>
  282.                                             <div class="ec-imageGrid__content">
  283.                                                 <p>{{ orderItem.productName }}{% if is_reduced_tax_rate(orderItem) %}{{ '※'|trans }}{% set isShowReducedTaxMess = true %}{% endif %}</p>
  284.                                                 {% if orderItem.productClass is not null and orderItem.productClass.classCategory1 %}
  285.                                                     <p>{{ orderItem.productClass.classCategory1.className.name }}:{{ orderItem.productClass.classCategory1 }}</p>
  286.                                                 {% endif %}
  287.                                                 {% if orderItem.productClass is not null and orderItem.productClass.classCategory2 %}
  288.                                                     <p>{{ orderItem.productClass.classCategory2.className.name }}:{{ orderItem.productClass.classCategory2 }}</p>
  289.                                                 {% endif %}
  290.                                                 <p>{{ orderItem.priceIncTax|price }} × {{ orderItem.quantity|number_format }}<span>{{ '小計:'|trans }}{{ orderItem.totalPrice|price }}</span></p>
  291.                                             </div>
  292.                                         </div>
  293.                                     </li>
  294.                                 {% endfor %}
  295.                             </ul>
  296.                             <p>{{ isShowReducedTaxMess ? '※ は軽減税率対象商品です。'|trans }}</p>
  297.                         </div>
  298.                         <div class="ec-orderDelivery__address">
  299.                             <p>{{ ''|trans }}{{ shipping.name01 }} {{ shipping.name02 }} ({{ shipping.kana01 }} {{ shipping.kana02 }}){{ ' 様'|trans }}</p>
  300.                             <p>{{ '〒'|trans }}{{ shipping.postal_code }} {{ shipping.pref }}{{ shipping.addr01 }}{{ shipping.addr02 }}</p>
  301.                             <p>{{ shipping.phone_number }}</p>
  302.                         </div>
  303.                         <div class="ec-orderDelivery__actions">
  304.                             <div class="ec-selects">
  305.                                 <div class="ec-select">
  306.                                     <label>{{ '配送方法'|trans }}</label>
  307.                                     {{ form_widget(form.Shippings[idx].Delivery, { 'attr': { 'class': 'form-control', 'data-trigger': 'change' }}) }}
  308.                                     {{ form_errors(form.Shippings[idx].Delivery) }}
  309.                                 </div>
  310.                                 <div class="ec-select ec-select__delivery">
  311.                                     <label>{{ 'お届け日'|trans }}</label>
  312.                                     {{ form_widget(form.Shippings[idx].shipping_delivery_date, {'attr': {'class': 'form-control'}}) }}
  313.                                     {{ form_errors(form.Shippings[idx].shipping_delivery_date) }}
  314.                                 </div>
  315.                                 <div class="ec-select ec-select__time">
  316.                                     <label>{{ 'お届け時間'|trans }}</label>
  317.                                     {{ form_widget(form.Shippings[idx].DeliveryTime, {'attr': {'class': 'form-control'}}) }}
  318.                                     {{ form_errors(form.Shippings[idx].DeliveryTime) }}
  319.                                 </div>
  320.                             </div>
  321.                         </div>
  322.                     {% endfor %}
  323.                     <div class="ec-orderDelivery__edit">
  324.                         <button type="button" class="ec-inlineBtn" data-trigger="click" data-path="{{ path('shopping_shipping_multiple') }}">{{ 'お届け先を追加する'|trans }}</button>
  325.                     </div>
  326.                 </div>
  327.                 <div class="ec-orderPayment">
  328.                     <div class="ec-rectHeading">
  329.                         <h2>{{ 'お支払方法'|trans }}</h2>
  330.                     </div>
  331.                     <div class="ec-radio">
  332.                         {% for key, child in form.Payment %}
  333.                             <div style="display: block;">
  334.                                 {% set Payment = form.Payment.vars.choices[key].data %}
  335.                                 {{ form_widget(child, { 'attr': { 'data-trigger': 'change' }}) }}
  336.                                 {% if Payment.payment_image is not null %}
  337.                                     <p><img src="{{ asset(Payment.payment_image, 'save_image') }}"></p>
  338.                                 {% endif %}
  339.                             </div>
  340.                         {% endfor %}
  341.                     </div>
  342.                     <div class="ec-input {{ has_errors(form.Payment) ? ' error' }}">{{ form_errors(form.Payment) }}</div>
  343.                 </div>
  344.                 {% if BaseInfo.isOptionPoint and Order.Customer is not null %}
  345.                     <div class="ec-orderPayment">
  346.                         <div class="ec-rectHeading">
  347.                             <h2>{{ '利用ポイント'|trans }}</h2>
  348.                         </div>
  349.                         <div class="ec-input {{ has_errors(form.use_point) ? ' error' }}">
  350.                             <p>{{ '%point% pt が利用可能です。'|trans({ '%point%': Order.Customer.Point|number_format }) }}</p>
  351.                             {{ form_widget(form.use_point, { 'attr': { 'type': 'text', 'class': 'form-control', 'data-trigger': 'change' }}) }}
  352.                             {{ form_errors(form.use_point) }}
  353.                         </div>
  354.                     </div>
  355.                 {% endif %}
  356.                 <div class="ec-orderConfirm">
  357.                     <div class="ec-rectHeading">
  358.                         <h2>{{ 'お問い合わせ'|trans }}</h2>
  359.                     </div>
  360.                     <div class="ec-input">
  361.                         {{ form_widget(form.message, {'attr': {'class': 'form-control', 'placeholder': 'お問い合わせ事項がございましたら、こちらにご入力ください。(3000文字まで)'|trans, 'rows': '6'}}) }}
  362.                         {{ form_errors(form.message) }}
  363.                     </div>
  364.                 </div>
  365.                 {% for activeTradeLaw in activeTradeLaws|filter(t => t.name and t.description) %}
  366.                     <div class="ec-orderConfirm">
  367.                         <div class="ec-rectHeading">
  368.                             <h2>{{ activeTradeLaw.name }}</h2>
  369.                         </div>
  370.                         <div class="ec-input">
  371.                             {{ activeTradeLaw.description|raw }}
  372.                         </div>
  373.                     </div>
  374.                 {% endfor %}
  375.             </div>
  376.             <div class="ec-orderRole__summary">
  377.                 <div class="ec-totalBox">
  378.                     <dl class="ec-totalBox__spec">
  379.                         <dt>{{ '小計'|trans }}</dt>
  380.                         <dd class="ec-totalBox__specTotal">{{ Order.subtotal|price }}</dd>
  381.                     </dl>
  382.                     <dl class="ec-totalBox__spec">
  383.                         <dt>{{ '手数料'|trans }}</dt>
  384.                         <dd>{{ Order.charge|price }}</dd>
  385.                     </dl>
  386.                     <dl class="ec-totalBox__spec">
  387.                         <dt>{{ '送料'|trans }}</dt>
  388.                         <dd>{{ Order.deliveryFeeTotal|price }}</dd>
  389.                     </dl>
  390.                     {% if Order.taxable_discount < 0 %}
  391.                     <dl class="ec-totalBox__spec">
  392.                         <dt>{{ '値引き'|trans }}</dt>
  393.                         <dd>{{ Order.taxable_discount|price }}</dd>
  394.                     </dl>
  395.                     {% endif %}
  396.                     <div class="ec-totalBox__total">{{ '合計'|trans }}<span class="ec-totalBox__price">{{ Order.taxable_total|price }}</span><span class="ec-totalBox__taxLabel">{{ '税込'|trans }}</span></div>
  397.                     {% for item in Order.tax_free_discount_items %}
  398.                         <dl class="ec-totalBox__spec">
  399.                             <dt>{{ item.product_name }}</dt>
  400.                             <dd>{{ item.total_price|price }}</dd>
  401.                         </dl>
  402.                     {% endfor %}
  403.                     <div class="ec-totalBox__paymentTotal">{{ 'お支払い合計'|trans }}<span class="ec-totalBox__price">{{ Order.payment_total|price }}</span><span class="ec-totalBox__taxLabel">{{ '税込'|trans }}</span></div>
  404.                     {% for rate, total in Order.total_by_tax_rate %}
  405.                     <dl class="ec-totalBox__taxRate">
  406.                         <dt>{{ '税率 %rate% %対象'|trans({ '%rate%': rate }) }}</dt>
  407.                         <dd>{{ total|price }} ({{ '内消費税'|trans }} {{ Order.tax_by_tax_rate[rate]|price }})</dd>
  408.                     </dl>
  409.                     {% endfor %}
  410.                     {% if BaseInfo.isOptionPoint and Order.Customer is not null %}
  411.                     <div class="ec-totalBox__pointBlock">
  412.                         <dl class="ec-totalBox__spec">
  413.                             <dt>{{ 'ご利用ポイント'|trans }}</dt>
  414.                             <dd>{{ Order.UsePoint|number_format }} pt</dd>
  415.                         </dl>
  416.                         <dl class="ec-totalBox__spec">
  417.                             <dt><span class="ec-font-bold">{{ '加算ポイント'|trans }}</span></dt>
  418.                             <dd><span class="ec-font-bold">{{ Order.AddPoint|number_format }} pt</span></dd>
  419.                         </dl>
  420.                     </div>
  421.                     {% endif %}
  422.                     <div class="ec-totalBox__btn">
  423.                         <button type="submit" class="ec-blockBtn--action">{{ '確認する'|trans }}</button>
  424.                         <a href="{{ url("cart") }}" class="ec-blockBtn--cancel">{{ 'カートに戻る'|trans }}</a>
  425.                     </div>
  426.                 </div>
  427.             </div>
  428.         </div>
  429.     </form>
  430.     <script>
  431.         /**
  432.          * ゆうパックが選択されたら、日時を非表示にする。
  433.          */
  434.         $(function(){
  435.             let selectShipping = document.getElementById('shopping_order_Shippings_0_Delivery');
  436.             let deliveryDay = document.getElementsByClassName('ec-select__delivery');
  437.             let deliveryTime = document.getElementsByClassName('ec-select__time');
  438.             let yuPackId = 4;
  439.             let yuPackId_B = 6; //販売種別B商品
  440.             if(selectShipping.value == yuPackId || selectShipping.value == yuPackId_B){ //4:ゆうぱっく
  441.                 deliveryDay[0].hidden = true;
  442.                 deliveryTime[0].hidden = true;
  443.                 //未選択にする
  444.                 deliveryDay[0].selectedIndex = -1;
  445.                 deliveryTime[0].selectedIndex = -1;
  446.             } else {
  447.                 deliveryDay[0].hidden = false;
  448.                 deliveryTime[0].hidden = false;
  449.             }
  450.             selectShipping.addEventListener('change', function(){
  451.                 if(selectShipping.value == yuPackId || selectShipping.value == yuPackId_B){
  452.                     deliveryDay[0].hidden = true;
  453.                     deliveryTime[0].hidden = true;
  454.                     //未選択にする
  455.                     deliveryDay[0].selectedIndex = -1;
  456.                     deliveryTime[0].selectedIndex = -1;
  457.                 } else {
  458.                     deliveryDay[0].hidden = false;
  459.                     deliveryTime[0].hidden = false;
  460.                 }
  461.             });
  462.         });
  463.     </script>
  464. {% endblock %}