templates/bundles/FactoryCartBundle/cart/index.html.twig line 1

Open in your IDE?
  1. {% extends 'layout/default.html.twig' %}
  2. {% block contentBlock %}
  3. <div class="cartPage {{ cartData.products is defined and cartData.products ? '' : 'cartPage-bg' }}">
  4.     <div id="VueCart" class="container my-5 my-lg-5 my-md-5">
  5.         {% if cartData.products is defined and cartData.products %}
  6.             <div class="row" style="display: none;" v-show="isCartInitialized && !isEmpty">
  7.                 <div class="col-xl-12 border-2 border-bottom border-indigo pb-3 pb-lg-3 pb-md-3">
  8.                     <div class="row">
  9.                         <div class="col-lg-4 offset-lg-1 col-md-4">
  10.                             <div class="d-flex align-items-center">
  11.                                 <h1 class="font-weight-bold font-italic mb-0    ">
  12.                                     {{ 'cart.cart.page.heading' | trans }}
  13.                                 </h1>
  14.                             </div>
  15.                         </div>
  16.                         <div class="col-lg-6 ml-auto col-md-8 d-flex align-items-center">
  17.                             <ul class="progressbar ml-auto">
  18.                                 <li class="text-capitalize active">
  19.                                     <span class="success-checkmark">&#10003;</span>
  20.                                     Cart preview
  21.                                 </li>
  22.                                 <li class="text-capitalize no-completed">
  23.                                     <span class="success-checkmark">&#10003;</span>
  24.                                     Billing & Shipping
  25.                                 </li>
  26.                                 <li class="text-capitalize no-completed">
  27.                                     <span class="success-checkmark">&#10003;</span>
  28.                                     Payment
  29.                                 </li>
  30.                             </ul>
  31.                         </div>
  32.                     </div>
  33.                 </div>
  34.             </div>
  35.         {% endif %}
  36.         <div class="row">
  37.             <div class="col-lg-10 offset-lg-1">
  38.                 <div>
  39.                     <div style="display: none;" v-show="isCartInitialized && !isEmpty">
  40.                         {% include "Components/cart.html.twig" with {'disableChanges': 'false' } %}
  41.                     </div>
  42.                     {% if not app.user %}
  43.                         <div style="display: none;" v-show="isCartInitialized && isEmpty">
  44.                             <h1 class="font-weight-bold font-italic text-navyBlue mb-4 mb-lg-4 mb-md-4">
  45.                                 {{ 'your.cart.empty.heading' | trans }}
  46.                             </h1>
  47.                             <h5 class="font-weight-light">
  48.                                 {{ 'cart.empty.checkout-1' | trans }}
  49.                                 <a href="{{ path('login', {'division': getSiteDivision(), '_target_path' : app.request.requestUri}) }}">{{'cart.empty.checkout-1-link' | trans}}</a>
  50.                             </h5>
  51.                             <h5 class="font-weight-light">
  52.                                 {{ 'cart.empty.checkout-2' | trans }}
  53.                                 <a href="{{ path('register', {'division': getSiteDivision(), '_target_path' : app.request.requestUri}) }}">{{ 'cart.empty.checkout-2-link' | trans}}</a>
  54.                             </h5>
  55.                         </div>
  56.                     {% else %}
  57.                         <div style="display: none;" v-show="isCartInitialized && isEmpty">
  58.                             <h1 class="font-weight-bold font-italic text-navyBlue mb-4 mb-lg-4 mb-md-4">
  59.                                 {{ 'your.cart.empty.heading.logged' | trans }}
  60.                             </h1>
  61.                             <h5 class="font-weight-light mb-4 mb-lg-4 mb-md-4">
  62.                                 {{ 'cart.empty.checkout-logged-1' | trans }}
  63.                             </h5>
  64.                             <h5 class="font-weight-light">
  65.                                 <a href="{{ path('register', {'division': getSiteDivision(), '_target_path' : app.request.requestUri}) }}" class="btn btn-primary">{{ 'browser.product.checkout' | trans }}</a>
  66.                             </h5>
  67.                         </div>
  68.                     {% endif %}
  69.                 </div>
  70.             </div>
  71.         </div>
  72.     </div>
  73. </div>
  74. {% endblock %}
  75. {% block beforeScripts %}
  76. <script>
  77.     window.billing_information = function (id, setCookie) {
  78.         setCookie('__order_billing_address_id', 'customer');
  79.         setCookie('__billing_address_id', 'customer');
  80.     }
  81.     window.shipping_information = function (id, setCookie) {
  82.         setCookie('__order_shipping_address_id', 'delivery');
  83.         setCookie('__shipping_address_id', 'delivery');
  84.     }
  85. </script>
  86. {% endblock %}