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

Open in your IDE?
  1. {#
  2.  * This file is part of the Recommend Product plugin
  3.  *
  4.  * Copyright (C) EC-CUBE CO.,LTD. All Rights Reserved.
  5.  *
  6.  * For the full copyright and license information, please view the LICENSE
  7.  * file that was distributed with this source code.
  8. #}
  9. {% set recommend_products = repository('Plugin\\Recommend42\\Entity\\RecommendProduct').getRecommendProduct %}
  10. <!-- ▼item_list▼ -->
  11.             <section class="l-blockRole">
  12.                 <div class="u-cts">
  13.                     <div class="u-cts__inner">
  14.                         <h3 class="c-h3__title--a">この商品を見ている人におすすめ</h3>
  15.                         <ul class="p-recommendList c-list--b">
  16.         {% for RecommendProduct in recommend_products %}
  17.             <li>
  18.                 <a href="{{ url('product_detail', {'id': RecommendProduct.Product.id}) }}" class="c-button--f" target="_blank">
  19.                                     <div class="image">
  20.                     <img src="{{ asset(RecommendProduct.Product.mainFileName|no_image_product, "save_image") }}" alt="{{ RecommendProduct.Product.name }}" loading="lazy">
  21. {#                                        <span class="tag">送料無料</span> #}
  22.                                     </div>
  23. {#                    <p>{{ RecommendProduct.comment|raw|nl2br }}</p> #}
  24.                                     <div class="body">
  25.                                         <div class="box-left">
  26.                                             <p class="brand">Pamouna</p>
  27.                         <h4 class="name">{{ RecommendProduct.Product.name }}</h4>
  28.                         <p class="price">
  29.                             {% if RecommendProduct.Product.hasProductClass %}
  30.                                 {% if RecommendProduct.Product.getPrice02Min == RecommendProduct.Product.getPrice02Max %}
  31.                                     {{ RecommendProduct.Product.getPrice02IncTaxMin|price }}
  32.                                 {% else %}
  33.                                     {{ RecommendProduct.Product.getPrice02IncTaxMin|price }} ~ {{ RecommendProduct.Product.getPrice02IncTaxMax|price }}
  34.                                 {% endif %}
  35.                             {% else %}
  36.                                 {{ RecommendProduct.Product.getPrice02IncTaxMin|price }}
  37.                             {% endif %}
  38.                         </p>
  39.                                         </div>
  40.                                     </div>
  41.                 </a>
  42.             </li>
  43.         {% endfor %}
  44.                             </li>
  45.                         </ul>
  46.                     </div>
  47.                 </div>
  48.             <!-- / --></section>
  49. <!-- ▲item_list▲ -->