app/template/mizunasu/Block/refine_check_item.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of Refine
  3. Copyright(c) 2021 Refine Co.,Ltd. All Rights Reserved.
  4. https://www.re-fine.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8. {% if Products %}
  9. {% set cnt="1" %}
  10.     <div class="ec-shelfRole">
  11.         <h2 class="ec-headingTitle">{{ 'refine_check_item.check_item'|trans }}</h2>
  12.         <ul class="ec-shelfGrid">
  13.             {% for ProductArray in Products  %}
  14.             {% if cnt < 5 %}
  15.                 {% set Product = ProductArray.Product %}
  16.                 {% set hasStock = ProductArray.hasStock %}
  17.                 <li class="ec-shelfGrid__item">
  18.                     <a href="{{ url('product_detail', {'id': Product.id}) }}">
  19.                         <img src="{{ asset(Product.main_list_image|no_image_product, "save_image") }}" alt="{{ Product.name }}">
  20.                         <dl>
  21.                             <dt class="item_name">{{ Product.name }}</dt>
  22.                             <dd class="item_price">
  23.                                 {% if Product.hasProductClass %}
  24.                                     {% if Product.getPrice02Min == Product.getPrice02Max %}
  25.                                         {{ Product.getPrice02IncTaxMin|price }}
  26.                                     {% else %}
  27.                                         {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
  28.                                     {% endif %}
  29.                                 {% else %}
  30.                                     {{ Product.getPrice02IncTaxMin|price }}
  31.                                 {% endif %}
  32.                             </dd>
  33.                             <dd>
  34.                                 {% if hasStock %}
  35.                                     {{ 'refine_check_item.has_stock'|trans }}
  36.                                 {% else %}
  37.                                     {{ 'refine_check_item.no_stock'|trans }}
  38.                                 {% endif %}
  39.                             </dd>
  40.                         </dl>
  41.                     </a>
  42.                 </li>
  43.                     {% set cnt = cnt +1 %}
  44.                 {% endif %}
  45.                    
  46.             {% endfor %}
  47.         </ul>
  48.     </div>
  49. {% endif %}