{#
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() %}
<div class="ec-cartNaviWrap">
<div class="ec-cartNavi">
<img src="{{ asset('assets/img/icon03.png', 'user_data') }}" alt="" width="23">
<div class="ec-cartNavi__label">
<div class="ec-cartNavi__price">{{ totalPrice|price }}</div>
</div>
</div>
{% if totalQuantity > 0 %}
<div class="ec-cartNaviIsset">
{% for Cart in Carts %}
{% for CartItem in Cart.CartItems %}
{% set ProductClass = CartItem.ProductClass %}
{% set Product = ProductClass.Product %}
<a href="{{ url('product_detail', {'id': Product.id }) }}">
<div class="ec-cartNaviIsset__cart">
<div>
<div class="ec-cartNaviIsset__cartContentTitle cart_name" data-id="{{ProductClass.ClassCategory1.id}}">{{ Product.name }} {% if ProductClass.ClassCategory1 and ProductClass.ClassCategory1.id %}{{ ProductClass.ClassCategory1 }}{% endif %}</div>
<div class="ec-cartNaviIsset__cartContentPrice">
{{ CartItem.price|price }}
<div class="ec-cartNaviIsset__cartContentTax">{{ '税込'|trans }}</div>
</div>
</div>
</div>
</a>
{% endfor %}
{% endfor %}
<div class="ec-cartNaviIsset__action">
<a class="ec-blockBtn--action" href="{{ url('cart') }}">{{ 'カートへ進む'|trans }}</a>
<a class="ec-blockBtn ec-cartNavi--cancel">{{ 'キャンセル'|trans }}</a>
</div>
</div>
{% else %}
<div class="ec-cartNaviNull">
<div class="ec-cartNaviNull__message">
<p>{{ '現在カート内に商品はございません。'|trans }}</p>
</div>
</div>
{% endif %}
</div>