custom/plugins/Wasvehicles/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_add_promotion %}
  3.     {% if context.customer.groupId == config('CytrusImport.config.fanGroupId') %}
  4.         {{ parent() }}
  5.     {% endif %}
  6. {% endblock %}
  7. {% block page_checkout_cart_add_product_input_group %}
  8.     {% if context.customer.groupId != config('CytrusImport.config.fanGroupId') %}
  9.         {{ parent() }}
  10.     {% endif %}
  11. {% endblock %}
  12. {% block page_checkout_cart_shipping_costs_trigger %}
  13. {% endblock %}
  14. {% block page_checkout_cart_shipping_costs_form_group %}
  15.     <div class="collapse show" id="collapseShippingCost">
  16.         {% block page_checkout_cart_shipping_costs_form_group_country %}
  17.             {% if not context.customer %}
  18.                 <div class="form-group">
  19.                     <label for="countryId">{{ "checkout.shippingCountry"|trans|sw_sanitize }}</label>
  20.                     <select class="custom-select" type="text" id="countryId" name="countryId">
  21.                         {% for country in page.countries %}
  22.                             <option value="{{ country.id }}"
  23.                                 {{ country.id == context.shippingLocation.country.id ? 'selected="selected"' : '' }}>
  24.                                 {{ country.translated.name }}
  25.                             </option>
  26.                         {% endfor %}
  27.                     </select>
  28.                 </div>
  29.             {% endif %}
  30.         {% endblock %}
  31.         {% block page_checkout_cart_shipping_costs_form_group_payment_method %}
  32.             <div class="form-group">
  33.                 <label for="paymentMethodId">{{ "checkout.paymentMethod"|trans|sw_sanitize }}</label>
  34.                 <select class="custom-select" type="text" id="paymentMethodId" name="paymentMethodId">
  35.                     {% for payment in page.paymentMethods %}
  36.                         <option value="{{ payment.id }}"
  37.                             {% if payment.id == context.paymentMethod.id %} selected="selected"{% endif %}>
  38.                             {{ payment.translated.name }}
  39.                         </option>
  40.                     {% endfor %}
  41.                 </select>
  42.             </div>
  43.         {% endblock %}
  44.         {% block page_checkout_cart_shipping_costs_form_group_shipping_method %}
  45.             <div class="form-group">
  46.                 <label for="shippingMethodId">{{ "checkout.shippingMethod"|trans|sw_sanitize }}</label>
  47.                 <select class="custom-select" type="text" id="shippingMethodId" name="shippingMethodId">
  48.                     {% for shipping in page.shippingMethods %}
  49.                         <option value="{{ shipping.id }}"
  50.                             {% if shipping.id == context.shippingMethod.id %} selected="selected"{% endif %}>
  51.                             {{ shipping.translated.name }}
  52.                         </option>
  53.                     {% endfor %}
  54.                 </select>
  55.             </div>
  56.         {% endblock %}
  57.         <input type="hidden" name="redirectTo" value="frontend.checkout.cart.page">
  58.     </div>
  59. {% endblock %}