app/template/bootcube2/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. <section id="products">
  11. <h2>PRODUCTS<span>HERBAの商品</span></h2>
  12. <div class="section_body mt-5">
  13. <div class="row">
  14.         {% for RecommendProduct in recommend_products %}
  15. <div class="col-6 col-lg-4">
  16. <div class="mb-5">
  17.                 <a class="d-block pos-relative" href="{{ url('product_detail', {'id': RecommendProduct.Product.id}) }}">
  18. <img src="{{ asset(RecommendProduct.Product.mainFileName|no_image_product, "save_image") }}">
  19. <div class="py-3">
  20. <p class="title mt-1 mb-0">
  21.              {{ RecommendProduct.Product.name }}
  22. </p>
  23. </a>
  24. <p class="price mt-2 mb-0">
  25.                             {% if RecommendProduct.Product.hasProductClass %}
  26.                                 {% if RecommendProduct.Product.getPrice02Min == RecommendProduct.Product.getPrice02Max %}
  27.                                     {{ RecommendProduct.Product.getPrice02IncTaxMin|price }}
  28.                                 {% else %}
  29.                                     {{ RecommendProduct.Product.getPrice02IncTaxMin|price }} ~ {{ RecommendProduct.Product.getPrice02IncTaxMax|price }}
  30.                                 {% endif %}
  31.                             {% else %}
  32.                                 {{ RecommendProduct.Product.getPrice02IncTaxMin|price }}
  33.                             {% endif %}
  34. </p>
  35. </div>
  36. </div>
  37. </div>
  38.         {% endfor %}
  39. </div>
  40. </section>
  41. <!-- ▲item_list▲ -->