{% extends '@SyliusShop/layout.html.twig' %} {% form_theme form '@SyliusShop/Form/theme.html.twig' %} {% import '@SyliusShop/Common/Macro/messages.html.twig' as messages %} {% set header = 'sylius.ui.your_shopping_cart' %} {% block title %} {{ header|trans }} | {{ parent() }} {% endblock %} {% block content %} {% if not cart.empty %} {% include '@SyliusShop/Cart/Summary/_header.html.twig' %}
{% if not black_friday %}
{% if reduction is defined and (reduction.current_promotion_percentage * 100) > 0 %}

Vous avez {{ (reduction.current_promotion_percentage * 100)|number_format(0) }}%. {% if reduction.next_promotion_volume > 0 %} Plus que {{ reduction.next_promotion_volume }} bouteilles pour bénéficier de {{ (reduction.next_promotion_percentage * 100)|number_format(0) }}% sur votre commande. {% else %} Vous bénéficiez déjà de la meilleure réduction possible ! {% endif %}

{% elseif reduction is defined %} {% if reduction.next_promotion_volume > 0 %}

Plus que {{ reduction.next_promotion_volume }} bouteilles pour bénéficier de {{ (reduction.next_promotion_percentage * 100)|number_format(0) }}% sur votre commande.

{% else %}

Aucune réduction disponible pour le moment.

{% endif %} {% else %}

Aucune réduction disponible pour le moment.

{% endif %}
{% endif %} {{ sylius_template_event('sylius.shop.cart.items', {cart, form}) }}
{{ sylius_template_event('sylius.shop.cart.summary', {cart}) }} {% set groupes_cibles = [12, 427, 'GFV2', 'GFV3'] %} {% set groupe = app.user and app.user.customer ? app.user.customer.group : null %} {% set groupe_code = groupe ? (groupe.code ?? groupe.id) : null %} {% if groupe_code in groupes_cibles %}

Frais de livraison offerts dès 250 € d'achat (Hors commande avec fermage) ou si retrait au château.

{% else %}

Frais de livraison offerts dès 250 € d'achat ou si retrait au château.

{%endif %}
{# Affichage du message si le total est inférieur à 250 € #}
{{ sylius_template_event('sylius.shop.cart.suggestions', {'cart': cart}) }} {% else %} {{ messages.info('sylius.ui.your_cart_is_empty') }} {% endif %} {% endblock %}