{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
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 %}
<div class="ec-role">
<div class="ec-recommendedItemRole">
<div class="ec-recommendedItemRole__listTitle">
<div class="ec-recommendedItemRole__listItemHeading ec-secHeading--tandem">
<span class="ec-secHeading__en">{{ 'Recommended'|trans }}</span>
<span class="ec-secHeading__ja">{{ 'おすすめの商品'|trans }}</span>
</div>
<a class="ec-recommendedBtn--more show-resultPC" href="{{ url('recommended_list') }}">{{ 'おすすめ商品一覧を見る'|trans }}</a>
</div>
<div class="ec-recommendedItemRole__list">
{% for key, RecommendProduct in recommend_products %}
{% if key < 8 %}
<div class="ec-recommendedItemRole__listItem">
<a href="{{ url('product_detail', {'id': RecommendProduct.Product.id}) }}">
<div><img src="{{ asset(RecommendProduct.Product.mainFileName|no_image_product, "save_image") }}"></div>
<span class="ec-recommendedItemRole__listItemContent">
<p class="ec-recommendedItemRole__listItemTitle">{{ RecommendProduct.Product.name }}</p>
<p class="ec-recommendedItemRole__listItemPrice">
{% 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 %}{{ '(税込)'|trans }}
</p>
</span>
</a>
</div>
{% endif %}
{% endfor %}
</div>
<div class="ec-recommendedItemRole__listTitle">
<a class="ec-recommendedBtn--more show-resultSP" href="{{ url('recommended_list') }}">{{ 'おすすめ商品一覧を見る'|trans }}</a>
</div>
</div>
</div>