{block name=boxes_boxShippingCost}
    <div class="shipping-preview">
        <p class="headline">{txt key=TEXT_SHIPPING_COST_PREVIEW}</p>

        {form type=form name=coupons_calc action='dynamic' link_params=getParams method=post}
        {form type=hidden name=action value=select_shipping_cost}
        <table class="table table-condensed table-bordered">
            <tr> <td class="border-L">{txt key=TEXT_SHIPPING_COST_PREVIEW_COUNTRY}:</td>
                <td class="border-L text-right">
                    {if $count_countries==1}
                    {foreach key=key_data item=item_data from=$coupons_country}
                    <input type="hidden" value="{$item_data.countries_iso_code_2}">{$item_data.countries_name}
                    {/foreach}
                    {else}
                    <select class="form-control show-tick" name="coupons_country"  onchange="this.form.submit();" style="width:200px;">
                        <option value="">{txt key=TEXT_SHIPPING_COST_SELECT_COUNTRY}</option>
                        {foreach key=key_data item=item_data from=$coupons_country}
                        <option value="{$item_data.countries_iso_code_2}" {if $item_data.countries_iso_code_2==$selected_country} selected="selected" {/if} >{$item_data.countries_name}</option>
                        {/foreach}
                    </select>
                    {/if}
                </td>
            </tr>
            {if $count_shipping!=0}
            <tr>
                <td class="border-L">{txt key=TEXT_SHIPPING_COST_PREVIEW_SHIPPING}:</td>
                <td class="border-L text-right">
                    {if $count_shipping==1}
                    {foreach key=key_data item=item_data from=$coupons_shipping}
                    <input type="hidden" value="{$item_data.shipping_name}">{$item_data.shipping_name}
                    {/foreach}
                    {else}
                    <select class="form-control show-tick" name="coupons_shipping"  onchange="this.form.submit();" style="width:200px;">
                        <option value="">{txt key=TEXT_SHIPPING_COST_SELECT_SHIPPING}</option>
                        {foreach key=key_data item=item_data from=$coupons_shipping}
                        <option value="{$item_data.shipping_code}" {if $item_data.shipping_code==$selected_coupons_shipping} selected="selected" {/if} >{$item_data.shipping_name}</option>
                        {/foreach}
                    </select>
                    {/if}
                </td>
            </tr>
            {/if}
            <tr>
                <td><b>{txt key=TEXT_SHIPPING_COST_PREVIEW_SHIPPINGPRICE}:</b></td>
                <td class="text-right"><b>{$cost}</b></td>
        </table>
        {form type=formend}
    </div>
{/block}