custom/plugins/TwigelHardTheme/src/Resources/views/storefront/page/checkout/cart/index.html.twig line 1

Open in your IDE?
  1. {% sw_extends "@Storefront/storefront/page/checkout/cart/index.html.twig" %}
  2. {% block page_checkout_cart_shipping_costs %}
  3. {% endblock %}
  4. {% block page_checkout_cart_action_proceed %}
  5.     <div class="checkout-aside-action action-checkout-btn">
  6.         <a href="{{ path('frontend.checkout.confirm.page') }}"
  7.            class="btn btn-primary btn-block btn-lg begin-checkout-btn"
  8.            title="{{ "checkout.proceedLink"|trans|striptags }}">
  9.             {{ "checkout.proceedLink"|trans|sw_sanitize }}
  10.             {% sw_icon "arrow-left" style{
  11.                 "pack":"arrows",
  12.                 "namespace":"TwigelHardTheme"
  13.             } %}
  14.         </a>
  15.     </div>
  16. {% endblock %}
  17. {% block page_checkout_cart_add_promotion %}
  18.     <div class="sidebar-actions-wrapper">
  19.         {{ parent() }}
  20.         <div class="col-md-8 cart-shipping-costs-container">
  21.             <form name="precalc"
  22.                   method="post"
  23.                   action="{{ path('frontend.checkout.configure') }}"
  24.                   data-form-auto-submit="true">
  25.                 {% block page_checkout_cart_shipping_costs_csrf %}
  26.                     {{ parent() }}
  27.                 {% endblock %}
  28.                 {% block page_checkout_cart_shipping_costs_trigger %}
  29.                     {{ parent() }}
  30.                 {% endblock %}
  31.                 {% block page_checkout_cart_shipping_costs_form_group %}
  32.                     <div class="collapse" id="collapseShippingCost">
  33.                         {% block page_checkout_cart_shipping_costs_form_group_country %}
  34.                             {% if not context.customer %}
  35.                                 <div class="form-group">
  36.                                     <label for="countryId">{{ "checkout.shippingCountry"|trans|sw_sanitize }}</label>
  37.                                     <select class="custom-select" type="text" id="countryId" name="countryId">
  38.                                         {% for country in page.countries %}
  39.                                             <option value="{{ country.id }}"
  40.                                                 {{ country.id == context.shippingLocation.country.id ? 'selected="selected"' : '' }}>
  41.                                                 {{ country.translated.name }}
  42.                                             </option>
  43.                                         {% endfor %}
  44.                                     </select>
  45.                                     {% sw_icon "arrow-down" style{
  46.                                         "pack":"arrows",
  47.                                         "namespace":"TwigelHardTheme"
  48.                                     } %}
  49.                                 </div>
  50.                             {% endif %}
  51.                         {% endblock %}
  52.                         {% block page_checkout_cart_shipping_costs_form_group_payment_method %}
  53.                             <div class="form-group">
  54.                                 <label for="paymentMethodId">{{ "checkout.paymentMethod"|trans|sw_sanitize }}</label>
  55.                                 <select class="custom-select" type="text" id="paymentMethodId" name="paymentMethodId">
  56.                                     {% if context.paymentMethod.id not in page.paymentMethods.ids %}
  57.                                         <option value="{{ context.paymentMethod.id }}"
  58.                                                 selected="selected"
  59.                                                 disabled="disabled">
  60.                                             {{ context.paymentMethod.translated.name }} {{ "checkout.notAvailableSuffix"|trans|sw_sanitize }}
  61.                                         </option>
  62.                                     {% endif %}
  63.                                     {% for payment in page.paymentMethods %}
  64.                                         <option value="{{ payment.id }}"
  65.                                             {% if payment.id == context.paymentMethod.id %} selected="selected"{% endif %}>
  66.                                             {{ payment.translated.name }}
  67.                                         </option>
  68.                                     {% endfor %}
  69.                                 </select>
  70.                                 {% sw_icon "arrow-down" style{
  71.                                     "pack":"arrows",
  72.                                     "namespace":"TwigelHardTheme"
  73.                                 } %}
  74.                             </div>
  75.                         {% endblock %}
  76.                         {% block page_checkout_cart_shipping_costs_form_group_shipping_method %}
  77.                             <div class="form-group">
  78.                                 <label for="shippingMethodId">{{ "checkout.shippingMethod"|trans|sw_sanitize }}</label>
  79.                                 <select class="custom-select" type="text" id="shippingMethodId" name="shippingMethodId">
  80.                                     {% if context.shippingMethod.id not in page.shippingMethods.ids %}
  81.                                         <option value="{{ context.shippingMethod.id }}"
  82.                                                 selected="selected"
  83.                                                 disabled="disabled">
  84.                                             {{ context.shippingMethod.translated.name }} {{ "checkout.notAvailableSuffix"|trans|sw_sanitize }}
  85.                                         </option>
  86.                                     {% endif %}
  87.                                     {% for shipping in page.shippingMethods %}
  88.                                         <option value="{{ shipping.id }}"
  89.                                             {% if shipping.id == context.shippingMethod.id %} selected="selected"{% endif %}>
  90.                                             {{ shipping.translated.name }}
  91.                                         </option>
  92.                                     {% endfor %}
  93.                                 </select>
  94.                                 {% sw_icon "arrow-down" style{
  95.                                     "pack":"arrows",
  96.                                     "namespace":"TwigelHardTheme"
  97.                                 } %}
  98.                             </div>
  99.                         {% endblock %}
  100.                         <input type="hidden" name="redirectTo" value="frontend.checkout.cart.page">
  101.                     </div>
  102.                 {% endblock %}
  103.             </form>
  104.         </div>
  105.     </div>
  106. {% endblock %}