templates/product/cart_drawers.html.twig line 1

Open in your IDE?
  1. <div class="cart-drawer-wrapper" 
  2.     data-controller="cart-drawer" 
  3.     data-url="{{ path('shopping_cart_json') }}"
  4.     data-action="add-to-cart@window->cart-drawer#handleAddToCart"
  5. >
  6.     <!-- Cart Drawer -->
  7.     <div id="cartDrawer" class="cart-drawer">
  8.         <div class="cart-drawer-container {% if cart.isEmpty() is same as(true)%}cart-empty{% endif %}" data-cart-drawer-target="cartContainer">
  9.             
  10.             <div class="cart-header show-cart-content">
  11.                 <div class="wrapper d-flex justify-content-between align-items-center">
  12.                     <h2>Shopping Cart (<span class="cart-products-count" data-cart-drawer-target="productCount">0</span>)</h2>
  13.                     <!-- Cart items go here -->
  14.                     <a href="#" id="closeCart" data-action="click->cart-drawer#closeCart">Close [X]</a>
  15.                 </div>
  16.             </div>
  17.             <div class="cart-content show-cart-content" data-cart-drawer-target="cartContent"></div>
  18.             <div class="cart-footer show-cart-content">
  19.                 <div class="cart-subtotal d-flex justify-content-between">
  20.                     <div class="left">
  21.                         <h4>Subtotal:</h4>
  22.                         <p class="cart-policy">Taxes and <a href="">Shipping</a> calculated at checkout</p>
  23.                     </div>
  24.                     <div class="right">
  25.                         <h4 class="sub-total-amount" data-cart-drawer-target="subtotalAmount">{{ currency(0.00) }}</h4>
  26.                     </div>
  27.                 </div>
  28.                 <div class="policy-scroll">
  29.                     <div class="marquee">
  30.                         <p>All charges are billed in <span>USD</span>. While the content of your cart is currently displayed in <span class="selected-currency"></span>, the checkout will use <span>USD</span> at the most current exchange rate.</p>
  31.                     </div>
  32.                 </div>
  33.                 <div class="agree-term-conditions">
  34.                     <p>
  35.                         <input style="float:none; vertical-align: middle;" type="checkbox" class="agree_terms_conditions">
  36.                         <label style="display:inline; float:none" for="agree">
  37.                             I agree with the <a href="#">terms and conditions</a>
  38.                         </label>
  39.                     </p>
  40.                 </div>
  41.                 <div class="footer-buttons d-flex">
  42.                     <a href="{{ path('shopping_checkout') }}" class="btn btn-teritary-fast btn-checkout"><span class="text">Check out</span></a>
  43.                     <a href="{{ path('shopping_cart') }}" class="btn btn-teritary-fast outline btn-view-cart"><span class="text">View Cart</span></a>
  44.                 </div>
  45.             </div>
  46.             <div class="cart-empty-container">
  47.                 <div class="cart-header">
  48.                     <div class="wrapper d-flex justify-content-between align-items-center">
  49.                         <h2>Shopping Cart (<span class="cart-products-count" data-cart-drawer-target="productCount">0</span>)</h2>
  50.                         <!-- Cart items go here -->
  51.                         <a href="#" id="closeCart" data-action="click->cart-drawer#closeCart">Close [X]</a>
  52.                     </div>
  53.                 </div>
  54.                 <div class="empty-cart text-center">
  55.                     <h4>Cart Empty</h4>
  56.                     <p class="text-center">Your shopping cart is empty</p>
  57.                     <a href="{{ path('product_list') }}">Continue Shoppings</a>
  58.                 </div>
  59.             </div>
  60.         </div>
  61.         <div class="spinner-wrapper" data-cart-drawer-target="spinner">
  62.             <div class="spinner"></div>
  63.             <span>Loading...</span>
  64.         </div>
  65.     </div>
  66.     <!-- Overlay Background -->
  67.     <div id="cartOverlay" class="cart-overlay" data-action="click->cart-drawer#closeCart"></div>
  68. </div>