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