{#
* This file is part of the Recommend Product plugin
*
* Copyright (C) EC-CUBE CO.,LTD. All Rights Reserved.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
#}
{% set recommend_products = repository('Plugin\\Recommend42\\Entity\\RecommendProduct').getRecommendProduct %}
<section id="products">
<h2>PRODUCTS<span>HERBAの商品</span></h2>
<div class="section_body mt-5">
<div class="row">
{% for RecommendProduct in recommend_products %}
<div class="col-6 col-lg-4">
<div class="mb-5">
<a class="d-block pos-relative" href="{{ url('product_detail', {'id': RecommendProduct.Product.id}) }}">
<img src="{{ asset(RecommendProduct.Product.mainFileName|no_image_product, "save_image") }}">
<div class="py-3">
<p class="title mt-1 mb-0">
{{ RecommendProduct.Product.name }}
</p>
</a>
<p class="price mt-2 mb-0">
{% if RecommendProduct.Product.hasProductClass %}
{% if RecommendProduct.Product.getPrice02Min == RecommendProduct.Product.getPrice02Max %}
{{ RecommendProduct.Product.getPrice02IncTaxMin|price }}
{% else %}
{{ RecommendProduct.Product.getPrice02IncTaxMin|price }} ~ {{ RecommendProduct.Product.getPrice02IncTaxMax|price }}
{% endif %}
{% else %}
{{ RecommendProduct.Product.getPrice02IncTaxMin|price }}
{% endif %}
</p>
</div>
</div>
</div>
{% endfor %}
</div>
</section>
<!-- ▲item_list▲ -->