{% sw_extends '@Storefront/storefront/page/checkout/cart/index.html.twig' %}
{% block page_checkout_cart_add_promotion %}
{% if context.customer.groupId == config('CytrusImport.config.fanGroupId') %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block page_checkout_cart_add_product_input_group %}
{% if context.customer.groupId != config('CytrusImport.config.fanGroupId') %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block page_checkout_cart_shipping_costs_trigger %}
{% endblock %}
{% block page_checkout_cart_shipping_costs_form_group %}
<div class="collapse show" id="collapseShippingCost">
{% block page_checkout_cart_shipping_costs_form_group_country %}
{% if not context.customer %}
<div class="form-group">
<label for="countryId">{{ "checkout.shippingCountry"|trans|sw_sanitize }}</label>
<select class="custom-select" type="text" id="countryId" name="countryId">
{% for country in page.countries %}
<option value="{{ country.id }}"
{{ country.id == context.shippingLocation.country.id ? 'selected="selected"' : '' }}>
{{ country.translated.name }}
</option>
{% endfor %}
</select>
</div>
{% endif %}
{% endblock %}
{% block page_checkout_cart_shipping_costs_form_group_payment_method %}
<div class="form-group">
<label for="paymentMethodId">{{ "checkout.paymentMethod"|trans|sw_sanitize }}</label>
<select class="custom-select" type="text" id="paymentMethodId" name="paymentMethodId">
{% for payment in page.paymentMethods %}
<option value="{{ payment.id }}"
{% if payment.id == context.paymentMethod.id %} selected="selected"{% endif %}>
{{ payment.translated.name }}
</option>
{% endfor %}
</select>
</div>
{% endblock %}
{% block page_checkout_cart_shipping_costs_form_group_shipping_method %}
<div class="form-group">
<label for="shippingMethodId">{{ "checkout.shippingMethod"|trans|sw_sanitize }}</label>
<select class="custom-select" type="text" id="shippingMethodId" name="shippingMethodId">
{% for shipping in page.shippingMethods %}
<option value="{{ shipping.id }}"
{% if shipping.id == context.shippingMethod.id %} selected="selected"{% endif %}>
{{ shipping.translated.name }}
</option>
{% endfor %}
</select>
</div>
{% endblock %}
<input type="hidden" name="redirectTo" value="frontend.checkout.cart.page">
</div>
{% endblock %}