function content_56672fa3387232_97699774($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/srv/www/helveti/helveti.cz/tools/smarty/plugins/modifier.escape.php';
        }
        if (!$_smarty_tpl->tpl_vars['opc']->value) {
            ?>
	<script type="text/javascript">
	//<![CDATA[
	var orderProcess = 'order';
	var currencySign = '<?php 
            echo html_entity_decode($_smarty_tpl->tpl_vars['currencySign']->value, 2, "UTF-8");
            ?>
';
	var currencyRate = '<?php 
            echo floatval($_smarty_tpl->tpl_vars['currencyRate']->value);
            ?>
';
	var currencyFormat = '<?php 
            echo intval($_smarty_tpl->tpl_vars['currencyFormat']->value);
            ?>
';
	var currencyBlank = '<?php 
            echo intval($_smarty_tpl->tpl_vars['currencyBlank']->value);
            ?>
';
	var txtProduct = "<?php 
            echo smartyTranslate(array('s' => 'Product', 'js' => 1), $_smarty_tpl);
            ?>
";
	var txtProducts = "<?php 
            echo smartyTranslate(array('s' => 'Products', 'js' => 1), $_smarty_tpl);
            ?>
";
	var orderUrl = '<?php 
            echo addslashes($_smarty_tpl->tpl_vars['link']->value->getPageLink("order", true));
            ?>
';s
	var msg = "<?php 
            echo smartyTranslate(array('s' => 'You must agree to the terms of service before continuing.', 'js' => 1), $_smarty_tpl);
            ?>
";
	
	function acceptCGV()
	{
		if ($('#cgv').length && !$('input#cgv:checked').length)
		{
			alert(msg);
			return false;
		}
		else
			return true;
	}
	
	//]]>
	</script>
<?php 
        } else {
            ?>
	<script type="text/javascript">
		var txtFree = "<?php 
            echo smartyTranslate(array('s' => 'Free'), $_smarty_tpl);
            ?>
";
	</script>
<?php 
        }
        ?>

<?php 
        if (isset($_smarty_tpl->tpl_vars['virtual_cart']->value) && !$_smarty_tpl->tpl_vars['virtual_cart']->value && $_smarty_tpl->tpl_vars['giftAllowed']->value && $_smarty_tpl->tpl_vars['cart']->value->gift == 1) {
            ?>
<script type="text/javascript">

// <![CDATA[
	$('document').ready( function(){
		if ($('input#gift').is(':checked'))
			$('p#gift_div').show();
	});
//]]>

</script>
<?php 
        }
        ?>

<?php 
        if (!$_smarty_tpl->tpl_vars['opc']->value) {
            ?>
	<?php 
            $_smarty_tpl->_capture_stack[0][] = array('path', null, null);
            ob_start();
            echo smartyTranslate(array('s' => 'Shipping:'), $_smarty_tpl);
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
        }
        ?>



<?php 
        if (!$_smarty_tpl->tpl_vars['opc']->value) {
            ?>
	<div id="carrier_area">
<?php 
        } else {
            ?>
	<div id="carrier_area" class="opc-main-block">
<?php 
        }
        ?>



<?php 
        if (!$_smarty_tpl->tpl_vars['opc']->value) {
            ?>
	<?php 
            $_smarty_tpl->tpl_vars['current_step'] = new Smarty_variable('shipping', null, 0);
            ?>
	<?php 
            echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./order-steps.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
            ?>

	
	<?php 
            echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./errors.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
            ?>

	
	<form class="form-horizontal" id="form" action="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('order', true, null, "multi-shipping=" . (string) $_smarty_tpl->tpl_vars['multi_shipping']->value), ENT_QUOTES, 'UTF-8', true);
            ?>
" method="post" onsubmit="return acceptCGV();">
<?php 
        } else {
            ?>
	<div id="opc_delivery_methods" class="opc-main-block">
	<div id="opc_delivery_methods-overlay" class="opc-overlay" style="display: none;"></div>
<?php 
        }
        ?>

<div class="kosik-container kosik-container-delivery">

<?php 
        if (!$_smarty_tpl->tpl_vars['opc']->value) {
            ?>
	<h1><?php 
            echo smartyTranslate(array('s' => 'Choose your delivery method'), $_smarty_tpl);
            ?>
</h1>
<?php 
        } else {
            ?>
	<h2><span>2</span> <?php 
            echo smartyTranslate(array('s' => 'Delivery methods'), $_smarty_tpl);
            ?>
</h2>
<?php 
        }
        ?>
<div class="clearfix">	</div>
<div class="order_carrier_content form_content">

<?php 
        if (isset($_smarty_tpl->tpl_vars['virtual_cart']->value) && $_smarty_tpl->tpl_vars['virtual_cart']->value) {
            ?>
	<input id="input_virtual_carrier" class="hidden" type="hidden" name="id_carrier" value="0" />
<?php 
        } else {
            ?>
	
	<div id="HOOK_BEFORECARRIER">
		<?php 
            if (isset($_smarty_tpl->tpl_vars['carriers']->value) && isset($_smarty_tpl->tpl_vars['HOOK_BEFORECARRIER']->value)) {
                ?>
			<?php 
                echo $_smarty_tpl->tpl_vars['HOOK_BEFORECARRIER']->value;
                ?>

		<?php 
            }
            ?>
	</div>
	<?php 
            if (isset($_smarty_tpl->tpl_vars['isVirtualCart']->value) && $_smarty_tpl->tpl_vars['isVirtualCart']->value) {
                ?>
		<p class="warning"><?php 
                echo smartyTranslate(array('s' => 'No carrier is needed for this order.'), $_smarty_tpl);
                ?>
</p>
	<?php 
            } else {
                ?>
		<?php 
                if ($_smarty_tpl->tpl_vars['recyclablePackAllowed']->value) {
                    ?>
			<p class="checkbox">
				<input type="checkbox" name="recyclable" id="recyclable" value="1" <?php 
                    if ($_smarty_tpl->tpl_vars['recyclable']->value == 1) {
                        ?>
checked="checked"<?php 
                    }
                    ?>
 autocomplete="off"/>
				<label for="recyclable"><?php 
                    echo smartyTranslate(array('s' => 'I would like to receive my order in recycled packaging.'), $_smarty_tpl);
                    ?>
.</label>
			</p>
		<?php 
                }
                ?>
	<div class="delivery_options_address">
	<?php 
                if (isset($_smarty_tpl->tpl_vars['delivery_option_list']->value)) {
                    ?>
		<?php 
                    $_smarty_tpl->tpl_vars['option_list'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['option_list']->_loop = false;
                    $_smarty_tpl->tpl_vars['id_address'] = new Smarty_Variable();
                    $_from = $_smarty_tpl->tpl_vars['delivery_option_list']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['option_list']->key => $_smarty_tpl->tpl_vars['option_list']->value) {
                        $_smarty_tpl->tpl_vars['option_list']->_loop = true;
                        $_smarty_tpl->tpl_vars['id_address']->value = $_smarty_tpl->tpl_vars['option_list']->key;
                        ?>
			
			<div class="delivery_options col-sm-12">
			<?php 
                        $_smarty_tpl->tpl_vars['option'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['option']->_loop = false;
                        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
                        $_from = $_smarty_tpl->tpl_vars['option_list']->value;
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        $_smarty_tpl->tpl_vars['option']->index = -1;
                        foreach ($_from as $_smarty_tpl->tpl_vars['option']->key => $_smarty_tpl->tpl_vars['option']->value) {
                            $_smarty_tpl->tpl_vars['option']->_loop = true;
                            $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['option']->key;
                            $_smarty_tpl->tpl_vars['option']->index++;
                            ?>
				<div class="delivery_option <?php 
                            if ($_smarty_tpl->tpl_vars['option']->index % 2) {
                                ?>
alternate_<?php 
                            }
                            ?>
item form-group clearfix">
					<input class="delivery_option_radio col-sm-1" type="radio" name="delivery_option[<?php 
                            echo $_smarty_tpl->tpl_vars['id_address']->value;
                            ?>
]" onchange="<?php 
                            if ($_smarty_tpl->tpl_vars['opc']->value) {
                                ?>
updateCarrierSelectionAndGift();<?php 
                            } else {
                                ?>
updateExtraCarrier('<?php 
                                echo $_smarty_tpl->tpl_vars['key']->value;
                                ?>
', <?php 
                                echo $_smarty_tpl->tpl_vars['id_address']->value;
                                ?>
);<?php 
                            }
                            ?>
" id="delivery_option_<?php 
                            echo $_smarty_tpl->tpl_vars['id_address']->value;
                            ?>
_<?php 
                            echo $_smarty_tpl->tpl_vars['option']->index;
                            ?>
" value="<?php 
                            echo $_smarty_tpl->tpl_vars['key']->value;
                            ?>
" <?php 
                            if (isset($_smarty_tpl->tpl_vars['delivery_option']->value[$_smarty_tpl->tpl_vars['id_address']->value]) && $_smarty_tpl->tpl_vars['delivery_option']->value[$_smarty_tpl->tpl_vars['id_address']->value] == $_smarty_tpl->tpl_vars['key']->value) {
                                ?>
checked="checked"<?php 
                            }
                            ?>
/>
					
					<label for="delivery_option_<?php 
                            echo $_smarty_tpl->tpl_vars['id_address']->value;
                            ?>
_<?php 
                            echo $_smarty_tpl->tpl_vars['option']->index;
                            ?>
">
						<table class="resume col-sm-12">
							<tr>
								<td class="delivery_option_title">
									<?php 
                            $_smarty_tpl->tpl_vars['carrier'] = new Smarty_Variable();
                            $_smarty_tpl->tpl_vars['carrier']->_loop = false;
                            $_from = $_smarty_tpl->tpl_vars['option']->value['carrier_list'];
                            if (!is_array($_from) && !is_object($_from)) {
                                settype($_from, 'array');
                            }
                            $_smarty_tpl->tpl_vars['carrier']->total = $_smarty_tpl->_count($_from);
                            $_smarty_tpl->tpl_vars['carrier']->iteration = 0;
                            foreach ($_from as $_smarty_tpl->tpl_vars['carrier']->key => $_smarty_tpl->tpl_vars['carrier']->value) {
                                $_smarty_tpl->tpl_vars['carrier']->_loop = true;
                                $_smarty_tpl->tpl_vars['carrier']->iteration++;
                                $_smarty_tpl->tpl_vars['carrier']->last = $_smarty_tpl->tpl_vars['carrier']->iteration === $_smarty_tpl->tpl_vars['carrier']->total;
                                ?>
										<?php 
                                echo $_smarty_tpl->tpl_vars['carrier']->value['instance']->name;
                                ?>

									<?php 
                            }
                            ?>
								</td>
								<td class="delivery_option_logo">
									<?php 
                            $_smarty_tpl->tpl_vars['carrier'] = new Smarty_Variable();
                            $_smarty_tpl->tpl_vars['carrier']->_loop = false;
                            $_from = $_smarty_tpl->tpl_vars['option']->value['carrier_list'];
                            if (!is_array($_from) && !is_object($_from)) {
                                settype($_from, 'array');
                            }
                            $_smarty_tpl->tpl_vars['carrier']->total = $_smarty_tpl->_count($_from);
                            $_smarty_tpl->tpl_vars['carrier']->iteration = 0;
                            foreach ($_from as $_smarty_tpl->tpl_vars['carrier']->key => $_smarty_tpl->tpl_vars['carrier']->value) {
                                $_smarty_tpl->tpl_vars['carrier']->_loop = true;
                                $_smarty_tpl->tpl_vars['carrier']->iteration++;
                                $_smarty_tpl->tpl_vars['carrier']->last = $_smarty_tpl->tpl_vars['carrier']->iteration === $_smarty_tpl->tpl_vars['carrier']->total;
                                ?>
										<?php 
                                if ($_smarty_tpl->tpl_vars['carrier']->value['logo']) {
                                    ?>
											<img src="<?php 
                                    echo $_smarty_tpl->tpl_vars['carrier']->value['logo'];
                                    ?>
" alt="<?php 
                                    echo $_smarty_tpl->tpl_vars['carrier']->value['instance']->name;
                                    ?>
"/>
										<?php 
                                } elseif (!$_smarty_tpl->tpl_vars['option']->value['unique_carrier']) {
                                    ?>
											<?php 
                                    echo $_smarty_tpl->tpl_vars['carrier']->value['instance']->name;
                                    ?>

											<?php 
                                    if (!$_smarty_tpl->tpl_vars['carrier']->last) {
                                        ?>
 - <?php 
                                    }
                                    ?>
										<?php 
                                }
                                ?>
									<?php 
                            }
                            ?>
								</td>
								<td class="delivery_option_icko">
									<?php 
                            $_smarty_tpl->tpl_vars['dodani'] = new Smarty_variable(Carrier::dodaniDoprava($_smarty_tpl->tpl_vars['cart']->value->id, $_smarty_tpl->tpl_vars['carrier']->value['instance']->name), null, 0);
                            ?>
									<?php 
                            if ($_smarty_tpl->tpl_vars['dodani']->value) {
                                ?>
										<?php 
                                echo $_smarty_tpl->tpl_vars['dodani']->value;
                                ?>

									<?php 
                            } else {
                                ?>
										<?php 
                                if (isset($_smarty_tpl->tpl_vars['carrier']->value['instance']->delay[$_smarty_tpl->tpl_vars['cookie']->value->id_lang])) {
                                    ?>
											<?php 
                                    echo $_smarty_tpl->tpl_vars['carrier']->value['instance']->delay[$_smarty_tpl->tpl_vars['cookie']->value->id_lang];
                                    ?>

										<?php 
                                }
                                ?>
									<?php 
                            }
                            ?>
								</td>
								<td class="delivery_option_price">
									<?php 
                            if ($_smarty_tpl->tpl_vars['option']->value['total_price_with_tax'] && (!isset($_smarty_tpl->tpl_vars['free_shipping']->value) || isset($_smarty_tpl->tpl_vars['free_shipping']->value) && !$_smarty_tpl->tpl_vars['free_shipping']->value)) {
                                ?>

										<?php 
                                if ($_smarty_tpl->tpl_vars['use_taxes']->value == 1) {
                                    ?>
											<?php 
                                    if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) {
                                        ?>
												<?php 
                                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['option']->value['total_price_without_tax']), $_smarty_tpl);
                                        ?>

											<?php 
                                    } else {
                                        ?>
												<?php 
                                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['option']->value['total_price_with_tax']), $_smarty_tpl);
                                        ?>

											<?php 
                                    }
                                    ?>
										<?php 
                                }
                                ?>
									<?php 
                            } else {
                                ?>
										<div class="free-shipping"><?php 
                                echo smartyTranslate(array('s' => 'Free'), $_smarty_tpl);
                                ?>
</div>
									<?php 
                            }
                            ?>
								</td>
								<td class="delivery_option_icko">
									<span class="btn-tooltip doprava_ikonka_i ikonka_i" data-html="true" data-placement="right" data-original-title="<?php 
                            ob_start();
                            echo $_smarty_tpl->tpl_vars['carrier']->value['instance']->name;
                            $_tmp1 = ob_get_clean();
                            echo Carrier::informaceDoprava($_tmp1);
                            ?>
">i</span>
								</td>
							</tr>
						</table>
						<table class="col-sm-12 delivery_option_carrier <?php 
                            if (isset($_smarty_tpl->tpl_vars['delivery_option']->value[$_smarty_tpl->tpl_vars['id_address']->value]) && $_smarty_tpl->tpl_vars['delivery_option']->value[$_smarty_tpl->tpl_vars['id_address']->value] == $_smarty_tpl->tpl_vars['key']->value) {
                                ?>
selected<?php 
                            }
                            ?>
 <?php 
                            if ($_smarty_tpl->tpl_vars['option']->value['unique_carrier']) {
                                ?>
not-displayable<?php 
                            }
                            ?>
">
							<?php 
                            $_smarty_tpl->tpl_vars['carrier'] = new Smarty_Variable();
                            $_smarty_tpl->tpl_vars['carrier']->_loop = false;
                            $_from = $_smarty_tpl->tpl_vars['option']->value['carrier_list'];
                            if (!is_array($_from) && !is_object($_from)) {
                                settype($_from, 'array');
                            }
                            $_smarty_tpl->tpl_vars['carrier']->total = $_smarty_tpl->_count($_from);
                            $_smarty_tpl->tpl_vars['carrier']->iteration = 0;
                            foreach ($_from as $_smarty_tpl->tpl_vars['carrier']->key => $_smarty_tpl->tpl_vars['carrier']->value) {
                                $_smarty_tpl->tpl_vars['carrier']->_loop = true;
                                $_smarty_tpl->tpl_vars['carrier']->iteration++;
                                $_smarty_tpl->tpl_vars['carrier']->last = $_smarty_tpl->tpl_vars['carrier']->iteration === $_smarty_tpl->tpl_vars['carrier']->total;
                                ?>
							<tr>
								<?php 
                                if (!$_smarty_tpl->tpl_vars['option']->value['unique_carrier']) {
                                    ?>
								<td class="first_item">
								<input type="hidden" value="<?php 
                                    echo $_smarty_tpl->tpl_vars['carrier']->value['instance']->id;
                                    ?>
" name="id_carrier" />
									<?php 
                                    if ($_smarty_tpl->tpl_vars['carrier']->value['logo']) {
                                        ?>
										<img src="<?php 
                                        echo $_smarty_tpl->tpl_vars['carrier']->value['logo'];
                                        ?>
" alt="<?php 
                                        echo $_smarty_tpl->tpl_vars['carrier']->value['instance']->name;
                                        ?>
"/>
									<?php 
                                    }
                                    ?>
								</td>
								<td>
									<?php 
                                    echo $_smarty_tpl->tpl_vars['carrier']->value['instance']->name;
                                    ?>

								</td>
								<?php 
                                }
                                ?>
								<td <?php 
                                if ($_smarty_tpl->tpl_vars['option']->value['unique_carrier']) {
                                    ?>
class="first_item" colspan="2"<?php 
                                }
                                ?>
>
									<input type="hidden" value="<?php 
                                echo $_smarty_tpl->tpl_vars['carrier']->value['instance']->id;
                                ?>
" name="id_carrier" />
									<?php 
                                if (isset($_smarty_tpl->tpl_vars['carrier']->value['instance']->delay[$_smarty_tpl->tpl_vars['cookie']->value->id_lang])) {
                                    ?>
										<?php 
                                    echo $_smarty_tpl->tpl_vars['carrier']->value['instance']->delay[$_smarty_tpl->tpl_vars['cookie']->value->id_lang];
                                    ?>
<br />
										<?php 
                                    if (count($_smarty_tpl->tpl_vars['carrier']->value['product_list']) <= 1) {
                                        ?>
											(<?php 
                                        echo smartyTranslate(array('s' => 'Product concerned:'), $_smarty_tpl);
                                        ?>

										<?php 
                                    } else {
                                        ?>
											(<?php 
                                        echo smartyTranslate(array('s' => 'Products concerned:'), $_smarty_tpl);
                                        ?>

										<?php 
                                    }
                                    ?>
										
										<?php 
                                    $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable();
                                    $_smarty_tpl->tpl_vars['product']->_loop = false;
                                    $_from = $_smarty_tpl->tpl_vars['carrier']->value['product_list'];
                                    if (!is_array($_from) && !is_object($_from)) {
                                        settype($_from, 'array');
                                    }
                                    $_smarty_tpl->tpl_vars['product']->total = $_smarty_tpl->_count($_from);
                                    $_smarty_tpl->tpl_vars['product']->iteration = 0;
                                    $_smarty_tpl->tpl_vars['product']->index = -1;
                                    foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) {
                                        $_smarty_tpl->tpl_vars['product']->_loop = true;
                                        $_smarty_tpl->tpl_vars['product']->iteration++;
                                        $_smarty_tpl->tpl_vars['product']->index++;
                                        $_smarty_tpl->tpl_vars['product']->last = $_smarty_tpl->tpl_vars['product']->iteration === $_smarty_tpl->tpl_vars['product']->total;
                                        ?>
										<?php 
                                        if ($_smarty_tpl->tpl_vars['product']->index == 4) {
                                            ?>
<acronym title="<?php 
                                        }
                                        if ($_smarty_tpl->tpl_vars['product']->index >= 4) {
                                            echo $_smarty_tpl->tpl_vars['product']->value['name'];
                                            if (!$_smarty_tpl->tpl_vars['product']->last) {
                                                ?>
, <?php 
                                            } else {
                                                ?>
">...</acronym>)<?php 
                                            }
                                        } else {
                                            echo $_smarty_tpl->tpl_vars['product']->value['name'];
                                            if (!$_smarty_tpl->tpl_vars['product']->last) {
                                                ?>
, <?php 
                                            } else {
                                                ?>
)<?php 
                                            }
                                        }
                                    }
                                    ?>
									<?php 
                                }
                                ?>
								</td>
							</tr>
						<?php 
                            }
                            ?>
						</table>
					</label>
				</div>
			<?php 
                        }
                        ?>
			</div>
			
			<input type="hidden" id="ulozenka_id_custom" value="<?php 
                        echo Configuration::get('ULOZENKA_CARRIER_ID');
                        ?>
"/>
			<div class="hook_extracarrier" id="HOOK_EXTRACARRIER_<?php 
                        echo $_smarty_tpl->tpl_vars['id_address']->value;
                        ?>
"><?php 
                        if (isset($_smarty_tpl->tpl_vars['HOOK_EXTRACARRIER_ADDR']->value) && isset($_smarty_tpl->tpl_vars['HOOK_EXTRACARRIER_ADDR']->value[$_smarty_tpl->tpl_vars['id_address']->value])) {
                            echo $_smarty_tpl->tpl_vars['HOOK_EXTRACARRIER_ADDR']->value[$_smarty_tpl->tpl_vars['id_address']->value];
                        }
                        ?>
</div>
			<?php 
                    }
                    if (!$_smarty_tpl->tpl_vars['option_list']->_loop) {
                        ?>
			<p class="warning" id="noCarrierWarning">
				<?php 
                        $_smarty_tpl->tpl_vars['address'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['address']->_loop = false;
                        $_from = $_smarty_tpl->tpl_vars['cart']->value->getDeliveryAddressesWithoutCarriers(true);
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        $_smarty_tpl->tpl_vars['address']->total = $_smarty_tpl->_count($_from);
                        $_smarty_tpl->tpl_vars['address']->iteration = 0;
                        foreach ($_from as $_smarty_tpl->tpl_vars['address']->key => $_smarty_tpl->tpl_vars['address']->value) {
                            $_smarty_tpl->tpl_vars['address']->_loop = true;
                            $_smarty_tpl->tpl_vars['address']->iteration++;
                            $_smarty_tpl->tpl_vars['address']->last = $_smarty_tpl->tpl_vars['address']->iteration === $_smarty_tpl->tpl_vars['address']->total;
                            ?>
					<?php 
                            if (empty($_smarty_tpl->tpl_vars['address']->value->alias)) {
                                ?>
						<?php 
                                echo smartyTranslate(array('s' => 'No carriers available.'), $_smarty_tpl);
                                ?>

					<?php 
                            } else {
                                ?>
						<?php 
                                echo smartyTranslate(array('s' => 'No carriers available for the address "%s".', 'sprintf' => $_smarty_tpl->tpl_vars['address']->value->alias), $_smarty_tpl);
                                ?>

					<?php 
                            }
                            ?>
					<?php 
                            if (!$_smarty_tpl->tpl_vars['address']->last) {
                                ?>
					<br />
					<?php 
                            }
                            ?>
				<?php 
                        }
                        if (!$_smarty_tpl->tpl_vars['address']->_loop) {
                            ?>
					<?php 
                            echo smartyTranslate(array('s' => 'No carriers available.'), $_smarty_tpl);
                            ?>

				<?php 
                        }
                        ?>
			</p>
		<?php 
                    }
                    ?>
	<?php 
                }
                ?>
	
	</div>
	<div style="display: none;" id="extra_carrier"></div>
	
		<?php 
                if ($_smarty_tpl->tpl_vars['giftAllowed']->value) {
                    ?>
		<h3 class="gift_title"><?php 
                    echo smartyTranslate(array('s' => 'Gift'), $_smarty_tpl);
                    ?>
</h3>
		<p class="checkbox">
			<input type="checkbox" name="gift" id="gift" value="1" <?php 
                    if ($_smarty_tpl->tpl_vars['cart']->value->gift == 1) {
                        ?>
checked="checked"<?php 
                    }
                    ?>
 autocomplete="off"/>
			<label for="gift"><?php 
                    echo smartyTranslate(array('s' => 'I would like my order to be gift wrapped.'), $_smarty_tpl);
                    ?>
</label>
			<br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<?php 
                    if ($_smarty_tpl->tpl_vars['gift_wrapping_price']->value > 0) {
                        ?>
				(<?php 
                        echo smartyTranslate(array('s' => 'Additional cost of'), $_smarty_tpl);
                        ?>

				<span class="price" id="gift-price">
					<?php 
                        if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) {
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['total_wrapping_tax_exc_cost']->value), $_smarty_tpl);
                        } else {
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['total_wrapping_cost']->value), $_smarty_tpl);
                        }
                        ?>
				</span>
				<?php 
                        if ($_smarty_tpl->tpl_vars['use_taxes']->value) {
                            if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) {
                                ?>
 <?php 
                                echo smartyTranslate(array('s' => '(tax excl.)'), $_smarty_tpl);
                            } else {
                                ?>
 <?php 
                                echo smartyTranslate(array('s' => '(tax incl.)'), $_smarty_tpl);
                            }
                        }
                        ?>
)
			<?php 
                    }
                    ?>
		</p>
		<p id="gift_div" class="textarea">
			<label for="gift_message"><?php 
                    echo smartyTranslate(array('s' => 'If you\'d like, you can add a note to the gift:'), $_smarty_tpl);
                    ?>
</label>
			<textarea rows="5" cols="35" id="gift_message" name="gift_message" class="form-control"><?php 
                    echo smarty_modifier_escape($_smarty_tpl->tpl_vars['cart']->value->gift_message, 'htmlall', 'UTF-8');
                    ?>
</textarea>
		</p>
		<?php 
                }
                ?>
	<?php 
            }
        }
        ?>

<?php 
        if ($_smarty_tpl->tpl_vars['conditions']->value && $_smarty_tpl->tpl_vars['cms_id']->value) {
            ?>
	<h3 class="condition_title"><?php 
            echo smartyTranslate(array('s' => 'Terms of service'), $_smarty_tpl);
            ?>
</h3>
	<p class="checkbox">
		<input type="checkbox" name="cgv" id="cgv" value="1" <?php 
            if ($_smarty_tpl->tpl_vars['checkedTOS']->value) {
                ?>
checked="checked"<?php 
            }
            ?>
 autocomplete="off"/>
		<label for="cgv"><?php 
            echo smartyTranslate(array('s' => 'I agree to the terms of service and will adhere to them unconditionally.'), $_smarty_tpl);
            ?>
</label> <a href="<?php 
            echo $_smarty_tpl->tpl_vars['link_conditions']->value;
            ?>
" class="iframe"><?php 
            echo smartyTranslate(array('s' => '(Read the Terms of Service)'), $_smarty_tpl);
            ?>
</a>
	</p>
	<script type="text/javascript">
		$(document).ready(function() {
	        $("a.iframe").fancybox({
	            'type' : 'iframe',
	            'width':600,
	            'height':600
	        });
	    });
	</script>
<?php 
        }
        ?>
</div>

<?php 
        if (!$_smarty_tpl->tpl_vars['opc']->value) {
            ?>
	<p class="cart_navigation submit">
		<input type="hidden" name="step" value="3" />
		<input type="hidden" name="back" value="<?php 
            echo $_smarty_tpl->tpl_vars['back']->value;
            ?>
" />
		<?php 
            if (!$_smarty_tpl->tpl_vars['is_guest']->value) {
                ?>
			<?php 
                if ($_smarty_tpl->tpl_vars['back']->value) {
                    ?>
				<a href="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('order', true, null, "step=1&back=" . (string) $_smarty_tpl->tpl_vars['back']->value . "&multi-shipping=" . (string) $_smarty_tpl->tpl_vars['multi_shipping']->value), ENT_QUOTES, 'UTF-8', true);
                    ?>
" title="<?php 
                    echo smartyTranslate(array('s' => 'Previous'), $_smarty_tpl);
                    ?>
" class="zpet-do-obchodu"><i class="fa fa-chevron-left"></i> <?php 
                    echo smartyTranslate(array('s' => 'Zpět na dodací údaje'), $_smarty_tpl);
                    ?>
</a>
			<?php 
                } else {
                    ?>
				<a href="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('order', true, null, "step=1&multi-shipping=" . (string) $_smarty_tpl->tpl_vars['multi_shipping']->value), ENT_QUOTES, 'UTF-8', true);
                    ?>
" title="<?php 
                    echo smartyTranslate(array('s' => 'Previous'), $_smarty_tpl);
                    ?>
" class="zpet-do-obchodu"><i class="fa fa-chevron-left"></i> <?php 
                    echo smartyTranslate(array('s' => 'Zpět na dodací údaje'), $_smarty_tpl);
                    ?>
</a>
			<?php 
                }
                ?>
		<?php 
            } else {
                ?>
				<a href="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('order', true, null, "multi-shipping=" . (string) $_smarty_tpl->tpl_vars['multi_shipping']->value), ENT_QUOTES, 'UTF-8', true);
                ?>
" title="<?php 
                echo smartyTranslate(array('s' => 'Previous'), $_smarty_tpl);
                ?>
" class="zpet-do-obchodu"><i class="fa fa-chevron-left"></i> <?php 
                echo smartyTranslate(array('s' => 'Zpět na dodací údaje'), $_smarty_tpl);
                ?>
</a>
		<?php 
            }
            ?>
		<?php 
            if (isset($_smarty_tpl->tpl_vars['virtual_cart']->value) && $_smarty_tpl->tpl_vars['virtual_cart']->value || isset($_smarty_tpl->tpl_vars['delivery_option_list']->value) && !empty($_smarty_tpl->tpl_vars['delivery_option_list']->value)) {
                ?>
		
			<input type="submit" name="processCarrier" value="<?php 
                echo smartyTranslate(array('s' => 'Vyberte způsob platby'), $_smarty_tpl);
                ?>
" class="standard-checkout pull-right" />
		<?php 
            }
            ?>
	</p>
</form>
<?php 
        } else {
            ?>
	<h3><?php 
            echo smartyTranslate(array('s' => 'Leave a message'), $_smarty_tpl);
            ?>
</h3>
	<div>
		<p><?php 
            echo smartyTranslate(array('s' => 'If you would like to add a comment about your order, please write it in the field below.'), $_smarty_tpl);
            ?>
</p>
		<p><textarea class="form-control" cols="120" rows="3" name="message" id="message"><?php 
            if (isset($_smarty_tpl->tpl_vars['oldMessage']->value)) {
                echo smarty_modifier_escape($_smarty_tpl->tpl_vars['oldMessage']->value, 'htmlall', 'UTF-8');
            }
            ?>
</textarea></p>
	</div>
</div>
<?php 
        }
        ?>
</div>
</div>
<?php 
    }