templates/front/cart/details.html.twig line 1

Open in your IDE?
  1. {% extends 'front/front.html.twig' %}
  2. {% block bodyClass %}cart{% endblock %}
  3. {% block breadcrumbs %}
  4. {% include 'front/layout/breadcrumbs.html.twig' with {'page':'Panier'} %}
  5. {% endblock %}
  6. {% block javascripts %}
  7. <script>
  8. var giftRoute = '{{ path('cart_add_gift') }}';
  9. </script>
  10. {% endblock %}
  11. {% block content %}
  12. <div id="shopping-cart" class="ctn cf shopping-cart order-process">
  13. {% include 'front/checkout/steps.html.twig' with {'step':1} %}
  14. <div class="tools">
  15. <a href="{{ path('checkout_cart_validation') }}" class="button bt-black">{% trans %}Valider le panier{% endtrans %}</a>
  16. </div>
  17. <h1>{% trans %}Panier{% endtrans %}</h1>
  18. <h2>{% trans %}Bon de commande ou devis{% endtrans %}</h2>
  19. <div class="checkout-ctn">
  20. {# <div class="discounts">
  21. <h3>{% trans %}Vos avantages clients{% endtrans %}</h3>
  22. <div class="img">
  23. {% include 'front/cart/discounts.html.twig' %}
  24. </div>
  25. </div>#}
  26. {% if customerMgr.isLogged() and cart.canAddGift() and not cart.hasGift and (gifts|length > 0) %}
  27. {% include 'front/cart/gift-choice.html.twig' %}
  28. {% endif %}
  29. {% include 'front/layout/messages.html.twig' %}
  30. <div class="cart-details">
  31. <div class="tools" style="text-align:left; ">
  32. <a class="bt-cart-empty" href="{{ path('cart_empty') }}">{% trans %}Vider le panier{% endtrans %}</a>
  33. <div class="products-total">{% trans %}Sous total HT : {% endtrans %} <span class="total-products">{{ cart.totalProducts|price }}</span></div>
  34. </div>
  35. <table>
  36. <tbody>
  37. {% if cart.items|length %}
  38. {% for item in cart.getItems(app.request.get('_locale')) %}
  39. {% include 'front/cart/cart-line.html.twig' with { item:item } %}
  40. {% endfor %}
  41. {% else %}
  42. <tr class="empty"><td colspan="8">{% trans %}Votre panier est vide.{% endtrans %}</td></tr>
  43. {% endif %}
  44. {% if cart.isExpert() %}
  45. <tr class="cartcoupon cartdiscount">
  46. <td class="infos-ctn" colspan="3">
  47. {% trans %}Remise Expert{% endtrans %}
  48. </td>
  49. <td class="price-ctn">
  50. {{ cart.getTotalProductsDiscount() | price }}
  51. </td>
  52. </tr>
  53. {% endif %}
  54. {% if cart.coupons|length %}
  55. {% for coupon in cart.coupons %}
  56. {% include 'front/cart/coupon-line.html.twig' with { coupon:coupon } %}
  57. {% endfor %}
  58. {% endif %}
  59. </tbody>
  60. <tfoot>
  61. <tr class="total-products-line">
  62. <td class="label total-products-label">
  63. </td>
  64. <td colspan="2" class="label total-products-label">
  65. {% trans %}Total Produit HT : {% endtrans %}
  66. </td>
  67. <td class="price total-products">
  68. {% if cart.items|length %}
  69. {{ cart.getTotalProducts(true) | price }}
  70. {% else %}
  71. 0,00 €
  72. {% endif %}
  73. </td>
  74. </tr>
  75. </tfoot>
  76. </table>
  77. {% if cart.items|length %}
  78. <form class="coupon-form">
  79. <div class="text">
  80. <label>{% trans %}Code de réduction : {% endtrans %}</label>
  81. <input type="text" name="coupon" value="" id="coupon">
  82. </div>
  83. <button class="button">{% trans %}Appliquer{% endtrans %}</button>
  84. <div class="output"></div>
  85. </form>
  86. {% endif %}
  87. <div class="cart-navigation cf" {% if cart.items|length==0 %}style="display:none;"{% endif %}>
  88. <a href="{{ path('checkout_cart_validation') }}" class="button bt-black validate"><span>{% trans %}Valider le panier{% endtrans %}</span></a>
  89. </div>
  90. </div>
  91. <div class="cart-mentions">
  92. {% if not customerMgr.isExpert() %}
  93. <p>{% trans %}Livraison gratuite dès 99 euros d'achat. Livraison en France métropolitaine uniquement (sauf Corse et Dropshipping){% endtrans %}</p>
  94. {% endif %}
  95. </div>
  96. <div class="footer-spacer"></div>
  97. </div>
  98. </div>
  99. {% endblock %}
  100. {% block newsletter %}{% endblock %}