app/template/unishop/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.     <div class="ec-shelfRole">
  10.         <h2 class="ec-headingTitle">{{ 'refine_check_item.check_item'|trans }}</h2>
  11.         <ul class="ec-shelfGrid">
  12.             {% for ProductArray in Products  %}
  13.                 {% set Product = ProductArray.Product %}
  14.                 {% set hasStock = ProductArray.hasStock %}
  15.                 <li class="ec-shelfGrid__item">
  16.                     <a href="{{ url('product_detail', {'id': Product.id}) }}">
  17.                         <div><img src="{{ asset(Product.main_list_image|no_image_product, "save_image") }}" alt="{{ Product.name }}"></div>
  18.                         <dl>
  19.                             <dt class="item_name">{{ Product.name }}</dt>
  20.                             <dd class="item_price">
  21.                                 {% if Product.hasProductClass %}
  22.                                     {% if Product.getPrice02Min == Product.getPrice02Max %}
  23.                                         {{ Product.getPrice02IncTaxMin|price }}
  24.                                     {% else %}
  25.                                         {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
  26.                                     {% endif %}
  27.                                 {% else %}
  28.                                     {{ Product.getPrice02IncTaxMin|price }}
  29.                                 {% endif %}
  30.                             </dd>
  31.                             <dd>
  32.                                 {% if hasStock %}
  33.                                     {{ 'refine_check_item.has_stock'|trans }}
  34.                                 {% else %}
  35.                                     {{ 'refine_check_item.no_stock'|trans }}
  36.                                 {% endif %}
  37.                             </dd>
  38.                         </dl>
  39.                     </a>
  40.                 </li>
  41.             {% endfor %}
  42.         </ul>
  43.     </div>
  44. {% endif %}