{#
最近チェックした商品
#}
{% if productHistory %}
<div class="ec-shelfRole ym-historyRole ym-role">
{% if app.request.get('_route') != 'product_detail' %}
<div class="ym-heading">
<span class="ym-heading_lv2">最近チェックした商品</span>
</div>
{% else %}
<div class="ec-secHeading">
<span class="ec-secHeading__en">CHECK ITEM</span>
<span class="ec-secHeading__line"></span>
<span class="ec-secHeading__ja">最近チェックした商品</span>
</div>
{% endif %}
<ol class="ym-historyRole__list ym-item__list">
{% for product in productHistory %}
<li class="ym-historyRole__item ym-item">
<a href="{{ url('product_detail', {'id': product.id}) }}">
<p class="ym-item__image"><img src="{{ asset(product.main_list_image|no_image_product, 'save_image') }}"></p>
<p class="ym-item__name">{{ product.name }}</p>
<p class="ym-item__price">
{% if product.hasProductClass %}
{% if product.getPrice02Min == product.getPrice02Max %}
{{ product.getPrice02IncTaxMin|price }}
{% else %}
{{ product.getPrice02IncTaxMin|price }} ~ {{ product.getPrice02IncTaxMax|price }}
{% endif %}
{% else %}
{{ product.getPrice02IncTaxMin|price }}
{% endif %}
{% for ProductCategory in product.ProductCategories %}
{% set break = false %}
{% for Category in ProductCategory.Category.path if not break %}
{% if Category.id == 7 %}
<span class="ym-tag ym-tag_y">YAMASHITA</span>
{% set break = true %}
{% elseif Category.id == 8 %}
<span class="ym-tag ym-tag_m">Maria</span>
{% set break = true %}
{% endif %}
{% endfor %}
{% endfor %}
</a>
</li>
{% endfor %}
{#
<li class="ym-historyRole__item ym-item">
<a href="">
<p class="ym-item__image"><img
src="/html/user_data/assets/img/dummy/img_dummy_01.jpg"></p>
<p class="ym-item__name">エギ王Kケイムラ</p>
<p class="ym-item__price">¥4,400(税込)</p>
<span class="ym-tag ym-tag_y">YAMASHITA</span>
</a>
</li>
<li class="ym-historyRole__item ym-item">
<a href="">
<p class="ym-item__image"><img
src="/html/user_data/assets/img/dummy/img_dummy_08.jpg"></p>
<p class="ym-item__name">Mariaドライポロシャツ</p>
<p class="ym-item__price">¥3,850(税込)</p>
<span class="ym-tag ym-tag_m">Maria</span>
</a>
</li>
<li class="ym-historyRole__item ym-item">
<a href="">
<p class="ym-item__image"><img
src="/html/user_data/assets/img/dummy/img_dummy_11.jpg"></p>
<p class="ym-item__name">Mariaカッティングステッカー</p>
<p class="ym-item__price">¥1,650(税込)</p>
<span class="ym-tag ym-tag_m">Maria</span>
</a>
</li>
<li class="ym-historyRole__item ym-item">
<a href="">
<p class="ym-item__image"><img
src="/html/user_data/assets/img/dummy/img_dummy_04.jpg"></p>
<p class="ym-item__name">エギ王Tシャツ</p>
<p class="ym-item__price">¥3,300(税込)</p>
<span class="ym-tag ym-tag_y">YAMASHITA</span>
</a>
</li>
<li class="ym-historyRole__item ym-item">
<a href="">
<p class="ym-item__image"><img
src="/html/user_data/assets/img/dummy/img_dummy_10.jpg"></p>
<p class="ym-item__name">Maria×ST(ストリームトレイル) ロックショアバッグ</p>
<p class="ym-item__price">¥18,700(税込)</p>
<span class="ym-tag ym-tag_m">Maria</span>
</a>
</li>
<li class="ym-historyRole__item ym-item">
<a href="">
<p class="ym-item__image"><img
src="/html/user_data/assets/img/dummy/img_dummy_06.jpg"></p>
<p class="ym-item__name">YAMASHITA キャップ</p>
<p class="ym-item__price">¥3,300(税込)</p>
<span class="ym-tag ym-tag_y">YAMASHITA</span>
</a>
</li>
#}
</ol>
</div>
{% endif %}