{#
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 data-device="pc" class="ec-cartNaviWrap device-only">
<div class="ec-cartNavi">
<div class="cart-menu__item menu-price">
<span class="menu-item__number menu-itemicon">{{ totalQuantity|number_format }}</span>
<span class="menu-item__price">{{ totalPrice|price }}</span>
</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 %}
<div class="ec-cartNaviIsset__cart">
<div class="ec-cartNaviIsset__cartContent">
<div class="ec-cartNaviIsset__cartContentTitle">{{ Product.name }}</div>
<div class="ec-cartNaviIsset__cartContentDetail">
<div class="ec-cartNaviIsset__cartContentPrice">{{ CartItem.price|price }}<span class="ec-cartNaviIsset__cartContentTax">{{ '(税込)'|trans }}</span></div>
<div class="ec-cartNaviIsset__cartContentNumber">{{ '数量:'|trans }} {{ CartItem.quantity|number_format }}</div>
</div>
</div>
</div>
{% 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>
<div data-device="mobile" class="ec-cartNaviWrap device-only">
<div class="ec-cartNavi">
<div class="cart-menu__item menu-basket">
<a href="{{ url('cart') }}">
<img src="{{ asset('assets/img/common/icon_basket_gray.svg') }}">
{% if totalQuantity > 0 %}
<span class="menu-item__number">{{ totalQuantity|number_format }}</span>
{% endif %}
</a>
</div>
</div>
</div>