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