<commit_before>{extends file='parent:frontend/checkout/shipping_costs.tpl'}

{* Delivery country *}
{block name='frontend_checkout_shipping_costs_country'}
<div class="basket_country">
	<p>
		<label for="basket_country_list">{se name="ShippingLabelDeliveryCountry"}{/se}</label>
	</p>
	<select id="basket_country_list" name="sCountry" class="auto_submit">
		{foreach from=$sCountryList item=country}
			<option value="{$country.id}" {if $country.id eq $sCountry.id}selected{/if}>
				{$country.countryname}
			</option>
		{/foreach}
	</select>
</div>

{foreach $sCountryList as $country}
	{if $country.states}
		<div class="basket_country country_states {if $country.id != $sCountry.id}hidden{/if}">
			<p>
				<label for="country_{$country.id}_states">{se name='RegisterBillingLabelState' force}Bundesstaat:{/se} </label>
			</p>
			
			<select {if $country.id != $sCountry.id}disabled="disabled"{/if} name="sState" id="country_{$country.id}_states" class="auto_submit text">
				<option value="" selected="selected">{s name='StateSelection' force}Bitte w&auml;hlen:{/s}</option>
				{foreach from=$country.states item=state}
					<option value="{$state.id}" {if $state.id eq $sState.id || $state.id eq $sState}selected="selected"{/if}>
						{$state.name}
					</option>
				{/foreach}
			</select>
		</div>
	{/if}
{/foreach}


{/block}

{* Payment method *}
{block name='frontend_checkout_shipping_costs_payment'}
<div class="basket_payment">
	<p>
		<label for="basket_payment_list">{se name="ShippingLabelPayment"}{/se}</label>
	</p>
	
	<select id="basket_country_list" name="sPayment" class="auto_submit">
		{foreach from=$sPayments item=payment}
			<option value="{$payment.id}" {if $payment.id eq $sPayment.id}selected{/if}>
				{$payment.description}
			</option>
		{/foreach}
	</select>
</div>
{/block}

{* Dispatch method *}
{block name='frontend_checkout_shipping_costs_dispatch'}
<div class="basket_dispatch">
	<p>
		<label for="basket_dispatch_list">{se name="ShipppingLabelDispatch"}{/se}</label>
	</p>	
	<select id="basket_country_list" name="sDispatch" class="auto_submit">
	{if $sDispatches}
		{foreach from=$sDispatches item=dispatch}
			<option value="{$dispatch.id}" {if $dispatch.id eq $sDispatches.id}selected{/if}>
				{$dispatch.name}
			</option>
		{/foreach}
	{/if}
	</select><commit_msg>SW-3717 - Fix change dispatch on basket page<commit_after>{extends file='parent:frontend/checkout/shipping_costs.tpl'}

{* Delivery country *}
{block name='frontend_checkout_shipping_costs_country'}
<div class="basket_country">
	<p>
		<label for="basket_country_list">{se name="ShippingLabelDeliveryCountry"}{/se}</label>
	</p>
	<select id="basket_country_list" name="sCountry" class="auto_submit">
		{foreach from=$sCountryList item=country}
			<option value="{$country.id}" {if $country.id eq $sCountry.id}selected{/if}>
				{$country.countryname}
			</option>
		{/foreach}
	</select>
</div>

{foreach $sCountryList as $country}
	{if $country.states}
		<div class="basket_country country_states {if $country.id != $sCountry.id}hidden{/if}">
			<p>
				<label for="country_{$country.id}_states">{se name='RegisterBillingLabelState'}{/se}</label>
			</p>
			
			<select {if $country.id != $sCountry.id}disabled="disabled"{/if} name="sState" id="country_{$country.id}_states" class="auto_submit text">
				<option value="" selected="selected">{s name='StateSelection'}{/s}</option>
				{foreach from=$country.states item=state}
					<option value="{$state.id}" {if $state.id eq $sState.id || $state.id eq $sState}selected="selected"{/if}>
						{$state.name}
					</option>
				{/foreach}
			</select>
		</div>
	{/if}
{/foreach}


{/block}

{* Payment method *}
{block name='frontend_checkout_shipping_costs_payment'}
<div class="basket_payment">
	<p>
		<label for="basket_payment_list">{se name="ShippingLabelPayment"}{/se}</label>
	</p>
	
	<select id="basket_payment_list" name="sPayment" class="auto_submit">
		{foreach from=$sPayments item=payment}
			<option value="{$payment.id}" {if $payment.id eq $sPayment.id}selected{/if}>
				{$payment.description}
			</option>
		{/foreach}
	</select>
</div>
{/block}

{* Dispatch method *}
{block name='frontend_checkout_shipping_costs_dispatch'}
<div class="basket_dispatch">
	<p>
		<label for="basket_dispatch_list">{se name="ShipppingLabelDispatch"}{/se}</label>
	</p>	
	<select id="basket_dispatch_list" name="sDispatch" class="auto_submit">
	{if $sDispatches}
		{foreach from=$sDispatches item=dispatch}
			<option value="{$dispatch.id}" {if $dispatch.id eq $sDispatch.id}selected{/if}>
				{$dispatch.name}
			</option>
		{/foreach}
	{/if}
	</select>
{'fraction_non_alphanumeric': 0.18634886240520043, 'fraction_numerical': 0.000866738894907909, 'mean_word_length': 5.613180515759312, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 85, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5008617', 'n_tokens_mistral': 1818, 'n_tokens_neox': 1675, 'n_words': 291}