themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Cart/Widget/_popup.html.twig line 1

Open in your IDE?
  1. {% import "@SyliusShop/Common/Macro/money.html.twig" as money %}
  2. {% set minimum_order_value = cart.channel.minimumOrderValue %}
  3. {% set total = sylius_order_items_subtotal(cart) %}
  4. {% if cart.empty %}
  5. {% else %}
  6.     <div class="panier-deroulant text-left">
  7.         <div class="content-panier-deroulant">
  8.             {% if is_granted('ROLE_USER') %}
  9.                 {% set missingFrancoPortHT = app_get_missing_franco_port() %}
  10.                 {% if missingFrancoPortHT %}
  11.                     {#{% set missingFrancoPort = missingFrancoPortHT * 1.2 %}#}
  12.                     <div class="font-weight-bold">{{'app.product.more_than'|trans}} <span class="color-primary-s">{{ money.convertAndFormat(missingFrancoPortHT) }}</span> {{'app.product.to_benefit_the_free_delivery'|trans|raw}}</div>
  13.                 {% endif %}
  14.             {% endif %}
  15.             <div class="panier-bottom">
  16.                 <table class="table table-panier-perso table-perso font-16 mb-0 text-dark" width="100%" cellpading="0">
  17.                     <tr >
  18.                         <td class="px-0 py-2 border-top border-left-0 border-right-0 ">
  19.                             <span>{{ 'app.cart.shipping_estimated_cost'|trans }} :</span>
  20.                         </td>
  21.                         <td class="text-right px-0 font-weight-bold py-2  border-top border-left-0 border-right-0 ">
  22.                             <strong id="sylius-summary-shipping-total" >{{ money.convertAndFormat(cart.shippingTotal) }}</strong>
  23.                         </td>
  24.                     </tr>
  25.                     <tr>
  26.                         <td class="text-left py-2  px-0"><span> {{ 'app.cart.totalHT'|trans }} : </span></td>
  27.                         <td class="text-right py-2  px-0"><strong class="font-weight-bold">{{ money.convertAndFormat(cart.itemsTotal) }}</strong></td>
  28.                     </tr> 
  29.                     <tr>
  30.                         <td class="px-0 border-top-0 border-left-0 border-right-0 border-bottom py-2">
  31.                             <div class=" px-0">{{ 'app.cart.order_total'|trans }} :  </div>
  32.                         </td>
  33.                         <td id="sylius-summary-grand-total" class="text-right  px-0 py-2 border-top-0 border-left-0 border-right-0 border-bottom">
  34.                             <strong class="font-weight-bold  px-0  color-pink-s font-22">{{ money.convertAndFormat(cart.total) }}</strong>
  35.                         </td>
  36.                     </tr>
  37.                 </table>
  38.             </div>
  39.             <div class="btn-panier-der pt-2" >
  40.                 {% if total >= minimum_order_value %}
  41.                     <a href="{{ path('sylius_shop_checkout_start') }}" class="btn-link btn-block py-btn-2 text-uppercase" title="{{ 'app.cart.pay_order'|trans }}"> {{ 'sylius.ui.checkout'|trans }}</a>
  42.                 {% endif %}
  43.             </div>
  44.         </div>
  45.     </div>
  46. {% endif %}