app/template/default/Block/refine_check_item.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.     <section class="item_other c">
  10.         <div class="c_inner">
  11.           <h2 class="c_ttl ft_e">Recently checked</h2>
  12.         </div>
  13.         <div class="c_bg">
  14.           <ul class="item_list">
  15.               {% for Product in Products  %}
  16.                   <li>
  17.                       <a href="{{ url('product_detail', {'id': Product.id}) }}">
  18.                           <img src="{{ asset(Product.main_list_image|no_image_product, "save_image") }}" alt="{{ Product.name }}">
  19.                           <dl>
  20.                               <dt>{{ Product.brand }}<br>
  21.                               <dt>{{ Product.name }}</dt>
  22.                               <dd class="price">
  23.                               {% for prdClass in Product.ProductClasses %}
  24.                               {% if prdClass.ClassCategory1 is not empty %}
  25.                               {% if not ("併設スタジオ利用時のみ" in prdClass.ClassCategory1.name) %}
  26.                               <p>{{ prdClass.ClassCategory1.name }}<i>{{ prdClass.price01|price }}</i></p>
  27.                               {% endif %}
  28.                               {% endif %}
  29.                               {% endfor %}
  30.                               </dd>
  31.                               <dd>{{ Product.number }}</dd>
  32.                           </dl>
  33.                       </a>
  34.                       <div class="favo">
  35.                         <form action="{{ url('product_add_favorite', {id:Product.id}) }}" method="post">
  36.                           {% if Product.SearchWord is empty %}
  37.                               <button type="submit" class="favorite" title="{{ 'お気に入りに追加'|trans }}"></button>
  38.                           {% else %}
  39.                               <button type="submit" class="favorite done" disabled="disabled" title="{{ 'お気に入りに追加済です。'|trans }}"></button>
  40.                           {% endif %}
  41.                         </form>
  42.                       </div>
  43.                   </li>
  44.               {% endfor %}
  45.           </ul>
  46.         </div>
  47.     </section>
  48. {% endif %}