templates/Components/cart.html.twig line 1

Open in your IDE?
  1. <stoelting-cart
  2.     :visible="visible"
  3.     :price-total-label="'Grand Total'"
  4.     :price-subtotal-label="'Products in cart: %count%'"
  5.     :remove-item-label="'Remove'"
  6.     :user-logged="{{ app.user ? "true" : "false" }}"
  7.     :disable-changes="{{ disableChanges }}"
  8.     coupon-code-placeholder="{{'Coupon code...' | trans }}"
  9.     add-coupon-label="Add"
  10.     remove-coupon-label="{{ 'Remove coupon' | trans }}"
  11.     add-coupon-button="Save"
  12. >
  13.     <template v-slot:footer>
  14.         {% if app.user %}
  15.             <a href="{{ path('quote', {'division': getSiteDivision(), 'action': 'index'}) }}" class="btn btn-ghost mr-2 mr-lg-2 mr-md-2">
  16.                 {{ 'cart.save-quote.cart' | trans }}
  17.             </a>
  18.             {% if isEU is defined and not isEU %}
  19.                 <a href="{{ path('checkout', {'division': getSiteDivision(), 'action': 'index'}) }}" class="btn btn-primary mini-cart-btn-place-oder">
  20.                     {{ 'cart.place.order' | trans }}
  21.                 </a>
  22.             {% endif %}
  23.         {% else %}
  24.             <a href="{{ path('login', {'division': getSiteDivision(),'_target_path' : app.request.requestUri}) }}"  class="btn btn-ghost text-nowrap mr-2 mr-lg-2 mr-md-2">
  25.                 {{ 'cart.login.quote' | trans }}
  26.             </a>
  27.             <a href="{{ path('login', {'division': getSiteDivision(),'_target_path' : app.request.requestUri}) }}"  class="btn btn-primary text-nowrap mini-cart-btn-place-oder">
  28.                 {{ 'cart.login.checkout' | trans }}
  29.             </a>
  30.         {% endif %}
  31.     </template>
  32. </stoelting-cart>