{#
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 Carts = get_all_carts() %}
{% set totalPrice = get_carts_total_price() %}
{% set totalQuantity = get_carts_total_quantity() %}
<a class="cart" href=""><img src="{{ asset('assets/img/plot/ico_cart.svg', 'user_data') }}" alt=""><i class="ft_e">{{ totalQuantity|number_format }}</i></a>
<div class="h_cart">
{% if totalQuantity > 0 %}
{% for Cart in Carts %}
{% for CartItem in Cart.CartItems %}
{% set ProductClass = CartItem.ProductClass %}
{% set Product = ProductClass.Product %}
<div class="row2">
<figure><img src="{{ asset(Product.MainListImage|no_image_product, 'save_image') }}" alt="{{ Product.name }}"></figure>
<div class="desc">
<p class="name">{{ Product.name }}</p>
{% if ProductClass.ClassCategory1 and ProductClass.ClassCategory1.id %}
<p>{{ ProductClass.ClassCategory1.ClassName.name }}:{{ ProductClass.ClassCategory1 }}</p>
{% endif %}
{% if ProductClass.ClassCategory2 and ProductClass.ClassCategory2.id %}
<p>{{ ProductClass.ClassCategory2.ClassName.name }}:{{ ProductClass.ClassCategory2 }}</p>
{% endif %}
<p class="price">
{{ CartItem.price|price }}<small>{{ '税込'|trans }}</small>
</p>
<p>{{ '数量'|trans }} {{ CartItem.quantity|number_format }}</p>
</div>
</div>
{% endfor %}
{% endfor %}
<div class="action">
<a href="{{ url('cart') }}">{{ 'カートへ進む'|trans }}</a>
<a href="" class="cancel">{{ 'キャンセル'|trans }}</a>
</div>
{% else %}
<p class="none">現在カート内に商品はございません。</p>
<div class="action">
<a href="" class="cancel">キャンセル</a>
</div>
{% endif %}
</div>