app/template/raspia/Block/check_product.twig line 1

Open in your IDE?
  1. {#
  2. /*
  3.  * This file is part of the CheckProduct plugin
  4.  *
  5.  * Copyright(c) 2019 SYSTEM FRIEND INC.
  6.  *
  7.  */
  8. #}
  9. {% if CheckProducts|length > 0 %}
  10.             <div class="ec-secHeading">
  11.                 <h2 class="comTtl03">Check Items</h2>
  12.             </div>
  13.             <div>
  14.                 <div class="itemList checkItems">
  15.                     {% for Product in CheckProducts %}
  16.                         {% if Product.hasProductClass -%}
  17.                             {% if Product.getPrice01Min is not null and Product.getPrice01IncTaxMin == Product.getPrice01IncTaxMax %}
  18.                                 {% set price = Product.getPrice01()[0] %}
  19.                                 {% set taxIn = Product.getPrice01IncTaxs()[0] %}
  20.                             {% elseif Product.getPrice01Min is not null and Product.getPrice01Max is not null %}
  21.                                 {% set price = Product.getPrice01()[0] %}
  22.                                 {% set taxIn = Product.getPrice01IncTaxs()[0] %}
  23.                             {% endif %}
  24.                         {% else -%}
  25.                             {% if Product.getPrice01Max is not null %}
  26.                                 {% set price = Product.getPrice01()[0] %}
  27.                                 {% set taxIn = Product.getPrice01IncTaxs()[0] %}
  28.                             {% endif %}
  29.                         {% endif -%}
  30.                         {% if Product.hasProductClass -%}
  31.                             {% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
  32.                                 {% set price = Product.getPrice02()[0] %}
  33.                                 {% set taxIn = Product.getPrice02IncTaxs()[0] %}
  34.                             {% else %}
  35.                                 {% set price = Product.getPrice02()[0] %}
  36.                                 {% set taxIn = Product.getPrice02IncTaxs()[0] %}
  37.                             {% endif %}
  38.                         {% else -%}
  39.                             {% set price = Product.getPrice02()[0] %}
  40.                             {% set taxIn = Product.getPrice02IncTaxs()[0] %}
  41.                         {% endif -%}
  42.                         <div class="item product-box" data-id="{{ Product.id }}" data-name="{{ Product.name }}" data-category="{% for ProductCategory in Product.ProductCategories %}{% for Category in ProductCategory.Category.path %}{% if(loop.parent.loop.index != 1) %}{{ Category.name }}{%  endif  %}{% endfor %}{% endfor %}
  43.             " data-price="{{ taxIn }}">
  44.                             <a href="{{ url('product_detail', {'id': Product.id}) }}" class="product-link">
  45.                                 <img class="lazyload" src="/html/template/raspia/img/common/load_logo.webp" data-src="{{ asset(Product.main_list_image.getWebpImage()|no_image_product, 'save_image') }}">
  46.                                 <h3 class="ttl">{{ Product.name }}</h3>
  47.                             </a>
  48.                                 <p>
  49.                                     {{ taxIn|price }} <span class="small">(税込)</span>
  50.                                     {% if Product.stock_find %}
  51.                                     {% else %}
  52.                                         <span class="soldOut">SOLD OUT</span>
  53.                                     {% endif %}
  54.                                 </p>
  55.                         </div>
  56.                     {% endfor %}
  57.                 </div>
  58.             </div>
  59. {% endif %}
  60. {% block stylesheet %}
  61.     <style type="text/css">
  62.         .itemList.checkItems{
  63.             justify-content: center;
  64.         }
  65.         .ec-checkProductRole{
  66.             padding: 60px 0 0;}
  67.         .ec-checkProductItemRole__list {
  68.             display: -ms-flexbox;
  69.             display: flex;
  70.             -ms-flex-wrap: wrap;
  71.             flex-wrap: wrap; }
  72.         .ec-checkProductRole__listItem{
  73.             margin-bottom: 4%;
  74.             width: 48%;
  75.             height: auto; }
  76.         .ec-checkProductRole__listItem:nth-child(odd) {
  77.             margin-right: 4%; }
  78.         .ec-checkProductRole__listItemTitle {
  79.             margin: 8px 0;
  80.             font-size: 14px;
  81.             font-weight: bold;
  82.             color: black; }
  83.         .ec-checkProductRole{
  84.             padding: 60px 0;
  85.         }
  86.         .ec-checkProductItemRole__list{
  87.             -ms-flex-wrap: nowrap;
  88.             flex-wrap: nowrap;
  89.         }
  90.         .ec-checkProductRole__listItem{
  91.             margin-bottom: 15px;
  92.             width: calc(100% / 4);
  93.         }
  94.         .ec-checkProductRole__listItem:not(:last-of-type){
  95.             margin-right: 30px;
  96.         }
  97.         .ec-checkProductRole__listItemTitle:nth-child(odd){
  98.             margin-right: 30px;
  99.         }
  100.     </style>
  101. {% endblock %}