{#
/*
* This file is part of the CheckProduct plugin
*
* Copyright(c) 2019 SYSTEM FRIEND INC.
*
*/
#}
{% if CheckProducts|length > 0 %}
<div class="ec-secHeading">
<h2 class="comTtl03">Check Items</h2>
</div>
<div>
<div class="itemList checkItems">
{% for Product in CheckProducts %}
{% if Product.hasProductClass -%}
{% if Product.getPrice01Min is not null and Product.getPrice01IncTaxMin == Product.getPrice01IncTaxMax %}
{% set price = Product.getPrice01()[0] %}
{% set taxIn = Product.getPrice01IncTaxs()[0] %}
{% elseif Product.getPrice01Min is not null and Product.getPrice01Max is not null %}
{% set price = Product.getPrice01()[0] %}
{% set taxIn = Product.getPrice01IncTaxs()[0] %}
{% endif %}
{% else -%}
{% if Product.getPrice01Max is not null %}
{% set price = Product.getPrice01()[0] %}
{% set taxIn = Product.getPrice01IncTaxs()[0] %}
{% endif %}
{% endif -%}
{% if Product.hasProductClass -%}
{% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
{% set price = Product.getPrice02()[0] %}
{% set taxIn = Product.getPrice02IncTaxs()[0] %}
{% else %}
{% set price = Product.getPrice02()[0] %}
{% set taxIn = Product.getPrice02IncTaxs()[0] %}
{% endif %}
{% else -%}
{% set price = Product.getPrice02()[0] %}
{% set taxIn = Product.getPrice02IncTaxs()[0] %}
{% endif -%}
<div class="item product-box" data-id="{{ Product.id }}" data-name="{{ Product.name }}" data-category="{% for ProductCategory in Product.ProductCategories %}{% for Category in ProductCategory.Category.path %}{% if(loop.parent.loop.index != 1) %}{{ Category.name }}{% endif %}{% endfor %}{% endfor %}
" data-price="{{ taxIn }}">
<a href="{{ url('product_detail', {'id': Product.id}) }}" class="product-link">
<img class="lazyload" src="/html/template/raspia/img/common/load_logo.webp" data-src="{{ asset(Product.main_list_image.getWebpImage()|no_image_product, 'save_image') }}">
<h3 class="ttl">{{ Product.name }}</h3>
</a>
<p>
{{ taxIn|price }} <span class="small">(税込)</span>
{% if Product.stock_find %}
{% else %}
<span class="soldOut">SOLD OUT</span>
{% endif %}
</p>
</div>
{% endfor %}
</div>
</div>
{% endif %}
{% block stylesheet %}
<style type="text/css">
.itemList.checkItems{
justify-content: center;
}
.ec-checkProductRole{
padding: 60px 0 0;}
.ec-checkProductItemRole__list {
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap; }
.ec-checkProductRole__listItem{
margin-bottom: 4%;
width: 48%;
height: auto; }
.ec-checkProductRole__listItem:nth-child(odd) {
margin-right: 4%; }
.ec-checkProductRole__listItemTitle {
margin: 8px 0;
font-size: 14px;
font-weight: bold;
color: black; }
.ec-checkProductRole{
padding: 60px 0;
}
.ec-checkProductItemRole__list{
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
}
.ec-checkProductRole__listItem{
margin-bottom: 15px;
width: calc(100% / 4);
}
.ec-checkProductRole__listItem:not(:last-of-type){
margin-right: 30px;
}
.ec-checkProductRole__listItemTitle:nth-child(odd){
margin-right: 30px;
}
</style>
{% endblock %}