{#This file is part of EC-CUBE#}
{#Copyright(c) Takashi Otaki All Rights Reserved.#}
{#For the full copyright and license information, please view the LICENSE#}
{#file that was distributed with this source code.#}
{% if ItemRanking is not empty %}
<div class="l-shopwrap">
<div class="p-contents">
<div class="flex p-contents_title">
<h2 class="p-mainitems-title u-mainitems-title">{{ Config.item_ranking_title }}</h2>
<p class="u-mainitems-title__en u-alignright baskerville">Sold Ranking</p>
</div>
<div class="p-mainitems_wrap p-mainitems_wrap_ranking">
{% for item in ItemRanking %}
<div class="p-items p-items2">
<a href="{{ url('product_detail', {'id': item.id}) }}">
<div class="p-items-title">
<p class="p-items-title__ja">{{ item.name }}</p>
<p class="p-items-title__en">Kakiyama Select</p>
</div>
<div class="p-items__img">
{% for image in item.ProductImage %}
{% if loop.first %}
<img src="{{ asset(image, 'save_image') }}" alt="{{ item.name }}">
{% endif %}
{% else %}
<img src="{{ asset(''|no_image_product, 'save_image') }}" alt="{{ item.name }}">
{% endfor %}
</div>
{#{% if Config.item_ranking_disp_price == 1 %}#}
{#<p class="price02_default">#}
{# {% if item.hasProductClass %}#}
{# {% if item.getPrice02Min == item.getPrice02Max %}#}
{# {{ item.getPrice02IncTaxMin|price }}#}
{# {% else %}#}
{# {{ item.getPrice02IncTaxMin|price }} ~ {{ item.getPrice02IncTaxMax|price }}#}
{# {% endif %}#}
{# {% else %}#}
{# {{ item.getPrice02IncTaxMin|price }}#}
{# {% endif %}#}
{#</p>#}
{#{% endif %}#}
{#{% if Config.item_ranking_disp_code == 1 %}#}
{#<p>{{ item.code_min }}{% if item.code_min != item.code_max %} ~ {{ item.code_max }}{% endif %}</p>#}
{#{% endif %}#}
{#{% if Config.item_ranking_disp_description_detail == 1 %}#}
{#<p>{{ item.description_detail|raw|nl2br }}</p>#}
{#{% endif %}#}
</a>
{% if Config.item_ranking_disp_cat == 1 %}
{% for ProductCategory in item.ProductCategories %}
<p>
{% for Category in ProductCategory.Category.path %}
<a href="{{ url('product_list') }}?category_id={{ Category.id }}">{{ Category.name }}</a>
{%- if loop.last == false %}<span>></span>{% endif -%}
{% endfor %}
</p>
{% endfor %}
{% endif %}
</div>
{% endfor %}
</div>
</div>
</div>
{% endif %}