{% set nbProducts = 0 %}{% set cart = cartMgr.getCart() %}{% for item in cart.items %}{% set nbProducts = nbProducts+item.quantity %}{% endfor %}{% if priceGroup is not defined %}{% set priceGroup = customerMgr.getPriceContext() %}{% endif %}<div class="block header-block block-cart"><a class="cart-block" href="{{ path('cart_details') }}"><span class="nb-products {% if nbProducts == 0 %}hidden{% endif %}">{{ nbProducts }}</span><img src="{{ asset('img/cart.svg') }}" alt="{% trans %}Mon panier{% endtrans %}" width="30" height="30"></a><div class="cart-content">{% if cart.items|length > 0 %}<div class="items scroll-pane"><ul>{% for item in cart.getItems(app.request.get('_locale')) %}{% include 'front/cart/block-item.html.twig' with {item:item} %}{% endfor %}</ul></div><div class="added"></div><a href="{{ path('cart_details') }}" class="bt-order">Voir mon panier</a>{% else %}<div class="empty">Votre panier est vide.</div>{% endif %}</div></div>