app/template/default/Product/components/set_product/set_product_selected.twig line 1

Open in your IDE?
  1.                 <div class="add_option">
  2.                     <div class="description">
  3.                         組み合わせるとよりお洒落になる{{ sets.option_name}}をご用意しております。<br>ご希望の{{ sets.option_name}}を選択して頂き、「セット商品を表示する」をクリックして頂くと、<br>「植物と植木鉢」を組み合わせたセット商品が表示されます。
  4.                     </div>
  5.                     <form action="{{ url('product_detail', {'id': Product.id}) }}#set_block" id="form_selected" method="get">
  6.                      <ul class="pots_list">
  7.                         {% set id_count = [] %}
  8.                             {% for pot in sets['option_product'] %}
  9.                                 {% set exist_id = false %}
  10.                                   {% for t in id_count %}
  11.                                     {% if t == pot.id  %}
  12.                                      {% set exist_id = true %}
  13.                                      {% endif %}
  14.                                  {% endfor %}
  15.                                  {% set id_count = id_count|merge([pot.id]) %}
  16.                                     {# 既に表示されている商品のみ表示 #}
  17.                                     {% if exist_id == false  %}
  18.                                      <li><input id="pot_{{ pot.id}}" name="option_id[]" value="{{ pot.id}}" type="radio">
  19.                                         <label for="pot_{{ pot.id}}">
  20.                                             <div class="text">
  21.                                                 {{ pot.name}}
  22.                                             </div>
  23.                                             <div class="image">
  24.                                                 <img src="{{  asset(pot.main_list_image|no_image_product, 'save_image') }}">                    
  25.                                             </div>
  26.                                             <div class="select_btn">
  27.                                                 選択する
  28.                                             </div>
  29.                                             <div class="selected_btn">
  30.                                                 選択済み
  31.                                             </div>
  32.                                         </label>
  33.                                     </li>
  34.                                 {% endif %}
  35.                             {% endfor %}
  36.                         </ul>
  37.                         {% if(sets['set_show'] == "true"  ) %}
  38.                             <div class="btnWrap none" data-name="show_btn">
  39.                                 <button class="submit">セット商品を表示する</button> 
  40.                             </div>
  41.                         {% else %}
  42.                             <div class="btnWrap" data-name="show_btn">
  43.                                 <button class="submit">セット商品を表示する</button> 
  44.                             </div>
  45.                         {% endif %}
  46.                     </form>
  47.                 </div>