app/template/default/Block/refine_new_product.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of Refine
  3. Copyright(c) 2023 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_new_product.new_product'|trans }}({{ 'admin.common.count'|trans({ '%count%': count }) }})</h2>
  11.         <ul class="ec-shelfGrid">
  12.             {% for Product in Products  %}
  13.                 <li class="ec-shelfGrid__item">
  14.                     <a href="{{ url('product_detail', {'id': Product.id}) }}">
  15.                         <img src="{{ asset(Product.main_list_image|no_image_product, "save_image") }}" alt="{{ Product.name }}">
  16.                         <dl>
  17.                             <dt class="item_name">{{ Product.name }}</dt>
  18.                             <dd class="item_price">
  19.                                 {% if Product.hasProductClass %}
  20.                                     {% if Product.getPrice02Min == Product.getPrice02Max %}
  21.                                         {{ Product.getPrice02IncTaxMin|price }}
  22.                                     {% else %}
  23.                                         {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
  24.                                     {% endif %}
  25.                                 {% else %}
  26.                                     {{ Product.getPrice02IncTaxMin|price }}
  27.                                 {% endif %}
  28.                             </dd>
  29.                         </dl>
  30.                     </a>
  31.                 </li>
  32.             {% endfor %}
  33.         </ul>
  34.     </div>
  35. {% endif %}