function content_56729157bec70($_smarty_tpl) { if (!is_callable('smarty_modifier_regex_replace')) { include 'D:\\wamp\\www\\vtigercrm-debug\\libraries\\Smarty\\libs\\plugins\\modifier.regex_replace.php'; } ?> <?php $_smarty_tpl->tpl_vars['MODULE'] = new Smarty_variable('PBXManager', null, 0); $_smarty_tpl->tpl_vars['MODULEMODEL'] = new Smarty_variable(Vtiger_Module_Model::getInstance($_smarty_tpl->tpl_vars['MODULE']->value), null, 0); $_smarty_tpl->tpl_vars['FIELD_VALUE'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'), null, 0); if ($_smarty_tpl->tpl_vars['MODULEMODEL']->value && $_smarty_tpl->tpl_vars['MODULEMODEL']->value->isActive() && $_smarty_tpl->tpl_vars['FIELD_VALUE']->value) { ?> <?php $_smarty_tpl->tpl_vars['PERMISSION'] = new Smarty_variable(PBXManager_Server_Model::checkPermissionForOutgoingCall(), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['PERMISSION']->value) { ?> <?php $_smarty_tpl->tpl_vars['PHONE_FIELD_VALUE'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_VALUE']->value, null, 0); ?> <?php $_smarty_tpl->tpl_vars['PHONE_NUMBER'] = new Smarty_variable(smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['PHONE_FIELD_VALUE']->value, "/[-()\\s]/", ''), null, 0); ?> <a class="phoneField" data-value="<?php echo $_smarty_tpl->tpl_vars['PHONE_NUMBER']->value; ?> " record="<?php echo $_smarty_tpl->tpl_vars['RECORD']->value->getId(); ?> " onclick="Vtiger_PBXManager_Js.registerPBXOutboundCall('<?php echo $_smarty_tpl->tpl_vars['PHONE_NUMBER']->value; ?> ',<?php echo $_smarty_tpl->tpl_vars['RECORD']->value->getId(); ?> )"><?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'); ?> </a> <?php } else { ?> <?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getDisplayValue($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'), $_smarty_tpl->tpl_vars['RECORD']->value->getId(), $_smarty_tpl->tpl_vars['RECORD']->value); ?> <?php } } else { ?> <?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getDisplayValue($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'), $_smarty_tpl->tpl_vars['RECORD']->value->getId(), $_smarty_tpl->tpl_vars['RECORD']->value); ?> <?php } }
<?php if ($_valid && !is_callable('content_56059e5cf22c6')) {function content_56059e5cf22c6($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_regex_replace')) include '/var/www/kulturedkitsch.info/public_html/vtigercrm/libraries/Smarty/libs/plugins/modifier.regex_replace.php'; ?> <?php $_smarty_tpl->tpl_vars['MODULE'] = new Smarty_variable('PBXManager', null, 0);?> <?php $_smarty_tpl->tpl_vars['MODULEMODEL'] = new Smarty_variable(Vtiger_Module_Model::getInstance($_smarty_tpl->tpl_vars['MODULE']->value), null, 0);?> <?php $_smarty_tpl->tpl_vars['FIELD_VALUE'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'), null, 0);?> <?php if ($_smarty_tpl->tpl_vars['MODULEMODEL']->value&&$_smarty_tpl->tpl_vars['MODULEMODEL']->value->isActive()&&$_smarty_tpl->tpl_vars['FIELD_VALUE']->value){?> <?php $_smarty_tpl->tpl_vars['PERMISSION'] = new Smarty_variable(PBXManager_Server_Model::checkPermissionForOutgoingCall(), null, 0);?> <?php if ($_smarty_tpl->tpl_vars['PERMISSION']->value){?> <?php $_smarty_tpl->tpl_vars['PHONE_FIELD_VALUE'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_VALUE']->value, null, 0);?> <?php $_smarty_tpl->tpl_vars['PHONE_NUMBER'] = new Smarty_variable(smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['PHONE_FIELD_VALUE']->value,"/[-()\s]/",''), null, 0);?> <a class="phoneField" data-value="<?php echo $_smarty_tpl->tpl_vars['PHONE_NUMBER']->value;?> " record="<?php echo $_smarty_tpl->tpl_vars['RECORD']->value->getId();?> " onclick="Vtiger_PBXManager_Js.registerPBXOutboundCall('<?php echo $_smarty_tpl->tpl_vars['PHONE_NUMBER']->value;?> ',<?php echo $_smarty_tpl->tpl_vars['RECORD']->value->getId();?> )"><?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue');?> </a> <?php }else{ ?> <?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getDisplayValue($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'),$_smarty_tpl->tpl_vars['RECORD']->value->getId(),$_smarty_tpl->tpl_vars['RECORD']->value);?> <?php }?> <?php }else{ ?> <?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getDisplayValue($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'),$_smarty_tpl->tpl_vars['RECORD']->value->getId(),$_smarty_tpl->tpl_vars['RECORD']->value);?> <?php }?> <?php }} ?>
function content_566d926eb26c93_81512452($_smarty_tpl) { if (!is_callable('smarty_modifier_regex_replace')) { include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/modifier.regex_replace.php'; } ?> <?php $_smarty_tpl->tpl_vars['module_name'] = new Smarty_variable(htmlspecialchars($_smarty_tpl->tpl_vars['module_name']->value, ENT_QUOTES, 'UTF-8', true), null, 0); $_smarty_tpl->_capture_stack[0][] = array('default', null, null); ob_start(); echo '/&module_name=' . $_smarty_tpl->tpl_vars['module_name']->value . '/'; 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(); } if (isset($_smarty_tpl->tpl_vars['display_multishop_checkbox']->value) && $_smarty_tpl->tpl_vars['display_multishop_checkbox']->value) { ?> <div class="bootstrap panel"> <h3><i class="icon-cogs"></i> <?php echo smartyTranslate(array('s' => 'Configuration'), $_smarty_tpl); ?> </h3> <input type="checkbox" name="activateModule" value="1"<?php if ($_smarty_tpl->tpl_vars['module']->value->isEnabledForShopContext()) { ?> checked="checked"<?php } ?> onclick="location.href = '<?php echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['current_url']->value, Smarty::$_smarty_vars['capture']['default'], ''); ?> &module_name=<?php echo $_smarty_tpl->tpl_vars['module_name']->value; ?> &enable=' + (($(this).attr('checked')) ? 1 : 0);" /> <?php echo smartyTranslate(array('s' => 'Activate module for this shop context: %s.', 'sprintf' => $_smarty_tpl->tpl_vars['shop_context']->value), $_smarty_tpl); ?> </div> <?php } }
function content_54d8bfe5aa5267_91162654($_smarty_tpl) { if (!is_callable('smarty_modifier_regex_replace')) { include '/home/mariposa/Desktop/webprojects/asterisk/app/lib/Smarty/plugins/modifier.regex_replace.php'; } if (!is_callable('smarty_modifier_capitalize')) { include '/home/mariposa/Desktop/webprojects/asterisk/app/lib/Smarty/plugins/modifier.capitalize.php'; } ?> <nav class="navbar navbar-inverse"> <div class="container"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">Brand</a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav"> <?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['item']->_loop = false; $_from = $_smarty_tpl->tpl_vars['navbar']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) { $_smarty_tpl->tpl_vars['item']->_loop = true; ?> <li><a href="http://127.0.0.1/<?php echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['item']->value, "/\\.tpl/", ''); ?> "><?php echo smarty_modifier_regex_replace(smarty_modifier_capitalize($_smarty_tpl->tpl_vars['item']->value), "/\\.Tpl/", ''); ?> </a></li> <?php } ?> </ul> </div><!-- /.navbar-collapse --> </div><!-- /.container-fluid --> </nav><?php }
function content_5662a9c71ece32_31689154($_smarty_tpl) { if (!is_callable('smarty_modifier_regex_replace')) { require_once 'C:\\xampp\\htdocs\\smarty\\libs\\plugins\\modifier.regex_replace.php'; } $_smarty_tpl->properties['nocache_hash'] = '26105662a9c710e380_18250450'; ?> <?php echo $_smarty_tpl->tpl_vars['articleTitle']->value; ?> <?php echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['articleTitle']->value, "/[\r\t\n]/", " "); }
function content_535564996d29d6_08779982($_smarty_tpl) { if (!is_callable('smarty_modifier_regex_replace')) { include '/Applications/MAMP/htdocs/prestashopPrueba/tools/smarty/plugins/modifier.regex_replace.php'; } ?> <div class="bootstrap panel"> <h3><i class="icon-cogs"></i> <?php echo smartyTranslate(array('s' => 'Configuration'), $_smarty_tpl); ?> </h3> <div class="input-group"> <button type="button" class="btn btn-default dropdown-toggle" tabindex="-1" data-toggle="dropdown"> <i class="icon-flag"></i> <?php echo smartyTranslate(array('s' => 'Manage translations'), $_smarty_tpl); ?> <span class="caret"></span> </button> <ul class="dropdown-menu"> <?php $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['language']->_loop = false; $_from = $_smarty_tpl->tpl_vars['module_languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) { $_smarty_tpl->tpl_vars['language']->_loop = true; ?> <li><a href="<?php echo $_smarty_tpl->tpl_vars['trad_link']->value; echo $_smarty_tpl->tpl_vars['language']->value['iso_code']; ?> #<?php echo $_smarty_tpl->tpl_vars['module_name']->value; ?> "><?php echo $_smarty_tpl->tpl_vars['language']->value['name']; ?> </a></li> <?php } ?> </ul> </div> <?php $_smarty_tpl->tpl_vars['module_name'] = new Smarty_variable(htmlspecialchars($_smarty_tpl->tpl_vars['module_name']->value, ENT_QUOTES, 'UTF-8', true), null, 0); ?> <?php $_smarty_tpl->_capture_stack[0][] = array('default', null, null); ob_start(); echo '/&module_name=' . $_smarty_tpl->tpl_vars['module_name']->value . '/'; 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 (isset($_smarty_tpl->tpl_vars['display_multishop_checkbox']->value) && $_smarty_tpl->tpl_vars['display_multishop_checkbox']->value) { ?> <input type="checkbox" name="activateModule" value="1"<?php if ($_smarty_tpl->tpl_vars['module']->value->isEnabledForShopContext()) { ?> checked="checked"<?php } ?> onclick="location.href = '<?php echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['current_url']->value, Smarty::$_smarty_vars['capture']['default'], ''); ?> &module_name=<?php echo $_smarty_tpl->tpl_vars['module_name']->value; ?> &enable=' + (($(this).attr('checked')) ? 1 : 0);" /> <?php echo smartyTranslate(array('s' => 'Activate module for'), $_smarty_tpl); ?> <?php echo $_smarty_tpl->tpl_vars['shop_context']->value; ?> <?php } ?> </div><?php }
function content_535564a42a6286_06602921($_smarty_tpl) { if (!is_callable('smarty_modifier_regex_replace')) { include '/Applications/MAMP/htdocs/prestashopPrueba/tools/smarty/plugins/modifier.regex_replace.php'; } ?> <!-- Block languages module --> <?php if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) { ?> <div id="languages-block-top" class="languages-block"> <?php $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['language']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) { $_smarty_tpl->tpl_vars['language']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['language']->key; ?> <?php if ($_smarty_tpl->tpl_vars['language']->value['iso_code'] == $_smarty_tpl->tpl_vars['lang_iso']->value) { ?> <div class="current"> <span><?php echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['language']->value['name'], "/\\s.*" . "\$" . "/", ''); ?> </span> </div> <?php } ?> <?php } ?> <ul id="first-languages" class="languages-block_ul toogle_content"> <?php $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['language']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) { $_smarty_tpl->tpl_vars['language']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['language']->key; ?> <li <?php if ($_smarty_tpl->tpl_vars['language']->value['iso_code'] == $_smarty_tpl->tpl_vars['lang_iso']->value) { ?> class="selected"<?php } ?> > <?php if ($_smarty_tpl->tpl_vars['language']->value['iso_code'] != $_smarty_tpl->tpl_vars['lang_iso']->value) { ?> <?php $_smarty_tpl->tpl_vars['indice_lang'] = new Smarty_variable($_smarty_tpl->tpl_vars['language']->value['id_lang'], null, 0); ?> <?php if (isset($_smarty_tpl->tpl_vars['lang_rewrite_urls']->value[$_smarty_tpl->tpl_vars['indice_lang']->value])) { ?> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['lang_rewrite_urls']->value[$_smarty_tpl->tpl_vars['indice_lang']->value], ENT_QUOTES, 'UTF-8', true); ?> " title="<?php echo $_smarty_tpl->tpl_vars['language']->value['name']; ?> "> <?php } else { ?> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getLanguageLink($_smarty_tpl->tpl_vars['language']->value['id_lang']), ENT_QUOTES, 'UTF-8', true); ?> " title="<?php echo $_smarty_tpl->tpl_vars['language']->value['name']; ?> "> <?php } ?> <?php } ?> <span><?php echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['language']->value['name'], "/\\s.*" . "\$" . "/", ''); ?> </span> <?php if ($_smarty_tpl->tpl_vars['language']->value['iso_code'] != $_smarty_tpl->tpl_vars['lang_iso']->value) { ?> </a> <?php } ?> </li> <?php } ?> </ul> </div> <?php } ?> <!-- /Block languages module --> <?php }
function content_566719ab5152a4_13849677($_smarty_tpl) { if (!is_callable('smarty_modifier_escape')) { include '/srv/www/helveti/helveti.cz/tools/smarty/plugins/modifier.escape.php'; } if (!is_callable('smarty_modifier_regex_replace')) { include '/srv/www/helveti/helveti.cz/tools/smarty/plugins/modifier.regex_replace.php'; } ?> <?php if (!$_smarty_tpl->tpl_vars['ps_16']->value) { $_smarty_tpl->_capture_stack[0][] = array('path', null, null); ob_start(); ?> <a href="<?php echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account', true); ?> "><?php echo smartyTranslate(array('s' => 'My account'), $_smarty_tpl); ?> </a><span class="navigation-pipe"><?php echo $_smarty_tpl->tpl_vars['navigationPipe']->value; ?> </span><?php echo smartyTranslate(array('s' => 'Order history'), $_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(); } 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); ?> <h1><?php echo smartyTranslate(array('s' => 'Order history'), $_smarty_tpl); ?> </h1> <p><?php echo smartyTranslate(array('s' => 'Here are the orders you have placed since the creation of your account'), $_smarty_tpl); ?> .</p> <?php if ($_smarty_tpl->tpl_vars['slowValidation']->value) { ?> <p class="warning"><?php echo smartyTranslate(array('s' => 'If you have just placed an order, it may take a few minutes for it to be validated. Please refresh this page if your order is missing.'), $_smarty_tpl); ?> </p><?php } ?> <div class="block-center" id="block-history"> <?php if ($_smarty_tpl->tpl_vars['orders']->value && count($_smarty_tpl->tpl_vars['orders']->value)) { ?> <table id="order-list" class="std"> <thead> <tr> <th class="first_item"><?php echo smartyTranslate(array('s' => 'Order Reference'), $_smarty_tpl); ?> </th> <th class="item"><?php echo smartyTranslate(array('s' => 'Date'), $_smarty_tpl); ?> </th> <th class="item"><?php echo smartyTranslate(array('s' => 'Total price'), $_smarty_tpl); ?> </th> <th class="item"><?php echo smartyTranslate(array('s' => 'Payment'), $_smarty_tpl); ?> </th> <th class="item"><?php echo smartyTranslate(array('s' => 'Status'), $_smarty_tpl); ?> </th> <th class="item"><?php echo smartyTranslate(array('s' => 'Invoice'), $_smarty_tpl); ?> </th> <th class="last_item" style="width:65px"> </th> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars['order'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['order']->_loop = false; $_from = $_smarty_tpl->tpl_vars['orders']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['order']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['order']->iteration = 0; $_smarty_tpl->tpl_vars['order']->index = -1; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['index'] = -1; foreach ($_from as $_smarty_tpl->tpl_vars['order']->key => $_smarty_tpl->tpl_vars['order']->value) { $_smarty_tpl->tpl_vars['order']->_loop = true; $_smarty_tpl->tpl_vars['order']->iteration++; $_smarty_tpl->tpl_vars['order']->index++; $_smarty_tpl->tpl_vars['order']->first = $_smarty_tpl->tpl_vars['order']->index === 0; $_smarty_tpl->tpl_vars['order']->last = $_smarty_tpl->tpl_vars['order']->iteration === $_smarty_tpl->tpl_vars['order']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['first'] = $_smarty_tpl->tpl_vars['order']->first; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['index']++; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['last'] = $_smarty_tpl->tpl_vars['order']->last; ?> <tr class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['first']) { ?> first_item<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['last']) { ?> last_item<?php } else { ?> item<?php } ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['index'] % 2) { ?> alternate_item<?php } ?> "> <td class="history_link bold"> <?php if (isset($_smarty_tpl->tpl_vars['order']->value['invoice']) && $_smarty_tpl->tpl_vars['order']->value['invoice'] && isset($_smarty_tpl->tpl_vars['order']->value['virtual']) && $_smarty_tpl->tpl_vars['order']->value['virtual']) { ?> <img src="<?php echo $_smarty_tpl->tpl_vars['img_dir']->value; ?> icon/download_product.gif" class="icon" alt="<?php echo smartyTranslate(array('s' => 'Products to download'), $_smarty_tpl); ?> " title="<?php echo smartyTranslate(array('s' => 'Products to download'), $_smarty_tpl); ?> " /><?php } ?> <a class="color-myaccount" href="javascript:showOrder(1, <?php echo intval($_smarty_tpl->tpl_vars['order']->value['id_order']); ?> , '<?php echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('order-detail', true); ?> ');"><?php echo Order::getUniqReferenceOf($_smarty_tpl->tpl_vars['order']->value['id_order']); ?> </a> </td> <td class="history_date bold"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['order']->value['date_add'], 'full' => 0), $_smarty_tpl); ?> </td> <td class="history_price"><span class="price"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => round($_smarty_tpl->tpl_vars['order']->value['total_paid']), 'currency' => $_smarty_tpl->tpl_vars['order']->value['id_currency'], 'no_utf8' => false, 'convert' => false), $_smarty_tpl); ?> </span></td> <td class="history_method"><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['order']->value['payment'], 'htmlall', 'UTF-8'); ?> </td> <td class="history_state"> <?php if (isset($_smarty_tpl->tpl_vars['order']->value['order_state'])) { echo smarty_modifier_escape($_smarty_tpl->tpl_vars['order']->value['order_state'], 'htmlall', 'UTF-8'); } ?> <?php if ($_smarty_tpl->tpl_vars['order']->value['module'] == $_smarty_tpl->tpl_vars['name_gopay']->value && ($_smarty_tpl->tpl_vars['order']->value['current_state'] == $_smarty_tpl->tpl_vars['ADD_GOPAY_STATUS_']->value || $_smarty_tpl->tpl_vars['order']->value['current_state'] == $_smarty_tpl->tpl_vars['ADD_GOPAY_STATUS_CHOSEN_']->value || $_smarty_tpl->tpl_vars['order']->value['current_state'] == $_smarty_tpl->tpl_vars['ADD_GOPAY_STATUS_TIMEOUT_']->value || $_smarty_tpl->tpl_vars['order']->value['current_state'] == $_smarty_tpl->tpl_vars['_PS_OS_ERROR_']->value || $_smarty_tpl->tpl_vars['order']->value['current_state'] == $_smarty_tpl->tpl_vars['ADD_GOPAY_STATUS_CANCELED_']->value)) { ?> <p style="margin-top:10px;"> <a href="<?php ob_start(); echo $_smarty_tpl->tpl_vars['order']->value['id_order']; $_tmp1 = ob_get_clean(); echo $_smarty_tpl->tpl_vars['link']->value->getModuleLink('add_gopay_new', 'repeatPayment', array('orderId' => $_tmp1, 'paymentChannel' => 'ACCOUNT'), true); ?> " title="<?php echo smartyTranslate(array('s' => 'Pay with Gopay', 'mod' => 'add_gopay_new'), $_smarty_tpl); ?> " class="button" id="butmk_<?php echo $_smarty_tpl->tpl_vars['order']->value['id_order']; ?> " <?php if ($_smarty_tpl->tpl_vars['INLINE_MODE']->value) { ?> onClick="inlineFunction(this.href);"<?php } ?> > <?php echo smartyTranslate(array('s' => 'Again, pay with Gopay', 'mod' => 'add_gopay_new'), $_smarty_tpl); ?> </a></p> <?php } ?> <?php $_smarty_tpl->tpl_vars['id_session'] = new Smarty_variable($_smarty_tpl->tpl_vars['RECURRENT']->value->getReccurenceStarted(intval($_smarty_tpl->tpl_vars['order']->value['id_order'])), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['id_session']->value) { ?> <div class="conf" id="conf_<?php echo $_smarty_tpl->tpl_vars['order']->value['id_order']; ?> " style="display:none"><?php echo smartyTranslate(array('s' => 'Recurring payments were terminated', 'mod' => 'add_gopay_new'), $_smarty_tpl); ?> </div> <div class="error" id="error_<?php echo $_smarty_tpl->tpl_vars['order']->value['id_order']; ?> " style="display:none"></div> <p style="margin-top:10px;"> <a href="#" title="<?php echo smartyTranslate(array('s' => 'Cancel recurrent', 'mod' => 'add_gopay_new'), $_smarty_tpl); ?> " class="btn btn-default button button-small" id="cancel_recurr_<?php echo $_smarty_tpl->tpl_vars['order']->value['id_order']; ?> " onclick="if (confirm('<?php echo smartyTranslate(array('s' => 'Update selected items?', 'mod' => 'add_gopay_new'), $_smarty_tpl); ?> '))cancelRecurrent(<?php echo intval($_smarty_tpl->tpl_vars['order']->value['id_order']); ?> , <?php echo $_smarty_tpl->tpl_vars['id_session']->value; ?> ); return false;" > <span><?php echo smartyTranslate(array('s' => 'Cancel recurrent', 'mod' => 'add_gopay_new'), $_smarty_tpl); ?> </span> </a> </p> <?php } ?> </td> <td class="history_invoice"> <?php if (isset($_smarty_tpl->tpl_vars['order']->value['invoice']) && $_smarty_tpl->tpl_vars['order']->value['invoice'] && isset($_smarty_tpl->tpl_vars['order']->value['invoice_number']) && $_smarty_tpl->tpl_vars['order']->value['invoice_number'] && isset($_smarty_tpl->tpl_vars['invoiceAllowed']->value) && $_smarty_tpl->tpl_vars['invoiceAllowed']->value == true) { ?> <a href="<?php echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('pdf-invoice', true, null, "id_order=" . (string) $_smarty_tpl->tpl_vars['order']->value['id_order']); ?> " title="<?php echo smartyTranslate(array('s' => 'Invoice'), $_smarty_tpl); ?> " target="_blank"><img src="<?php echo $_smarty_tpl->tpl_vars['img_dir']->value; ?> icon/pdf.gif" alt="<?php echo smartyTranslate(array('s' => 'Invoice'), $_smarty_tpl); ?> " class="icon" /></a> <a href="<?php echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('pdf-invoice', true, null, "id_order=" . (string) $_smarty_tpl->tpl_vars['order']->value['id_order']); ?> " title="<?php echo smartyTranslate(array('s' => 'Invoice'), $_smarty_tpl); ?> " target="_blank"><?php echo smartyTranslate(array('s' => 'PDF'), $_smarty_tpl); ?> </a> <?php } else { ?> -<?php } ?> </td> <td class="history_detail"> <a class="color-myaccount" href="javascript:showOrder(1, <?php echo intval($_smarty_tpl->tpl_vars['order']->value['id_order']); ?> , '<?php echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('order-detail', true); ?> ');"><?php echo smartyTranslate(array('s' => 'details'), $_smarty_tpl); ?> </a> <?php if (isset($_smarty_tpl->tpl_vars['opc']->value) && $_smarty_tpl->tpl_vars['opc']->value) { ?> <a href="<?php echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('order-opc', true, null, "submitReorder&id_order=" . (string) $_smarty_tpl->tpl_vars['order']->value['id_order']); ?> " title="<?php echo smartyTranslate(array('s' => 'Reorder'), $_smarty_tpl); ?> "> <?php } else { ?> <a href="<?php echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('order', true, null, "submitReorder&id_order=" . (string) $_smarty_tpl->tpl_vars['order']->value['id_order']); ?> " title="<?php echo smartyTranslate(array('s' => 'Reorder'), $_smarty_tpl); ?> "> <?php } ?> <img src="<?php echo $_smarty_tpl->tpl_vars['img_dir']->value; ?> arrow_rotate_anticlockwise.png" alt="<?php echo smartyTranslate(array('s' => 'Reorder'), $_smarty_tpl); ?> " title="<?php echo smartyTranslate(array('s' => 'Reorder'), $_smarty_tpl); ?> " class="icon" /> </a> </td> </tr> <?php } ?> </tbody> </table> <div id="block-order-detail" class="hidden"> </div> <?php } else { ?> <p class="warning"><?php echo smartyTranslate(array('s' => 'You have not placed any orders.'), $_smarty_tpl); ?> </p> <?php } ?> </div> <ul class="footer_links clearfix"> <li><a href="<?php echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account', true); ?> "><img src="<?php echo $_smarty_tpl->tpl_vars['img_dir']->value; ?> icon/my-account.gif" alt="" class="icon" /> <?php echo smartyTranslate(array('s' => 'Back to Your Account'), $_smarty_tpl); ?> </a></li> <li class="f_right"><a href="<?php echo $_smarty_tpl->tpl_vars['base_dir']->value; ?> "><img src="<?php echo $_smarty_tpl->tpl_vars['img_dir']->value; ?> icon/home.gif" alt="" class="icon" /> <?php echo smartyTranslate(array('s' => 'Home'), $_smarty_tpl); ?> </a></li> </ul> <?php } else { ?> <?php $_smarty_tpl->_capture_stack[0][] = array('path', null, null); ob_start(); ?> <a href="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account', true), 'html', 'UTF-8'); ?> "> <?php echo smartyTranslate(array('s' => 'My account'), $_smarty_tpl); ?> </a> <span class="navigation-pipe"><?php echo $_smarty_tpl->tpl_vars['navigationPipe']->value; ?> </span> <span class="navigation_page"><?php echo smartyTranslate(array('s' => 'Order history'), $_smarty_tpl); ?> </span> <?php 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(); } 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); ?> <h1 class="page-heading bottom-indent"><?php echo smartyTranslate(array('s' => 'Order history'), $_smarty_tpl); ?> </h1> <p class="info-title"><?php echo smartyTranslate(array('s' => 'Here are the orders you\'ve placed since your account was created.'), $_smarty_tpl); ?> </p> <?php if ($_smarty_tpl->tpl_vars['slowValidation']->value) { ?> <p class="alert alert-warning"><?php echo smartyTranslate(array('s' => 'If you have just placed an order, it may take a few minutes for it to be validated. Please refresh this page if your order is missing.'), $_smarty_tpl); ?> </p> <?php } ?> <div class="block-center" id="block-history"> <?php if ($_smarty_tpl->tpl_vars['orders']->value && count($_smarty_tpl->tpl_vars['orders']->value)) { ?> <table id="order-list" class="table table-bordered footab"> <thead> <tr> <th class="first_item" data-sort-ignore="true"><?php echo smartyTranslate(array('s' => 'Order reference'), $_smarty_tpl); ?> </th> <th class="item"><?php echo smartyTranslate(array('s' => 'Date'), $_smarty_tpl); ?> </th> <th data-hide="phone" class="item"><?php echo smartyTranslate(array('s' => 'Total price'), $_smarty_tpl); ?> </th> <th data-sort-ignore="true" data-hide="phone,tablet" class="item"><?php echo smartyTranslate(array('s' => 'Payment'), $_smarty_tpl); ?> </th> <th class="item"><?php echo smartyTranslate(array('s' => 'Status'), $_smarty_tpl); ?> </th> <th data-sort-ignore="true" data-hide="phone,tablet" class="item"><?php echo smartyTranslate(array('s' => 'Invoice'), $_smarty_tpl); ?> </th> <th data-sort-ignore="true" data-hide="phone,tablet" class="last_item"> </th> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars['order'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['order']->_loop = false; $_from = $_smarty_tpl->tpl_vars['orders']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['order']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['order']->iteration = 0; $_smarty_tpl->tpl_vars['order']->index = -1; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['index'] = -1; foreach ($_from as $_smarty_tpl->tpl_vars['order']->key => $_smarty_tpl->tpl_vars['order']->value) { $_smarty_tpl->tpl_vars['order']->_loop = true; $_smarty_tpl->tpl_vars['order']->iteration++; $_smarty_tpl->tpl_vars['order']->index++; $_smarty_tpl->tpl_vars['order']->first = $_smarty_tpl->tpl_vars['order']->index === 0; $_smarty_tpl->tpl_vars['order']->last = $_smarty_tpl->tpl_vars['order']->iteration === $_smarty_tpl->tpl_vars['order']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['first'] = $_smarty_tpl->tpl_vars['order']->first; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['index']++; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['last'] = $_smarty_tpl->tpl_vars['order']->last; ?> <tr class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['first']) { ?> first_item<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['last']) { ?> last_item<?php } else { ?> item<?php } ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['index'] % 2) { ?> alternate_item<?php } ?> "> <td class="history_link bold"> <?php if (isset($_smarty_tpl->tpl_vars['order']->value['invoice']) && $_smarty_tpl->tpl_vars['order']->value['invoice'] && isset($_smarty_tpl->tpl_vars['order']->value['virtual']) && $_smarty_tpl->tpl_vars['order']->value['virtual']) { ?> <img class="icon" src="<?php echo $_smarty_tpl->tpl_vars['img_dir']->value; ?> icon/download_product.gif" alt="<?php echo smartyTranslate(array('s' => 'Products to download'), $_smarty_tpl); ?> " title="<?php echo smartyTranslate(array('s' => 'Products to download'), $_smarty_tpl); ?> " /> <?php } ?> <a class="color-myaccount" href="javascript:showOrder(1, <?php echo intval($_smarty_tpl->tpl_vars['order']->value['id_order']); ?> , '<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['link']->value->getPageLink('order-detail', true), 'html', 'UTF-8'); ?> ');"> <?php echo Order::getUniqReferenceOf($_smarty_tpl->tpl_vars['order']->value['id_order']); ?> </a> </td> <td data-value="<?php echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['order']->value['date_add'], "/[\\-\\:\\ ]/", ''); ?> " class="history_date bold"> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['order']->value['date_add'], 'full' => 0), $_smarty_tpl); ?> </td> <td class="history_price" data-value="<?php echo $_smarty_tpl->tpl_vars['order']->value['total_paid']; ?> "> <span class="price"> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['order']->value['total_paid'], 'currency' => $_smarty_tpl->tpl_vars['order']->value['id_currency'], 'no_utf8' => false, 'convert' => false), $_smarty_tpl); ?> </span> </td> <td class="history_method"><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['order']->value['payment'], 'html', 'UTF-8'); ?> </td> <td data-value="<?php echo $_smarty_tpl->tpl_vars['order']->value['id_order_state']; ?> " class="history_state"> <?php if (isset($_smarty_tpl->tpl_vars['order']->value['order_state'])) { ?> <span class="label<?php if ($_smarty_tpl->tpl_vars['order']->value['id_order_state'] == 1 || $_smarty_tpl->tpl_vars['order']->value['id_order_state'] == 10 || $_smarty_tpl->tpl_vars['order']->value['id_order_state'] == 11) { ?> label-info<?php } elseif ($_smarty_tpl->tpl_vars['order']->value['id_order_state'] == 5 || $_smarty_tpl->tpl_vars['order']->value['id_order_state'] == 2 || $_smarty_tpl->tpl_vars['order']->value['id_order_state'] == 12) { ?> label-success<?php } elseif ($_smarty_tpl->tpl_vars['order']->value['id_order_state'] == 6 || $_smarty_tpl->tpl_vars['order']->value['id_order_state'] == 7 || $_smarty_tpl->tpl_vars['order']->value['id_order_state'] == 8) { ?> label-danger<?php } elseif ($_smarty_tpl->tpl_vars['order']->value['id_order_state'] == 3 || $_smarty_tpl->tpl_vars['order']->value['id_order_state'] == 9 || $_smarty_tpl->tpl_vars['order']->value['id_order_state'] == 4) { ?> label-warning<?php } ?> " <?php if ($_smarty_tpl->tpl_vars['order']->value['id_order_state'] > 12) { ?> style="background-color:<?php echo $_smarty_tpl->tpl_vars['order']->value['order_state_color']; ?> ;"<?php } ?> > <?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['order']->value['order_state'], 'html', 'UTF-8'); ?> </span> <?php if ($_smarty_tpl->tpl_vars['order']->value['module'] == $_smarty_tpl->tpl_vars['name_gopay']->value && ($_smarty_tpl->tpl_vars['order']->value['current_state'] == $_smarty_tpl->tpl_vars['ADD_GOPAY_STATUS_']->value || $_smarty_tpl->tpl_vars['order']->value['current_state'] == $_smarty_tpl->tpl_vars['ADD_GOPAY_STATUS_CHOSEN_']->value || $_smarty_tpl->tpl_vars['order']->value['current_state'] == $_smarty_tpl->tpl_vars['ADD_GOPAY_STATUS_TIMEOUT_']->value || $_smarty_tpl->tpl_vars['order']->value['current_state'] == $_smarty_tpl->tpl_vars['_PS_OS_ERROR_']->value || $_smarty_tpl->tpl_vars['order']->value['current_state'] == $_smarty_tpl->tpl_vars['ADD_GOPAY_STATUS_CANCELED_']->value)) { ?> <p style="margin-top:10px;"> <a href="<?php ob_start(); echo $_smarty_tpl->tpl_vars['order']->value['id_order']; $_tmp2 = ob_get_clean(); echo $_smarty_tpl->tpl_vars['link']->value->getModuleLink('add_gopay_new', 'repeatPayment', array('orderId' => $_tmp2, 'paymentChannel' => 'ACCOUNT'), true); ?> " title="<?php echo smartyTranslate(array('s' => 'Pay with Gopay', 'mod' => 'add_gopay_new'), $_smarty_tpl); ?> " class="button" id="butmk_<?php echo $_smarty_tpl->tpl_vars['order']->value['id_order']; ?> " <?php if ($_smarty_tpl->tpl_vars['INLINE_MODE']->value) { ?> onClick="inlineFunction(this.href);"<?php } ?> > <?php echo smartyTranslate(array('s' => 'Again, pay with Gopay', 'mod' => 'add_gopay_new'), $_smarty_tpl); ?> </a></p> <?php } ?> <?php $_smarty_tpl->tpl_vars['id_session'] = new Smarty_variable($_smarty_tpl->tpl_vars['RECURRENT']->value->getReccurenceStarted(intval($_smarty_tpl->tpl_vars['order']->value['id_order'])), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['id_session']->value) { ?> <div class="conf" id="conf_<?php echo $_smarty_tpl->tpl_vars['order']->value['id_order']; ?> " style="display:none"><?php echo smartyTranslate(array('s' => 'Recurring payments were terminated', 'mod' => 'add_gopay_new'), $_smarty_tpl); ?> </div> <div class="error" id="error_<?php echo $_smarty_tpl->tpl_vars['order']->value['id_order']; ?> " style="display:none"></div> <p style="margin-top:10px;"> <a href="#" title="<?php echo smartyTranslate(array('s' => 'Cancel recurrent', 'mod' => 'add_gopay_new'), $_smarty_tpl); ?> " class="btn btn-default button button-small" id="cancel_recurr_<?php echo $_smarty_tpl->tpl_vars['order']->value['id_order']; ?> " onclick="if (confirm('<?php echo smartyTranslate(array('s' => 'Update selected items?', 'mod' => 'add_gopay_new'), $_smarty_tpl); ?> '))cancelRecurrent(<?php echo intval($_smarty_tpl->tpl_vars['order']->value['id_order']); ?> , <?php echo $_smarty_tpl->tpl_vars['id_session']->value; ?> ); return false;" > <span><?php echo smartyTranslate(array('s' => 'Cancel recurrent', 'mod' => 'add_gopay_new'), $_smarty_tpl); ?> </span> </a> </p> <?php } ?> <?php } ?> </td> <td class="history_invoice"> <?php if (isset($_smarty_tpl->tpl_vars['order']->value['invoice']) && $_smarty_tpl->tpl_vars['order']->value['invoice'] && isset($_smarty_tpl->tpl_vars['order']->value['invoice_number']) && $_smarty_tpl->tpl_vars['order']->value['invoice_number'] && isset($_smarty_tpl->tpl_vars['invoiceAllowed']->value) && $_smarty_tpl->tpl_vars['invoiceAllowed']->value == true) { ?> <a class="link-button" href="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['link']->value->getPageLink('pdf-invoice', true, null, "id_order=" . (string) $_smarty_tpl->tpl_vars['order']->value['id_order']), 'html', 'UTF-8'); ?> " title="<?php echo smartyTranslate(array('s' => 'Invoice'), $_smarty_tpl); ?> " target="_blank"> <i class="icon-file-text large"></i><?php echo smartyTranslate(array('s' => 'PDF'), $_smarty_tpl); ?> </a> <?php } else { ?> - <?php } ?> </td> <td class="history_detail"> <a class="btn btn-default button button-small" href="javascript:showOrder(1, <?php echo intval($_smarty_tpl->tpl_vars['order']->value['id_order']); ?> , '<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['link']->value->getPageLink('order-detail', true), 'html', 'UTF-8'); ?> ');"> <span> <?php echo smartyTranslate(array('s' => 'Details'), $_smarty_tpl); ?> <i class="icon-chevron-right right"></i> </span> </a> <?php if (isset($_smarty_tpl->tpl_vars['opc']->value) && $_smarty_tpl->tpl_vars['opc']->value) { ?> <a class="link-button" href="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['link']->value->getPageLink('order-opc', true, null, "submitReorder&id_order=" . (string) $_smarty_tpl->tpl_vars['order']->value['id_order']), 'html', 'UTF-8'); ?> " title="<?php echo smartyTranslate(array('s' => 'Reorder'), $_smarty_tpl); ?> "> <?php } else { ?> <a class="link-button" href="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['link']->value->getPageLink('order', true, null, "submitReorder&id_order=" . (string) $_smarty_tpl->tpl_vars['order']->value['id_order']), 'html', 'UTF-8'); ?> " title="<?php echo smartyTranslate(array('s' => 'Reorder'), $_smarty_tpl); ?> "> <?php } ?> <i class="icon-refresh"></i><?php echo smartyTranslate(array('s' => 'Reorder'), $_smarty_tpl); ?> </a> </td> </tr> <?php } ?> </tbody> </table> <div id="block-order-detail" class="unvisible"> </div> <?php } else { ?> <p class="alert alert-warning"><?php echo smartyTranslate(array('s' => 'You have not placed any orders.'), $_smarty_tpl); ?> </p> <?php } ?> </div> <ul class="footer_links clearfix"> <li> <a class="btn btn-default button button-small" href="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account', true), 'html', 'UTF-8'); ?> "> <span> <i class="icon-chevron-left"></i> <?php echo smartyTranslate(array('s' => 'Back to Your Account'), $_smarty_tpl); ?> </span> </a> </li> <li> <a class="btn btn-default button button-small" href="<?php echo $_smarty_tpl->tpl_vars['base_dir']->value; ?> "> <span><i class="icon-chevron-left"></i> <?php echo smartyTranslate(array('s' => 'Home'), $_smarty_tpl); ?> </span> </a> </li> </ul> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['INLINE_MODE']->value) { ?> <script src="https://gate.gopay.cz/gp-gw/js/embed.js"></script> <?php } }
?> <span style="font-size:10px"><?php if ($this->_tpl_vars['lifetime'] > time()) { ?> Сайт активирован до: <?php echo is_array($_tmp = $this->_tpl_vars['lifetime']) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d.%m.%Y") : smarty_modifier_date_format($_tmp, "%d.%m.%Y"); } else { ?> Сайт заблокирован<?php } ?> </span><?php } else { ?> v.<?php echo is_array($_tmp = $this->_tpl_vars['options']['version']) ? $this->_run_mod_handler('regex_replace', true, $_tmp, "/([0-9][0-9])\$/", ".\\1") : smarty_modifier_regex_replace($_tmp, "/([0-9][0-9])\$/", ".\\1"); } ?> </td> --> </tr> <!-- fix end--> </table> </td> </tr> <tr > <td width="100%" height="26" align="left"> <table border="0" bgcolor="#2f2f2f" cellspacing="0" cellpadding="0" width="100%"> <tr height="42px"> <?php if ($this->_tpl_vars['auth']->isExpert()) {
function content_56277f85ed24d4_90701549($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { include '/home/u481889647/public_html/tools/smarty/plugins/modifier.replace.php'; } if (!is_callable('smarty_function_counter')) { include '/home/u481889647/public_html/tools/smarty/plugins/function.counter.php'; } if (!is_callable('smarty_modifier_regex_replace')) { include '/home/u481889647/public_html/tools/smarty/plugins/modifier.regex_replace.php'; } if (isset($_smarty_tpl->tpl_vars['order']->value)) { if (isset($_smarty_tpl->tpl_vars['reorderingAllowed']->value) && $_smarty_tpl->tpl_vars['reorderingAllowed']->value) { ?> <div class="box box-small clearfix"> <form id="submitReorder" action="<?php if (isset($_smarty_tpl->tpl_vars['opc']->value) && $_smarty_tpl->tpl_vars['opc']->value) { echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('order-opc', true); } else { echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('order', true); } ?> " method="post" class="submit"> <input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['order']->value->id; ?> " name="id_order"/> <input type="hidden" value="" name="submitReorder"/> <a href="#" onclick="$(this).closest('form').submit(); return false;" class="button btn btn-default button-medium pull-right"><span><?php echo smartyTranslate(array('s' => 'Reorder'), $_smarty_tpl); ?> <i class="icon-chevron-right right"></i></span></a> <p class="dark"> <strong><?php echo smartyTranslate(array('s' => 'Order Reference %s - placed on', 'sprintf' => $_smarty_tpl->tpl_vars['order']->value->getUniqReference()), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['order']->value->date_add, 'full' => 0), $_smarty_tpl); ?> </strong> </p> </form> </div> <?php } ?> <div class="info-order box"> <?php if ($_smarty_tpl->tpl_vars['carrier']->value->id) { ?> <p><strong class="dark"><?php echo smartyTranslate(array('s' => 'Carrier'), $_smarty_tpl); ?> </strong> <?php if ($_smarty_tpl->tpl_vars['carrier']->value->name == "0") { echo htmlspecialchars($_smarty_tpl->tpl_vars['shop_name']->value, ENT_QUOTES, 'UTF-8', true); } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['carrier']->value->name, ENT_QUOTES, 'UTF-8', true); } ?> </p><?php } ?> <p><strong class="dark"><?php echo smartyTranslate(array('s' => 'Payment method'), $_smarty_tpl); ?> </strong> <span class="color-myaccount"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value->payment, ENT_QUOTES, 'UTF-8', true); ?> </span></p> <?php if ($_smarty_tpl->tpl_vars['invoice']->value && $_smarty_tpl->tpl_vars['invoiceAllowed']->value) { ?> <p> <i class="icon-file-text"></i> <a target="_blank" href="<?php echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('pdf-invoice', true); ?> ?id_order=<?php echo intval($_smarty_tpl->tpl_vars['order']->value->id); if ($_smarty_tpl->tpl_vars['is_guest']->value) { ?> &secure_key=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value->secure_key, ENT_QUOTES, 'UTF-8', true); } ?> "><?php echo smartyTranslate(array('s' => 'Download your invoice as a PDF file.'), $_smarty_tpl); ?> </a> </p> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['order']->value->recyclable) { ?> <p><i class="icon-repeat"></i> <?php echo smartyTranslate(array('s' => 'You have given permission to receive your order in recycled packaging.'), $_smarty_tpl); ?> </p> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['order']->value->gift) { ?> <p><i class="icon-gift"></i> <?php echo smartyTranslate(array('s' => 'You have requested gift wrapping for this order.'), $_smarty_tpl); ?> </p> <p><strong class="dark"><?php echo smartyTranslate(array('s' => 'Message'), $_smarty_tpl); ?> </strong> <?php echo nl2br($_smarty_tpl->tpl_vars['order']->value->gift_message); ?> </p> <?php } ?> </div> <?php if (count($_smarty_tpl->tpl_vars['order_history']->value)) { ?> <h1 class="page-heading"><?php echo smartyTranslate(array('s' => 'Follow your order\'s status step-by-step'), $_smarty_tpl); ?> </h1> <div class="table_block"> <table class="detail_step_by_step table table-bordered"> <thead> <tr> <th class="first_item"><?php echo smartyTranslate(array('s' => 'Date'), $_smarty_tpl); ?> </th> <th class="last_item"><?php echo smartyTranslate(array('s' => 'Status'), $_smarty_tpl); ?> </th> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars['state'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['state']->_loop = false; $_from = $_smarty_tpl->tpl_vars['order_history']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['state']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['state']->iteration = 0; $_smarty_tpl->tpl_vars['state']->index = -1; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["orderStates"]['index'] = -1; foreach ($_from as $_smarty_tpl->tpl_vars['state']->key => $_smarty_tpl->tpl_vars['state']->value) { $_smarty_tpl->tpl_vars['state']->_loop = true; $_smarty_tpl->tpl_vars['state']->iteration++; $_smarty_tpl->tpl_vars['state']->index++; $_smarty_tpl->tpl_vars['state']->first = $_smarty_tpl->tpl_vars['state']->index === 0; $_smarty_tpl->tpl_vars['state']->last = $_smarty_tpl->tpl_vars['state']->iteration === $_smarty_tpl->tpl_vars['state']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["orderStates"]['first'] = $_smarty_tpl->tpl_vars['state']->first; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["orderStates"]['index']++; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["orderStates"]['last'] = $_smarty_tpl->tpl_vars['state']->last; ?> <tr class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['orderStates']['first']) { ?> first_item<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['orderStates']['last']) { ?> last_item<?php } ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['orderStates']['index'] % 2) { ?> alternate_item<?php } else { ?> item<?php } ?> "> <td class="step-by-step-date"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['state']->value['date_add'], 'full' => 0), $_smarty_tpl); ?> </td> <td><span<?php if (isset($_smarty_tpl->tpl_vars['state']->value['color']) && $_smarty_tpl->tpl_vars['state']->value['color']) { ?> style="background-color:<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['state']->value['color'], ENT_QUOTES, 'UTF-8', true); ?> ; border-color:<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['state']->value['color'], ENT_QUOTES, 'UTF-8', true); ?> ;"<?php } ?> class="label<?php if (isset($_smarty_tpl->tpl_vars['state']->value['color']) && Tools::getBrightness($_smarty_tpl->tpl_vars['state']->value['color']) > 128) { ?> dark<?php } ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['state']->value['ostate_name'], ENT_QUOTES, 'UTF-8', true); ?> </span></td> </tr> <?php } ?> </tbody> </table> </div> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['followup']->value)) { ?> <p class="bold"><?php echo smartyTranslate(array('s' => 'Click the following link to track the delivery of your order'), $_smarty_tpl); ?> </p> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['followup']->value, ENT_QUOTES, 'UTF-8', true); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['followup']->value, ENT_QUOTES, 'UTF-8', true); ?> </a> <?php } ?> <div class="adresses_bloc"> <div class="row"> <div class="col-xs-12 col-sm-6"<?php if ($_smarty_tpl->tpl_vars['order']->value->isVirtual()) { ?> style="display:none;"<?php } ?> > <ul class="address alternate_item box"> <li><h3 class="page-subheading"><?php echo smartyTranslate(array('s' => 'Delivery address'), $_smarty_tpl); ?> (<?php echo $_smarty_tpl->tpl_vars['address_delivery']->value->alias; ?> )</h3></li> <?php $_smarty_tpl->tpl_vars['field_item'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['field_item']->_loop = false; $_from = $_smarty_tpl->tpl_vars['dlv_adr_fields']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['field_item']->key => $_smarty_tpl->tpl_vars['field_item']->value) { $_smarty_tpl->tpl_vars['field_item']->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['field_item']->value == "company" && isset($_smarty_tpl->tpl_vars['address_delivery']->value->company)) { ?> <li class="address_company"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['address_delivery']->value->company, ENT_QUOTES, 'UTF-8', true); ?> </li> <?php } elseif ($_smarty_tpl->tpl_vars['field_item']->value == "address2" && $_smarty_tpl->tpl_vars['address_delivery']->value->address2) { ?> <li class="address_address2"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['address_delivery']->value->address2, ENT_QUOTES, 'UTF-8', true); ?> </li> <?php } elseif ($_smarty_tpl->tpl_vars['field_item']->value == "phone_mobile" && $_smarty_tpl->tpl_vars['address_delivery']->value->phone_mobile) { ?> <li class="address_phone_mobile"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['address_delivery']->value->phone_mobile, ENT_QUOTES, 'UTF-8', true); ?> </li> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['address_words'] = new Smarty_variable(explode(" ", $_smarty_tpl->tpl_vars['field_item']->value), null, 0); ?> <li><?php $_smarty_tpl->tpl_vars['word_item'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['word_item']->_loop = false; $_from = $_smarty_tpl->tpl_vars['address_words']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['word_item']->index = -1; foreach ($_from as $_smarty_tpl->tpl_vars['word_item']->key => $_smarty_tpl->tpl_vars['word_item']->value) { $_smarty_tpl->tpl_vars['word_item']->_loop = true; $_smarty_tpl->tpl_vars['word_item']->index++; $_smarty_tpl->tpl_vars['word_item']->first = $_smarty_tpl->tpl_vars['word_item']->index === 0; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["word_loop"]['first'] = $_smarty_tpl->tpl_vars['word_item']->first; if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['word_loop']['first']) { ?> <?php } ?> <span class="address_<?php echo smarty_modifier_replace($_smarty_tpl->tpl_vars['word_item']->value, ',', ''); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['deliveryAddressFormatedValues']->value[smarty_modifier_replace($_smarty_tpl->tpl_vars['word_item']->value, ',', '')], ENT_QUOTES, 'UTF-8', true); ?> </span><?php } ?> </li> <?php } ?> <?php } ?> </ul> </div> <div class="col-xs-12 col-sm-6"> <ul class="address item <?php if ($_smarty_tpl->tpl_vars['order']->value->isVirtual()) { ?> full_width<?php } ?> box"> <li><h3 class="page-subheading"><?php echo smartyTranslate(array('s' => 'Invoice address'), $_smarty_tpl); ?> (<?php echo $_smarty_tpl->tpl_vars['address_invoice']->value->alias; ?> )</h3></li> <?php $_smarty_tpl->tpl_vars['field_item'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['field_item']->_loop = false; $_from = $_smarty_tpl->tpl_vars['inv_adr_fields']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['field_item']->key => $_smarty_tpl->tpl_vars['field_item']->value) { $_smarty_tpl->tpl_vars['field_item']->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['field_item']->value == "company" && isset($_smarty_tpl->tpl_vars['address_invoice']->value->company)) { ?> <li class="address_company"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['address_invoice']->value->company, ENT_QUOTES, 'UTF-8', true); ?> </li> <?php } elseif ($_smarty_tpl->tpl_vars['field_item']->value == "address2" && $_smarty_tpl->tpl_vars['address_invoice']->value->address2) { ?> <li class="address_address2"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['address_invoice']->value->address2, ENT_QUOTES, 'UTF-8', true); ?> </li> <?php } elseif ($_smarty_tpl->tpl_vars['field_item']->value == "phone_mobile" && $_smarty_tpl->tpl_vars['address_invoice']->value->phone_mobile) { ?> <li class="address_phone_mobile"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['address_invoice']->value->phone_mobile, ENT_QUOTES, 'UTF-8', true); ?> </li> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['address_words'] = new Smarty_variable(explode(" ", $_smarty_tpl->tpl_vars['field_item']->value), null, 0); ?> <li><?php $_smarty_tpl->tpl_vars['word_item'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['word_item']->_loop = false; $_from = $_smarty_tpl->tpl_vars['address_words']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['word_item']->index = -1; foreach ($_from as $_smarty_tpl->tpl_vars['word_item']->key => $_smarty_tpl->tpl_vars['word_item']->value) { $_smarty_tpl->tpl_vars['word_item']->_loop = true; $_smarty_tpl->tpl_vars['word_item']->index++; $_smarty_tpl->tpl_vars['word_item']->first = $_smarty_tpl->tpl_vars['word_item']->index === 0; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["word_loop"]['first'] = $_smarty_tpl->tpl_vars['word_item']->first; if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['word_loop']['first']) { ?> <?php } ?> <span class="address_<?php echo smarty_modifier_replace($_smarty_tpl->tpl_vars['word_item']->value, ',', ''); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['invoiceAddressFormatedValues']->value[smarty_modifier_replace($_smarty_tpl->tpl_vars['word_item']->value, ',', '')], ENT_QUOTES, 'UTF-8', true); ?> </span><?php } ?> </li> <?php } ?> <?php } ?> </ul> </div> </div> </div> <?php echo $_smarty_tpl->tpl_vars['HOOK_ORDERDETAILDISPLAYED']->value; ?> <?php if (!$_smarty_tpl->tpl_vars['is_guest']->value) { ?> <form action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('order-follow', true), ENT_QUOTES, 'UTF-8', true); ?> " method="post"><?php } ?> <div id="order-detail-content" class="table_block table-responsive"> <table class="table table-bordered"> <thead> <tr> <?php if ($_smarty_tpl->tpl_vars['return_allowed']->value) { ?> <th class="first_item"><input type="checkbox" /></th><?php } ?> <th class="<?php if ($_smarty_tpl->tpl_vars['return_allowed']->value) { ?> item<?php } else { ?> first_item<?php } ?> "><?php echo smartyTranslate(array('s' => 'Reference'), $_smarty_tpl); ?> </th> <th class="item"><?php echo smartyTranslate(array('s' => 'Product'), $_smarty_tpl); ?> </th> <th class="item"><?php echo smartyTranslate(array('s' => 'Quantity'), $_smarty_tpl); ?> </th> <?php if ($_smarty_tpl->tpl_vars['order']->value->hasProductReturned()) { ?> <th class="item"><?php echo smartyTranslate(array('s' => 'Returned'), $_smarty_tpl); ?> </th> <?php } ?> <th class="item"><?php echo smartyTranslate(array('s' => 'Unit price'), $_smarty_tpl); ?> </th> <th class="last_item"><?php echo smartyTranslate(array('s' => 'Total price'), $_smarty_tpl); ?> </th> </tr> </thead> <tfoot> <?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value && $_smarty_tpl->tpl_vars['use_tax']->value) { ?> <tr class="item"> <td colspan="<?php if ($_smarty_tpl->tpl_vars['return_allowed']->value) { ?> 2<?php } else { ?> 1<?php } ?> "> <strong><?php echo smartyTranslate(array('s' => 'Items (tax excl.)'), $_smarty_tpl); ?> </strong> </td> <td colspan="<?php if ($_smarty_tpl->tpl_vars['order']->value->hasProductReturned()) { ?> 5<?php } else { ?> 4<?php } ?> "> <span class="price"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayWtPriceWithCurrency'][0][0]->displayWtPriceWithCurrency(array('price' => $_smarty_tpl->tpl_vars['order']->value->getTotalProductsWithoutTaxes(), 'currency' => $_smarty_tpl->tpl_vars['currency']->value), $_smarty_tpl); ?> </span> </td> </tr> <?php } ?> <tr class="item"> <td colspan="<?php if ($_smarty_tpl->tpl_vars['return_allowed']->value) { ?> 2<?php } else { ?> 1<?php } ?> "> <strong><?php echo smartyTranslate(array('s' => 'Items'), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['use_tax']->value) { echo smartyTranslate(array('s' => '(tax incl.)'), $_smarty_tpl); } ?> </strong> </td> <td colspan="<?php if ($_smarty_tpl->tpl_vars['order']->value->hasProductReturned()) { ?> 5<?php } else { ?> 4<?php } ?> "> <span class="price"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayWtPriceWithCurrency'][0][0]->displayWtPriceWithCurrency(array('price' => $_smarty_tpl->tpl_vars['order']->value->getTotalProductsWithTaxes(), 'currency' => $_smarty_tpl->tpl_vars['currency']->value), $_smarty_tpl); ?> </span> </td> </tr> <?php if ($_smarty_tpl->tpl_vars['order']->value->total_discounts > 0) { ?> <tr class="item"> <td colspan="<?php if ($_smarty_tpl->tpl_vars['return_allowed']->value) { ?> 2<?php } else { ?> 1<?php } ?> "> <strong><?php echo smartyTranslate(array('s' => 'Total vouchers'), $_smarty_tpl); ?> </strong> </td> <td colspan="<?php if ($_smarty_tpl->tpl_vars['order']->value->hasProductReturned()) { ?> 5<?php } else { ?> 4<?php } ?> "> <span class="price-discount"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayWtPriceWithCurrency'][0][0]->displayWtPriceWithCurrency(array('price' => $_smarty_tpl->tpl_vars['order']->value->total_discounts, 'currency' => $_smarty_tpl->tpl_vars['currency']->value, 'convert' => 1), $_smarty_tpl); ?> </span> </td> </tr> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['order']->value->total_wrapping > 0) { ?> <tr class="item"> <td colspan="<?php if ($_smarty_tpl->tpl_vars['return_allowed']->value) { ?> 2<?php } else { ?> 1<?php } ?> "> <strong><?php echo smartyTranslate(array('s' => 'Total gift wrapping cost'), $_smarty_tpl); ?> </strong> </td> <td colspan="<?php if ($_smarty_tpl->tpl_vars['order']->value->hasProductReturned()) { ?> 5<?php } else { ?> 4<?php } ?> "> <span class="price-wrapping"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayWtPriceWithCurrency'][0][0]->displayWtPriceWithCurrency(array('price' => $_smarty_tpl->tpl_vars['order']->value->total_wrapping, 'currency' => $_smarty_tpl->tpl_vars['currency']->value), $_smarty_tpl); ?> </span> </td> </tr> <?php } ?> <tr class="item"> <td colspan="<?php if ($_smarty_tpl->tpl_vars['return_allowed']->value) { ?> 2<?php } else { ?> 1<?php } ?> "> <strong><?php echo smartyTranslate(array('s' => 'Shipping & handling'), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['use_tax']->value) { echo smartyTranslate(array('s' => '(tax incl.)'), $_smarty_tpl); } ?> </strong> </td> <td colspan="<?php if ($_smarty_tpl->tpl_vars['order']->value->hasProductReturned()) { ?> 5<?php } else { ?> 4<?php } ?> "> <span class="price-shipping"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayWtPriceWithCurrency'][0][0]->displayWtPriceWithCurrency(array('price' => $_smarty_tpl->tpl_vars['order']->value->total_shipping, 'currency' => $_smarty_tpl->tpl_vars['currency']->value), $_smarty_tpl); ?> </span> </td> </tr> <tr class="totalprice item"> <td colspan="<?php if ($_smarty_tpl->tpl_vars['return_allowed']->value) { ?> 2<?php } else { ?> 1<?php } ?> "> <strong><?php echo smartyTranslate(array('s' => 'Total'), $_smarty_tpl); ?> </strong> </td> <td colspan="<?php if ($_smarty_tpl->tpl_vars['order']->value->hasProductReturned()) { ?> 5<?php } else { ?> 4<?php } ?> "> <span class="price"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayWtPriceWithCurrency'][0][0]->displayWtPriceWithCurrency(array('price' => $_smarty_tpl->tpl_vars['order']->value->total_paid, 'currency' => $_smarty_tpl->tpl_vars['currency']->value), $_smarty_tpl); ?> </span> </td> </tr> </tfoot> <tbody> <?php $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['product']->_loop = false; $_from = $_smarty_tpl->tpl_vars['products']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']['products']['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['smarty']->value['foreach']['products']['index']++; ?> <?php if (!isset($_smarty_tpl->tpl_vars['product']->value['deleted'])) { ?> <?php $_smarty_tpl->tpl_vars['productId'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0); ?> <?php $_smarty_tpl->tpl_vars['productAttributeId'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_attribute_id'], null, 0); ?> <?php if (isset($_smarty_tpl->tpl_vars['product']->value['customizedDatas'])) { ?> <?php $_smarty_tpl->tpl_vars['productQuantity'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_quantity'] - $_smarty_tpl->tpl_vars['product']->value['customizationQuantityTotal'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['productQuantity'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_quantity'], null, 0); ?> <?php } ?> <!-- Customized products --> <?php if (isset($_smarty_tpl->tpl_vars['product']->value['customizedDatas'])) { ?> <tr class="item"> <?php if ($_smarty_tpl->tpl_vars['return_allowed']->value) { ?> <td class="order_cb"></td><?php } ?> <td><label for="cb_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_order_detail']); ?> "><?php if ($_smarty_tpl->tpl_vars['product']->value['product_reference']) { echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_reference'], ENT_QUOTES, 'UTF-8', true); } else { ?> --<?php } ?> </label></td> <td class="bold"> <label for="cb_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_order_detail']); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_name'], ENT_QUOTES, 'UTF-8', true); ?> </label> </td> <td> <input class="order_qte_input form-control grey" name="order_qte_input[<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['products']['index']; ?> ]" type="text" size="2" value="<?php echo intval($_smarty_tpl->tpl_vars['product']->value['customizationQuantityTotal']); ?> " /> <div class="clearfix return_quantity_buttons"> <a href="#" class="return_quantity_down btn btn-default button-minus"><span><i class="icon-minus"></i></span></a> <a href="#" class="return_quantity_up btn btn-default button-plus"><span><i class="icon-plus"></i></span></a> </div> <label for="cb_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_order_detail']); ?> "><span class="order_qte_span editable"><?php echo intval($_smarty_tpl->tpl_vars['product']->value['customizationQuantityTotal']); ?> </span></label></td> <?php if ($_smarty_tpl->tpl_vars['order']->value->hasProductReturned()) { ?> <td> <?php echo $_smarty_tpl->tpl_vars['product']->value['qty_returned']; ?> </td> <?php } ?> <td> <label class="price" for="cb_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_order_detail']); ?> "> <?php if ($_smarty_tpl->tpl_vars['group_use_tax']->value) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPriceWithCurrency'][0][0]->convertPriceWithCurrency(array('price' => $_smarty_tpl->tpl_vars['product']->value['unit_price_tax_incl'], 'currency' => $_smarty_tpl->tpl_vars['currency']->value), $_smarty_tpl); ?> <?php } else { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPriceWithCurrency'][0][0]->convertPriceWithCurrency(array('price' => $_smarty_tpl->tpl_vars['product']->value['unit_price_tax_excl'], 'currency' => $_smarty_tpl->tpl_vars['currency']->value), $_smarty_tpl); ?> <?php } ?> </label> </td> <td> <label class="price" for="cb_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_order_detail']); ?> "> <?php if (isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value])) { ?> <?php if ($_smarty_tpl->tpl_vars['group_use_tax']->value) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPriceWithCurrency'][0][0]->convertPriceWithCurrency(array('price' => $_smarty_tpl->tpl_vars['product']->value['total_customization_wt'], 'currency' => $_smarty_tpl->tpl_vars['currency']->value), $_smarty_tpl); ?> <?php } else { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPriceWithCurrency'][0][0]->convertPriceWithCurrency(array('price' => $_smarty_tpl->tpl_vars['product']->value['total_customization'], 'currency' => $_smarty_tpl->tpl_vars['currency']->value), $_smarty_tpl); ?> <?php } ?> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['group_use_tax']->value) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPriceWithCurrency'][0][0]->convertPriceWithCurrency(array('price' => $_smarty_tpl->tpl_vars['product']->value['total_price_tax_incl'], 'currency' => $_smarty_tpl->tpl_vars['currency']->value), $_smarty_tpl); ?> <?php } else { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPriceWithCurrency'][0][0]->convertPriceWithCurrency(array('price' => $_smarty_tpl->tpl_vars['product']->value['total_price_tax_excl'], 'currency' => $_smarty_tpl->tpl_vars['currency']->value), $_smarty_tpl); ?> <?php } ?> <?php } ?> </label> </td> </tr> <?php $_smarty_tpl->tpl_vars['customizationPerAddress'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['customizationPerAddress']->_loop = false; $_from = $_smarty_tpl->tpl_vars['product']->value['customizedDatas']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['customizationPerAddress']->key => $_smarty_tpl->tpl_vars['customizationPerAddress']->value) { $_smarty_tpl->tpl_vars['customizationPerAddress']->_loop = true; ?> <?php $_smarty_tpl->tpl_vars['customization'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['customization']->_loop = false; $_smarty_tpl->tpl_vars['customizationId'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['customizationPerAddress']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['customization']->key => $_smarty_tpl->tpl_vars['customization']->value) { $_smarty_tpl->tpl_vars['customization']->_loop = true; $_smarty_tpl->tpl_vars['customizationId']->value = $_smarty_tpl->tpl_vars['customization']->key; ?> <tr class="alternate_item"> <?php if ($_smarty_tpl->tpl_vars['return_allowed']->value) { ?> <td class="order_cb"><input type="checkbox" id="cb_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_order_detail']); ?> " name="customization_ids[<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_order_detail']); ?> ][]" value="<?php echo intval($_smarty_tpl->tpl_vars['customizationId']->value); ?> " /></td><?php } ?> <td colspan="2"> <?php $_smarty_tpl->tpl_vars['datas'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['datas']->_loop = false; $_smarty_tpl->tpl_vars['type'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['customization']->value['datas']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['datas']->key => $_smarty_tpl->tpl_vars['datas']->value) { $_smarty_tpl->tpl_vars['datas']->_loop = true; $_smarty_tpl->tpl_vars['type']->value = $_smarty_tpl->tpl_vars['datas']->key; ?> <?php if ($_smarty_tpl->tpl_vars['type']->value == $_smarty_tpl->tpl_vars['CUSTOMIZE_FILE']->value) { ?> <ul class="customizationUploaded"> <?php $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['data']->_loop = false; $_from = $_smarty_tpl->tpl_vars['datas']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value) { $_smarty_tpl->tpl_vars['data']->_loop = true; ?> <li><img src="<?php echo $_smarty_tpl->tpl_vars['pic_dir']->value; echo $_smarty_tpl->tpl_vars['data']->value['value']; ?> _small" alt="" class="customizationUploaded" /></li> <?php } ?> </ul> <?php } elseif ($_smarty_tpl->tpl_vars['type']->value == $_smarty_tpl->tpl_vars['CUSTOMIZE_TEXTFIELD']->value) { ?> <ul class="typedText"><?php echo smarty_function_counter(array('start' => 0, 'print' => false), $_smarty_tpl); ?> <?php $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['data']->_loop = false; $_from = $_smarty_tpl->tpl_vars['datas']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value) { $_smarty_tpl->tpl_vars['data']->_loop = true; ?> <?php $_smarty_tpl->tpl_vars['customizationFieldName'] = new Smarty_variable("Text #" . $_smarty_tpl->tpl_vars['data']->value['id_customization_field'], null, 0); ?> <li><?php echo ($tmp = @$_smarty_tpl->tpl_vars['data']->value['name']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['customizationFieldName']->value : $tmp; ?> : <?php echo $_smarty_tpl->tpl_vars['data']->value['value']; ?> </li> <?php } ?> </ul> <?php } ?> <?php } ?> </td> <td> <input class="order_qte_input form-control grey" name="customization_qty_input[<?php echo intval($_smarty_tpl->tpl_vars['customizationId']->value); ?> ]" type="text" size="2" value="<?php echo intval($_smarty_tpl->tpl_vars['customization']->value['quantity']); ?> " /> <div class="clearfix return_quantity_buttons"> <a href="#" class="return_quantity_down btn btn-default button-minus"><span><i class="icon-minus"></i></span></a> <a href="#" class="return_quantity_up btn btn-default button-plus"><span><i class="icon-plus"></i></span></a> </div> <label for="cb_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_order_detail']); ?> "><span class="order_qte_span editable"><?php echo intval($_smarty_tpl->tpl_vars['customization']->value['quantity']); ?> </span></label> </td> <td colspan="2"></td> </tr> <?php } ?> <?php } ?> <?php } ?> <!-- Classic products --> <?php if ($_smarty_tpl->tpl_vars['product']->value['product_quantity'] > $_smarty_tpl->tpl_vars['product']->value['customizationQuantityTotal']) { ?> <tr class="item"> <?php if ($_smarty_tpl->tpl_vars['return_allowed']->value) { ?> <td class="order_cb"><input type="checkbox" id="cb_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_order_detail']); ?> " name="ids_order_detail[<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_order_detail']); ?> ]" value="<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_order_detail']); ?> " /></td><?php } ?> <td><label for="cb_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_order_detail']); ?> "><?php if ($_smarty_tpl->tpl_vars['product']->value['product_reference']) { echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_reference'], ENT_QUOTES, 'UTF-8', true); } else { ?> --<?php } ?> </label></td> <td class="bold"> <label for="cb_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_order_detail']); ?> "> <?php if ($_smarty_tpl->tpl_vars['product']->value['download_hash'] && $_smarty_tpl->tpl_vars['logable']->value && $_smarty_tpl->tpl_vars['product']->value['display_filename'] != '' && $_smarty_tpl->tpl_vars['product']->value['product_quantity_refunded'] == 0 && $_smarty_tpl->tpl_vars['product']->value['product_quantity_return'] == 0) { ?> <?php if (isset($_smarty_tpl->tpl_vars['is_guest']->value) && $_smarty_tpl->tpl_vars['is_guest']->value) { ?> <a href="<?php ob_start(); echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['filename'], ENT_QUOTES, 'UTF-8', true); $_tmp31 = ob_get_clean(); ob_start(); echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['download_hash'], ENT_QUOTES, 'UTF-8', true); $_tmp32 = ob_get_clean(); echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('get-file', true, null, "key=" . $_tmp31 . "-" . $_tmp32 . "&id_order=" . (string) $_smarty_tpl->tpl_vars['order']->value->id . "&secure_key=" . (string) $_smarty_tpl->tpl_vars['order']->value->secure_key), ENT_QUOTES, 'UTF-8', true); ?> " title="<?php echo smartyTranslate(array('s' => 'Download this product'), $_smarty_tpl); ?> "> <?php } else { ?> <a href="<?php ob_start(); echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['filename'], ENT_QUOTES, 'UTF-8', true); $_tmp33 = ob_get_clean(); ob_start(); echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['download_hash'], ENT_QUOTES, 'UTF-8', true); $_tmp34 = ob_get_clean(); echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('get-file', true, null, "key=" . $_tmp33 . "-" . $_tmp34), ENT_QUOTES, 'UTF-8', true); ?> " title="<?php echo smartyTranslate(array('s' => 'Download this product'), $_smarty_tpl); ?> "> <?php } ?> <img src="<?php echo $_smarty_tpl->tpl_vars['img_dir']->value; ?> icon/download_product.gif" class="icon" alt="<?php echo smartyTranslate(array('s' => 'Download product'), $_smarty_tpl); ?> " /> </a> <?php if (isset($_smarty_tpl->tpl_vars['is_guest']->value) && $_smarty_tpl->tpl_vars['is_guest']->value) { ?> <a href="<?php ob_start(); echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['filename'], ENT_QUOTES, 'UTF-8', true); $_tmp35 = ob_get_clean(); ob_start(); echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['download_hash'], ENT_QUOTES, 'UTF-8', true); $_tmp36 = ob_get_clean(); echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('get-file', true, null, "key=" . $_tmp35 . "-" . $_tmp36 . "&id_order=" . (string) $_smarty_tpl->tpl_vars['order']->value->id . "&secure_key=" . (string) $_smarty_tpl->tpl_vars['order']->value->secure_key), ENT_QUOTES, 'UTF-8', true); ?> " title="<?php echo smartyTranslate(array('s' => 'Download this product'), $_smarty_tpl); ?> "> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_name'], ENT_QUOTES, 'UTF-8', true); ?> </a> <?php } else { ?> <a href="<?php ob_start(); echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['filename'], ENT_QUOTES, 'UTF-8', true); $_tmp37 = ob_get_clean(); ob_start(); echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['download_hash'], ENT_QUOTES, 'UTF-8', true); $_tmp38 = ob_get_clean(); echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('get-file', true, null, "key=" . $_tmp37 . "-" . $_tmp38), ENT_QUOTES, 'UTF-8', true); ?> " title="<?php echo smartyTranslate(array('s' => 'Download this product'), $_smarty_tpl); ?> "> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_name'], ENT_QUOTES, 'UTF-8', true); ?> </a> <?php } ?> <?php } else { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_name'], ENT_QUOTES, 'UTF-8', true); ?> <?php } ?> </label> </td> <td class="return_quantity"> <input class="order_qte_input form-control grey" name="order_qte_input[<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_order_detail']); ?> ]" type="text" size="2" value="<?php echo intval($_smarty_tpl->tpl_vars['productQuantity']->value); ?> " /> <div class="clearfix return_quantity_buttons"> <a href="#" class="return_quantity_down btn btn-default button-minus"><span><i class="icon-minus"></i></span></a> <a href="#" class="return_quantity_up btn btn-default button-plus"><span><i class="icon-plus"></i></span></a> </div> <label for="cb_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_order_detail']); ?> "><span class="order_qte_span editable"><?php echo intval($_smarty_tpl->tpl_vars['productQuantity']->value); ?> </span></label></td> <?php if ($_smarty_tpl->tpl_vars['order']->value->hasProductReturned()) { ?> <td> <?php echo $_smarty_tpl->tpl_vars['product']->value['qty_returned']; ?> </td> <?php } ?> <td class="price"> <label for="cb_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_order_detail']); ?> "> <?php if ($_smarty_tpl->tpl_vars['group_use_tax']->value) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPriceWithCurrency'][0][0]->convertPriceWithCurrency(array('price' => $_smarty_tpl->tpl_vars['product']->value['unit_price_tax_incl'], 'currency' => $_smarty_tpl->tpl_vars['currency']->value), $_smarty_tpl); ?> <?php } else { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPriceWithCurrency'][0][0]->convertPriceWithCurrency(array('price' => $_smarty_tpl->tpl_vars['product']->value['unit_price_tax_excl'], 'currency' => $_smarty_tpl->tpl_vars['currency']->value), $_smarty_tpl); ?> <?php } ?> </label> </td> <td class="price"> <label for="cb_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_order_detail']); ?> "> <?php if ($_smarty_tpl->tpl_vars['group_use_tax']->value) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPriceWithCurrency'][0][0]->convertPriceWithCurrency(array('price' => $_smarty_tpl->tpl_vars['product']->value['total_price_tax_incl'], 'currency' => $_smarty_tpl->tpl_vars['currency']->value), $_smarty_tpl); ?> <?php } else { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPriceWithCurrency'][0][0]->convertPriceWithCurrency(array('price' => $_smarty_tpl->tpl_vars['product']->value['total_price_tax_excl'], 'currency' => $_smarty_tpl->tpl_vars['currency']->value), $_smarty_tpl); ?> <?php } ?> </label> </td> </tr> <?php } ?> <?php } ?> <?php } ?> <?php $_smarty_tpl->tpl_vars['discount'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['discount']->_loop = false; $_from = $_smarty_tpl->tpl_vars['discounts']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['discount']->key => $_smarty_tpl->tpl_vars['discount']->value) { $_smarty_tpl->tpl_vars['discount']->_loop = true; ?> <tr class="item"> <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['discount']->value['name'], ENT_QUOTES, 'UTF-8', true); ?> </td> <td><?php echo smartyTranslate(array('s' => 'Voucher'), $_smarty_tpl); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['discount']->value['name'], ENT_QUOTES, 'UTF-8', true); ?> </td> <td><span class="order_qte_span editable">1</span></td> <td> </td> <td><?php if ($_smarty_tpl->tpl_vars['discount']->value['value'] != 0.0) { ?> -<?php } echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPriceWithCurrency'][0][0]->convertPriceWithCurrency(array('price' => $_smarty_tpl->tpl_vars['discount']->value['value'], 'currency' => $_smarty_tpl->tpl_vars['currency']->value), $_smarty_tpl); ?> </td> <?php if ($_smarty_tpl->tpl_vars['return_allowed']->value) { ?> <td> </td> <?php } ?> </tr> <?php } ?> </tbody> </table> </div> <?php if ($_smarty_tpl->tpl_vars['return_allowed']->value) { ?> <div id="returnOrderMessage"> <h3 class="page-heading bottom-indent"><?php echo smartyTranslate(array('s' => 'Merchandise return'), $_smarty_tpl); ?> </h3> <p><?php echo smartyTranslate(array('s' => 'If you wish to return one or more products, please mark the corresponding boxes and provide an explanation for the return. When complete, click the button below.'), $_smarty_tpl); ?> </p> <p class="form-group"> <textarea class="form-control" cols="67" rows="3" name="returnText"></textarea> </p> <p class="form-group"> <button type="submit" name="submitReturnMerchandise" class="btn btn-default button button-small"><span><?php echo smartyTranslate(array('s' => 'Make an RMA slip'), $_smarty_tpl); ?> <i class="icon-chevron-right right"></i></span></button> <input type="hidden" class="hidden" value="<?php echo intval($_smarty_tpl->tpl_vars['order']->value->id); ?> " name="id_order" /> </p> </div> <?php } ?> </form> <?php $_smarty_tpl->tpl_vars['carriers'] = new Smarty_variable($_smarty_tpl->tpl_vars['order']->value->getShipping(), null, 0); if (count($_smarty_tpl->tpl_vars['carriers']->value) > 0 && isset($_smarty_tpl->tpl_vars['carriers']->value[0]['carrier_name']) && $_smarty_tpl->tpl_vars['carriers']->value[0]['carrier_name']) { ?> <table class="table table-bordered footab"> <thead> <tr> <th class="first_item"><?php echo smartyTranslate(array('s' => 'Date'), $_smarty_tpl); ?> </th> <th class="item" data-sort-ignore="true"><?php echo smartyTranslate(array('s' => 'Carrier'), $_smarty_tpl); ?> </th> <th data-hide="phone" class="item"><?php echo smartyTranslate(array('s' => 'Weight'), $_smarty_tpl); ?> </th> <th data-hide="phone" class="item"><?php echo smartyTranslate(array('s' => 'Shipping cost'), $_smarty_tpl); ?> </th> <th data-hide="phone" class="last_item" data-sort-ignore="true"><?php echo smartyTranslate(array('s' => 'Tracking number'), $_smarty_tpl); ?> </th> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars['line'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['line']->_loop = false; $_from = $_smarty_tpl->tpl_vars['carriers']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['line']->key => $_smarty_tpl->tpl_vars['line']->value) { $_smarty_tpl->tpl_vars['line']->_loop = true; ?> <tr class="item"> <td data-value="<?php echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['line']->value['date_add'], "/[\\-\\:\\ ]/", ''); ?> "><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['line']->value['date_add'], 'full' => 0), $_smarty_tpl); ?> </td> <td><?php echo $_smarty_tpl->tpl_vars['line']->value['carrier_name']; ?> </td> <td data-value="<?php if ($_smarty_tpl->tpl_vars['line']->value['weight'] > 0) { echo sprintf("%.3f", $_smarty_tpl->tpl_vars['line']->value['weight']); } else { ?> 0<?php } ?> "><?php if ($_smarty_tpl->tpl_vars['line']->value['weight'] > 0) { echo sprintf("%.3f", $_smarty_tpl->tpl_vars['line']->value['weight']); ?> <?php echo Configuration::get('PS_WEIGHT_UNIT'); } else { ?> -<?php } ?> </td> <td data-value="<?php if ($_smarty_tpl->tpl_vars['order']->value->getTaxCalculationMethod() == @constant('PS_TAX_INC')) { echo $_smarty_tpl->tpl_vars['line']->value['shipping_cost_tax_incl']; } else { echo $_smarty_tpl->tpl_vars['line']->value['shipping_cost_tax_excl']; } ?> "><?php if ($_smarty_tpl->tpl_vars['order']->value->getTaxCalculationMethod() == @constant('PS_TAX_INC')) { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['line']->value['shipping_cost_tax_incl'], 'currency' => $_smarty_tpl->tpl_vars['currency']->value->id), $_smarty_tpl); } else { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['line']->value['shipping_cost_tax_excl'], 'currency' => $_smarty_tpl->tpl_vars['currency']->value->id), $_smarty_tpl); } ?> </td> <td> <span class="shipping_number_show"><?php if ($_smarty_tpl->tpl_vars['line']->value['tracking_number']) { if ($_smarty_tpl->tpl_vars['line']->value['url'] && $_smarty_tpl->tpl_vars['line']->value['tracking_number']) { ?> <a href="<?php echo smarty_modifier_replace($_smarty_tpl->tpl_vars['line']->value['url'], '@', $_smarty_tpl->tpl_vars['line']->value['tracking_number']); ?> "><?php echo $_smarty_tpl->tpl_vars['line']->value['tracking_number']; ?> </a><?php } else { echo $_smarty_tpl->tpl_vars['line']->value['tracking_number']; } } else { ?> -<?php } ?> </span> </td> </tr> <?php } ?> </tbody> </table> <?php } if (!$_smarty_tpl->tpl_vars['is_guest']->value) { ?> <?php if (count($_smarty_tpl->tpl_vars['messages']->value)) { ?> <h3 class="page-heading"><?php echo smartyTranslate(array('s' => 'Messages'), $_smarty_tpl); ?> </h3> <div class="table_block"> <table class="detail_step_by_step table table-bordered"> <thead> <tr> <th class="first_item" style="width:150px;"><?php echo smartyTranslate(array('s' => 'From'), $_smarty_tpl); ?> </th> <th class="last_item"><?php echo smartyTranslate(array('s' => 'Message'), $_smarty_tpl); ?> </th> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars['message'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['message']->_loop = false; $_from = $_smarty_tpl->tpl_vars['messages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['message']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['message']->iteration = 0; $_smarty_tpl->tpl_vars['message']->index = -1; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["messageList"]['index'] = -1; foreach ($_from as $_smarty_tpl->tpl_vars['message']->key => $_smarty_tpl->tpl_vars['message']->value) { $_smarty_tpl->tpl_vars['message']->_loop = true; $_smarty_tpl->tpl_vars['message']->iteration++; $_smarty_tpl->tpl_vars['message']->index++; $_smarty_tpl->tpl_vars['message']->first = $_smarty_tpl->tpl_vars['message']->index === 0; $_smarty_tpl->tpl_vars['message']->last = $_smarty_tpl->tpl_vars['message']->iteration === $_smarty_tpl->tpl_vars['message']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["messageList"]['first'] = $_smarty_tpl->tpl_vars['message']->first; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["messageList"]['index']++; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["messageList"]['last'] = $_smarty_tpl->tpl_vars['message']->last; ?> <tr class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['messageList']['first']) { ?> first_item<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['messageList']['last']) { ?> last_item<?php } ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['messageList']['index'] % 2) { ?> alternate_item<?php } else { ?> item<?php } ?> "> <td> <strong class="dark"> <?php if (isset($_smarty_tpl->tpl_vars['message']->value['elastname']) && $_smarty_tpl->tpl_vars['message']->value['elastname']) { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['message']->value['efirstname'], ENT_QUOTES, 'UTF-8', true); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['message']->value['elastname'], ENT_QUOTES, 'UTF-8', true); ?> <?php } elseif ($_smarty_tpl->tpl_vars['message']->value['clastname']) { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['message']->value['cfirstname'], ENT_QUOTES, 'UTF-8', true); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['message']->value['clastname'], ENT_QUOTES, 'UTF-8', true); ?> <?php } else { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shop_name']->value, ENT_QUOTES, 'UTF-8', true); ?> <?php } ?> </strong> <br /> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['message']->value['date_add'], 'full' => 1), $_smarty_tpl); ?> </td> <td><?php echo nl2br(htmlspecialchars($_smarty_tpl->tpl_vars['message']->value['message'], ENT_QUOTES, 'UTF-8', true)); ?> </td> </tr> <?php } ?> </tbody> </table> </div> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value) && $_smarty_tpl->tpl_vars['errors']->value) { ?> <div class="alert alert-danger"> <p><?php if (count($_smarty_tpl->tpl_vars['errors']->value) > 1) { echo smartyTranslate(array('s' => 'There are %d errors', 'sprintf' => count($_smarty_tpl->tpl_vars['errors']->value)), $_smarty_tpl); } else { echo smartyTranslate(array('s' => 'There is %d error', 'sprintf' => count($_smarty_tpl->tpl_vars['errors']->value)), $_smarty_tpl); } ?> </p> <ol> <?php $_smarty_tpl->tpl_vars['error'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['error']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['errors']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['error']->key => $_smarty_tpl->tpl_vars['error']->value) { $_smarty_tpl->tpl_vars['error']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['error']->key; ?> <li><?php echo $_smarty_tpl->tpl_vars['error']->value; ?> </li> <?php } ?> </ol> </div> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['message_confirmation']->value) && $_smarty_tpl->tpl_vars['message_confirmation']->value) { ?> <p class="alert alert-success"> <?php echo smartyTranslate(array('s' => 'Message successfully sent'), $_smarty_tpl); ?> </p> <?php } ?> <form action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('order-detail', true), ENT_QUOTES, 'UTF-8', true); ?> " method="post" class="std" id="sendOrderMessage"> <h3 class="page-heading bottom-indent"><?php echo smartyTranslate(array('s' => 'Add a message'), $_smarty_tpl); ?> </h3> <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 class="form-group"> <label for="id_product"><?php echo smartyTranslate(array('s' => 'Product'), $_smarty_tpl); ?> </label> <select name="id_product" class="form-control"> <option value="0"><?php echo smartyTranslate(array('s' => '-- Choose --'), $_smarty_tpl); ?> </option> <?php $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['product']->_loop = false; $_from = $_smarty_tpl->tpl_vars['products']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']['products']['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['smarty']->value['foreach']['products']['index']++; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['product']->value['product_id']; ?> "><?php echo $_smarty_tpl->tpl_vars['product']->value['product_name']; ?> </option> <?php } ?> </select> </p> <p class="form-group"> <textarea class="form-control" cols="67" rows="3" name="msgText"></textarea> </p> <div class="submit"> <input type="hidden" name="id_order" value="<?php echo intval($_smarty_tpl->tpl_vars['order']->value->id); ?> " /> <input type="submit" class="unvisible" name="submitMessage" value="<?php echo smartyTranslate(array('s' => 'Send'), $_smarty_tpl); ?> "/> <button type="submit" name="submitMessage" class="button btn btn-default button-medium"><span><?php echo smartyTranslate(array('s' => 'Send'), $_smarty_tpl); ?> <i class="icon-chevron-right right"></i></span></button> </div> </form> <?php } else { ?> <p class="alert alert-info"><i class="icon-info-sign"></i><?php echo smartyTranslate(array('s' => 'You cannot return merchandise with a guest account'), $_smarty_tpl); ?> </p> <?php } } }
function content_56277f885bfb19_05408508($_smarty_tpl) { if (!is_callable('smarty_modifier_regex_replace')) { include '/home/u481889647/public_html/tools/smarty/plugins/modifier.regex_replace.php'; } ?> <tbody> <?php $_smarty_tpl->tpl_vars['tr'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['tr']->_loop = false; $_smarty_tpl->tpl_vars['index'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['tr']->key => $_smarty_tpl->tpl_vars['tr']->value) { $_smarty_tpl->tpl_vars['tr']->_loop = true; $_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['tr']->key; ?> <tr <?php if ($_smarty_tpl->tpl_vars['position_identifier']->value) { ?> id="tr_<?php echo $_smarty_tpl->tpl_vars['id_category']->value; ?> _<?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['identifier']->value]; ?> _<?php echo $_smarty_tpl->tpl_vars['tr']->value['position']['position']; ?> "<?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['tr']->value['color']) && $_smarty_tpl->tpl_vars['color_on_bg']->value) { ?> style="background-color: <?php echo $_smarty_tpl->tpl_vars['tr']->value['color']; ?> "<?php } ?> > <?php if ($_smarty_tpl->tpl_vars['bulk_actions']->value && $_smarty_tpl->tpl_vars['has_bulk_actions']->value) { ?> <td class="text-center"> <?php $_smarty_tpl->tpl_vars['bulkActionPossible'] = new Smarty_variable(true, null, 0); ?> <?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['value']->_loop = false; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['list_skip_actions']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) { $_smarty_tpl->tpl_vars['value']->_loop = true; $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['value']->key; ?> <?php if (in_array($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['identifier']->value], $_smarty_tpl->tpl_vars['value']->value) == true) { ?> <?php $_smarty_tpl->tpl_vars['bulkActionPossible'] = new Smarty_variable(false, null, 0); ?> <?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['bulkActionPossible']->value == true) { ?> <input type="checkbox" name="<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> Box[]" value="<?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['identifier']->value]; ?> " class="noborder" /> <?php } ?> </td> <?php } ?> <?php $_smarty_tpl->tpl_vars['params'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['params']->_loop = false; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['fields_display']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['params']->key => $_smarty_tpl->tpl_vars['params']->value) { $_smarty_tpl->tpl_vars['params']->_loop = true; $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['params']->key; ?> <td <?php if (isset($_smarty_tpl->tpl_vars['params']->value['position'])) { ?> id="td_<?php if ($_smarty_tpl->tpl_vars['id_category']->value) { echo $_smarty_tpl->tpl_vars['id_category']->value; } else { ?> 0<?php } ?> _<?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['identifier']->value]; ?> " <?php } ?> class="<?php if (!$_smarty_tpl->tpl_vars['no_link']->value) { ?> pointer<?php } if (isset($_smarty_tpl->tpl_vars['params']->value['position']) && $_smarty_tpl->tpl_vars['order_by']->value == 'position') { ?> dragHandle<?php } if (isset($_smarty_tpl->tpl_vars['params']->value['align'])) { ?> <?php echo $_smarty_tpl->tpl_vars['params']->value['align']; } ?> " <?php if (!isset($_smarty_tpl->tpl_vars['params']->value['position']) && !$_smarty_tpl->tpl_vars['no_link']->value) { ?> onclick="document.location = '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['current_index']->value, ENT_QUOTES, 'UTF-8', true); ?> &<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['identifier']->value, ENT_QUOTES, 'UTF-8', true); ?> =<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['identifier']->value], ENT_QUOTES, 'UTF-8', true); if ($_smarty_tpl->tpl_vars['view']->value) { ?> &view<?php } else { ?> &update<?php } echo $_smarty_tpl->tpl_vars['table']->value; ?> &token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true); ?> '"><?php if (isset($_smarty_tpl->tpl_vars['params']->value['prefix'])) { echo $_smarty_tpl->tpl_vars['params']->value['prefix']; } ?> <?php } else { ?> > <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['params']->value['active'])) { ?> <?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]; ?> <?php } elseif (isset($_smarty_tpl->tpl_vars['params']->value['activeVisu'])) { ?> <img src="../img/admin/<?php if ($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]) { ?> enabled.gif<?php } else { ?> disabled.gif<?php } ?> " alt="<?php if ($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]) { echo smartyTranslate(array('s' => 'Enabled'), $_smarty_tpl); } else { echo smartyTranslate(array('s' => 'Disabled'), $_smarty_tpl); } ?> " title="<?php if ($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]) { echo smartyTranslate(array('s' => 'Enabled'), $_smarty_tpl); } else { echo smartyTranslate(array('s' => 'Disabled'), $_smarty_tpl); } ?> " /> <?php } elseif (isset($_smarty_tpl->tpl_vars['params']->value['position'])) { ?> <?php if ($_smarty_tpl->tpl_vars['order_by']->value == 'position' && $_smarty_tpl->tpl_vars['order_way']->value != 'DESC') { ?> <a href="<?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]['position_url_down']; ?> " <?php if (!($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]['position'] != $_smarty_tpl->tpl_vars['positions']->value[count($_smarty_tpl->tpl_vars['positions']->value) - 1])) { ?> style="display: none;"<?php } ?> > <img src="../img/admin/<?php if ($_smarty_tpl->tpl_vars['order_way']->value == 'ASC') { ?> down<?php } else { ?> up<?php } ?> .gif" alt="<?php echo smartyTranslate(array('s' => 'Down'), $_smarty_tpl); ?> " title="<?php echo smartyTranslate(array('s' => 'Down'), $_smarty_tpl); ?> " /> </a> <a href="<?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]['position_url_up']; ?> " <?php if (!($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]['position'] != $_smarty_tpl->tpl_vars['positions']->value[0])) { ?> style="display: none;"<?php } ?> > <img src="../img/admin/<?php if ($_smarty_tpl->tpl_vars['order_way']->value == 'ASC') { ?> up<?php } else { ?> down<?php } ?> .gif" alt="<?php echo smartyTranslate(array('s' => 'Up'), $_smarty_tpl); ?> " title="<?php echo smartyTranslate(array('s' => 'Up'), $_smarty_tpl); ?> " /> </a> <?php } else { ?> <?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]['position'] + 1; ?> <?php } ?> <?php } elseif (isset($_smarty_tpl->tpl_vars['params']->value['image'])) { ?> <?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]; ?> <?php } elseif (isset($_smarty_tpl->tpl_vars['params']->value['icon'])) { ?> <img src="../img/admin/<?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]; ?> " alt="<?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]; ?> " title="<?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]; ?> " /> <?php } elseif (isset($_smarty_tpl->tpl_vars['params']->value['price'])) { ?> <?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]; ?> <?php } elseif (isset($_smarty_tpl->tpl_vars['params']->value['float'])) { ?> <?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]; ?> <?php } elseif (isset($_smarty_tpl->tpl_vars['params']->value['type']) && $_smarty_tpl->tpl_vars['params']->value['type'] == 'date') { ?> <?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]; ?> <?php } elseif (isset($_smarty_tpl->tpl_vars['params']->value['type']) && $_smarty_tpl->tpl_vars['params']->value['type'] == 'datetime') { ?> <?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]; ?> <?php } elseif (isset($_smarty_tpl->tpl_vars['params']->value['callback'])) { ?> <?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]; ?> <?php } elseif (isset($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value])) { ?> <?php if ($_smarty_tpl->tpl_vars['key']->value == 'behavior') { ?> <?php if ($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value] == 0) { ?> <?php echo smartyTranslate(array('s' => 'This tax only'), $_smarty_tpl); ?> <?php } elseif ($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value] == 1) { ?> <?php echo smartyTranslate(array('s' => 'Combine'), $_smarty_tpl); ?> <?php } elseif ($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value] == 2) { ?> <?php echo smartyTranslate(array('s' => 'One after another'), $_smarty_tpl); ?> <?php } ?> <?php } elseif ($_smarty_tpl->tpl_vars['key']->value == 'rate') { ?> <?php echo sprintf("%.2f", $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]); ?> % <?php } elseif ($_smarty_tpl->tpl_vars['key']->value == 'zipcode') { ?> <?php if ($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value] == '0 - 0') { ?> -- <?php } else { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value], ENT_QUOTES, 'UTF-8', true); ?> <?php } ?> <?php } else { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value], ENT_QUOTES, 'UTF-8', true); ?> <?php } ?> <?php } else { ?> -- <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['params']->value['suffix'])) { echo $_smarty_tpl->tpl_vars['params']->value['suffix']; } ?> </td> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['shop_link_type']->value) { ?> <td <?php if ($_smarty_tpl->tpl_vars['name']->value != $_smarty_tpl->tpl_vars['tr']->value['shop_name']) { ?> title="<?php echo $_smarty_tpl->tpl_vars['tr']->value['shop_name']; ?> "<?php } ?> ><?php if (isset($_smarty_tpl->tpl_vars['tr']->value['shop_short_name'])) { echo $_smarty_tpl->tpl_vars['tr']->value['shop_short_name']; } else { echo $_smarty_tpl->tpl_vars['tr']->value['shop_name']; } ?> </td> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['has_actions']->value) { ?> <td class="text-right fixed-width-lg"> <?php $_smarty_tpl->tpl_vars['compiled_actions'] = new Smarty_variable(array(), null, 0); ?> <?php $_smarty_tpl->tpl_vars['action'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['action']->_loop = false; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['actions']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['action']->key => $_smarty_tpl->tpl_vars['action']->value) { $_smarty_tpl->tpl_vars['action']->_loop = true; $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['action']->key; ?> <?php if (isset($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['action']->value])) { ?> <?php if ($_smarty_tpl->tpl_vars['key']->value == 0) { ?> <?php $_smarty_tpl->tpl_vars['action'] = new Smarty_variable($_smarty_tpl->tpl_vars['action']->value, null, 0); ?> <?php } ?> <?php $_smarty_tpl->createLocalArrayVariable('compiled_actions', null, 0); $_smarty_tpl->tpl_vars['compiled_actions']->value[] = $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['action']->value]; ?> <?php } ?> <?php } ?> <?php if (count($_smarty_tpl->tpl_vars['compiled_actions']->value) > 0) { ?> <?php if (count($_smarty_tpl->tpl_vars['compiled_actions']->value) > 1) { ?> <div class="btn-group-action"><?php } ?> <div class="btn-group pull-right"> <?php echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['compiled_actions']->value[0], '/class\\s*=\\s*"(\\w*)"/', 'class="$1 btn btn-default"'); ?> <?php if (count($_smarty_tpl->tpl_vars['compiled_actions']->value) > 1) { ?> <button class="btn btn-default dropdown-toggle" data-toggle="dropdown"> <span class="caret"></span> </button> <ul class="dropdown-menu"> <?php $_smarty_tpl->tpl_vars['action'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['action']->_loop = false; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['compiled_actions']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['action']->key => $_smarty_tpl->tpl_vars['action']->value) { $_smarty_tpl->tpl_vars['action']->_loop = true; $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['action']->key; ?> <?php if ($_smarty_tpl->tpl_vars['key']->value != 0) { ?> <li> <?php echo $_smarty_tpl->tpl_vars['action']->value; ?> </li> <?php } ?> <?php } ?> </ul> <?php } ?> </div> <?php if (count($_smarty_tpl->tpl_vars['compiled_actions']->value) > 1) { ?> </div><?php } ?> <?php } ?> </td> <?php } ?> </tr> <?php } ?> </tbody> <?php }
foreach ($_from as $this->_tpl_vars['sqlkey'] => $this->_tpl_vars['showtable']) { ?> <tr class=b align="center"> <?php $_from = $this->_tpl_vars['showtable']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } if (count($_from)) { foreach ($_from as $this->_tpl_vars['file']) { ?> <td><textarea name="sqltext[<?php echo $this->_tpl_vars['sqlkey']; ?> ]"><?php echo is_array($_tmp = $this->_tpl_vars['file']) ? $this->_run_mod_handler('regex_replace', true, $_tmp, "/[\r\t\n]/", '') : smarty_modifier_regex_replace($_tmp, "/[\r\t\n]/", ''); ?> </textarea></td> <?php } } unset($_from); ?> </tr> <?php } } unset($_from); ?> <tr><td colspan=24 align="center"><?php echo $this->_tpl_vars['fpageup'];
function content_56fb07cfb00857_87035871($_smarty_tpl) { if (!is_callable('smarty_modifier_regex_replace')) { include 'E:\\www\\etec\\terceiro-modulo\\MKT\\Aula05\\prestashop\\tools\\smarty\\plugins\\modifier.regex_replace.php'; } $_smarty_tpl->_capture_stack[0][] = array('path', null, null); ob_start(); ?> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account', true), ENT_QUOTES, 'UTF-8', true); ?> "> <?php echo smartyTranslate(array('s' => 'My account'), $_smarty_tpl); ?> </a> <span class="navigation-pipe"><?php echo $_smarty_tpl->tpl_vars['navigationPipe']->value; ?> </span> <span class="navigation_page"><?php echo smartyTranslate(array('s' => 'Order history'), $_smarty_tpl); ?> </span> <?php 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(); } echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./errors.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <h1 class="page-heading bottom-indent"><?php echo smartyTranslate(array('s' => 'Order history'), $_smarty_tpl); ?> </h1> <p class="info-title"><?php echo smartyTranslate(array('s' => 'Here are the orders you\'ve placed since your account was created.'), $_smarty_tpl); ?> </p> <?php if ($_smarty_tpl->tpl_vars['slowValidation']->value) { ?> <p class="alert alert-warning"><?php echo smartyTranslate(array('s' => 'If you have just placed an order, it may take a few minutes for it to be validated. Please refresh this page if your order is missing.'), $_smarty_tpl); ?> </p> <?php } ?> <div class="block-center" id="block-history"> <?php if ($_smarty_tpl->tpl_vars['orders']->value && count($_smarty_tpl->tpl_vars['orders']->value)) { ?> <table id="order-list" class="table table-bordered footab"> <thead> <tr> <th class="first_item" data-sort-ignore="true"><?php echo smartyTranslate(array('s' => 'Order reference'), $_smarty_tpl); ?> </th> <th class="item"><?php echo smartyTranslate(array('s' => 'Date'), $_smarty_tpl); ?> </th> <th data-hide="phone" class="item"><?php echo smartyTranslate(array('s' => 'Total price'), $_smarty_tpl); ?> </th> <th data-sort-ignore="true" data-hide="phone,tablet" class="item"><?php echo smartyTranslate(array('s' => 'Payment'), $_smarty_tpl); ?> </th> <th class="item"><?php echo smartyTranslate(array('s' => 'Status'), $_smarty_tpl); ?> </th> <th data-sort-ignore="true" data-hide="phone,tablet" class="item"><?php echo smartyTranslate(array('s' => 'Invoice'), $_smarty_tpl); ?> </th> <th data-sort-ignore="true" data-hide="phone,tablet" class="last_item"> </th> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars['order'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['order']->_loop = false; $_from = $_smarty_tpl->tpl_vars['orders']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['order']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['order']->iteration = 0; $_smarty_tpl->tpl_vars['order']->index = -1; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['index'] = -1; foreach ($_from as $_smarty_tpl->tpl_vars['order']->key => $_smarty_tpl->tpl_vars['order']->value) { $_smarty_tpl->tpl_vars['order']->_loop = true; $_smarty_tpl->tpl_vars['order']->iteration++; $_smarty_tpl->tpl_vars['order']->index++; $_smarty_tpl->tpl_vars['order']->first = $_smarty_tpl->tpl_vars['order']->index === 0; $_smarty_tpl->tpl_vars['order']->last = $_smarty_tpl->tpl_vars['order']->iteration === $_smarty_tpl->tpl_vars['order']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['first'] = $_smarty_tpl->tpl_vars['order']->first; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['index']++; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['last'] = $_smarty_tpl->tpl_vars['order']->last; ?> <tr class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['first']) { ?> first_item<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['last']) { ?> last_item<?php } else { ?> item<?php } ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['index'] % 2) { ?> alternate_item<?php } ?> "> <td class="history_link bold"> <?php if (isset($_smarty_tpl->tpl_vars['order']->value['invoice']) && $_smarty_tpl->tpl_vars['order']->value['invoice'] && isset($_smarty_tpl->tpl_vars['order']->value['virtual']) && $_smarty_tpl->tpl_vars['order']->value['virtual']) { ?> <img class="icon" src="<?php echo $_smarty_tpl->tpl_vars['img_dir']->value; ?> icon/download_product.gif" alt="<?php echo smartyTranslate(array('s' => 'Products to download'), $_smarty_tpl); ?> " title="<?php echo smartyTranslate(array('s' => 'Products to download'), $_smarty_tpl); ?> " /> <?php } ?> <a class="color-myaccount" href="javascript:showOrder(1, <?php echo intval($_smarty_tpl->tpl_vars['order']->value['id_order']); ?> , '<?php ob_start(); echo intval($_smarty_tpl->tpl_vars['order']->value['id_order']); $_tmp5 = ob_get_clean(); echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('order-detail', true, null, "id_order=" . $_tmp5), ENT_QUOTES, 'UTF-8', true); ?> ');"> <?php echo Order::getUniqReferenceOf($_smarty_tpl->tpl_vars['order']->value['id_order']); ?> </a> </td> <td data-value="<?php echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['order']->value['date_add'], "/[\\-\\:\\ ]/", ''); ?> " class="history_date bold"> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['order']->value['date_add'], 'full' => 0), $_smarty_tpl); ?> </td> <td class="history_price" data-value="<?php echo $_smarty_tpl->tpl_vars['order']->value['total_paid']; ?> "> <span class="price"> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['order']->value['total_paid'], 'currency' => $_smarty_tpl->tpl_vars['order']->value['id_currency'], 'no_utf8' => false, 'convert' => false), $_smarty_tpl); ?> </span> </td> <td class="history_method"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['payment'], ENT_QUOTES, 'UTF-8', true); ?> </td> <td<?php if (isset($_smarty_tpl->tpl_vars['order']->value['order_state'])) { ?> data-value="<?php echo $_smarty_tpl->tpl_vars['order']->value['id_order_state']; ?> "<?php } ?> class="history_state"> <?php if (isset($_smarty_tpl->tpl_vars['order']->value['order_state'])) { ?> <span class="label<?php if (isset($_smarty_tpl->tpl_vars['order']->value['order_state_color']) && Tools::getBrightness($_smarty_tpl->tpl_vars['order']->value['order_state_color']) > 128) { ?> dark<?php } ?> "<?php if (isset($_smarty_tpl->tpl_vars['order']->value['order_state_color']) && $_smarty_tpl->tpl_vars['order']->value['order_state_color']) { ?> style="background-color:<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['order_state_color'], ENT_QUOTES, 'UTF-8', true); ?> ; border-color:<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['order_state_color'], ENT_QUOTES, 'UTF-8', true); ?> ;"<?php } ?> > <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['order_state'], ENT_QUOTES, 'UTF-8', true); ?> </span> <?php } ?> </td> <td class="history_invoice"> <?php if (isset($_smarty_tpl->tpl_vars['order']->value['invoice']) && $_smarty_tpl->tpl_vars['order']->value['invoice'] && isset($_smarty_tpl->tpl_vars['order']->value['invoice_number']) && $_smarty_tpl->tpl_vars['order']->value['invoice_number'] && isset($_smarty_tpl->tpl_vars['invoiceAllowed']->value) && $_smarty_tpl->tpl_vars['invoiceAllowed']->value == true) { ?> <a class="link-button" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('pdf-invoice', true, null, "id_order=" . (string) $_smarty_tpl->tpl_vars['order']->value['id_order']), ENT_QUOTES, 'UTF-8', true); ?> " title="<?php echo smartyTranslate(array('s' => 'Invoice'), $_smarty_tpl); ?> " target="_blank"> <i class="icon-file-text large"></i><?php echo smartyTranslate(array('s' => 'PDF'), $_smarty_tpl); ?> </a> <?php } else { ?> - <?php } ?> </td> <td class="history_detail"> <a class="btn btn-default button button-small" href="javascript:showOrder(1, <?php echo intval($_smarty_tpl->tpl_vars['order']->value['id_order']); ?> , '<?php ob_start(); echo intval($_smarty_tpl->tpl_vars['order']->value['id_order']); $_tmp6 = ob_get_clean(); echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('order-detail', true, null, "id_order=" . $_tmp6), ENT_QUOTES, 'UTF-8', true); ?> ');"> <span> <?php echo smartyTranslate(array('s' => 'Details'), $_smarty_tpl); ?> <i class="icon-chevron-right right"></i> </span> </a> <?php if (isset($_smarty_tpl->tpl_vars['opc']->value) && $_smarty_tpl->tpl_vars['opc']->value) { ?> <a class="link-button" href="<?php ob_start(); echo intval($_smarty_tpl->tpl_vars['order']->value['id_order']); $_tmp7 = ob_get_clean(); echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('order-opc', true, null, "submitReorder&id_order=" . $_tmp7), ENT_QUOTES, 'UTF-8', true); ?> " title="<?php echo smartyTranslate(array('s' => 'Reorder'), $_smarty_tpl); ?> "> <?php } else { ?> <a class="link-button" href="<?php ob_start(); echo intval($_smarty_tpl->tpl_vars['order']->value['id_order']); $_tmp8 = ob_get_clean(); echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('order', true, null, "submitReorder&id_order=" . $_tmp8), ENT_QUOTES, 'UTF-8', true); ?> " title="<?php echo smartyTranslate(array('s' => 'Reorder'), $_smarty_tpl); ?> "> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['reorderingAllowed']->value) && $_smarty_tpl->tpl_vars['reorderingAllowed']->value) { ?> <i class="icon-refresh"></i><?php echo smartyTranslate(array('s' => 'Reorder'), $_smarty_tpl); ?> <?php } ?> </a> </td> </tr> <?php } ?> </tbody> </table> <div id="block-order-detail" class="unvisible"> </div> <?php } else { ?> <p class="alert alert-warning"><?php echo smartyTranslate(array('s' => 'You have not placed any orders.'), $_smarty_tpl); ?> </p> <?php } ?> </div> <ul class="footer_links clearfix"> <li> <a class="btn btn-default button button-small" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account', true), ENT_QUOTES, 'UTF-8', true); ?> "> <span> <i class="icon-chevron-left"></i> <?php echo smartyTranslate(array('s' => 'Back to Your Account'), $_smarty_tpl); ?> </span> </a> </li> <li> <a class="btn btn-default button button-small" href="<?php echo $_smarty_tpl->tpl_vars['base_dir']->value; ?> "> <span><i class="icon-chevron-left"></i> <?php echo smartyTranslate(array('s' => 'Home'), $_smarty_tpl); ?> </span> </a> </li> </ul> <?php }
"<?php echo $_smarty_tpl->tpl_vars['roomPlan']->value['RoomMaxPersons']; ?> ", "<?php echo $_smarty_tpl->tpl_vars['roomPlan']->value['zaiku']; ?> ", "<?php echo $_smarty_tpl->tpl_vars['roomPlan']->value['liaojin']; ?> ", "<?php echo $_smarty_tpl->tpl_vars['roomPlan']->value['RoomSize']; ?> ", "<?php echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['roomPlan']->value['RoomPlanDescription'], "/\r\n/", '\\n'); ?> ", "<?php echo $_smarty_tpl->tpl_vars['roomPlan']->value['Breakfast']; ?> ", "<?php echo $_smarty_tpl->tpl_vars['roomPlan']->value['Dinner']; ?> ", "<?php echo $_smarty_tpl->tpl_vars['roomPlan']->value['UseCon']; ?> ", "<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['roomPlan']->value['ConFromTime'], "%Y-%m-%d"); ?> ",
function content_555da72d894037_71189998($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { include '/home/matej/webapps/webshop/tools/smarty/plugins/modifier.replace.php'; } if (!is_callable('smarty_modifier_regex_replace')) { include '/home/matej/webapps/webshop/tools/smarty/plugins/modifier.regex_replace.php'; } ?> <div class="leadin"></div> <script type="text/javascript"> var admin_order_tab_link = "<?php echo addslashes($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminOrders')); ?> "; var id_order = <?php echo $_smarty_tpl->tpl_vars['order']->value->id; ?> ; var id_lang = <?php echo $_smarty_tpl->tpl_vars['current_id_lang']->value; ?> ; var id_currency = <?php echo $_smarty_tpl->tpl_vars['order']->value->id_currency; ?> ; var id_customer = <?php echo intval($_smarty_tpl->tpl_vars['order']->value->id_customer); ?> ; <?php $_smarty_tpl->tpl_vars['PS_TAX_ADDRESS_TYPE'] = new Smarty_variable(Configuration::get('PS_TAX_ADDRESS_TYPE'), null, 0); ?> var id_address = <?php echo $_smarty_tpl->tpl_vars['order']->value->{$_smarty_tpl->tpl_vars['PS_TAX_ADDRESS_TYPE']->value}; ?> ; var currency_sign = "<?php echo $_smarty_tpl->tpl_vars['currency']->value->sign; ?> "; var currency_format = "<?php echo $_smarty_tpl->tpl_vars['currency']->value->format; ?> "; var currency_blank = "<?php echo $_smarty_tpl->tpl_vars['currency']->value->blank; ?> "; var priceDisplayPrecision = <?php echo intval(@constant('_PS_PRICE_DISPLAY_PRECISION_')); ?> ; var use_taxes = <?php if ($_smarty_tpl->tpl_vars['order']->value->getTaxCalculationMethod() == @constant('PS_TAX_INC')) { ?> true<?php } else { ?> false<?php } ?> ; var stock_management = <?php echo intval($_smarty_tpl->tpl_vars['stock_management']->value); ?> ; var txt_add_product_stock_issue = "<?php echo smartyTranslate(array('s' => 'Are you sure you want to add this quantity?', 'js' => 1), $_smarty_tpl); ?> "; var txt_add_product_new_invoice = "<?php echo smartyTranslate(array('s' => 'Are you sure you want to create a new invoice?', 'js' => 1), $_smarty_tpl); ?> "; var txt_add_product_no_product = "<?php echo smartyTranslate(array('s' => 'Error: No product has been selected', 'js' => 1), $_smarty_tpl); ?> "; var txt_add_product_no_product_quantity = "<?php echo smartyTranslate(array('s' => 'Error: Quantity of products must be set', 'js' => 1), $_smarty_tpl); ?> "; var txt_add_product_no_product_price = "<?php echo smartyTranslate(array('s' => 'Error: Product price must be set', 'js' => 1), $_smarty_tpl); ?> "; var txt_confirm = "<?php echo smartyTranslate(array('s' => 'Are you sure?', 'js' => 1), $_smarty_tpl); ?> "; var statesShipped = new Array(); var has_voucher = <?php if (count($_smarty_tpl->tpl_vars['discounts']->value)) { ?> 1<?php } else { ?> 0<?php } ?> ; <?php $_smarty_tpl->tpl_vars['state'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['state']->_loop = false; $_from = $_smarty_tpl->tpl_vars['states']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['state']->key => $_smarty_tpl->tpl_vars['state']->value) { $_smarty_tpl->tpl_vars['state']->_loop = true; ?> <?php if (isset($_smarty_tpl->tpl_vars['currentState']->value->shipped) && !$_smarty_tpl->tpl_vars['currentState']->value->shipped && $_smarty_tpl->tpl_vars['state']->value['shipped']) { ?> statesShipped.push(<?php echo $_smarty_tpl->tpl_vars['state']->value['id_order_state']; ?> ); <?php } ?> <?php } ?> var order_discount_price = <?php if ($_smarty_tpl->tpl_vars['order']->value->getTaxCalculationMethod() == @constant('PS_TAX_EXC')) { ?> <?php echo $_smarty_tpl->tpl_vars['order']->value->total_discounts_tax_excl; ?> <?php } else { ?> <?php echo $_smarty_tpl->tpl_vars['order']->value->total_discounts_tax_incl; ?> <?php } ?> ; var errorRefund = "<?php echo smartyTranslate(array('s' => 'Error. You cannot refund a negative amount.'), $_smarty_tpl); ?> "; </script> <?php ob_start(); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayInvoice", 'id_order' => $_smarty_tpl->tpl_vars['order']->value->id), $_smarty_tpl); $_tmp1 = ob_get_clean(); $_smarty_tpl->tpl_vars["hook_invoice"] = new Smarty_variable($_tmp1, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['hook_invoice']->value) { ?> <div><?php echo $_smarty_tpl->tpl_vars['hook_invoice']->value; ?> </div> <?php } ?> <div class="panel kpi-container"> <div class="row"> <div class="col-xs-6 col-sm-3 box-stats color3" > <div class="kpi-content"> <i class="icon-calendar-empty"></i> <span class="title"><?php echo smartyTranslate(array('s' => 'Date'), $_smarty_tpl); ?> </span> <span class="value"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['order']->value->date_add, 'full' => false), $_smarty_tpl); ?> </span> </div> </div> <div class="col-xs-6 col-sm-3 box-stats color4" > <div class="kpi-content"> <i class="icon-money"></i> <span class="title"><?php echo smartyTranslate(array('s' => 'Total'), $_smarty_tpl); ?> </span> <span class="value"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['order']->value->total_paid_tax_incl, 'currency' => $_smarty_tpl->tpl_vars['currency']->value->id), $_smarty_tpl); ?> </span> </div> </div> <div class="col-xs-6 col-sm-3 box-stats color2" > <div class="kpi-content"> <i class="icon-comments"></i> <span class="title"><?php echo smartyTranslate(array('s' => 'Messages'), $_smarty_tpl); ?> </span> <span class="value"><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminCustomerThreads'), ENT_QUOTES, 'UTF-8', true); ?> &id_order=<?php echo intval($_smarty_tpl->tpl_vars['order']->value->id); ?> "><?php echo sizeof($_smarty_tpl->tpl_vars['customer_thread_message']->value); ?> </a></span> </div> </div> <div class="col-xs-6 col-sm-3 box-stats color1" > <a href="#start_products"> <div class="kpi-content"> <i class="icon-book"></i> <span class="title"><?php echo smartyTranslate(array('s' => 'Products'), $_smarty_tpl); ?> </span> <span class="value"><?php echo sizeof($_smarty_tpl->tpl_vars['products']->value); ?> </span> </div> </a> </div> </div> </div> <div class="row"> <div class="col-lg-7"> <div class="panel"> <div class="panel-heading"> <i class="icon-credit-card"></i> <?php echo smartyTranslate(array('s' => 'Order'), $_smarty_tpl); ?> <span class="badge"><?php echo $_smarty_tpl->tpl_vars['order']->value->reference; ?> </span> <span class="badge"><?php echo smartyTranslate(array('s' => "#"), $_smarty_tpl); echo $_smarty_tpl->tpl_vars['order']->value->id; ?> </span> <div class="panel-heading-action"> <div class="btn-group"> <a class="btn btn-default<?php if (!$_smarty_tpl->tpl_vars['previousOrder']->value) { ?> disabled<?php } ?> " href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminOrders'), ENT_QUOTES, 'UTF-8', true); ?> &vieworder&id_order=<?php echo intval($_smarty_tpl->tpl_vars['previousOrder']->value); ?> "> <i class="icon-backward"></i> </a> <a class="btn btn-default<?php if (!$_smarty_tpl->tpl_vars['nextOrder']->value) { ?> disabled<?php } ?> " href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminOrders'), ENT_QUOTES, 'UTF-8', true); ?> &vieworder&id_order=<?php echo intval($_smarty_tpl->tpl_vars['nextOrder']->value); ?> "> <i class="icon-forward"></i> </a> </div> </div> </div> <!-- Orders Actions --> <div class="well hidden-print"> <a class="btn btn-default" href="javascript:window.print()"> <i class="icon-print"></i> <?php echo smartyTranslate(array('s' => 'Print order'), $_smarty_tpl); ?> </a> <?php if (Configuration::get('PS_INVOICE') && count($_smarty_tpl->tpl_vars['invoices_collection']->value) && $_smarty_tpl->tpl_vars['order']->value->invoice_number) { ?> <a data-selenium-id="view_invoice" class="btn btn-default _blank" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminPdf'), ENT_QUOTES, 'UTF-8', true); ?> &submitAction=generateInvoicePDF&id_order=<?php echo intval($_smarty_tpl->tpl_vars['order']->value->id); ?> "> <i class="icon-file"></i> <?php echo smartyTranslate(array('s' => 'View invoice'), $_smarty_tpl); ?> </a> <?php } else { ?> <span class="span label label-inactive"> <i class="icon-remove"></i> <?php echo smartyTranslate(array('s' => 'No invoice'), $_smarty_tpl); ?> </span> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['order']->value->delivery_number) { ?> <a class="btn btn-default _blank" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminPdf'), ENT_QUOTES, 'UTF-8', true); ?> &submitAction=generateDeliverySlipPDF&id_order=<?php echo intval($_smarty_tpl->tpl_vars['order']->value->id); ?> "> <i class="icon-truck"></i> <?php echo smartyTranslate(array('s' => 'View delivery slip'), $_smarty_tpl); ?> </a> <?php } else { ?> <span class="span label label-inactive"> <i class="icon-remove"></i> <?php echo smartyTranslate(array('s' => 'No delivery slip'), $_smarty_tpl); ?> </span> <?php } ?> <?php if (Configuration::get('PS_ORDER_RETURN')) { ?> <a id="desc-order-standard_refund" class="btn btn-default" href="#refundForm"> <i class="icon-exchange"></i> <?php if ($_smarty_tpl->tpl_vars['order']->value->hasBeenShipped()) { ?> <?php echo smartyTranslate(array('s' => 'Return products'), $_smarty_tpl); ?> <?php } elseif ($_smarty_tpl->tpl_vars['order']->value->hasBeenPaid()) { ?> <?php echo smartyTranslate(array('s' => 'Standard refund'), $_smarty_tpl); ?> <?php } else { ?> <?php echo smartyTranslate(array('s' => 'Cancel products'), $_smarty_tpl); ?> <?php } ?> </a> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['order']->value->hasInvoice()) { ?> <a id="desc-order-partial_refund" class="btn btn-default" href="#refundForm"> <i class="icon-exchange"></i> <?php echo smartyTranslate(array('s' => 'Partial refund'), $_smarty_tpl); ?> </a> <?php } ?> </div> <!-- Tab nav --> <ul class="nav nav-tabs" id="tabOrder"> <?php echo $_smarty_tpl->tpl_vars['HOOK_TAB_ORDER']->value; ?> <li class="active"> <a href="#status"> <i class="icon-time"></i> <?php echo smartyTranslate(array('s' => 'Status'), $_smarty_tpl); ?> <span class="badge"><?php echo count($_smarty_tpl->tpl_vars['history']->value); ?> </span> </a> </li> <li> <a href="#documents"> <i class="icon-file-text"></i> <?php echo smartyTranslate(array('s' => 'Documents'), $_smarty_tpl); ?> <span class="badge"><?php echo count($_smarty_tpl->tpl_vars['order']->value->getDocuments()); ?> </span> </a> </li> </ul> <!-- Tab content --> <div class="tab-content panel"> <?php echo $_smarty_tpl->tpl_vars['HOOK_CONTENT_ORDER']->value; ?> <!-- Tab status --> <div class="tab-pane active" id="status"> <h4 class="visible-print"><?php echo smartyTranslate(array('s' => 'Status'), $_smarty_tpl); ?> <span class="badge">(<?php echo count($_smarty_tpl->tpl_vars['history']->value); ?> )</span></h4> <!-- History of status --> <div class="table-responsive"> <table class="table history-status row-margin-bottom"> <tbody> <?php $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['row']->_loop = false; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['history']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value) { $_smarty_tpl->tpl_vars['row']->_loop = true; $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['row']->key; ?> <?php if ($_smarty_tpl->tpl_vars['key']->value == 0) { ?> <tr> <td style="background-color:<?php echo $_smarty_tpl->tpl_vars['row']->value['color']; ?> "><img src="../img/os/<?php echo intval($_smarty_tpl->tpl_vars['row']->value['id_order_state']); ?> .gif" width="16" height="16" alt="<?php echo stripslashes($_smarty_tpl->tpl_vars['row']->value['ostate_name']); ?> " /></td> <td style="background-color:<?php echo $_smarty_tpl->tpl_vars['row']->value['color']; ?> ;color:<?php echo $_smarty_tpl->tpl_vars['row']->value['text-color']; ?> "><?php echo stripslashes($_smarty_tpl->tpl_vars['row']->value['ostate_name']); ?> </td> <td style="background-color:<?php echo $_smarty_tpl->tpl_vars['row']->value['color']; ?> ;color:<?php echo $_smarty_tpl->tpl_vars['row']->value['text-color']; ?> "><?php if ($_smarty_tpl->tpl_vars['row']->value['employee_lastname']) { echo stripslashes($_smarty_tpl->tpl_vars['row']->value['employee_firstname']); ?> <?php echo stripslashes($_smarty_tpl->tpl_vars['row']->value['employee_lastname']); } ?> </td> <td style="background-color:<?php echo $_smarty_tpl->tpl_vars['row']->value['color']; ?> ;color:<?php echo $_smarty_tpl->tpl_vars['row']->value['text-color']; ?> "><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['row']->value['date_add'], 'full' => true), $_smarty_tpl); ?> </td> </tr> <?php } else { ?> <tr> <td><img src="../img/os/<?php echo intval($_smarty_tpl->tpl_vars['row']->value['id_order_state']); ?> .gif" width="16" height="16" /></td> <td><?php echo stripslashes($_smarty_tpl->tpl_vars['row']->value['ostate_name']); ?> </td> <td><?php if ($_smarty_tpl->tpl_vars['row']->value['employee_lastname']) { echo stripslashes($_smarty_tpl->tpl_vars['row']->value['employee_firstname']); ?> <?php echo stripslashes($_smarty_tpl->tpl_vars['row']->value['employee_lastname']); } else { ?> <?php } ?> </td> <td><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['row']->value['date_add'], 'full' => true), $_smarty_tpl); ?> </td> </tr> <?php } ?> <?php } ?> </tbody> </table> </div> <!-- Change status form --> <form action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true); ?> &vieworder&token=<?php echo $_GET['token']; ?> " method="post" class="form-horizontal well hidden-print"> <div class="row"> <div class="col-lg-9"> <select id="id_order_state" class="chosen form-control" name="id_order_state"> <?php $_smarty_tpl->tpl_vars['state'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['state']->_loop = false; $_from = $_smarty_tpl->tpl_vars['states']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['state']->key => $_smarty_tpl->tpl_vars['state']->value) { $_smarty_tpl->tpl_vars['state']->_loop = true; ?> <option value="<?php echo intval($_smarty_tpl->tpl_vars['state']->value['id_order_state']); ?> "<?php if (isset($_smarty_tpl->tpl_vars['currentState']->value) && $_smarty_tpl->tpl_vars['state']->value['id_order_state'] == $_smarty_tpl->tpl_vars['currentState']->value->id) { ?> selected="selected" disabled="disabled"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['state']->value['name'], ENT_QUOTES, 'UTF-8', true); ?> </option> <?php } ?> </select> <input type="hidden" name="id_order" value="<?php echo $_smarty_tpl->tpl_vars['order']->value->id; ?> " /> </div> <div class="col-lg-3"> <button type="submit" name="submitState" class="btn btn-primary"> <?php echo smartyTranslate(array('s' => 'Update status'), $_smarty_tpl); ?> </button> </div> </div> </form> </div> <!-- Tab documents --> <div class="tab-pane" id="documents"> <h4 class="visible-print"><?php echo smartyTranslate(array('s' => 'Documents'), $_smarty_tpl); ?> <span class="badge">(<?php echo count($_smarty_tpl->tpl_vars['order']->value->getDocuments()); ?> )</span></h4> <?php /* Call merged included template "controllers/orders/_documents.tpl" */ $_tpl_stack[] = $_smarty_tpl; $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('controllers/orders/_documents.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0, '2029977810555da72cbcc318-60413189'); content_555da72ce258d6_83092321($_smarty_tpl); $_smarty_tpl = array_pop($_tpl_stack); /* End of included template "controllers/orders/_documents.tpl" */ ?> </div> </div> <script> $('#tabOrder a').click(function (e) { e.preventDefault() $(this).tab('show') }) </script> <hr /> <!-- Tab nav --> <ul class="nav nav-tabs" id="myTab"> <?php echo $_smarty_tpl->tpl_vars['HOOK_TAB_SHIP']->value; ?> <li class="active"> <a href="#shipping"> <i class="icon-truck "></i> <?php echo smartyTranslate(array('s' => 'Shipping'), $_smarty_tpl); ?> <span class="badge"><?php echo count($_smarty_tpl->tpl_vars['order']->value->getShipping()); ?> </span> </a> </li> <li> <a href="#returns"> <i class="icon-undo"></i> <?php echo smartyTranslate(array('s' => 'Merchandise Returns'), $_smarty_tpl); ?> <span class="badge"><?php echo count($_smarty_tpl->tpl_vars['order']->value->getReturn()); ?> </span> </a> </li> </ul> <!-- Tab content --> <div class="tab-content panel"> <?php echo $_smarty_tpl->tpl_vars['HOOK_CONTENT_SHIP']->value; ?> <!-- Tab shipping --> <div class="tab-pane active" id="shipping"> <h4 class="visible-print"><?php echo smartyTranslate(array('s' => 'Shipping'), $_smarty_tpl); ?> <span class="badge">(<?php echo count($_smarty_tpl->tpl_vars['order']->value->getShipping()); ?> )</span></h4> <!-- Shipping block --> <?php if (!$_smarty_tpl->tpl_vars['order']->value->isVirtual()) { ?> <div class="form-horizontal"> <?php if ($_smarty_tpl->tpl_vars['order']->value->gift_message) { ?> <div class="form-group"> <label class="control-label col-lg-3"><?php echo smartyTranslate(array('s' => 'Message'), $_smarty_tpl); ?> </label> <div class="col-lg-9"> <p class="form-control-static"><?php echo nl2br($_smarty_tpl->tpl_vars['order']->value->gift_message); ?> </p> </div> </div> <?php } ?> <?php /* Call merged included template "controllers/orders/_shipping.tpl" */ $_tpl_stack[] = $_smarty_tpl; $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('controllers/orders/_shipping.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0, '2029977810555da72cbcc318-60413189'); content_555da72cf33e54_32419215($_smarty_tpl); $_smarty_tpl = array_pop($_tpl_stack); /* End of included template "controllers/orders/_shipping.tpl" */ ?> <?php if ($_smarty_tpl->tpl_vars['carrierModuleCall']->value) { ?> <?php echo $_smarty_tpl->tpl_vars['carrierModuleCall']->value; ?> <?php } ?> <hr /> <?php if ($_smarty_tpl->tpl_vars['order']->value->recyclable) { ?> <span class="label label-success"><i class="icon-check"></i> <?php echo smartyTranslate(array('s' => 'Recycled packaging'), $_smarty_tpl); ?> </span> <?php } else { ?> <span class="label label-inactive"><i class="icon-remove"></i> <?php echo smartyTranslate(array('s' => 'Recycled packaging'), $_smarty_tpl); ?> </span> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['order']->value->gift) { ?> <span class="label label-success"><i class="icon-check"></i> <?php echo smartyTranslate(array('s' => 'Gift wrapping'), $_smarty_tpl); ?> </span> <?php } else { ?> <span class="label label-inactive"><i class="icon-remove"></i> <?php echo smartyTranslate(array('s' => 'Gift wrapping'), $_smarty_tpl); ?> </span> <?php } ?> </div> <?php } ?> </div> <!-- Tab returns --> <div class="tab-pane" id="returns"> <h4 class="visible-print"><?php echo smartyTranslate(array('s' => 'Merchandise Returns'), $_smarty_tpl); ?> <span class="badge">(<?php echo count($_smarty_tpl->tpl_vars['order']->value->getReturn()); ?> )</span></h4> <?php if (!$_smarty_tpl->tpl_vars['order']->value->isVirtual()) { ?> <!-- Return block --> <?php if (count($_smarty_tpl->tpl_vars['order']->value->getReturn()) > 0) { ?> <div class="table-responsive"> <table class="table"> <thead> <tr> <th><span class="title_box ">Date</span></th> <th><span class="title_box ">Type</span></th> <th><span class="title_box ">Carrier</span></th> <th><span class="title_box ">Tracking number</span></th> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars['line'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['line']->_loop = false; $_from = $_smarty_tpl->tpl_vars['order']->value->getReturn(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['line']->key => $_smarty_tpl->tpl_vars['line']->value) { $_smarty_tpl->tpl_vars['line']->_loop = true; ?> <tr> <td><?php echo $_smarty_tpl->tpl_vars['line']->value['date_add']; ?> </td> <td><?php echo $_smarty_tpl->tpl_vars['line']->value['type']; ?> </td> <td><?php echo $_smarty_tpl->tpl_vars['line']->value['state_name']; ?> </td> <td class="actions"> <span class="shipping_number_show"><?php if (isset($_smarty_tpl->tpl_vars['line']->value['url']) && isset($_smarty_tpl->tpl_vars['line']->value['tracking_number'])) { ?> <a href="<?php echo htmlspecialchars(smarty_modifier_replace($_smarty_tpl->tpl_vars['line']->value['url'], '@', $_smarty_tpl->tpl_vars['line']->value['tracking_number']), ENT_QUOTES, 'UTF-8', true); ?> "><?php echo $_smarty_tpl->tpl_vars['line']->value['tracking_number']; ?> </a><?php } elseif (isset($_smarty_tpl->tpl_vars['line']->value['tracking_number'])) { echo $_smarty_tpl->tpl_vars['line']->value['tracking_number']; } ?> </span> <?php if ($_smarty_tpl->tpl_vars['line']->value['can_edit']) { ?> <form method="post" action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminOrders'), ENT_QUOTES, 'UTF-8', true); ?> &vieworder&id_order=<?php echo intval($_smarty_tpl->tpl_vars['order']->value->id); ?> &id_order_invoice=<?php if ($_smarty_tpl->tpl_vars['line']->value['id_order_invoice']) { echo intval($_smarty_tpl->tpl_vars['line']->value['id_order_invoice']); } else { ?> 0<?php } ?> &id_carrier=<?php if ($_smarty_tpl->tpl_vars['line']->value['id_carrier']) { echo htmlspecialchars($_smarty_tpl->tpl_vars['line']->value['id_carrier'], ENT_QUOTES, 'UTF-8', true); } else { ?> 0<?php } ?> "> <span class="shipping_number_edit" style="display:none;"> <button type="button" name="tracking_number"> <?php echo htmlentities($_smarty_tpl->tpl_vars['line']->value['tracking_number']); ?> </button> <button type="submit" class="btn btn-default" name="submitShippingNumber"> <?php echo smartyTranslate(array('s' => 'Update'), $_smarty_tpl); ?> </button> </span> <button href="#" class="edit_shipping_number_link"> <i class="icon-pencil"></i> <?php echo smartyTranslate(array('s' => 'Edit'), $_smarty_tpl); ?> </button> <button href="#" class="cancel_shipping_number_link" style="display: none;"> <i class="icon-remove"></i> <?php echo smartyTranslate(array('s' => 'Cancel'), $_smarty_tpl); ?> </button> </form> <?php } ?> </td> </tr> <?php } ?> </tbody> </table> </div> <?php } else { ?> <div class="list-empty hidden-print"> <div class="list-empty-msg"> <i class="icon-warning-sign list-empty-icon"></i> <?php echo smartyTranslate(array('s' => 'No merchandise returned yet'), $_smarty_tpl); ?> </div> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['carrierModuleCall']->value) { ?> <?php echo $_smarty_tpl->tpl_vars['carrierModuleCall']->value; ?> <?php } ?> <?php } ?> </div> </div> <script> $('#myTab a').click(function (e) { e.preventDefault() $(this).tab('show') }) </script> </div> <!-- Payments block --> <div id="formAddPaymentPanel" class="panel"> <div class="panel-heading"> <i class="icon-money"></i> <?php echo smartyTranslate(array('s' => "Payment"), $_smarty_tpl); ?> <span class="badge"><?php echo count($_smarty_tpl->tpl_vars['order']->value->getOrderPayments()); ?> </span> </div> <?php if (count($_smarty_tpl->tpl_vars['order']->value->getOrderPayments()) > 0) { ?> <p class="alert alert-danger"<?php if (round($_smarty_tpl->tpl_vars['orders_total_paid_tax_incl']->value, 2) == round($_smarty_tpl->tpl_vars['total_paid']->value, 2) || isset($_smarty_tpl->tpl_vars['currentState']->value) && $_smarty_tpl->tpl_vars['currentState']->value->id == 6) { ?> style="display: none;"<?php } ?> > <?php echo smartyTranslate(array('s' => 'Warning'), $_smarty_tpl); ?> <strong><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['total_paid']->value, 'currency' => $_smarty_tpl->tpl_vars['currency']->value->id), $_smarty_tpl); ?> </strong> <?php echo smartyTranslate(array('s' => 'paid instead of'), $_smarty_tpl); ?> <strong class="total_paid"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['orders_total_paid_tax_incl']->value, 'currency' => $_smarty_tpl->tpl_vars['currency']->value->id), $_smarty_tpl); ?> </strong> <?php $_smarty_tpl->tpl_vars['brother_order'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['brother_order']->_loop = false; $_from = $_smarty_tpl->tpl_vars['order']->value->getBrother(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['brother_order']->index = -1; foreach ($_from as $_smarty_tpl->tpl_vars['brother_order']->key => $_smarty_tpl->tpl_vars['brother_order']->value) { $_smarty_tpl->tpl_vars['brother_order']->_loop = true; $_smarty_tpl->tpl_vars['brother_order']->index++; $_smarty_tpl->tpl_vars['brother_order']->first = $_smarty_tpl->tpl_vars['brother_order']->index === 0; ?> <?php if ($_smarty_tpl->tpl_vars['brother_order']->first) { ?> <?php if (count($_smarty_tpl->tpl_vars['order']->value->getBrother()) == 1) { ?> <br /><?php echo smartyTranslate(array('s' => 'This warning also concerns order '), $_smarty_tpl); ?> <?php } else { ?> <br /><?php echo smartyTranslate(array('s' => 'This warning also concerns the next orders:'), $_smarty_tpl); ?> <?php } ?> <?php } ?> <a href="<?php echo $_smarty_tpl->tpl_vars['current_index']->value; ?> &vieworder&id_order=<?php echo $_smarty_tpl->tpl_vars['brother_order']->value->id; ?> &token=<?php echo htmlspecialchars($_GET['token'], ENT_QUOTES, 'UTF-8', true); ?> "> #<?php echo sprintf('%06d', $_smarty_tpl->tpl_vars['brother_order']->value->id); ?> </a> <?php } ?> </p> <?php } ?> <form id="formAddPayment" method="post" action="<?php echo $_smarty_tpl->tpl_vars['current_index']->value; ?> &vieworder&id_order=<?php echo $_smarty_tpl->tpl_vars['order']->value->id; ?> &token=<?php echo htmlspecialchars($_GET['token'], ENT_QUOTES, 'UTF-8', true); ?> "> <div class="table-responsive"> <table class="table"> <thead> <tr> <th><span class="title_box "><?php echo smartyTranslate(array('s' => 'Date'), $_smarty_tpl); ?> </span></th> <th><span class="title_box "><?php echo smartyTranslate(array('s' => 'Payment method'), $_smarty_tpl); ?> </span></th> <th><span class="title_box "><?php echo smartyTranslate(array('s' => 'Transaction ID'), $_smarty_tpl); ?> </span></th> <th><span class="title_box "><?php echo smartyTranslate(array('s' => 'Amount'), $_smarty_tpl); ?> </span></th> <th><span class="title_box "><?php echo smartyTranslate(array('s' => 'Invoice'), $_smarty_tpl); ?> </span></th> <th></th> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars['payment'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['payment']->_loop = false; $_from = $_smarty_tpl->tpl_vars['order']->value->getOrderPaymentCollection(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['payment']->key => $_smarty_tpl->tpl_vars['payment']->value) { $_smarty_tpl->tpl_vars['payment']->_loop = true; ?> <tr> <td><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['payment']->value->date_add, 'full' => true), $_smarty_tpl); ?> </td> <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['payment']->value->payment_method, ENT_QUOTES, 'UTF-8', true); ?> </td> <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['payment']->value->transaction_id, ENT_QUOTES, 'UTF-8', true); ?> </td> <td><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['payment']->value->amount, 'currency' => $_smarty_tpl->tpl_vars['payment']->value->id_currency), $_smarty_tpl); ?> </td> <td> <?php if (!isset($_smarty_tpl->tpl_vars['invoice'])) { $_smarty_tpl->tpl_vars['invoice'] = new Smarty_Variable(null); } if ($_smarty_tpl->tpl_vars['invoice']->value = $_smarty_tpl->tpl_vars['payment']->value->getOrderInvoice($_smarty_tpl->tpl_vars['order']->value->id)) { ?> <?php echo $_smarty_tpl->tpl_vars['invoice']->value->getInvoiceNumberFormatted($_smarty_tpl->tpl_vars['current_id_lang']->value, $_smarty_tpl->tpl_vars['order']->value->id_shop); ?> <?php } else { ?> <?php } ?> </td> <td class="actions"> <button class="btn btn-default open_payment_information"> <i class="icon-search"></i> <?php echo smartyTranslate(array('s' => 'Details'), $_smarty_tpl); ?> </button> </td> </tr> <tr class="payment_information" style="display: none;"> <td colspan="5"> <p> <b><?php echo smartyTranslate(array('s' => 'Card Number'), $_smarty_tpl); ?> </b> <?php if ($_smarty_tpl->tpl_vars['payment']->value->card_number) { ?> <?php echo $_smarty_tpl->tpl_vars['payment']->value->card_number; ?> <?php } else { ?> <i><?php echo smartyTranslate(array('s' => 'Not defined'), $_smarty_tpl); ?> </i> <?php } ?> </p> <p> <b><?php echo smartyTranslate(array('s' => 'Card Brand'), $_smarty_tpl); ?> </b> <?php if ($_smarty_tpl->tpl_vars['payment']->value->card_brand) { ?> <?php echo $_smarty_tpl->tpl_vars['payment']->value->card_brand; ?> <?php } else { ?> <i><?php echo smartyTranslate(array('s' => 'Not defined'), $_smarty_tpl); ?> </i> <?php } ?> </p> <p> <b><?php echo smartyTranslate(array('s' => 'Card Expiration'), $_smarty_tpl); ?> </b> <?php if ($_smarty_tpl->tpl_vars['payment']->value->card_expiration) { ?> <?php echo $_smarty_tpl->tpl_vars['payment']->value->card_expiration; ?> <?php } else { ?> <i><?php echo smartyTranslate(array('s' => 'Not defined'), $_smarty_tpl); ?> </i> <?php } ?> </p> <p> <b><?php echo smartyTranslate(array('s' => 'Card Holder'), $_smarty_tpl); ?> </b> <?php if ($_smarty_tpl->tpl_vars['payment']->value->card_holder) { ?> <?php echo $_smarty_tpl->tpl_vars['payment']->value->card_holder; ?> <?php } else { ?> <i><?php echo smartyTranslate(array('s' => 'Not defined'), $_smarty_tpl); ?> </i> <?php } ?> </p> </td> </tr> <?php } if (!$_smarty_tpl->tpl_vars['payment']->_loop) { ?> <tr> <td class="list-empty hidden-print" colspan="6"> <div class="list-empty-msg"> <i class="icon-warning-sign list-empty-icon"></i> <?php echo smartyTranslate(array('s' => 'No payment methods are available'), $_smarty_tpl); ?> </div> </td> </tr> <?php } ?> <tr class="current-edit hidden-print"> <td> <div class="input-group fixed-width-xl"> <input type="text" name="payment_date" class="datepicker" value="<?php echo date('Y-m-d'); ?> " /> <div class="input-group-addon"> <i class="icon-calendar-o"></i> </div> </div> </td> <td> <input name="payment_method" list="payment_method" class="payment_method"> <datalist id="payment_method"> <?php $_smarty_tpl->tpl_vars['payment_method'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['payment_method']->_loop = false; $_from = $_smarty_tpl->tpl_vars['payment_methods']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['payment_method']->key => $_smarty_tpl->tpl_vars['payment_method']->value) { $_smarty_tpl->tpl_vars['payment_method']->_loop = true; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['payment_method']->value; ?> "> <?php } ?> </datalist> </td> <td> <input type="text" name="payment_transaction_id" value="" class="form-control fixed-width-sm"/> </td> <td> <input type="text" name="payment_amount" value="" class="form-control fixed-width-sm pull-left" /> <select name="payment_currency" class="payment_currency form-control fixed-width-xs pull-left"> <?php $_smarty_tpl->tpl_vars['current_currency'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['current_currency']->_loop = false; $_from = $_smarty_tpl->tpl_vars['currencies']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['current_currency']->key => $_smarty_tpl->tpl_vars['current_currency']->value) { $_smarty_tpl->tpl_vars['current_currency']->_loop = true; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['current_currency']->value['id_currency']; ?> "<?php if ($_smarty_tpl->tpl_vars['current_currency']->value['id_currency'] == $_smarty_tpl->tpl_vars['currency']->value->id) { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->tpl_vars['current_currency']->value['sign']; ?> </option> <?php } ?> </select> </td> <td> <?php if (count($_smarty_tpl->tpl_vars['invoices_collection']->value) > 0) { ?> <select name="payment_invoice" id="payment_invoice"> <?php $_smarty_tpl->tpl_vars['invoice'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['invoice']->_loop = false; $_from = $_smarty_tpl->tpl_vars['invoices_collection']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['invoice']->key => $_smarty_tpl->tpl_vars['invoice']->value) { $_smarty_tpl->tpl_vars['invoice']->_loop = true; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['invoice']->value->id; ?> " selected="selected"><?php echo $_smarty_tpl->tpl_vars['invoice']->value->getInvoiceNumberFormatted($_smarty_tpl->tpl_vars['current_id_lang']->value, $_smarty_tpl->tpl_vars['order']->value->id_shop); ?> </option> <?php } ?> </select> <?php } ?> </td> <td class="actions"> <button class="btn btn-primary btn-block" type="submit" name="submitAddPayment"> <?php echo smartyTranslate(array('s' => 'Add'), $_smarty_tpl); ?> </button> </td> </tr> </tbody> </table> </div> </form> <?php if (!$_smarty_tpl->tpl_vars['order']->value->valid && sizeof($_smarty_tpl->tpl_vars['currencies']->value) > 1) { ?> <form class="form-horizontal well" method="post" action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true); ?> &vieworder&id_order=<?php echo $_smarty_tpl->tpl_vars['order']->value->id; ?> &token=<?php echo htmlspecialchars($_GET['token'], ENT_QUOTES, 'UTF-8', true); ?> "> <div class="row"> <label class="control-label col-lg-3"><?php echo smartyTranslate(array('s' => 'Change currency'), $_smarty_tpl); ?> </label> <div class="col-lg-6"> <select name="new_currency"> <?php $_smarty_tpl->tpl_vars['currency_change'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['currency_change']->_loop = false; $_from = $_smarty_tpl->tpl_vars['currencies']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['currency_change']->key => $_smarty_tpl->tpl_vars['currency_change']->value) { $_smarty_tpl->tpl_vars['currency_change']->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['currency_change']->value['id_currency'] != $_smarty_tpl->tpl_vars['order']->value->id_currency) { ?> <option value="<?php echo $_smarty_tpl->tpl_vars['currency_change']->value['id_currency']; ?> "><?php echo $_smarty_tpl->tpl_vars['currency_change']->value['name']; ?> - <?php echo $_smarty_tpl->tpl_vars['currency_change']->value['sign']; ?> </option> <?php } ?> <?php } ?> </select> <p class="help-block"><?php echo smartyTranslate(array('s' => 'Do not forget to update your exchange rate before making this change.'), $_smarty_tpl); ?> </p> </div> <div class="col-lg-3"> <button type="submit" class="btn btn-default" name="submitChangeCurrency"><i class="icon-refresh"></i> <?php echo smartyTranslate(array('s' => 'Change'), $_smarty_tpl); ?> </button> </div> </div> </form> <?php } ?> </div> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayAdminOrderLeft", 'id_order' => $_smarty_tpl->tpl_vars['order']->value->id), $_smarty_tpl); ?> </div> <div class="col-lg-5"> <!-- Customer informations --> <div class="panel"> <?php if ($_smarty_tpl->tpl_vars['customer']->value->id) { ?> <div class="panel-heading"> <i class="icon-user"></i> <?php echo smartyTranslate(array('s' => 'Customer'), $_smarty_tpl); ?> <span class="badge"> <a href="?tab=AdminCustomers&id_customer=<?php echo $_smarty_tpl->tpl_vars['customer']->value->id; ?> &viewcustomer&token=<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab' => 'AdminCustomers'), $_smarty_tpl); ?> "> <?php if (Configuration::get('PS_B2B_ENABLE')) { echo $_smarty_tpl->tpl_vars['customer']->value->company; ?> - <?php } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gender']->value->name, ENT_QUOTES, 'UTF-8', true); ?> <?php echo $_smarty_tpl->tpl_vars['customer']->value->firstname; ?> <?php echo $_smarty_tpl->tpl_vars['customer']->value->lastname; ?> </a> </span> <span class="badge"> <?php echo smartyTranslate(array('s' => '#'), $_smarty_tpl); echo $_smarty_tpl->tpl_vars['customer']->value->id; ?> </span> </div> <div class="row"> <div class="col-xs-6"> <?php if ($_smarty_tpl->tpl_vars['customer']->value->isGuest()) { ?> <?php echo smartyTranslate(array('s' => 'This order has been placed by a guest.'), $_smarty_tpl); ?> <?php if (!Customer::customerExists($_smarty_tpl->tpl_vars['customer']->value->email)) { ?> <form method="post" action="index.php?tab=AdminCustomers&id_customer=<?php echo $_smarty_tpl->tpl_vars['customer']->value->id; ?> &token=<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab' => 'AdminCustomers'), $_smarty_tpl); ?> "> <input type="hidden" name="id_lang" value="<?php echo $_smarty_tpl->tpl_vars['order']->value->id_lang; ?> " /> <input class="btn btn-default" type="submit" name="submitGuestToCustomer" value="<?php echo smartyTranslate(array('s' => 'Transform a guest into a customer'), $_smarty_tpl); ?> " /> <p class="help-block"><?php echo smartyTranslate(array('s' => 'This feature will generate a random password and send an email to the customer.'), $_smarty_tpl); ?> </p> </form> <?php } else { ?> <div class="alert alert-warning"> <?php echo smartyTranslate(array('s' => 'A registered customer account has already claimed this email address'), $_smarty_tpl); ?> </div> <?php } ?> <?php } else { ?> <dl class="well list-detail"> <dt><?php echo smartyTranslate(array('s' => 'Email'), $_smarty_tpl); ?> </dt> <dd><a href="mailto:<?php echo $_smarty_tpl->tpl_vars['customer']->value->email; ?> "><i class="icon-envelope-o"></i> <?php echo $_smarty_tpl->tpl_vars['customer']->value->email; ?> </a></dd> <dt><?php echo smartyTranslate(array('s' => 'Account registered'), $_smarty_tpl); ?> </dt> <dd class="text-muted"><i class="icon-calendar-o"></i> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['customer']->value->date_add, 'full' => true), $_smarty_tpl); ?> </dd> <dt><?php echo smartyTranslate(array('s' => 'Valid orders placed'), $_smarty_tpl); ?> </dt> <dd><span class="badge"><?php echo intval($_smarty_tpl->tpl_vars['customerStats']->value['nb_orders']); ?> </span></dd> <dt><?php echo smartyTranslate(array('s' => 'Total spent since registration'), $_smarty_tpl); ?> </dt> <dd><span class="badge badge-success"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => Tools::ps_round(Tools::convertPrice($_smarty_tpl->tpl_vars['customerStats']->value['total_orders'], $_smarty_tpl->tpl_vars['currency']->value), 2), 'currency' => $_smarty_tpl->tpl_vars['currency']->value->id), $_smarty_tpl); ?> </span></dd> <?php if (Configuration::get('PS_B2B_ENABLE')) { ?> <dt><?php echo smartyTranslate(array('s' => 'Siret'), $_smarty_tpl); ?> </dt> <dd><?php echo $_smarty_tpl->tpl_vars['customer']->value->siret; ?> </dd> <dt><?php echo smartyTranslate(array('s' => 'APE'), $_smarty_tpl); ?> </dt> <dd><?php echo $_smarty_tpl->tpl_vars['customer']->value->ape; ?> </dd> <?php } ?> </dl> <?php } ?> </div> <div class="col-xs-6"> <div class="form-group hidden-print"> <a href="?tab=AdminCustomers&id_customer=<?php echo $_smarty_tpl->tpl_vars['customer']->value->id; ?> &viewcustomer&token=<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab' => 'AdminCustomers'), $_smarty_tpl); ?> " class="btn btn-default btn-block"><?php echo smartyTranslate(array('s' => 'View full details...'), $_smarty_tpl); ?> </a> </div> <div class="panel panel-sm"> <div class="panel-heading"> <i class="icon-eye-slash"></i> <?php echo smartyTranslate(array('s' => 'Private note'), $_smarty_tpl); ?> </div> <form id="customer_note" class="form-horizontal" action="ajax.php" method="post" onsubmit="saveCustomerNote(<?php echo $_smarty_tpl->tpl_vars['customer']->value->id; ?> );return false;" > <div class="form-group"> <div class="col-lg-12"> <textarea name="note" id="noteContent" class="textarea-autosize" onkeyup="$(this).val().length > 0 ? $('#submitCustomerNote').removeAttr('disabled') : $('#submitCustomerNote').attr('disabled', 'disabled')"><?php echo $_smarty_tpl->tpl_vars['customer']->value->note; ?> </textarea> </div> </div> <div class="row"> <div class="col-lg-12"> <button type="submit" id="submitCustomerNote" class="btn btn-default pull-right" disabled="disabled"> <i class="icon-save"></i> <?php echo smartyTranslate(array('s' => 'Save'), $_smarty_tpl); ?> </button> </div> </div> <span id="note_feedback"></span> </form> </div> </div> </div> <?php } ?> <!-- Tab nav --> <div class="row"> <ul class="nav nav-tabs" id="tabAddresses"> <li class="active"> <a href="#addressShipping"> <i class="icon-truck"></i> <?php echo smartyTranslate(array('s' => 'Shipping address'), $_smarty_tpl); ?> </a> </li> <li> <a href="#addressInvoice"> <i class="icon-file-text"></i> <?php echo smartyTranslate(array('s' => 'Invoice address'), $_smarty_tpl); ?> </a> </li> </ul> <!-- Tab content --> <div class="tab-content panel"> <!-- Tab status --> <div class="tab-pane in active" id="addressShipping"> <!-- Addresses --> <h4 class="visible-print"><?php echo smartyTranslate(array('s' => 'Shipping address'), $_smarty_tpl); ?> </h4> <?php if (!$_smarty_tpl->tpl_vars['order']->value->isVirtual()) { ?> <!-- Shipping address --> <?php if ($_smarty_tpl->tpl_vars['can_edit']->value) { ?> <form class="form-horizontal hidden-print" method="post" action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminOrders'), ENT_QUOTES, 'UTF-8', true); ?> &vieworder&id_order=<?php echo intval($_smarty_tpl->tpl_vars['order']->value->id); ?> "> <div class="form-group"> <div class="col-lg-9"> <select name="id_address"> <?php $_smarty_tpl->tpl_vars['address'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['address']->_loop = false; $_from = $_smarty_tpl->tpl_vars['customer_addresses']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['address']->key => $_smarty_tpl->tpl_vars['address']->value) { $_smarty_tpl->tpl_vars['address']->_loop = true; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['address']->value['id_address']; ?> " <?php if ($_smarty_tpl->tpl_vars['address']->value['id_address'] == $_smarty_tpl->tpl_vars['order']->value->id_address_delivery) { ?> selected="selected" <?php } ?> > <?php echo $_smarty_tpl->tpl_vars['address']->value['alias']; ?> - <?php echo $_smarty_tpl->tpl_vars['address']->value['address1']; ?> <?php echo $_smarty_tpl->tpl_vars['address']->value['postcode']; ?> <?php echo $_smarty_tpl->tpl_vars['address']->value['city']; ?> <?php if (!empty($_smarty_tpl->tpl_vars['address']->value['state'])) { ?> <?php echo $_smarty_tpl->tpl_vars['address']->value['state']; ?> <?php } ?> , <?php echo $_smarty_tpl->tpl_vars['address']->value['country']; ?> </option> <?php } ?> </select> </div> <div class="col-lg-3"> <button class="btn btn-default" type="submit" name="submitAddressShipping"><i class="icon-refresh"></i> <?php echo smartyTranslate(array('s' => 'Change'), $_smarty_tpl); ?> </button> </div> </div> </form> <?php } ?> <div class="well"> <div class="row"> <div class="col-sm-6"> <a class="btn btn-default pull-right" href="?tab=AdminAddresses&id_address=<?php echo $_smarty_tpl->tpl_vars['addresses']->value['delivery']->id; ?> &addaddress&realedit=1&id_order=<?php echo $_smarty_tpl->tpl_vars['order']->value->id; ?> &address_type=1&token=<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab' => 'AdminAddresses'), $_smarty_tpl); ?> &back=<?php echo urlencode($_SERVER['REQUEST_URI']); ?> "> <i class="icon-pencil"></i> <?php echo smartyTranslate(array('s' => 'Edit'), $_smarty_tpl); ?> </a> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayAddressDetail'][0][0]->generateAddressSmarty(array('address' => $_smarty_tpl->tpl_vars['addresses']->value['delivery'], 'newLine' => '<br />'), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['addresses']->value['delivery']->other) { ?> <hr /><?php echo $_smarty_tpl->tpl_vars['addresses']->value['delivery']->other; ?> <br /> <?php } ?> </div> <div class="col-sm-6 hidden-print"> <div id="map-delivery-canvas" style="height: 190px"></div> </div> </div> </div> <?php } ?> </div> <div class="tab-pane " id="addressInvoice"> <!-- Invoice address --> <h4 class="visible-print"><?php echo smartyTranslate(array('s' => 'Invoice address'), $_smarty_tpl); ?> </h4> <?php if ($_smarty_tpl->tpl_vars['can_edit']->value) { ?> <form class="form-horizontal hidden-print" method="post" action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminOrders'), ENT_QUOTES, 'UTF-8', true); ?> &vieworder&id_order=<?php echo intval($_smarty_tpl->tpl_vars['order']->value->id); ?> "> <div class="form-group"> <div class="col-lg-9"> <select name="id_address"> <?php $_smarty_tpl->tpl_vars['address'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['address']->_loop = false; $_from = $_smarty_tpl->tpl_vars['customer_addresses']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['address']->key => $_smarty_tpl->tpl_vars['address']->value) { $_smarty_tpl->tpl_vars['address']->_loop = true; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['address']->value['id_address']; ?> " <?php if ($_smarty_tpl->tpl_vars['address']->value['id_address'] == $_smarty_tpl->tpl_vars['order']->value->id_address_invoice) { ?> selected="selected" <?php } ?> > <?php echo $_smarty_tpl->tpl_vars['address']->value['alias']; ?> - <?php echo $_smarty_tpl->tpl_vars['address']->value['address1']; ?> <?php echo $_smarty_tpl->tpl_vars['address']->value['postcode']; ?> <?php echo $_smarty_tpl->tpl_vars['address']->value['city']; ?> <?php if (!empty($_smarty_tpl->tpl_vars['address']->value['state'])) { ?> <?php echo $_smarty_tpl->tpl_vars['address']->value['state']; ?> <?php } ?> , <?php echo $_smarty_tpl->tpl_vars['address']->value['country']; ?> </option> <?php } ?> </select> </div> <div class="col-lg-3"> <button class="btn btn-default" type="submit" name="submitAddressInvoice"><i class="icon-refresh"></i> <?php echo smartyTranslate(array('s' => 'Change'), $_smarty_tpl); ?> </button> </div> </div> </form> <?php } ?> <div class="well"> <div class="row"> <div class="col-sm-6"> <a class="btn btn-default pull-right" href="?tab=AdminAddresses&id_address=<?php echo $_smarty_tpl->tpl_vars['addresses']->value['invoice']->id; ?> &addaddress&realedit=1&id_order=<?php echo $_smarty_tpl->tpl_vars['order']->value->id; ?> &address_type=2&back=<?php echo urlencode($_SERVER['REQUEST_URI']); ?> &token=<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab' => 'AdminAddresses'), $_smarty_tpl); ?> "> <i class="icon-pencil"></i> <?php echo smartyTranslate(array('s' => 'Edit'), $_smarty_tpl); ?> </a> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayAddressDetail'][0][0]->generateAddressSmarty(array('address' => $_smarty_tpl->tpl_vars['addresses']->value['invoice'], 'newLine' => '<br />'), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['addresses']->value['invoice']->other) { ?> <hr /><?php echo $_smarty_tpl->tpl_vars['addresses']->value['invoice']->other; ?> <br /> <?php } ?> </div> <div class="col-sm-6 hidden-print"> <div id="map-invoice-canvas" style="height: 190px"></div> </div> </div> </div> </div> </div> </div> <script> $('#tabAddresses a').click(function (e) { e.preventDefault() $(this).tab('show') }) </script> </div> <div class="panel"> <div class="panel-heading"> <i class="icon-envelope"></i> <?php echo smartyTranslate(array('s' => 'Messages'), $_smarty_tpl); ?> <span class="badge"><?php echo sizeof($_smarty_tpl->tpl_vars['customer_thread_message']->value); ?> </span> </div> <?php if (sizeof($_smarty_tpl->tpl_vars['messages']->value)) { ?> <div class="panel panel-highlighted"> <div class="message-item"> <?php $_smarty_tpl->tpl_vars['message'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['message']->_loop = false; $_from = $_smarty_tpl->tpl_vars['messages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['message']->key => $_smarty_tpl->tpl_vars['message']->value) { $_smarty_tpl->tpl_vars['message']->_loop = true; ?> <div class="message-avatar"> <div class="avatar-md"> <i class="icon-user icon-2x"></i> </div> </div> <div class="message-body"> <span class="message-date"> <i class="icon-calendar"></i> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['message']->value['date_add']), $_smarty_tpl); ?> - </span> <h4 class="message-item-heading"> <?php if (htmlspecialchars($_smarty_tpl->tpl_vars['message']->value['elastname'], ENT_QUOTES, 'UTF-8', true)) { echo htmlspecialchars($_smarty_tpl->tpl_vars['message']->value['efirstname'], ENT_QUOTES, 'UTF-8', true); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['message']->value['elastname'], ENT_QUOTES, 'UTF-8', true); } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['message']->value['cfirstname'], ENT_QUOTES, 'UTF-8', true); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['message']->value['clastname'], ENT_QUOTES, 'UTF-8', true); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['message']->value['private'] == 1) { ?> <span class="badge badge-info"><?php echo smartyTranslate(array('s' => 'Private'), $_smarty_tpl); ?> </span> <?php } ?> </h4> <p class="message-item-text"> <?php echo nl2br(htmlspecialchars($_smarty_tpl->tpl_vars['message']->value['message'], ENT_QUOTES, 'UTF-8', true)); ?> </p> </div> <?php } ?> </div> </div> <?php } ?> <div id="messages" class="well hidden-print"> <form action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES, 'UTF-8', true); ?> &token=<?php echo htmlspecialchars($_GET['token'], ENT_QUOTES, 'UTF-8', true); ?> " method="post" onsubmit="if (getE('visibility').checked == true) return confirm('<?php echo smartyTranslate(array('s' => 'Do you want to send this message to the customer?'), $_smarty_tpl); ?> ');"> <div id="message" class="form-horizontal"> <div class="form-group"> <label class="control-label col-lg-3"><?php echo smartyTranslate(array('s' => 'Choose a standard message'), $_smarty_tpl); ?> </label> <div class="col-lg-9"> <select class="chosen form-control" name="order_message" id="order_message" onchange="orderOverwriteMessage(this, '<?php echo smartyTranslate(array('s' => 'Do you want to overwrite your existing message?'), $_smarty_tpl); ?> ')"> <option value="0" selected="selected">-</option> <?php $_smarty_tpl->tpl_vars['orderMessage'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['orderMessage']->_loop = false; $_from = $_smarty_tpl->tpl_vars['orderMessages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['orderMessage']->key => $_smarty_tpl->tpl_vars['orderMessage']->value) { $_smarty_tpl->tpl_vars['orderMessage']->_loop = true; ?> <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['orderMessage']->value['message'], ENT_QUOTES, 'UTF-8', true); ?> "><?php echo $_smarty_tpl->tpl_vars['orderMessage']->value['name']; ?> </option> <?php } ?> </select> <p class="help-block"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminOrderMessage'), ENT_QUOTES, 'UTF-8', true); ?> "> <?php echo smartyTranslate(array('s' => 'Configure predefined messages'), $_smarty_tpl); ?> <i class="icon-external-link"></i> </a> </p> </div> </div> <div class="form-group"> <label class="control-label col-lg-3"><?php echo smartyTranslate(array('s' => 'Display to customer?'), $_smarty_tpl); ?> </label> <div class="col-lg-9"> <span class="switch prestashop-switch fixed-width-lg"> <input type="radio" name="visibility" id="visibility_on" value="0" /> <label for="visibility_on"> <?php echo smartyTranslate(array('s' => 'Yes'), $_smarty_tpl); ?> </label> <input type="radio" name="visibility" id="visibility_off" value="1" checked="checked" /> <label for="visibility_off"> <?php echo smartyTranslate(array('s' => 'No'), $_smarty_tpl); ?> </label> <a class="slide-button btn"></a> </span> </div> </div> <div class="form-group"> <label class="control-label col-lg-3"><?php echo smartyTranslate(array('s' => 'Message'), $_smarty_tpl); ?> </label> <div class="col-lg-9"> <textarea id="txt_msg" class="textarea-autosize" name="message"><?php echo htmlspecialchars(Tools::getValue('message'), ENT_QUOTES, 'UTF-8', true); ?> </textarea> <p id="nbchars"></p> </div> </div> <input type="hidden" name="id_order" value="<?php echo $_smarty_tpl->tpl_vars['order']->value->id; ?> " /> <input type="hidden" name="id_customer" value="<?php echo $_smarty_tpl->tpl_vars['order']->value->id_customer; ?> " /> <button type="submit" id="submitMessage" class="btn btn-primary pull-right" name="submitMessage"> <?php echo smartyTranslate(array('s' => 'Send message'), $_smarty_tpl); ?> </button> <a class="btn btn-default" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminCustomerThreads'), ENT_QUOTES, 'UTF-8', true); ?> &id_order=<?php echo intval($_smarty_tpl->tpl_vars['order']->value->id); ?> "> <?php echo smartyTranslate(array('s' => 'Show all messages'), $_smarty_tpl); ?> <i class="icon-external-link"></i> </a> </div> </form> </div> </div> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayAdminOrderRight", 'id_order' => $_smarty_tpl->tpl_vars['order']->value->id), $_smarty_tpl); ?> </div> </div> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayAdminOrder", 'id_order' => $_smarty_tpl->tpl_vars['order']->value->id), $_smarty_tpl); ?> <div class="row" id="start_products"> <div class="col-lg-12"> <form class="container-command-top-spacing" action="<?php echo $_smarty_tpl->tpl_vars['current_index']->value; ?> &vieworder&token=<?php echo htmlspecialchars($_GET['token'], ENT_QUOTES, 'UTF-8', true); ?> &id_order=<?php echo intval($_smarty_tpl->tpl_vars['order']->value->id); ?> " method="post" onsubmit="return orderDeleteProduct('<?php echo smartyTranslate(array('s' => 'This product cannot be returned.'), $_smarty_tpl); ?> ', '<?php echo smartyTranslate(array('s' => 'Quantity to cancel is greater than quantity available.'), $_smarty_tpl); ?> ');"> <input type="hidden" name="id_order" value="<?php echo $_smarty_tpl->tpl_vars['order']->value->id; ?> " /> <div style="display: none"> <input type="hidden" value="<?php echo implode($_smarty_tpl->tpl_vars['order']->value->getWarehouseList()); ?> " id="warehouse_list" /> </div> <div class="panel"> <div class="panel-heading"> <i class="icon-shopping-cart"></i> <?php echo smartyTranslate(array('s' => 'Products'), $_smarty_tpl); ?> <span class="badge"><?php echo count($_smarty_tpl->tpl_vars['products']->value); ?> </span> </div> <div id="refundForm"> <!-- <a href="#" class="standard_refund"><img src="../img/admin/add.gif" alt="<?php echo smartyTranslate(array('s' => 'Process a standard refund'), $_smarty_tpl); ?> " /> <?php echo smartyTranslate(array('s' => 'Process a standard refund'), $_smarty_tpl); ?> </a> <a href="#" class="partial_refund"><img src="../img/admin/add.gif" alt="<?php echo smartyTranslate(array('s' => 'Process a partial refund'), $_smarty_tpl); ?> " /> <?php echo smartyTranslate(array('s' => 'Process a partial refund'), $_smarty_tpl); ?> </a> --> </div> <?php $_smarty_tpl->_capture_stack[0][] = array("TaxMethod", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['order']->value->getTaxCalculationMethod() == @constant('PS_TAX_EXC')) { ?> <?php echo smartyTranslate(array('s' => 'tax excluded.'), $_smarty_tpl); ?> <?php } else { ?> <?php echo smartyTranslate(array('s' => 'tax included.'), $_smarty_tpl); ?> <?php } ?> <?php 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['order']->value->getTaxCalculationMethod() == @constant('PS_TAX_EXC')) { ?> <input type="hidden" name="TaxMethod" value="0"> <?php } else { ?> <input type="hidden" name="TaxMethod" value="1"> <?php } ?> <div class="table-responsive"> <table class="table" id="orderProducts"> <thead> <tr> <th></th> <th><span class="title_box "><?php echo smartyTranslate(array('s' => 'Product'), $_smarty_tpl); ?> </span></th> <th> <span class="title_box "><?php echo smartyTranslate(array('s' => 'Unit Price'), $_smarty_tpl); ?> </span> <small class="text-muted"><?php echo Smarty::$_smarty_vars['capture']['TaxMethod']; ?> </small> </th> <th class="text-center"><span class="title_box "><?php echo smartyTranslate(array('s' => 'Qty'), $_smarty_tpl); ?> </span></th> <?php if ($_smarty_tpl->tpl_vars['display_warehouse']->value) { ?> <th><span class="title_box "><?php echo smartyTranslate(array('s' => 'Warehouse'), $_smarty_tpl); ?> </span></th><?php } ?> <?php if ($_smarty_tpl->tpl_vars['order']->value->hasBeenPaid()) { ?> <th class="text-center"><span class="title_box "><?php echo smartyTranslate(array('s' => 'Refunded'), $_smarty_tpl); ?> </span></th><?php } ?> <?php if ($_smarty_tpl->tpl_vars['order']->value->hasBeenDelivered() || $_smarty_tpl->tpl_vars['order']->value->hasProductReturned()) { ?> <th class="text-center"><span class="title_box "><?php echo smartyTranslate(array('s' => 'Returned'), $_smarty_tpl); ?> </span></th> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['stock_management']->value) { ?> <th class="text-center"><span class="title_box "><?php echo smartyTranslate(array('s' => 'Available quantity'), $_smarty_tpl); ?> </span></th><?php } ?> <th> <span class="title_box "><?php echo smartyTranslate(array('s' => 'Total'), $_smarty_tpl); ?> </span> <small class="text-muted"><?php echo Smarty::$_smarty_vars['capture']['TaxMethod']; ?> </small> </th> <th style="display: none;" class="add_product_fields"></th> <th style="display: none;" class="edit_product_fields"></th> <th style="display: none;" class="standard_refund_fields"> <i class="icon-minus-sign"></i> <?php if ($_smarty_tpl->tpl_vars['order']->value->hasBeenDelivered() || $_smarty_tpl->tpl_vars['order']->value->hasBeenShipped()) { ?> <?php echo smartyTranslate(array('s' => 'Return'), $_smarty_tpl); ?> <?php } elseif ($_smarty_tpl->tpl_vars['order']->value->hasBeenPaid()) { ?> <?php echo smartyTranslate(array('s' => 'Refund'), $_smarty_tpl); ?> <?php } else { ?> <?php echo smartyTranslate(array('s' => 'Cancel'), $_smarty_tpl); ?> <?php } ?> </th> <th style="display:none" class="partial_refund_fields"> <span class="title_box "><?php echo smartyTranslate(array('s' => 'Partial refund'), $_smarty_tpl); ?> </span> </th> <?php if (!$_smarty_tpl->tpl_vars['order']->value->hasBeenDelivered()) { ?> <th></th> <?php } ?> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['product']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['products']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } 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['k']->value = $_smarty_tpl->tpl_vars['product']->key; ?> <?php /* Call merged included template "controllers/orders/_customized_data.tpl" */ $_tpl_stack[] = $_smarty_tpl; $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('controllers/orders/_customized_data.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0, '2029977810555da72cbcc318-60413189'); content_555da72d38de47_10184571($_smarty_tpl); $_smarty_tpl = array_pop($_tpl_stack); /* End of included template "controllers/orders/_customized_data.tpl" */ ?> <?php /* Call merged included template "controllers/orders/_product_line.tpl" */ $_tpl_stack[] = $_smarty_tpl; $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('controllers/orders/_product_line.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0, '2029977810555da72cbcc318-60413189'); content_555da72d5599b6_01089697($_smarty_tpl); $_smarty_tpl = array_pop($_tpl_stack); /* End of included template "controllers/orders/_product_line.tpl" */ ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['can_edit']->value) { ?> <?php /* Call merged included template "controllers/orders/_new_product.tpl" */ $_tpl_stack[] = $_smarty_tpl; $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('controllers/orders/_new_product.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0, '2029977810555da72cbcc318-60413189'); content_555da72d6a9ac3_63298073($_smarty_tpl); $_smarty_tpl = array_pop($_tpl_stack); /* End of included template "controllers/orders/_new_product.tpl" */ ?> <?php } ?> </tbody> </table> </div> <?php if ($_smarty_tpl->tpl_vars['can_edit']->value) { ?> <div class="row-margin-bottom row-margin-top order_action"> <?php if (!$_smarty_tpl->tpl_vars['order']->value->hasBeenDelivered()) { ?> <button type="button" id="add_product" class="btn btn-default"> <i class="icon-plus-sign"></i> <?php echo smartyTranslate(array('s' => 'Add a product'), $_smarty_tpl); ?> </button> <?php } ?> <button id="add_voucher" class="btn btn-default" type="button" > <i class="icon-ticket"></i> <?php echo smartyTranslate(array('s' => 'Add a new discount'), $_smarty_tpl); ?> </button> </div> <?php } ?> <div class="clear"> </div> <div class="row"> <div class="col-xs-6"> <div class="alert alert-warning"> <?php echo smartyTranslate(array('s' => 'For this customer group, prices are displayed as: [1]%s[/1]', 'sprintf' => array(Smarty::$_smarty_vars['capture']['TaxMethod']), 'tags' => array('<strong>')), $_smarty_tpl); ?> <?php if (!Configuration::get('PS_ORDER_RETURN')) { ?> <br/><strong><?php echo smartyTranslate(array('s' => 'Merchandise returns are disabled'), $_smarty_tpl); ?> </strong> <?php } ?> </div> </div> <div class="col-xs-6"> <div class="panel panel-vouchers" style="<?php if (!sizeof($_smarty_tpl->tpl_vars['discounts']->value)) { ?> display:none;<?php } ?> "> <?php if (sizeof($_smarty_tpl->tpl_vars['discounts']->value) || $_smarty_tpl->tpl_vars['can_edit']->value) { ?> <div class="table-responsive"> <table class="table"> <thead> <tr> <th> <span class="title_box "> <?php echo smartyTranslate(array('s' => 'Discount name'), $_smarty_tpl); ?> </span> </th> <th> <span class="title_box "> <?php echo smartyTranslate(array('s' => 'Value'), $_smarty_tpl); ?> </span> </th> <?php if ($_smarty_tpl->tpl_vars['can_edit']->value) { ?> <th></th> <?php } ?> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars['discount'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['discount']->_loop = false; $_from = $_smarty_tpl->tpl_vars['discounts']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['discount']->key => $_smarty_tpl->tpl_vars['discount']->value) { $_smarty_tpl->tpl_vars['discount']->_loop = true; ?> <tr> <td><?php echo $_smarty_tpl->tpl_vars['discount']->value['name']; ?> </td> <td> <?php if ($_smarty_tpl->tpl_vars['discount']->value['value'] != 0.0) { ?> - <?php } ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['discount']->value['value'], 'currency' => $_smarty_tpl->tpl_vars['currency']->value->id), $_smarty_tpl); ?> </td> <?php if ($_smarty_tpl->tpl_vars['can_edit']->value) { ?> <td> <a href="<?php echo $_smarty_tpl->tpl_vars['current_index']->value; ?> &submitDeleteVoucher&id_order_cart_rule=<?php echo $_smarty_tpl->tpl_vars['discount']->value['id_order_cart_rule']; ?> &id_order=<?php echo $_smarty_tpl->tpl_vars['order']->value->id; ?> &token=<?php echo htmlspecialchars($_GET['token'], ENT_QUOTES, 'UTF-8', true); ?> "> <i class="icon-minus-sign"></i> <?php echo smartyTranslate(array('s' => 'Delete voucher'), $_smarty_tpl); ?> </a> </td> <?php } ?> </tr> <?php } ?> </tbody> </table> </div> <div class="current-edit" id="voucher_form" style="display:none;"> <?php /* Call merged included template "controllers/orders/_discount_form.tpl" */ $_tpl_stack[] = $_smarty_tpl; $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('controllers/orders/_discount_form.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0, '2029977810555da72cbcc318-60413189'); content_555da72d728801_34299088($_smarty_tpl); $_smarty_tpl = array_pop($_tpl_stack); /* End of included template "controllers/orders/_discount_form.tpl" */ ?> </div> <?php } ?> </div> <div class="panel panel-total"> <div class="table-responsive"> <table class="table"> <?php if ($_smarty_tpl->tpl_vars['order']->value->getTaxCalculationMethod() == @constant('PS_TAX_EXC')) { ?> <?php $_smarty_tpl->tpl_vars['order_product_price'] = new Smarty_variable($_smarty_tpl->tpl_vars['order']->value->total_products, null, 0); ?> <?php $_smarty_tpl->tpl_vars['order_discount_price'] = new Smarty_variable($_smarty_tpl->tpl_vars['order']->value->total_discounts_tax_excl, null, 0); ?> <?php $_smarty_tpl->tpl_vars['order_wrapping_price'] = new Smarty_variable($_smarty_tpl->tpl_vars['order']->value->total_wrapping_tax_excl, null, 0); ?> <?php $_smarty_tpl->tpl_vars['order_shipping_price'] = new Smarty_variable($_smarty_tpl->tpl_vars['order']->value->total_shipping_tax_excl, null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['order_product_price'] = new Smarty_variable($_smarty_tpl->tpl_vars['order']->value->total_products_wt, null, 0); ?> <?php $_smarty_tpl->tpl_vars['order_discount_price'] = new Smarty_variable($_smarty_tpl->tpl_vars['order']->value->total_discounts_tax_incl, null, 0); ?> <?php $_smarty_tpl->tpl_vars['order_wrapping_price'] = new Smarty_variable($_smarty_tpl->tpl_vars['order']->value->total_wrapping_tax_incl, null, 0); ?> <?php $_smarty_tpl->tpl_vars['order_shipping_price'] = new Smarty_variable($_smarty_tpl->tpl_vars['order']->value->total_shipping_tax_incl, null, 0); ?> <?php } ?> <tr id="total_products"> <td class="text-right"><?php echo smartyTranslate(array('s' => 'Products:'), $_smarty_tpl); ?> </td> <td class="amount text-right nowrap"> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['order_product_price']->value, 'currency' => $_smarty_tpl->tpl_vars['currency']->value->id), $_smarty_tpl); ?> </td> <td class="partial_refund_fields current-edit" style="display:none;"></td> </tr> <tr id="total_discounts" <?php if ($_smarty_tpl->tpl_vars['order']->value->total_discounts_tax_incl == 0) { ?> style="display: none;"<?php } ?> > <td class="text-right"><?php echo smartyTranslate(array('s' => 'Discounts'), $_smarty_tpl); ?> </td> <td class="amount text-right nowrap"> -<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['order_discount_price']->value, 'currency' => $_smarty_tpl->tpl_vars['currency']->value->id), $_smarty_tpl); ?> </td> <td class="partial_refund_fields current-edit" style="display:none;"></td> </tr> <tr id="total_wrapping" <?php if ($_smarty_tpl->tpl_vars['order']->value->total_wrapping_tax_incl == 0) { ?> style="display: none;"<?php } ?> > <td class="text-right"><?php echo smartyTranslate(array('s' => 'Wrapping'), $_smarty_tpl); ?> </td> <td class="amount text-right nowrap"> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['order_wrapping_price']->value, 'currency' => $_smarty_tpl->tpl_vars['currency']->value->id), $_smarty_tpl); ?> </td> <td class="partial_refund_fields current-edit" style="display:none;"></td> </tr> <tr id="total_shipping"> <td class="text-right"><?php echo smartyTranslate(array('s' => 'Shipping'), $_smarty_tpl); ?> </td> <td class="amount text-right nowrap" > <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['order_shipping_price']->value, 'currency' => $_smarty_tpl->tpl_vars['currency']->value->id), $_smarty_tpl); ?> </td> <td class="partial_refund_fields current-edit" style="display:none;"> <div class="input-group"> <div class="input-group-addon"> <?php echo $_smarty_tpl->tpl_vars['currency']->value->prefix; ?> <?php echo $_smarty_tpl->tpl_vars['currency']->value->suffix; ?> </div> <input type="text" name="partialRefundShippingCost" value="0" /> </div> <p class="help-block"><i class="icon-warning-sign"></i> <?php echo smartyTranslate(array('s' => '(%s)', 'sprintf' => Smarty::$_smarty_vars['capture']['TaxMethod']), $_smarty_tpl); ?> </p> </td> </tr> <?php if ($_smarty_tpl->tpl_vars['order']->value->getTaxCalculationMethod() == @constant('PS_TAX_EXC')) { ?> <tr id="total_taxes"> <td class="text-right"><?php echo smartyTranslate(array('s' => 'Taxes'), $_smarty_tpl); ?> </td> <td class="amount text-right nowrap" ><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['order']->value->total_paid_tax_incl - $_smarty_tpl->tpl_vars['order']->value->total_paid_tax_excl, 'currency' => $_smarty_tpl->tpl_vars['currency']->value->id), $_smarty_tpl); ?> </td> <td class="partial_refund_fields current-edit" style="display:none;"></td> </tr> <?php } ?> <?php $_smarty_tpl->tpl_vars['order_total_price'] = new Smarty_variable($_smarty_tpl->tpl_vars['order']->value->total_paid_tax_incl, null, 0); ?> <tr id="total_order"> <td class="text-right"><strong><?php echo smartyTranslate(array('s' => 'Total'), $_smarty_tpl); ?> </strong></td> <td class="amount text-right nowrap"> <strong><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['order_total_price']->value, 'currency' => $_smarty_tpl->tpl_vars['currency']->value->id), $_smarty_tpl); ?> </strong> </td> <td class="partial_refund_fields current-edit" style="display:none;"></td> </tr> </table> </div> </div> </div> </div> <div style="display: none;" class="standard_refund_fields form-horizontal panel"> <div class="form-group"> <?php if ($_smarty_tpl->tpl_vars['order']->value->hasBeenDelivered() && Configuration::get('PS_ORDER_RETURN')) { ?> <p class="checkbox"> <label for="reinjectQuantities"> <input type="checkbox" id="reinjectQuantities" name="reinjectQuantities" /> <?php echo smartyTranslate(array('s' => 'Re-stock products'), $_smarty_tpl); ?> </label> </p> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['order']->value->hasBeenDelivered() && $_smarty_tpl->tpl_vars['order']->value->hasBeenPaid() || $_smarty_tpl->tpl_vars['order']->value->hasBeenDelivered() && Configuration::get('PS_ORDER_RETURN')) { ?> <p class="checkbox"> <label for="generateCreditSlip"> <input type="checkbox" id="generateCreditSlip" name="generateCreditSlip" onclick="toggleShippingCost()" /> <?php echo smartyTranslate(array('s' => 'Generate a credit slip'), $_smarty_tpl); ?> </label> </p> <p class="checkbox"> <label for="generateDiscount"> <input type="checkbox" id="generateDiscount" name="generateDiscount" onclick="toggleShippingCost()" /> <?php echo smartyTranslate(array('s' => 'Generate a voucher'), $_smarty_tpl); ?> </label> </p> <p class="checkbox" id="spanShippingBack" style="display:none;"> <label for="shippingBack"> <input type="checkbox" id="shippingBack" name="shippingBack" /> <?php echo smartyTranslate(array('s' => 'Repay shipping costs'), $_smarty_tpl); ?> </label> </p> <?php if ($_smarty_tpl->tpl_vars['order']->value->total_discounts_tax_excl > 0 || $_smarty_tpl->tpl_vars['order']->value->total_discounts_tax_incl > 0) { ?> <br/><p><?php echo smartyTranslate(array('s' => 'This order has been partially paid by voucher. Choose the amount you want to refund:'), $_smarty_tpl); ?> </p> <p class="radio"> <label id="lab_refund_total_1" for="refund_total_1"> <input type="radio" value="0" name="refund_total_voucher_off" id="refund_total_1" checked="checked" /> <?php echo smartyTranslate(array('s' => 'Include amount of initial voucher: '), $_smarty_tpl); ?> </label> </p> <p class="radio"> <label id="lab_refund_total_2" for="refund_total_2"> <input type="radio" value="1" name="refund_total_voucher_off" id="refund_total_2"/> <?php echo smartyTranslate(array('s' => 'Exclude amount of initial voucher: '), $_smarty_tpl); ?> </label> </p> <div class="nowrap radio-inline"> <label id="lab_refund_total_3" class="pull-left" for="refund_total_3"> <?php echo smartyTranslate(array('s' => 'Amount of your choice: '), $_smarty_tpl); ?> <input type="radio" value="2" name="refund_total_voucher_off" id="refund_total_3"/> </label> <div class="input-group col-lg-1 pull-left"> <div class="input-group-addon"> <?php echo $_smarty_tpl->tpl_vars['currency']->value->prefix; ?> <?php echo $_smarty_tpl->tpl_vars['currency']->value->suffix; ?> </div> <input type="text" class="input fixed-width-md" name="refund_total_voucher_choose" value="0"/> </div> </div> <?php } ?> <?php } ?> </div> <?php if (!$_smarty_tpl->tpl_vars['order']->value->hasBeenDelivered() || $_smarty_tpl->tpl_vars['order']->value->hasBeenDelivered() && Configuration::get('PS_ORDER_RETURN')) { ?> <div class="row"> <input type="submit" name="cancelProduct" value="<?php if ($_smarty_tpl->tpl_vars['order']->value->hasBeenDelivered()) { echo smartyTranslate(array('s' => 'Return products'), $_smarty_tpl); } elseif ($_smarty_tpl->tpl_vars['order']->value->hasBeenPaid()) { echo smartyTranslate(array('s' => 'Refund products'), $_smarty_tpl); } else { echo smartyTranslate(array('s' => 'Cancel products'), $_smarty_tpl); } ?> " class="btn btn-default" /> </div> <?php } ?> </div> <div style="display:none;" class="partial_refund_fields"> <p class="checkbox"> <label for="reinjectQuantitiesRefund"> <input type="checkbox" id="reinjectQuantitiesRefund" name="reinjectQuantities" /> <?php echo smartyTranslate(array('s' => 'Re-stock products'), $_smarty_tpl); ?> </label> </p> <p class="checkbox"> <label for="generateDiscountRefund"> <input type="checkbox" id="generateDiscountRefund" name="generateDiscountRefund" onclick="toggleShippingCost()" /> <?php echo smartyTranslate(array('s' => 'Generate a voucher'), $_smarty_tpl); ?> </label> </p> <?php if ($_smarty_tpl->tpl_vars['order']->value->total_discounts_tax_excl > 0 || $_smarty_tpl->tpl_vars['order']->value->total_discounts_tax_incl > 0) { ?> <p><?php echo smartyTranslate(array('s' => 'This order has been partially paid by voucher. Choose the amount you want to refund:'), $_smarty_tpl); ?> </p> <p class="radio"> <label id="lab_refund_1" for="refund_1"> <input type="radio" value="0" name="refund_voucher_off" id="refund_1" checked="checked" /> <?php echo smartyTranslate(array('s' => 'Product(s) price: '), $_smarty_tpl); ?> </label> </p> <p class="radio"> <label id="lab_refund_2" for="refund_2"> <input type="radio" value="1" name="refund_voucher_off" id="refund_2"/> <?php echo smartyTranslate(array('s' => 'Product(s) price, excluding amount of initial voucher: '), $_smarty_tpl); ?> </label> </p> <div class="nowrap radio-inline"> <label id="lab_refund_3" class="pull-left" for="refund_3"> <?php echo smartyTranslate(array('s' => 'Amount of your choice: '), $_smarty_tpl); ?> <input type="radio" value="2" name="refund_voucher_off" id="refund_3"/> </label> <div class="input-group col-lg-1 pull-left"> <div class="input-group-addon"> <?php echo $_smarty_tpl->tpl_vars['currency']->value->prefix; ?> <?php echo $_smarty_tpl->tpl_vars['currency']->value->suffix; ?> </div> <input type="text" class="input fixed-width-md" name="refund_voucher_choose" value="0"/> </div> </div> <?php } ?> <br/> <button type="submit" name="partialRefund" class="btn btn-default"> <i class="icon-check"></i> <?php echo smartyTranslate(array('s' => 'Partial refund'), $_smarty_tpl); ?> </button> </div> </div> </form> </div> </div> <div class="row"> <div class="col-lg-12"> <!-- Sources block --> <?php if (sizeof($_smarty_tpl->tpl_vars['sources']->value)) { ?> <div class="panel"> <div class="panel-heading"> <i class="icon-globe"></i> <?php echo smartyTranslate(array('s' => 'Sources'), $_smarty_tpl); ?> <span class="badge"><?php echo count($_smarty_tpl->tpl_vars['sources']->value); ?> </span> </div> <ul <?php if (sizeof($_smarty_tpl->tpl_vars['sources']->value) > 3) { ?> style="height: 200px; overflow-y: scroll;"<?php } ?> > <?php $_smarty_tpl->tpl_vars['source'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['source']->_loop = false; $_from = $_smarty_tpl->tpl_vars['sources']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['source']->key => $_smarty_tpl->tpl_vars['source']->value) { $_smarty_tpl->tpl_vars['source']->_loop = true; ?> <li> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['source']->value['date_add'], 'full' => true), $_smarty_tpl); ?> <br /> <b><?php echo smartyTranslate(array('s' => 'From'), $_smarty_tpl); ?> </b><?php if ($_smarty_tpl->tpl_vars['source']->value['http_referer'] != '') { ?> <a href="<?php echo $_smarty_tpl->tpl_vars['source']->value['http_referer']; ?> "><?php echo smarty_modifier_regex_replace(parse_url($_smarty_tpl->tpl_vars['source']->value['http_referer'], @constant('PHP_URL_HOST')), '/^www./', ''); ?> </a><?php } else { ?> -<?php } ?> <br /> <b><?php echo smartyTranslate(array('s' => 'To'), $_smarty_tpl); ?> </b> <a href="http://<?php echo $_smarty_tpl->tpl_vars['source']->value['request_uri']; ?> "><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['source']->value['request_uri'], 100, '...'); ?> </a><br /> <?php if ($_smarty_tpl->tpl_vars['source']->value['keywords']) { ?> <b><?php echo smartyTranslate(array('s' => 'Keywords'), $_smarty_tpl); ?> </b> <?php echo $_smarty_tpl->tpl_vars['source']->value['keywords']; ?> <br /><?php } ?> <br /> </li> <?php } ?> </ul> </div> <?php } ?> <!-- linked orders block --> <?php if (count($_smarty_tpl->tpl_vars['order']->value->getBrother()) > 0) { ?> <div class="panel"> <div class="panel-heading"> <i class="icon-cart"></i> <?php echo smartyTranslate(array('s' => 'Linked orders'), $_smarty_tpl); ?> </div> <div class="table-responsive"> <table class="table"> <thead> <tr> <th> <?php echo smartyTranslate(array('s' => 'Order no. '), $_smarty_tpl); ?> </th> <th> <?php echo smartyTranslate(array('s' => 'Status'), $_smarty_tpl); ?> </th> <th> <?php echo smartyTranslate(array('s' => 'Amount'), $_smarty_tpl); ?> </th> <th></th> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars['brother_order'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['brother_order']->_loop = false; $_from = $_smarty_tpl->tpl_vars['order']->value->getBrother(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['brother_order']->index = -1; foreach ($_from as $_smarty_tpl->tpl_vars['brother_order']->key => $_smarty_tpl->tpl_vars['brother_order']->value) { $_smarty_tpl->tpl_vars['brother_order']->_loop = true; $_smarty_tpl->tpl_vars['brother_order']->index++; $_smarty_tpl->tpl_vars['brother_order']->first = $_smarty_tpl->tpl_vars['brother_order']->index === 0; ?> <tr> <td> <a href="<?php echo $_smarty_tpl->tpl_vars['current_index']->value; ?> &vieworder&id_order=<?php echo $_smarty_tpl->tpl_vars['brother_order']->value->id; ?> &token=<?php echo htmlspecialchars($_GET['token'], ENT_QUOTES, 'UTF-8', true); ?> ">#<?php echo $_smarty_tpl->tpl_vars['brother_order']->value->id; ?> </a> </td> <td> <?php echo $_smarty_tpl->tpl_vars['brother_order']->value->getCurrentOrderState()->name[$_smarty_tpl->tpl_vars['current_id_lang']->value]; ?> </td> <td> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['brother_order']->value->total_paid_tax_incl, 'currency' => $_smarty_tpl->tpl_vars['currency']->value->id), $_smarty_tpl); ?> </td> <td> <a href="<?php echo $_smarty_tpl->tpl_vars['current_index']->value; ?> &vieworder&id_order=<?php echo $_smarty_tpl->tpl_vars['brother_order']->value->id; ?> &token=<?php echo htmlspecialchars($_GET['token'], ENT_QUOTES, 'UTF-8', true); ?> "> <i class="icon-eye-open"></i> <?php echo smartyTranslate(array('s' => 'See the order'), $_smarty_tpl); ?> </a> </td> </tr> <?php } ?> </tbody> </table> </div> </div> <?php } ?> </div> </div> <script type="text/javascript"> var geocoder = new google.maps.Geocoder(); var delivery_map, invoice_map; $(document).ready(function() { $(".textarea-autosize").autosize(); geocoder.geocode({ address: '<?php echo addcslashes($_smarty_tpl->tpl_vars['addresses']->value['delivery']->address1, '\''); ?> ,<?php echo addcslashes($_smarty_tpl->tpl_vars['addresses']->value['delivery']->postcode, '\''); ?> ,<?php echo addcslashes($_smarty_tpl->tpl_vars['addresses']->value['delivery']->city, '\''); if (isset($_smarty_tpl->tpl_vars['addresses']->value['deliveryState']->name) && $_smarty_tpl->tpl_vars['addresses']->value['delivery']->id_state) { ?> ,<?php echo addcslashes($_smarty_tpl->tpl_vars['addresses']->value['deliveryState']->name, '\''); } ?> ,<?php echo addcslashes($_smarty_tpl->tpl_vars['addresses']->value['delivery']->country, '\''); ?> ' }, function(results, status) { if (status === google.maps.GeocoderStatus.OK) { delivery_map = new google.maps.Map(document.getElementById('map-delivery-canvas'), { zoom: 10, mapTypeId: google.maps.MapTypeId.ROADMAP, center: results[0].geometry.location }); var delivery_marker = new google.maps.Marker({ map: delivery_map, position: results[0].geometry.location, url: 'http://maps.google.com?q=<?php echo urlencode($_smarty_tpl->tpl_vars['addresses']->value['delivery']->address1); ?> ,<?php echo urlencode($_smarty_tpl->tpl_vars['addresses']->value['delivery']->postcode); ?> ,<?php echo urlencode($_smarty_tpl->tpl_vars['addresses']->value['delivery']->city); if (isset($_smarty_tpl->tpl_vars['addresses']->value['deliveryState']->name) && $_smarty_tpl->tpl_vars['addresses']->value['delivery']->id_state) { ?> ,<?php echo urlencode($_smarty_tpl->tpl_vars['addresses']->value['deliveryState']->name); } ?> ,<?php echo urlencode($_smarty_tpl->tpl_vars['addresses']->value['delivery']->country); ?> ' }); google.maps.event.addListener(delivery_marker, 'click', function() { window.open(delivery_marker.url); }); } }); geocoder.geocode({ address: '<?php echo addcslashes($_smarty_tpl->tpl_vars['addresses']->value['invoice']->address1, '\''); ?> ,<?php echo addcslashes($_smarty_tpl->tpl_vars['addresses']->value['invoice']->postcode, '\''); ?> ,<?php echo addcslashes($_smarty_tpl->tpl_vars['addresses']->value['invoice']->city, '\''); if (isset($_smarty_tpl->tpl_vars['addresses']->value['deliveryState']->name) && $_smarty_tpl->tpl_vars['addresses']->value['invoice']->id_state) { ?> ,<?php echo addcslashes($_smarty_tpl->tpl_vars['addresses']->value['deliveryState']->name, '\''); } ?> ,<?php echo addcslashes($_smarty_tpl->tpl_vars['addresses']->value['invoice']->country, '\''); ?> ' }, function(results, status) { if (status === google.maps.GeocoderStatus.OK) { invoice_map = new google.maps.Map(document.getElementById('map-invoice-canvas'), { zoom: 10, mapTypeId: google.maps.MapTypeId.ROADMAP, center: results[0].geometry.location }); invoice_marker = new google.maps.Marker({ map: invoice_map, position: results[0].geometry.location, url: 'http://maps.google.com?q=<?php echo urlencode($_smarty_tpl->tpl_vars['addresses']->value['invoice']->address1); ?> ,<?php echo urlencode($_smarty_tpl->tpl_vars['addresses']->value['invoice']->postcode); ?> ,<?php echo urlencode($_smarty_tpl->tpl_vars['addresses']->value['invoice']->city); if (isset($_smarty_tpl->tpl_vars['addresses']->value['deliveryState']->name) && $_smarty_tpl->tpl_vars['addresses']->value['invoice']->id_state) { ?> ,<?php echo urlencode($_smarty_tpl->tpl_vars['addresses']->value['deliveryState']->name); } ?> ,<?php echo urlencode($_smarty_tpl->tpl_vars['addresses']->value['invoice']->country); ?> ' }); google.maps.event.addListener(invoice_marker, 'click', function() { window.open(invoice_marker.url); }); } }); var date = new Date(); var hours = date.getHours(); if (hours < 10) hours = "0" + hours; var mins = date.getMinutes(); if (mins < 10) mins = "0" + mins; var secs = date.getSeconds(); if (secs < 10) secs = "0" + secs; $('.datepicker').datetimepicker({ prevText: '', nextText: '', dateFormat: 'yy-mm-dd ' + hours + ':' + mins + ':' + secs }); }); // Fix wrong maps center when map is hidden $('#tabAddresses').click(function(){ x = delivery_map.getZoom(); c = delivery_map.getCenter(); google.maps.event.trigger(delivery_map, 'resize'); delivery_map.setZoom(x); delivery_map.setCenter(c); x = invoice_map.getZoom(); c = invoice_map.getCenter(); google.maps.event.trigger(invoice_map, 'resize'); invoice_map.setZoom(x); invoice_map.setCenter(c); }); </script> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => 'displayAdminView'), $_smarty_tpl); ?> <?php if (isset($_smarty_tpl->tpl_vars['name_controller']->value)) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null); ob_start(); ?> display<?php echo ucfirst($_smarty_tpl->tpl_vars['name_controller']->value); ?> View<?php 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 echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => $_smarty_tpl->tpl_vars['hookName']->value), $_smarty_tpl); ?> <?php } elseif (isset($_GET['controller'])) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null); ob_start(); ?> display<?php echo htmlentities(ucfirst($_GET['controller'])); ?> View<?php 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 echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => $_smarty_tpl->tpl_vars['hookName']->value), $_smarty_tpl); ?> <?php } }
function content_56558c81d29807_87045089($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { include 'E:\\Project\\htdocs\\pf_fshow_quickstart\\tools\\smarty\\plugins\\modifier.replace.php'; } if (!is_callable('smarty_modifier_regex_replace')) { include 'E:\\Project\\htdocs\\pf_fshow_quickstart\\tools\\smarty\\plugins\\modifier.regex_replace.php'; } ?> <div class="leadin"></div> <?php if ($_smarty_tpl->tpl_vars['mod_security_warning']->value) { ?> <div class="alert alert-warning"> <?php echo smartyTranslate(array('s' => 'Apache mod_security is activated on your server. This could result in some Bad Request errors'), $_smarty_tpl); ?> </div> <?php } ?> <?php if (!empty($_smarty_tpl->tpl_vars['limit_warning']->value)) { ?> <div class="alert alert-warning"> <?php if ($_smarty_tpl->tpl_vars['limit_warning']->value['error_type'] == 'suhosin') { ?> <?php echo smartyTranslate(array('s' => 'Warning! Your hosting provider is using the Suhosin patch for PHP, which limits the maximum number of fields allowed in a form:'), $_smarty_tpl); ?> <b><?php echo $_smarty_tpl->tpl_vars['limit_warning']->value['post.max_vars']; ?> </b> <?php echo smartyTranslate(array('s' => 'for suhosin.post.max_vars.'), $_smarty_tpl); ?> <br/> <b><?php echo $_smarty_tpl->tpl_vars['limit_warning']->value['request.max_vars']; ?> </b> <?php echo smartyTranslate(array('s' => 'for suhosin.request.max_vars.'), $_smarty_tpl); ?> <br/> <?php echo smartyTranslate(array('s' => 'Please ask your hosting provider to increase the Suhosin limit to'), $_smarty_tpl); ?> <?php } else { ?> <?php echo smartyTranslate(array('s' => 'Warning! Your PHP configuration limits the maximum number of fields allowed in a form:'), $_smarty_tpl); ?> <br/> <b><?php echo $_smarty_tpl->tpl_vars['limit_warning']->value['max_input_vars']; ?> </b> <?php echo smartyTranslate(array('s' => 'for max_input_vars.'), $_smarty_tpl); ?> <br/> <?php echo smartyTranslate(array('s' => 'Please ask your hosting provider to increase this limit to'), $_smarty_tpl); ?> <?php } ?> <?php echo smartyTranslate(array('s' => '%s at least, or you will have to edit the translation files.', 'sprintf' => $_smarty_tpl->tpl_vars['limit_warning']->value['needed_limit']), $_smarty_tpl); ?> </div> <?php } else { ?> <div class="alert alert-info"> <p> <?php echo smartyTranslate(array('s' => 'Click on the title of a section to open its fieldsets.'), $_smarty_tpl); ?> </p> </div> <div class="panel"> <p><?php echo smartyTranslate(array('s' => 'Expressions to translate:'), $_smarty_tpl); ?> <span class="badge"><?php echo smartyTranslate(array('s' => '%d', 'sprintf' => $_smarty_tpl->tpl_vars['count']->value), $_smarty_tpl); ?> </span></p> <p><?php echo smartyTranslate(array('s' => 'Total missing expressions:'), $_smarty_tpl); ?> <span class="badge"><?php echo smartyTranslate(array('s' => '%d', 'sprintf' => $_smarty_tpl->tpl_vars['missing_translations']->value), $_smarty_tpl); ?> </p> </div> <form method="post" id="<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> _form" action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['url_submit']->value, ENT_QUOTES, 'UTF-8', true); ?> " class="form-horizontal"> <div class="panel"> <input type="hidden" name="lang" value="<?php echo $_smarty_tpl->tpl_vars['lang']->value; ?> " /> <input type="hidden" name="type" value="<?php echo $_smarty_tpl->tpl_vars['type']->value; ?> " /> <input type="hidden" name="theme" value="<?php echo $_smarty_tpl->tpl_vars['theme']->value; ?> " /> <div id="BoxUseSpecialSyntax"> <div class="alert alert-warning"> <p> <?php echo smartyTranslate(array('s' => 'Some of these expressions use this special syntax: %s.', 'sprintf' => '%d'), $_smarty_tpl); ?> <br /> <?php echo smartyTranslate(array('s' => 'You MUST use this syntax in your translations. Here are several examples:'), $_smarty_tpl); ?> </p> <ul> <li>"<?php echo smartyTranslate(array('s' => 'There are [1]%d[/1] products', 'tags' => array('<strong>')), $_smarty_tpl); ?> ": <?php echo smartyTranslate(array('s' => '"%s" will be replaced by a number.', 'sprintf' => '%d'), $_smarty_tpl); ?> </li> <li>"<?php echo smartyTranslate(array('s' => 'List of pages in [1]%s[/1]', 'tags' => array('<strong>')), $_smarty_tpl); ?> ": <?php echo smartyTranslate(array('s' => '"%s" will be replaced by a string.', 'sprintf' => '%s'), $_smarty_tpl); ?> </li> <li>"<?php echo smartyTranslate(array('s' => 'Feature: [1]%1$s[/1] ([1]%2$d[/1] values)', 'tags' => array('<strong>')), $_smarty_tpl); ?> ": <?php echo smartyTranslate(array('s' => 'The numbers enable you to reorder the variables when necessary.'), $_smarty_tpl); ?> </li> </ul> </div> </div> <script type="text/javascript"> $(document).ready(function(){ $('a.useSpecialSyntax').click(function(){ var syntax = $(this).find('img').attr('alt'); $('#BoxUseSpecialSyntax .syntax span').html(syntax+"."); }); }); </script> <div class="panel-footer"> <a name="submitTranslations<?php echo ucfirst($_smarty_tpl->tpl_vars['type']->value); ?> " href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cancel_url']->value, ENT_QUOTES, 'UTF-8', true); ?> " class="btn btn-default"> <i class="process-icon-cancel"></i> <?php echo smartyTranslate(array('s' => 'Cancel'), $_smarty_tpl); ?> </a> <?php echo $_smarty_tpl->tpl_vars['toggle_button']->value; ?> <button type="submit" id="<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> _form_submit_btn" name="submitTranslations<?php echo ucfirst($_smarty_tpl->tpl_vars['type']->value); ?> " class="btn btn-default pull-right"><i class="process-icon-save"></i> <?php echo smartyTranslate(array('s' => 'Save'), $_smarty_tpl); ?> </button> <button type="submit" id="<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> _form_submit_btn" name="submitTranslations<?php echo ucfirst($_smarty_tpl->tpl_vars['type']->value); ?> AndStay" class="btn btn-default pull-right"><i class="process-icon-save"></i> <?php echo smartyTranslate(array('s' => 'Save and stay'), $_smarty_tpl); ?> </button> </div> </div> <?php $_smarty_tpl->tpl_vars['theme'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['theme']->_loop = false; $_smarty_tpl->tpl_vars['theme_name'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['modules_translations']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['theme']->key => $_smarty_tpl->tpl_vars['theme']->value) { $_smarty_tpl->tpl_vars['theme']->_loop = true; $_smarty_tpl->tpl_vars['theme_name']->value = $_smarty_tpl->tpl_vars['theme']->key; ?> <?php if ($_smarty_tpl->tpl_vars['theme_name']->value) { ?> <h2>><?php echo smartyTranslate(array('s' => 'Theme:'), $_smarty_tpl); ?> <a name="<?php echo $_smarty_tpl->tpl_vars['theme_name']->value; ?> "><?php echo $_smarty_tpl->tpl_vars['theme_name']->value; ?> </h2><?php } ?> <?php $_smarty_tpl->tpl_vars['module'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['module']->_loop = false; $_smarty_tpl->tpl_vars['module_name'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['theme']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['module']->key => $_smarty_tpl->tpl_vars['module']->value) { $_smarty_tpl->tpl_vars['module']->_loop = true; $_smarty_tpl->tpl_vars['module_name']->value = $_smarty_tpl->tpl_vars['module']->key; ?> <h2><?php echo smartyTranslate(array('s' => 'Module:'), $_smarty_tpl); ?> <a name="<?php echo $_smarty_tpl->tpl_vars['module_name']->value; ?> "><?php echo $_smarty_tpl->tpl_vars['module_name']->value; ?> </a></h2> <?php $_smarty_tpl->tpl_vars['newLang'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['newLang']->_loop = false; $_smarty_tpl->tpl_vars['template_name'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['module']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['newLang']->key => $_smarty_tpl->tpl_vars['newLang']->value) { $_smarty_tpl->tpl_vars['newLang']->_loop = true; $_smarty_tpl->tpl_vars['template_name']->value = $_smarty_tpl->tpl_vars['newLang']->key; ?> <?php if (!empty($_smarty_tpl->tpl_vars['newLang']->value)) { ?> <?php $_smarty_tpl->tpl_vars['occurrences'] = new Smarty_variable(0, null, 0); ?> <?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['value']->_loop = false; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['newLang']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) { $_smarty_tpl->tpl_vars['value']->_loop = true; $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['value']->key; ?> <?php if (empty($_smarty_tpl->tpl_vars['value']->value['trad'])) { $_smarty_tpl->tpl_vars['occurrences'] = new Smarty_variable($_smarty_tpl->tpl_vars['occurrences']->value + 1, null, 0); } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['occurrences']->value > 0) { ?> <?php $_smarty_tpl->tpl_vars['missing_translations_module'] = new Smarty_variable($_smarty_tpl->tpl_vars['occurrences']->value, null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['missing_translations_module'] = new Smarty_variable(0, null, 0); ?> <?php } ?> <div class="panel"> <h3 onclick="$('#<?php echo $_smarty_tpl->tpl_vars['theme_name']->value; ?> _<?php echo $_smarty_tpl->tpl_vars['module_name']->value; ?> _<?php echo smarty_modifier_replace($_smarty_tpl->tpl_vars['template_name']->value, '.', '_'); ?> ').slideToggle();"><?php if ($_smarty_tpl->tpl_vars['theme_name']->value) { echo $_smarty_tpl->tpl_vars['theme_name']->value; ?> - <?php } echo $_smarty_tpl->tpl_vars['template_name']->value; ?> <span class="badge"><?php echo count($_smarty_tpl->tpl_vars['newLang']->value); ?> </span> <?php echo smartyTranslate(array('s' => 'expressions'), $_smarty_tpl); ?> <span class="label label-danger"><?php echo $_smarty_tpl->tpl_vars['missing_translations_module']->value; ?> </span> </h3> <div name="<?php echo $_smarty_tpl->tpl_vars['type']->value; ?> _div" id="<?php echo $_smarty_tpl->tpl_vars['theme_name']->value; ?> _<?php echo $_smarty_tpl->tpl_vars['module_name']->value; ?> _<?php echo smarty_modifier_replace($_smarty_tpl->tpl_vars['template_name']->value, '.', '_'); ?> " style="display:<?php if ($_smarty_tpl->tpl_vars['missing_translations_module']->value) { ?> block<?php } else { ?> none<?php } ?> "> <table class="table"> <?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['value']->_loop = false; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['newLang']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) { $_smarty_tpl->tpl_vars['value']->_loop = true; $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['value']->key; ?> <tr> <td width="40%"><?php echo stripslashes($_smarty_tpl->tpl_vars['key']->value); ?> </td> <td>=</td> <td> <?php $_smarty_tpl->_capture_stack[0][] = array('default', "name", null); ob_start(); echo strtolower($_smarty_tpl->tpl_vars['module_name']->value); if ($_smarty_tpl->tpl_vars['theme_name']->value) { ?> _<?php echo strtolower($_smarty_tpl->tpl_vars['theme_name']->value); } ?> _<?php echo strtolower($_smarty_tpl->tpl_vars['template_name']->value); ?> _<?php echo md5($_smarty_tpl->tpl_vars['key']->value); 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 (strlen($_smarty_tpl->tpl_vars['key']->value) < $_smarty_tpl->tpl_vars['textarea_sized']->value) { ?> <input type="text" style="width: 450px<?php if (empty($_smarty_tpl->tpl_vars['value']->value['trad'])) { ?> ;background:#FBB<?php } ?> " name="<?php echo md5($_smarty_tpl->tpl_vars['name']->value); ?> " value="<?php echo stripslashes(smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['value']->value['trad'], '#"#', '"')); ?> "' /> <?php } else { ?> <textarea rows="<?php echo intval(strlen($_smarty_tpl->tpl_vars['key']->value) / $_smarty_tpl->tpl_vars['textarea_sized']->value); ?> " style="width: 450px<?php if (empty($_smarty_tpl->tpl_vars['value']->value['trad'])) { ?> ;background:#FBB<?php } ?> " name="<?php echo md5($_smarty_tpl->tpl_vars['name']->value); ?> "><?php echo stripslashes(smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['value']->value['trad'], '#"#', '"')); ?> </textarea> <?php } ?> </td> <td> <?php if (isset($_smarty_tpl->tpl_vars['value']->value['use_sprintf']) && $_smarty_tpl->tpl_vars['value']->value['use_sprintf']) { ?> <a class="useSpecialSyntax" title="<?php echo smartyTranslate(array('s' => 'This expression uses a special syntax:'), $_smarty_tpl); ?> <?php echo $_smarty_tpl->tpl_vars['value']->value['use_sprintf']; ?> "> <img src="<?php echo @constant('_PS_IMG_'); ?> admin/error.png" alt="<?php echo $_smarty_tpl->tpl_vars['value']->value['use_sprintf']; ?> " /> </a> <?php } ?> </td> </tr> <?php } ?> </table> </div> <div class="panel-footer"> <a name="submitTranslations<?php echo ucfirst($_smarty_tpl->tpl_vars['type']->value); ?> " href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cancel_url']->value, ENT_QUOTES, 'UTF-8', true); ?> " class="btn btn-default"><i class="process-icon-cancel"></i> <?php echo smartyTranslate(array('s' => 'Cancel'), $_smarty_tpl); ?> </a> <button type="submit" id="<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> _form_submit_btn" name="submitTranslations<?php echo ucfirst($_smarty_tpl->tpl_vars['type']->value); ?> " class="btn btn-default pull-right"><i class="process-icon-save"></i> <?php echo smartyTranslate(array('s' => 'Save'), $_smarty_tpl); ?> </button> <button type="submit" id="<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> _form_submit_btn" name="submitTranslations<?php echo ucfirst($_smarty_tpl->tpl_vars['type']->value); ?> AndStay" class="btn btn-default pull-right"><i class="process-icon-save"></i> <?php echo smartyTranslate(array('s' => 'Save and stay'), $_smarty_tpl); ?> </button> </div> </div> <?php } ?> <?php } ?> <?php } ?> <?php } ?> <?php } ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => 'displayAdminView'), $_smarty_tpl); ?> <?php if (isset($_smarty_tpl->tpl_vars['name_controller']->value)) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null); ob_start(); ?> display<?php echo ucfirst($_smarty_tpl->tpl_vars['name_controller']->value); ?> View<?php 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 echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => $_smarty_tpl->tpl_vars['hookName']->value), $_smarty_tpl); ?> <?php } elseif (isset($_GET['controller'])) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null); ob_start(); ?> display<?php echo htmlentities(ucfirst($_GET['controller'])); ?> View<?php 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 echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => $_smarty_tpl->tpl_vars['hookName']->value), $_smarty_tpl); ?> <?php } }
function content_56a4d3b53a8f00_49887129($_smarty_tpl) { if (!is_callable('smarty_modifier_regex_replace')) { include 'C:\\xampp\\htdocs\\kertasmakanan\\tools\\smarty\\plugins\\modifier.regex_replace.php'; } ?> <?php $_smarty_tpl->_capture_stack[0][] = array('path', null, null); ob_start(); ?> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account', true), ENT_QUOTES, 'UTF-8', true); ?> "><?php echo smartyTranslate(array('s' => 'My account'), $_smarty_tpl); ?> </a><span class="navigation-pipe"><?php echo $_smarty_tpl->tpl_vars['navigationPipe']->value; ?> </span><span class="navigation_page"><?php echo smartyTranslate(array('s' => 'Credit slips'), $_smarty_tpl); ?> </span><?php 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(); } ?> <h1 class="page-heading bottom-indent"> <?php echo smartyTranslate(array('s' => 'Credit slips'), $_smarty_tpl); ?> </h1> <p class="info-title"> <?php echo smartyTranslate(array('s' => 'Credit slips you have received after canceled orders'), $_smarty_tpl); ?> . </p> <div class="block-center" id="block-history"> <?php if ($_smarty_tpl->tpl_vars['ordersSlip']->value && count($_smarty_tpl->tpl_vars['ordersSlip']->value)) { ?> <table id="order-list" class="table table-bordered footab"> <thead> <tr> <th data-sort-ignore="true" class="first_item"><?php echo smartyTranslate(array('s' => 'Credit slip'), $_smarty_tpl); ?> </th> <th data-sort-ignore="true" class="item"><?php echo smartyTranslate(array('s' => 'Order'), $_smarty_tpl); ?> </th> <th class="item"><?php echo smartyTranslate(array('s' => 'Date issued'), $_smarty_tpl); ?> </th> <th data-sort-ignore="true" data-hide="phone" class="last_item"><?php echo smartyTranslate(array('s' => 'View credit slip'), $_smarty_tpl); ?> </th> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars['slip'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['slip']->_loop = false; $_from = $_smarty_tpl->tpl_vars['ordersSlip']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['slip']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['slip']->iteration = 0; $_smarty_tpl->tpl_vars['slip']->index = -1; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['index'] = -1; foreach ($_from as $_smarty_tpl->tpl_vars['slip']->key => $_smarty_tpl->tpl_vars['slip']->value) { $_smarty_tpl->tpl_vars['slip']->_loop = true; $_smarty_tpl->tpl_vars['slip']->iteration++; $_smarty_tpl->tpl_vars['slip']->index++; $_smarty_tpl->tpl_vars['slip']->first = $_smarty_tpl->tpl_vars['slip']->index === 0; $_smarty_tpl->tpl_vars['slip']->last = $_smarty_tpl->tpl_vars['slip']->iteration === $_smarty_tpl->tpl_vars['slip']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['first'] = $_smarty_tpl->tpl_vars['slip']->first; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['index']++; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['last'] = $_smarty_tpl->tpl_vars['slip']->last; ?> <tr class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['first']) { ?> first_item<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['last']) { ?> last_item<?php } else { ?> item<?php } ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['index'] % 2) { ?> alternate_item<?php } ?> "> <td class="bold"> <span class="color-myaccount"> <?php echo smartyTranslate(array('s' => '#%s', 'sprintf' => sprintf("%06d", $_smarty_tpl->tpl_vars['slip']->value['id_order_slip'])), $_smarty_tpl); ?> </span> </td> <td class="history_method"> <a class="color-myaccount" href="javascript:showOrder(1, <?php echo intval($_smarty_tpl->tpl_vars['slip']->value['id_order']); ?> , '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('order-detail'), ENT_QUOTES, 'UTF-8', true); ?> ');"> <?php echo smartyTranslate(array('s' => '#%s', 'sprintf' => sprintf("%06d", $_smarty_tpl->tpl_vars['slip']->value['id_order'])), $_smarty_tpl); ?> </a> </td> <td class="bold" data-value="<?php echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['slip']->value['date_add'], "/[\\-\\:\\ ]/", ''); ?> "> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['slip']->value['date_add'], 'full' => 0), $_smarty_tpl); ?> </td> <td class="history_invoice"> <a class="link-button" href="<?php ob_start(); echo intval($_smarty_tpl->tpl_vars['slip']->value['id_order_slip']); $_tmp12 = ob_get_clean(); echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('pdf-order-slip', true, null, "id_order_slip=" . $_tmp12), ENT_QUOTES, 'UTF-8', true); ?> " title="<?php echo smartyTranslate(array('s' => 'Credit slip'), $_smarty_tpl); ?> <?php echo smartyTranslate(array('s' => '#%s', 'sprintf' => sprintf("%06d", $_smarty_tpl->tpl_vars['slip']->value['id_order_slip'])), $_smarty_tpl); ?> "> <i class="icon-file-text large"></i><?php echo smartyTranslate(array('s' => 'PDF'), $_smarty_tpl); ?> </a> </td> </tr> <?php } ?> </tbody> </table> <div id="block-order-detail" class="unvisible"> </div> <?php } else { ?> <p class="alert alert-warning"><?php echo smartyTranslate(array('s' => 'You have not received any credit slips.'), $_smarty_tpl); ?> </p> <?php } ?> </div><!-- #block-history --> <ul class="footer_links clearfix"> <li> <a class="btn btn-default button button-small" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account', true), ENT_QUOTES, 'UTF-8', true); ?> "> <span> <i class="icon-chevron-left"></i> <?php echo smartyTranslate(array('s' => 'Back to your account'), $_smarty_tpl); ?> </span> </a> </li> <li> <a class="btn btn-default button button-small" href="<?php if (isset($_smarty_tpl->tpl_vars['force_ssl']->value) && $_smarty_tpl->tpl_vars['force_ssl']->value) { echo $_smarty_tpl->tpl_vars['base_dir_ssl']->value; } else { echo $_smarty_tpl->tpl_vars['base_dir']->value; } ?> "> <span> <i class="icon-chevron-left"></i> <?php echo smartyTranslate(array('s' => 'Home'), $_smarty_tpl); ?> </span> </a> </li> </ul> <?php }
<param name="quality" value="high" /> <param name="loop" value="true" /> <param name="FlashVars" value="playerMode=embedded" /> <param name="bgcolor" value="#000000" /> </object> <?php } else { ?> <img width="<?php echo $this->_tpl_vars['actbanner']['0']['width']; ?> " height="<?php echo $this->_tpl_vars['actbanner']['0']['height']; ?> " src="<?php echo is_array($_tmp = $_SESSION['site_bannerdir']) ? $this->_run_mod_handler('regex_replace', true, $_tmp, "|/\$|", "") : smarty_modifier_regex_replace($_tmp, "|/\$|", ""); ?> /<?php echo $this->_tpl_vars['actbanner']['0']['pic']; ?> " /> <?php } ?> <?php } else { ?> <?php echo $this->_tpl_vars['actbanner']['0']['bcode']; ?>
function content_5533ffe0e57f41_80819445($_smarty_tpl) { if (!is_callable('smarty_modifier_regex_replace')) { include 'C:\\wamp\\www\\tienda\\tools\\smarty\\plugins\\modifier.regex_replace.php'; } ?> <!-- Block languages module --> <?php if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) { ?> <div id="languages-block-top" class="languages-block"> <?php $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['language']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) { $_smarty_tpl->tpl_vars['language']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['language']->key; ?> <?php if ($_smarty_tpl->tpl_vars['language']->value['iso_code'] == $_smarty_tpl->tpl_vars['lang_iso']->value) { ?> <div class="current"> <span><?php echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['language']->value['name'], "/\\s\\(.*\\)" . "\$" . "/", ''); ?> </span> </div> <?php } ?> <?php } ?> <ul id="first-languages" class="languages-block_ul toogle_content"> <?php $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['language']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) { $_smarty_tpl->tpl_vars['language']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['language']->key; ?> <li <?php if ($_smarty_tpl->tpl_vars['language']->value['iso_code'] == $_smarty_tpl->tpl_vars['lang_iso']->value) { ?> class="selected"<?php } ?> > <?php if ($_smarty_tpl->tpl_vars['language']->value['iso_code'] != $_smarty_tpl->tpl_vars['lang_iso']->value) { ?> <?php $_smarty_tpl->tpl_vars['indice_lang'] = new Smarty_variable($_smarty_tpl->tpl_vars['language']->value['id_lang'], null, 0); ?> <?php if (isset($_smarty_tpl->tpl_vars['lang_rewrite_urls']->value[$_smarty_tpl->tpl_vars['indice_lang']->value])) { ?> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['lang_rewrite_urls']->value[$_smarty_tpl->tpl_vars['indice_lang']->value], ENT_QUOTES, 'UTF-8', true); ?> " title="<?php echo $_smarty_tpl->tpl_vars['language']->value['name']; ?> "> <?php } else { ?> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getLanguageLink($_smarty_tpl->tpl_vars['language']->value['id_lang']), ENT_QUOTES, 'UTF-8', true); ?> " title="<?php echo $_smarty_tpl->tpl_vars['language']->value['name']; ?> "> <?php } ?> <?php } ?> <span><?php echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['language']->value['name'], "/\\s\\(.*\\)" . "\$" . "/", ''); ?> </span> <?php if ($_smarty_tpl->tpl_vars['language']->value['iso_code'] != $_smarty_tpl->tpl_vars['lang_iso']->value) { ?> </a> <?php } ?> </li> <?php } ?> </ul> </div> <?php } ?> <!-- /Block languages module --> <?php }
compiled from inc_help.tpl */ require_once SMARTY_CORE_DIR . 'core.load_plugins.php'; smarty_core_load_plugins(array('plugins' => array(array('function', 'lang_get', 'inc_help.tpl', 25, false), array('modifier', 'default', 'inc_help.tpl', 26, false), array('modifier', 'regex_replace', 'inc_help.tpl', 29, false), array('modifier', 'replace', 'inc_help.tpl', 29, false), array('modifier', 'escape', 'inc_help.tpl', 36, false))), $this); ?> <?php echo lang_get_smarty(array('s' => 'help', 'var' => 'img_alt'), $this); ?> <?php $this->assign('img_style', is_array($_tmp = @$this->_tpl_vars['inc_help_style']) ? $this->_run_mod_handler('default', true, $_tmp, "vertical-align: top;") : smarty_modifier_default($_tmp, "vertical-align: top;")); echo lang_get_smarty(array('var' => 'help_text_raw', 's' => $this->_tpl_vars['helptopic']), $this); ?> <?php $this->assign('help_text', is_array($_tmp = is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['help_text_raw']) ? $this->_run_mod_handler('regex_replace', true, $_tmp, "/[\r\t\n]/", ' ') : smarty_modifier_regex_replace($_tmp, "/[\r\t\n]/", ' ')) ? $this->_run_mod_handler('replace', true, $_tmp, "'", "'") : smarty_modifier_replace($_tmp, "'", "'")) ? $this->_run_mod_handler('replace', true, $_tmp, "\"", """) : smarty_modifier_replace($_tmp, "\"", """)) ? $this->_run_mod_handler('default', true, $_tmp, "Help: Localization/Text is missing.") : smarty_modifier_default($_tmp, "Help: Localization/Text is missing.")); ?> <script type="text/javascript"> <!-- var help_localized_text = "<img style='float: right' " + "src='<?php echo @TL_THEME_IMG_DIR; ?> /x-icon.gif' " + "onclick='javascript: close_help();' /> <?php echo is_array($_tmp = $this->_tpl_vars['help_text']) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript'); ?> "; //--> </script>
function content_5612186e58c03($_smarty_tpl) { if (!is_callable('smarty_function_autover')) { include '/usr/share/nginx/wx/ThinkPHP/Library/Vendor/Smarty/plugins/function.autover.php'; } if (!is_callable('smarty_modifier_regex_replace')) { include '/usr/share/nginx/wx/ThinkPHP/Library/Vendor/Smarty/plugins/modifier.regex_replace.php'; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <meta name="renderer" content="webkit"> <meta http-equiv="X-UA-Compatible" content="IE=Edge" > <title>shopflow</title> <link rel="stylesheet" href="<?php echo smarty_function_autover(array('assets_path' => $_smarty_tpl->tpl_vars['assets_path']->value, 'filepath' => '/css/index.css'), $_smarty_tpl); ?> " /> <?php if ($_smarty_tpl->tpl_vars['DEBUG']->value) { ?> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['assets_path']->value; ?> /js/sea.js" id="seajsnode"></script> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['assets_path']->value; ?> /js/libs/sea/plugin-text.js"></script> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['assets_path']->value; ?> /js/libs/sea/plugin-css.js"></script> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['assets_path']->value; ?> /js/config.js"></script> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['assets_path']->value; ?> /js/jquery-1.11.0.js"></script> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['assets_path']->value; ?> /js/libs/underscore.js"></script> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['assets_path']->value; ?> /js/libs/json2.js"></script> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['assets_path']->value; ?> /js/libs/handlebars-1.3.0.js"></script> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['assets_path']->value; ?> /js/libs/jquery.transit.js"></script> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['assets_path']->value; ?> /js/libs/jquery.qtip.js"></script> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['assets_path']->value; ?> /js/libs/icheck.js"></script> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['assets_path']->value; ?> /js/libs/style-select.js"></script> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['assets_path']->value; ?> /js/libs/jquery.validate.js"></script> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['assets_path']->value; ?> /js/libs/accounting.js"></script> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['assets_path']->value; ?> /js/libs/nprogress.js"></script> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['assets_path']->value; ?> /js/main.js"></script> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['assets_path']->value; ?> /js/main.use.js"></script> <?php } else { ?> <script type="text/javascript" src="<?php echo smarty_function_autover(array('assets_path' => $_smarty_tpl->tpl_vars['assets_path']->value, 'filepath' => '/js/sea.js'), $_smarty_tpl); ?> " id="seajsnode"></script> <script type="text/javascript" src="<?php echo smarty_function_autover(array('assets_path' => $_smarty_tpl->tpl_vars['assets_path']->value, 'filepath' => '/js/jquery-1.11.0.js'), $_smarty_tpl); ?> "></script> <script type="text/javascript" src="<?php echo smarty_function_autover(array('assets_path' => $_smarty_tpl->tpl_vars['assets_path']->value, 'filepath' => '/js/libs/index.js'), $_smarty_tpl); ?> "></script> <script type="text/javascript" src="<?php echo smarty_function_autover(array('assets_path' => $_smarty_tpl->tpl_vars['assets_path']->value, 'filepath' => '/js/main.js'), $_smarty_tpl); ?> "></script> <?php } ?> <!--[if lte IE 7]> <link rel="stylesheet" href="<?php echo smarty_function_autover(array('assets_path' => $_smarty_tpl->tpl_vars['assets_path']->value, 'filepath' => '/css/ie6.css'), $_smarty_tpl); ?> " /> <script type="text/javascript" src="<?php echo smarty_function_autover(array('assets_path' => $_smarty_tpl->tpl_vars['assets_path']->value, 'filepath' => '/js/ie6.js'), $_smarty_tpl); ?> "></script> <![endif]--> </head> <body class="page-yl"> <?php echo $_smarty_tpl->getSubTemplate("../Common/header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> <div class="main container"> <div class="main-side"> <?php if ($_smarty_tpl->tpl_vars['menu']->value == 'product') { ?> <?php /* Call merged included template "../Common/side_nav/product.html" */ $_tpl_stack[] = $_smarty_tpl; $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate("../Common/side_nav/product.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0, '18379091375612186e0392a6-43910549'); content_5612186e0fcd5($_smarty_tpl); $_smarty_tpl = array_pop($_tpl_stack); /* End of included template "../Common/side_nav/product.html" */ ?> <?php } elseif ($_smarty_tpl->tpl_vars['menu']->value == 'weixin') { ?> <?php /* Call merged included template "../Common/side_nav/weixin.html" */ $_tpl_stack[] = $_smarty_tpl; $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate("../Common/side_nav/weixin.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0, '18379091375612186e0392a6-43910549'); content_5612186e11e6d($_smarty_tpl); $_smarty_tpl = array_pop($_tpl_stack); /* End of included template "../Common/side_nav/weixin.html" */ ?> <?php } elseif ($_smarty_tpl->tpl_vars['menu']->value == 'user') { ?> <?php /* Call merged included template "../Common/side_nav/user.html" */ $_tpl_stack[] = $_smarty_tpl; $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate("../Common/side_nav/user.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0, '18379091375612186e0392a6-43910549'); content_5612186e142e8($_smarty_tpl); $_smarty_tpl = array_pop($_tpl_stack); /* End of included template "../Common/side_nav/user.html" */ ?> <?php } ?> </div> <div class="main-cont"> <div class="page-header"> <h2 class="page-title">自定义菜单</h2> <div class="btns"> <a href="javascript:history.go(-1);" >返回</a> </div> </div> <div class="cont-wrap"> <?php /* Call merged included template "../Shop/common/weixin_tabs.html" */ $_tpl_stack[] = $_smarty_tpl; $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate("../Shop/common/weixin_tabs.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0, '18379091375612186e0392a6-43910549'); content_5612186e170de($_smarty_tpl); $_smarty_tpl = array_pop($_tpl_stack); /* End of included template "../Shop/common/weixin_tabs.html" */ ?> <div class="cont-wrap"> <form action="/admin/weixin/savemenu" method="post" id="J_formWxmenu" class="wx-menu-form"> <div class="form-group"> <label for="name" class="ctl-label"><em>*</em>菜单名:</label> <input type="text" name="name" id="name" value="<?php echo $_smarty_tpl->tpl_vars['menus']->value['name']; ?> " class="input-text required"> </div> <div class="form-group"> <label for="weight" class="ctl-label">排序:</label> <input type="text" name="weight" id="weight" value="<?php if ($_smarty_tpl->tpl_vars['menus']->value['weight']) { echo $_smarty_tpl->tpl_vars['menus']->value['weight']; } else { ?> 0<?php } ?> " class="input-text number"> </div> <div class="form-group"> <label class="ctl-label">点击菜单:</label> <div class="ctl"> <input type="radio" name="s" id="s_reply" value="reply"<?php if ($_smarty_tpl->tpl_vars['menus']->value['type'] == 'view' || $_smarty_tpl->tpl_vars['menus']->value['type'] == 'click' || !$_smarty_tpl->tpl_vars['menus']->value['id']) { ?> checked<?php } ?> > <label for="s_reply"> 回复内容</label> <input type="radio" name="s" id="s_sub" value="sub"<?php if ($_smarty_tpl->tpl_vars['menus']->value['type'] == 'sub' && $_smarty_tpl->tpl_vars['menus']->value['id']) { ?> checked<?php } ?> > <label for="s_sub"> 弹出二级菜单</label> </div> </div> <div id="J_formWxreply"<?php if ($_smarty_tpl->tpl_vars['menus']->value['type'] == 'sub' && $_smarty_tpl->tpl_vars['menus']->value['id']) { ?> class="hide"<?php } ?> > <div class="form-group"> <div class="ctl"> <div class="wgt-tabs"> <ul> <li class="tab"> <label for="first[Which-one][0]"<?php if ($_smarty_tpl->tpl_vars['menus']->value['first']['ww'] == 0) { ?> class="cur"<?php } ?> >活动或商品</label> <input type="radio" name="first[Which-one]" id="first[Which-one][0]" value="0" class="hide"<?php if ($_smarty_tpl->tpl_vars['menus']->value['first']['ww'] == 0) { ?> checked<?php } ?> > </li> <li class="tab"> <label for="first[Which-one][1]"<?php if ($_smarty_tpl->tpl_vars['menus']->value['first']['ww'] == 1) { ?> class="cur"<?php } ?> >链接</label> <input type="radio" name="first[Which-one]" id="first[Which-one][1]" value="1" class="hide"<?php if ($_smarty_tpl->tpl_vars['menus']->value['first']['ww'] == 1) { ?> checked<?php } ?> > </li> <li class="tab"> <label for="first[Which-one][2]"<?php if ($_smarty_tpl->tpl_vars['menus']->value['first']['ww'] == 2) { ?> class="cur"<?php } ?> >文字</label> <input type="radio" name="first[Which-one]" id="first[Which-one][2]" value="2" class="hide"<?php if ($_smarty_tpl->tpl_vars['menus']->value['first']['ww'] == 2) { ?> checked<?php } ?> > </li> <li class="tab"> <label for="first[Which-one][3]"<?php if ($_smarty_tpl->tpl_vars['menus']->value['first']['ww'] == 3) { ?> class="cur"<?php } ?> >图文消息</label> <input type="radio" name="first[Which-one]" id="first[Which-one][3]" value="3" class="hide"<?php if ($_smarty_tpl->tpl_vars['menus']->value['first']['ww'] == 3) { ?> checked<?php } ?> > </li> </ul> </div> <div class="wgt-tabs-cont sub0<?php if ($_smarty_tpl->tpl_vars['menus']->value['first']['ww'] != 0) { ?> hide<?php } ?> "> <button type="button" class="J_selector btn btn-large"><?php echo ($tmp = @$_smarty_tpl->tpl_vars['menus']->value['msg_data']['text']) === null || $tmp === '' ? "选择活动或商品" : $tmp; ?> </button> <input type="hidden" name="act_text[0]" value="<?php echo $_smarty_tpl->tpl_vars['menus']->value['msg_data']['text']; ?> "> <input type="hidden" name="act_url[0]" value="<?php if ($_smarty_tpl->tpl_vars['menus']->value['first']['ww'] == 0) { ?> http://<?php echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['menus']->value['msg_data']['url'], '/http:\\/\\//', ''); } ?> "> </div> <div class="wgt-tabs-cont sub1<?php if ($_smarty_tpl->tpl_vars['menus']->value['first']['ww'] != 1) { ?> hide<?php } ?> "> <input type="text" name="url[0]" value="<?php echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['menus']->value['msg_data']['url'], '/http:\\/\\//', ''); ?> " class="input-text input-url"> </div> <div class="wgt-tabs-cont sub2<?php if ($_smarty_tpl->tpl_vars['menus']->value['first']['ww'] != 2) { ?> hide<?php } ?> "><?php if ($_smarty_tpl->tpl_vars['menus']->value['first']['ww'] == 2) { ?> <div class="text-kindeditor"><?php echo $_smarty_tpl->tpl_vars['menus']->value['content']; ?> </div> <button type="button" class="J_text btn btn-large">编辑文字消息</button> <input type="hidden" name="qq[0]" value="<?php echo rawurlencode($_smarty_tpl->tpl_vars['menus']->value['json']); ?> "><?php } else { ?> <button type="button" class="J_text btn btn-large">添加文字消息</button> <input type="hidden" name="qq[0]" value=""><?php } ?> </div> <div class="wgt-tabs-cont sub3<?php if ($_smarty_tpl->tpl_vars['menus']->value['first']['ww'] != 3) { ?> hide<?php } ?> "><?php if ($_smarty_tpl->tpl_vars['menus']->value['first']['ww'] == 3) { ?> <div class="imgtxt-wrap clearfix"> <div class="imgtxt-preview"> <h2>图文消息预览</h2> <div class="preview-con"> <div class="preview-bd"> <div class="preview-cover current"> <div class="preview-cover-con"> <img src="<?php echo ($tmp = @$_smarty_tpl->tpl_vars['menus']->value['msg_data'][0]['image']) === null || $tmp === '' ? "/src/img/w-cover.jpg" : $tmp; ?> " width="252" height="142" /> <h3><?php echo ($tmp = @$_smarty_tpl->tpl_vars['menus']->value['msg_data'][0]['title']) === null || $tmp === '' ? "标题" : $tmp; ?> </h3> </div> <div class="cover-action"> <a class="action-edit" href="javascript:;">编辑</a> </div> </div> <ul class="preview-list"><?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['i']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['menus']->value['msg_data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['i']->key => $_smarty_tpl->tpl_vars['i']->value) { $_smarty_tpl->tpl_vars['i']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['i']->key; if ($_smarty_tpl->tpl_vars['k']->value > 0) { ?> <li> <div class="preview-list-item clearfix"> <img src="<?php echo $_smarty_tpl->tpl_vars['i']->value['image']; ?> " width="49" height="49" /> <h3><?php echo $_smarty_tpl->tpl_vars['i']->value['title']; ?> </h3> </div> <div class="list-action clearfix"> <a class="action-sort" href="javascript:;">拖动排序</a> <a class="action-edit" href="javascript:;">编辑</a> <a class="action-del" href="javascript:;">删除</a> </div> </li><?php } } ?> </ul> </div> </div> </div> </div> <button type="button" class="J_news btn btn-large">编辑图文消息</button> <input type="hidden" name="qq[0]" value="<?php echo rawurlencode($_smarty_tpl->tpl_vars['menus']->value['json']); ?> "><?php } else { ?> <button type="button" class="J_news btn btn-large">添加图文消息</button> <input type="hidden" name="qq[0]" value=""><?php } ?> </div> </div> </div> </div> <div id="J_formWxsubmenu"<?php if ($_smarty_tpl->tpl_vars['menus']->value['type'] == 'view' || $_smarty_tpl->tpl_vars['menus']->value['type'] == 'click' || !$_smarty_tpl->tpl_vars['menus']->value['id']) { ?> class="hide"<?php } ?> ><?php if (!$_smarty_tpl->tpl_vars['menus']->value['sec']) { ?> <div class="form-group"> <label for="sec[0][name]" class="ctl-label"><em>*</em>二级菜单:</label> <input type="text" name="sec[0][name]" id="sec[0][name]" value="" class="input-text required"> <a href="#">删除此菜单</a> </div> <div class="form-group"> <label for="sec[0][weight]" class="ctl-label">排序:</label> <input type="text" name="sec[0][weight]" id="sec[0][weight]" value="0" class="input-text number"> <span class="help-inline">数字越小越排在前面</span> </div> <div class="form-group"> <label for="" class="ctl-label"><em>*</em>回复内容:</label> <div class="wgt-tabs"> <ul> <li class="tab"> <label for="sec[0][Which-one][0]" class="cur">活动或商品</label> <input type="radio" name="sec[0][Which-one]" id="sec[0][Which-one][0]" value="0" class="hide" checked> </li> <li class="tab"> <label for="sec[0][Which-one][1]">链接</label> <input type="radio" name="sec[0][Which-one]" id="sec[0][Which-one][1]" value="1" class="hide"> </li> <li class="tab"> <label for="sec[0][Which-one][2]">文字</label> <input type="radio" name="sec[0][Which-one]" id="sec[0][Which-one][2]" value="2" class="hide"> </li> <!-- <li class="tab"> <label for="sec[0][Which-one][3]">图文消息</label> <input type="radio" name="sec[0][Which-one]" id="sec[0][Which-one][3]" value="3" class="hide"> </li> --> </ul> </div> <div class="wgt-tabs-cont sub0"> <button type="button" class="J_selector btn btn-large">选择活动或商品</button> <input type="hidden" name="sec[0][act_text]" value=""> <input type="hidden" name="sec[0][act_url]" value=""> </div> <div class="wgt-tabs-cont sub1 hide"> <input type="text" name="sec[0][url]" value="" class="input-text input-url"> </div> <div class="wgt-tabs-cont sub2 hide"> <button type="button" class="J_text btn btn-large">添加文字消息</button> <input type="hidden" name="sec[0][qq]" value=""> </div> <div class="wgt-tabs-cont sub3 hide"> <button type="button" class="J_news btn btn-large">添加图文消息</button> <input type="hidden" name="sec[0][qq]" value=""> </div> </div><?php } else { $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['item']->_loop = false; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['menus']->value['sec']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) { $_smarty_tpl->tpl_vars['item']->_loop = true; $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key; ?> <div class="form-group"> <label for="sec[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ][name]" class="ctl-label"><em>*</em>二级菜单:</label> <input type="text" name="sec[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ][name]" id="sec[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ][name]" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['name']; ?> " class="input-text required"> <input type="hidden" name="sec[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ][id]" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['id']; ?> "> <a href="#">删除此菜单</a> </div> <div class="form-group"> <label for="sec[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ][weight]" class="ctl-label">排序:</label> <input type="text" name="sec[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ][weight]" id="sec[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ][weight]" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['weight']; ?> " class="input-text number"> <span class="help-inline">数字越小越排在前面</span> </div> <div class="form-group"> <label for="" class="ctl-label"><em>*</em>回复内容:</label> <div class="wgt-tabs"> <ul> <li class="tab"> <label for="sec[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ][Which-one][0]"<?php if ($_smarty_tpl->tpl_vars['item']->value['ww'] == 0) { ?> class="cur"<?php } ?> >活动或商品</label> <input type="radio" name="sec[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ][Which-one]" id="sec[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ][Which-one][0]" value="0" class="hide"<?php if ($_smarty_tpl->tpl_vars['item']->value['ww'] == 0) { ?> checked<?php } ?> > </li> <li class="tab"> <label for="sec[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ][Which-one][1]"<?php if ($_smarty_tpl->tpl_vars['item']->value['ww'] == 1) { ?> class="cur"<?php } ?> >链接</label> <input type="radio" name="sec[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ][Which-one]" id="sec[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ][Which-one][1]" value="1" class="hide"<?php if ($_smarty_tpl->tpl_vars['item']->value['ww'] == 1) { ?> checked<?php } ?> > </li> <li class="tab"> <label for="sec[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ][Which-one][2]"<?php if ($_smarty_tpl->tpl_vars['item']->value['ww'] == 2) { ?> class="cur"<?php } ?> >文字</label> <input type="radio" name="sec[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ][Which-one]" id="sec[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ][Which-one][2]" value="2" class="hide"<?php if ($_smarty_tpl->tpl_vars['item']->value['ww'] == 2) { ?> checked<?php } ?> > </li> <!-- <li class="tab"> <label for="sec[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ][Which-one][3]"<?php if ($_smarty_tpl->tpl_vars['item']->value['ww'] == 3) { ?> class="cur"<?php } ?> >图文消息</label> <input type="radio" name="sec[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ][Which-one]" id="sec[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ][Which-one][3]" value="3" class="hide"<?php if ($_smarty_tpl->tpl_vars['item']->value['ww'] == 3) { ?> checked<?php } ?> > </li> --> </ul> </div> <div class="wgt-tabs-cont sub0<?php if ($_smarty_tpl->tpl_vars['item']->value['ww'] != 0) { ?> hide<?php } ?> "> <button type="button" class="J_selector btn btn-large"><?php echo ($tmp = @$_smarty_tpl->tpl_vars['item']->value['msg_data']['text']) === null || $tmp === '' ? '选择活动或商品' : $tmp; ?> </button> <input type="hidden" name="sec[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ][act_text]" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['msg_data']['text']; ?> "> <input type="hidden" name="sec[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ][act_url]" value="<?php if ($_smarty_tpl->tpl_vars['item']->value['ww'] == 0) { ?> http://<?php echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['item']->value['msg_data']['url'], '/http:\\/\\//', ''); } ?> "> </div> <div class="wgt-tabs-cont sub1<?php if ($_smarty_tpl->tpl_vars['item']->value['ww'] != 1) { ?> hide<?php } ?> "> <input type="text" name="sec[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ][url]" value="<?php echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['item']->value['msg_data']['url'], '/http:\\/\\//', ''); ?> " class="input-text input-url"> </div> <div class="wgt-tabs-cont sub2<?php if ($_smarty_tpl->tpl_vars['item']->value['ww'] != 2) { ?> hide<?php } ?> "><?php if ($_smarty_tpl->tpl_vars['item']->value['ww'] == 2) { ?> <div class="text-kindeditor"><?php echo $_smarty_tpl->tpl_vars['item']->value['content']; ?> </div> <button type="button" class="J_text btn btn-large">编辑文字消息</button> <input type="hidden" name="sec[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ][qq]" value="<?php echo rawurlencode($_smarty_tpl->tpl_vars['item']->value['json']); ?> "><?php } else { ?> <button type="button" class="J_text btn btn-large">添加文字消息</button> <input type="hidden" name="sec[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ][qq]" value=""><?php } ?> </div> <div class="wgt-tabs-cont sub3<?php if ($_smarty_tpl->tpl_vars['item']->value['ww'] != 3) { ?> hide<?php } ?> "><?php if ($_smarty_tpl->tpl_vars['item']->value['ww'] == 3) { ?> <div class="imgtxt-wrap clearfix"> <div class="imgtxt-preview"> <h2>图文消息预览</h2> <div class="preview-con"> <div class="preview-bd"> <div class="preview-cover current"> <div class="preview-cover-con"> <img src="<?php echo ($tmp = @$_smarty_tpl->tpl_vars['item']->value['msg_data'][0]['image']) === null || $tmp === '' ? "/src/img/w-cover.jpg" : $tmp; ?> " width="252" height="142" /> <h3><?php echo ($tmp = @$_smarty_tpl->tpl_vars['item']->value['msg_data'][0]['title']) === null || $tmp === '' ? "标题" : $tmp; ?> </h3> </div> <div class="cover-action"> <a class="action-edit" href="javascript:;">编辑</a> </div> </div> <ul class="preview-list"><?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['i']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['item']->value['msg_data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['i']->key => $_smarty_tpl->tpl_vars['i']->value) { $_smarty_tpl->tpl_vars['i']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['i']->key; if ($_smarty_tpl->tpl_vars['k']->value > 0) { ?> <li> <div class="preview-list-item clearfix"> <img src="<?php echo $_smarty_tpl->tpl_vars['i']->value['image']; ?> " width="49" height="49" /> <h3><?php echo $_smarty_tpl->tpl_vars['i']->value['title']; ?> </h3> </div> <div class="list-action clearfix"> <a class="action-sort" href="javascript:;">拖动排序</a> <a class="action-edit" href="javascript:;">编辑</a> <a class="action-del" href="javascript:;">删除</a> </div> </li><?php } } ?> </ul> </div> </div> </div> </div> <button type="button" class="J_news btn btn-large">编辑图文消息</button> <input type="hidden" name="sec[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ][qq]" value="<?php echo rawurlencode($_smarty_tpl->tpl_vars['item']->value['json']); ?> "><?php } else { ?> <button type="button" class="J_news btn btn-large">添加图文消息</button> <input type="hidden" name="sec[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ][qq]" value=""><?php } ?> </div> </div><?php } } ?> <div class="form-actions"> <a href="#" class="ctl-label"><i class="iconfont"></i> 添加子菜单</a> </div> </div> <div class="form-actions"> <input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['menus']->value['id']; ?> "> <button type="submit" class="btn btn-primary">保存</button> </div> </form> </div> </div> </div> </div> <?php echo $_smarty_tpl->getSubTemplate("../Common/footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> <script src="<?php echo $_smarty_tpl->tpl_vars['assets_path']->value; ?> /js/libs/jquery-ui.js" type="text/javascript"></script> <script src="<?php echo $_smarty_tpl->tpl_vars['assets_path']->value; ?> /kindeditor/kindeditor.js" type="text/javascript"></script> <script src="<?php echo $_smarty_tpl->tpl_vars['assets_path']->value; ?> /kindeditor/lang/zh_CN.js" type="text/javascript"></script> <script src="<?php echo $_smarty_tpl->tpl_vars['assets_path']->value; ?> /js/libs/jquery.uploadify.js" type="text/javascript"></script> <script type="text/x-tpl" id="T_subAdd"> <div class="form-group"> <label for="sec[{{key}}][name]" class="ctl-label"><em>*</em>二级菜单:</label> <input type="text" name="sec[{{key}}][name]" id="sec[{{key}}][name]" value="" class="input-text required"> <a href="#">删除此菜单</a> </div> <div class="form-group"> <label for="sec[{{key}}][weight]" class="ctl-label">排序:</label> <input type="text" name="sec[{{key}}][weight]" id="sec[{{key}}][weight]" value="0" class="input-text number"> <span class="help-inline">数字越小越排在前面</span> </div> <div class="form-group"> <label for="" class="ctl-label"><em>*</em>回复内容:</label> <div class="wgt-tabs"> <ul> <li class="tab"> <label for="sec[{{key}}][Which-one][0]" class="cur">活动或商品</label> <input type="radio" name="sec[{{key}}][Which-one]" id="sec[{{key}}][Which-one][0]" value="0" class="hide" checked> </li> <li class="tab"> <label for="sec[{{key}}][Which-one][1]">链接</label> <input type="radio" name="sec[{{key}}][Which-one]" id="sec[{{key}}][Which-one][1]" value="1" class="hide"> </li> <li class="tab"> <label for="sec[{{key}}][Which-one][2]">文字</label> <input type="radio" name="sec[{{key}}][Which-one]" id="sec[{{key}}][Which-one][2]" value="2" class="hide"> </li> </ul> </div> <div class="wgt-tabs-cont sub0"> <button type="button" class="J_selector btn btn-large">选择活动或商品</button> <input type="hidden" name="sec[{{key}}][act_text]" value=""> <input type="hidden" name="sec[{{key}}][act_url]" value=""> </div> <div class="wgt-tabs-cont sub1 hide"> <input type="text" name="sec[{{key}}][url]" value="" class="input-text input-url"> </div> <div class="wgt-tabs-cont sub2 hide"> <button type="button" class="J_text btn btn-large">添加文字消息</button> <input type="hidden" name="sec[{{key}}][qq]" value=""> </div> <div class="wgt-tabs-cont sub3 hide"> <button type="button" class="J_news btn btn-large">添加图文消息</button> <input type="hidden" name="sec[{{key}}][qq]" value=""> </div> </div> </script> <script type="text/x-tpl" id="T_wxNews"> <div class="imgtxt-wrap clearfix"> <div class="imgtxt-preview"> <h2>图文消息预览</h2> <div class="preview-con"> <div class="preview-bd"> <div class="preview-cover current"> <div class="preview-cover-con"> {{#if msg_data.0.picurl}} <img src="{{msg_data.0.picurl}}" width="252" height="142" /> <h3>{{msg_data.0.title}}</h3> {{else}} <img src="/src/img/w-cover.jpg" width="252" height="142" /> <h3>标题</h3> {{/if}} </div> <div class="cover-action"> <a class="action-edit" href="javascript:;">编辑</a> </div> </div> <ul class="preview-list"> {{#each msg_data}} {{#ifCond @index '>' 0}} <li> <div class="preview-list-item clearfix"> <img src="{{this.picurl}}" width="49" height="49" /> <h3>{{this.title}}</h3> </div> <div class="list-action clearfix"> <a class="action-sort" href="javascript:;">拖动排序</a> <a class="action-edit" href="javascript:;">编辑</a> <a class="action-del" href="javascript:;">删除</a> </div> </li> {{/ifCond}} {{/each}} </ul> </div> </div> </div> </div> </script> <script> seajs.use(['p.event_selector','m.text_edit','m.imgtext'],function(Selector,Text,News){ var tpls={ subAdd: Handlebars.compile($('#T_subAdd').html()), wxNews: Handlebars.compile($('#T_wxNews').html()) } $('#J_formWxmenu').on('change','[name="s"]',function(){ if($(this).val()=='reply'){ $('#J_formWxsubmenu').hide(); $('#J_formWxreply').show(); }else{ $('#J_formWxreply').hide(); $('#J_formWxsubmenu').show(); } }).on('change','.tab input',function(){ if($(this).prev().is('.cur')) return; $(this).parents('.wgt-tabs').find('.cur').removeClass('cur'); $(this).prev().addClass('cur'); $(this).parents('.wgt-tabs').nextAll('.sub'+$(this).val()).show().siblings('.wgt-tabs-cont').hide(); }).on('click','.J_selector',function(){ var $this=$(this); var selector=new Selector({ data:{types:<?php echo $_smarty_tpl->tpl_vars['componentKeys']->value; ?> }, onSave:function(data){ $this.html(data.name).next().val(data.name).next().val(data.url); } }); }).on('click','.J_text',function(){ var $this=$(this), $elem=$(this).siblings('input'), data=$elem.val(); if(data){ data=decodeURIComponent(data); data=JSON.parse(data); }else{ data={ shop_id:'<?php echo $_smarty_tpl->tpl_vars['shop_id']->value; ?> ' } } var dlg=$.dlg({ title:'编辑文字消息', width:720, removeOnHide:true, draggable:true, html:$('<div id="J_wxText">') }); new Text({ content:$('#J_wxText'), width:'100%', data:data, types:<?php echo $_smarty_tpl->tpl_vars['componentKeys']->value; ?> , onSave:function(data){ $this.prevAll().remove(); $this.before($('<div class="text-kindeditor">')); $this.prevAll('.text-kindeditor').html(data.content); $this.html('编辑文字消息'); data=JSON.stringify(data); data=encodeURIComponent(data); $elem.val(data); dlg.close(); } }); }).on('click','.J_news',function(){ var $this=$(this), $elem=$(this).siblings('input'), data=$elem.val(); if(data){ data=decodeURIComponent(data); data=JSON.parse(data); }else{ data={ shop_id:'<?php echo $_smarty_tpl->tpl_vars['shop_id']->value; ?> ' } } if(data.msg_data){ for(var i=0;i<data.msg_data.length;i++){ data.msg_data[i].picurl=data.msg_data[i].image||''; delete data.msg_data[i].image; } } var dlg=$.dlg({ title:'编辑图文消息', width:800, removeOnHide:true, draggable:true, html:$('<div id="J_wxNews">') }); $(function(){ new News({ content:$('#J_wxNews'), data:data, types:<?php echo $_smarty_tpl->tpl_vars['componentKeys']->value; ?> , onSave:function(data){ $this.prevAll('.imgtxt-wrap').remove(); $this.before(tpls.wxNews(data)); $this.html('编辑图文消息'); var d={} d.shop_id=data.shop_id; d.sorted_ids=data.sorted_ids||''; d.msg_data=[]; for(var i=0;i<data.msg_data.length;i++){ d.msg_data[i]={ id:data.msg_data[i].itemId, title:data.msg_data[i].title, image:data.msg_data[i].picurl, text:data.msg_data[i].text, url:data.msg_data[i].url } } d=JSON.stringify(d); d=encodeURIComponent(d); $elem.val(d); dlg.close(); } }); dlg.moveCenter(); }); }).on('click','#J_formWxsubmenu .form-group a',function(e){ e.preventDefault(); var id=$(this).prev().attr('name').match(/sec\[(\d*)\]/)[1]; $(this).parent().siblings().andSelf().filter(function(){ return $(this).find('[name^="sec['+id+']"]').length>0; }).remove(); if($('#J_formWxsubmenu [name^="sec"]').length<1){ $('#J_formWxmenu [name="s"][value="reply"]').trigger("click"); $('#J_formWxsubmenu .form-actions').before(tpls.subAdd({key:0})); } }).on('click','#J_formWxsubmenu .form-actions a',function(e){ e.preventDefault(); var id=0; $('#J_formWxsubmenu [name]').each(function(){ if($(this).attr('name').match(/sec\[(\d*)\]/)[1]>id) id=$(this).attr('name').match(/sec\[(\d*)\]/)[1]; }); $('#J_formWxsubmenu .form-actions').before(tpls.subAdd({key:++id})); if($('#J_formWxsubmenu [name$="[name]"]').length<5) $('#J_formWxsubmenu .form-actions').show(); else $('#J_formWxsubmenu .form-actions').hide(); }).validate({ submitHandler:function(form){ $('[name]', form).filter(function(){ return $(this).attr('name').match(/qq/) && $(this).closest('.wgt-tabs-cont').is(':hidden'); }).each(function(){ $(this).remove(); }); WD.ajaxForm(form,{ beforeSend:function(){ var data=this.data; data=data.split('&'); var d={} for(var i=0;i<data.length;i++){ var m=data[i].split('='); d[decodeURIComponent(m[0])]=decodeURIComponent(m[1].replace(/\+/g,'%20')); } for(var name in d){ if(d[name]&&name.match(/qq/)){ d[name]=decodeURIComponent(d[name]); d[name]=JSON.parse(d[name]); if(d[name].content){ d[name]={ content:d[name].content } }else{ d[name].items=d[name].msg_data; delete d[name].msg_data; } d[name]=JSON.stringify(d[name]); } if(d[name]&&name.match(/url/)) d[name]=d[name].indexOf('http://')<0?'http://'+d[name]:d[name]; var match=name.match(/^sec\[(\d+)\]/); if(d[name]&&match) d['sec['+match[1]+'][parent_id]']=d.id; } this.data=$.param(d); }, success:function(){ location.href='/admin/weixin/menu'; } }); } }); }); </script> </body> </html> <?php }
} elseif ($this->_tpl_vars['keyid'] == '19' || $this->_tpl_vars['keyid'] == '20') { ?> <!--TextArea/Description--> <?php if ($this->_tpl_vars['label'] == $this->_tpl_vars['MOD']['LBL_ADD_COMMENT']) { ?> <?php $this->assign('keyval', ''); ?> <?php } ?> <td width=100% class="dvtCellInfo" align="left"> <!--To give hyperlink to URL--> <?php echo is_array($_tmp = is_array($_tmp = is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['keyval']) ? $this->_run_mod_handler('regex_replace', true, $_tmp, "/(^|[\n ])([\\w]+?:\\/\\/.*?[^ \"\n\r\t<]*)/", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>") : smarty_modifier_regex_replace($_tmp, "/(^|[\n ])([\\w]+?:\\/\\/.*?[^ \"\n\r\t<]*)/", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>")) ? $this->_run_mod_handler('regex_replace', true, $_tmp, "/(^|[\n ])((www|ftp)\\.[\\w\\-]+\\.[\\w\\-.\\~]+(?:\\/[^ \"\t\n\r<]*)?)/", "\\1<a href=\"http://\\2\" target=\"_blank\">\\2</a>") : smarty_modifier_regex_replace($_tmp, "/(^|[\n ])((www|ftp)\\.[\\w\\-]+\\.[\\w\\-.\\~]+(?:\\/[^ \"\t\n\r<]*)?)/", "\\1<a href=\"http://\\2\" target=\"_blank\">\\2</a>")) ? $this->_run_mod_handler('regex_replace', true, $_tmp, "/(^|[\n ])([a-z0-9&\\-_.]+?)@([\\w\\-]+\\.([\\w\\-\\.]+\\.)*[\\w]+)/i", "\\1<a href=\"mailto:\\2@\\3\">\\2@\\3</a>") : smarty_modifier_regex_replace($_tmp, "/(^|[\n ])([a-z0-9&\\-_.]+?)@([\\w\\-]+\\.([\\w\\-\\.]+\\.)*[\\w]+)/i", "\\1<a href=\"mailto:\\2@\\3\">\\2@\\3</a>")) ? $this->_run_mod_handler('regex_replace', true, $_tmp, "/,\"|\\.\"|\\)\"|\\)\\.\"|\\.\\)\"/", "\"") : smarty_modifier_regex_replace($_tmp, "/,\"|\\.\"|\\)\"|\\)\\.\"|\\.\\)\"/", "\"")) ? $this->_run_mod_handler('replace', true, $_tmp, "\n", "<br> ") : smarty_modifier_replace($_tmp, "\n", "<br> "); ?> </td> <?php } elseif ($this->_tpl_vars['keyid'] == '21' || $this->_tpl_vars['keyid'] == '24' || $this->_tpl_vars['keyid'] == '22') { ?> <!--TextArea/Street--> <td width=25% class="dvtCellInfo" align="left"> <span id ="dtlview_<?php echo $this->_tpl_vars['label']; ?> "><?php echo $this->_tpl_vars['keyval']; ?> </span> </td>
function content_565352293d6c13_24491113($_smarty_tpl) { if (!is_callable('smarty_modifier_regex_replace')) { include 'C:\\xampp\\htdocs\\flowershop\\tools\\smarty\\plugins\\modifier.regex_replace.php'; } $_smarty_tpl->tpl_vars['have_non_virtual_products'] = new Smarty_variable(false, null, 0); $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['product']->_loop = false; $_from = $_smarty_tpl->tpl_vars['products']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) { $_smarty_tpl->tpl_vars['product']->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['product']->value['is_virtual'] == 0) { ?> <?php $_smarty_tpl->tpl_vars['have_non_virtual_products'] = new Smarty_variable(true, null, 0); ?> <?php break 1; ?> <?php } } ?> <h2><?php echo smartyTranslate(array('s' => 'Address(es) Details'), $_smarty_tpl); ?> </h2> <?php if (!empty($_smarty_tpl->tpl_vars['delivery_option']->value) && (!isset($_smarty_tpl->tpl_vars['isVirtualCart']->value) || !$_smarty_tpl->tpl_vars['isVirtualCart']->value) || $_smarty_tpl->tpl_vars['delivery']->value->id || $_smarty_tpl->tpl_vars['invoice']->value->id) { ?> <div class="order_delivery clearfix row"> <?php if (!isset($_smarty_tpl->tpl_vars['formattedAddresses']->value) || count($_smarty_tpl->tpl_vars['formattedAddresses']->value['invoice']) == 0 && count($_smarty_tpl->tpl_vars['formattedAddresses']->value['delivery']) == 0 || count($_smarty_tpl->tpl_vars['formattedAddresses']->value['invoice']['formated']) == 0 && count($_smarty_tpl->tpl_vars['formattedAddresses']->value['delivery']['formated']) == 0) { ?> <?php if ($_smarty_tpl->tpl_vars['delivery']->value->id) { ?> <div class="col-xs-12 col-sm-6"<?php if (!$_smarty_tpl->tpl_vars['have_non_virtual_products']->value) { ?> style="display: none;"<?php } ?> > <ul id="delivery_address" class="address item box"> <li><h3 class="page-subheading"><?php echo smartyTranslate(array('s' => 'Delivery address'), $_smarty_tpl); ?> <span class="address_alias">(<?php echo $_smarty_tpl->tpl_vars['delivery']->value->alias; ?> )</span></h3></li> <?php if ($_smarty_tpl->tpl_vars['delivery']->value->company) { ?> <li class="address_company"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['delivery']->value->company, ENT_QUOTES, 'UTF-8', true); ?> </li><?php } ?> <li class="address_name"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['delivery']->value->firstname, ENT_QUOTES, 'UTF-8', true); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['delivery']->value->lastname, ENT_QUOTES, 'UTF-8', true); ?> </li> <li class="address_address1"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['delivery']->value->address1, ENT_QUOTES, 'UTF-8', true); ?> </li> <?php if ($_smarty_tpl->tpl_vars['delivery']->value->address2) { ?> <li class="address_address2"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['delivery']->value->address2, ENT_QUOTES, 'UTF-8', true); ?> </li><?php } ?> <li class="address_city"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['delivery']->value->postcode, ENT_QUOTES, 'UTF-8', true); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['delivery']->value->city, ENT_QUOTES, 'UTF-8', true); ?> </li> <li class="address_country"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['delivery']->value->country, ENT_QUOTES, 'UTF-8', true); ?> <?php if ($_smarty_tpl->tpl_vars['delivery']->value->id_state) { ?> (<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['delivery_state']->value->name, ENT_QUOTES, 'UTF-8', true); ?> )<?php } ?> </li> </ul> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['invoice']->value->id) { ?> <div class="col-xs-12 col-sm-6"> <ul id="invoice_address" class="address alternate_item box"> <li><h3 class="page-subheading"><?php echo smartyTranslate(array('s' => 'Invoice address'), $_smarty_tpl); ?> <span class="address_alias">(<?php echo $_smarty_tpl->tpl_vars['invoice']->value->alias; ?> )</span></h3></li> <?php if ($_smarty_tpl->tpl_vars['invoice']->value->company) { ?> <li class="address_company"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['invoice']->value->company, ENT_QUOTES, 'UTF-8', true); ?> </li><?php } ?> <li class="address_name"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['invoice']->value->firstname, ENT_QUOTES, 'UTF-8', true); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['invoice']->value->lastname, ENT_QUOTES, 'UTF-8', true); ?> </li> <li class="address_address1"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['invoice']->value->address1, ENT_QUOTES, 'UTF-8', true); ?> </li> <?php if ($_smarty_tpl->tpl_vars['invoice']->value->address2) { ?> <li class="address_address2"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['invoice']->value->address2, ENT_QUOTES, 'UTF-8', true); ?> </li><?php } ?> <li class="address_city"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['invoice']->value->postcode, ENT_QUOTES, 'UTF-8', true); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['invoice']->value->city, ENT_QUOTES, 'UTF-8', true); ?> </li> <li class="address_country"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['invoice']->value->country, ENT_QUOTES, 'UTF-8', true); ?> <?php if ($_smarty_tpl->tpl_vars['invoice']->value->id_state) { ?> (<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['invoice']->value->name, ENT_QUOTES, 'UTF-8', true); ?> )<?php } ?> </li> </ul> </div> <?php } ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['address'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['address']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['formattedAddresses']->value; 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; $_smarty_tpl->tpl_vars['address']->index = -1; 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['k']->value = $_smarty_tpl->tpl_vars['address']->key; $_smarty_tpl->tpl_vars['address']->iteration++; $_smarty_tpl->tpl_vars['address']->index++; $_smarty_tpl->tpl_vars['address']->first = $_smarty_tpl->tpl_vars['address']->index === 0; $_smarty_tpl->tpl_vars['address']->last = $_smarty_tpl->tpl_vars['address']->iteration === $_smarty_tpl->tpl_vars['address']->total; ?> <div class="col-xs-12 col-sm-6"<?php if ($_smarty_tpl->tpl_vars['k']->value == 'delivery' && !$_smarty_tpl->tpl_vars['have_non_virtual_products']->value) { ?> style="display: none;"<?php } ?> > <ul class="address <?php if ($_smarty_tpl->tpl_vars['address']->last) { ?> last_item<?php } elseif ($_smarty_tpl->tpl_vars['address']->first) { ?> first_item<?php } ?> <?php if ($_smarty_tpl->tpl_vars['address']->index % 2) { ?> alternate_item<?php } else { ?> item<?php } ?> box"> <li> <h3 class="page-subheading"> <?php if ($_smarty_tpl->tpl_vars['k']->value == 'invoice') { ?> <?php echo smartyTranslate(array('s' => 'Invoice address'), $_smarty_tpl); ?> <?php } elseif ($_smarty_tpl->tpl_vars['k']->value == 'delivery' && $_smarty_tpl->tpl_vars['delivery']->value->id) { ?> <?php echo smartyTranslate(array('s' => 'Delivery address'), $_smarty_tpl); ?> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['address']->value['object']['alias'])) { ?> <span class="address_alias">(<?php echo $_smarty_tpl->tpl_vars['address']->value['object']['alias']; ?> )</span> <?php } ?> </h3> </li> <?php $_smarty_tpl->tpl_vars['pattern'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['pattern']->_loop = false; $_from = $_smarty_tpl->tpl_vars['address']->value['ordered']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['pattern']->key => $_smarty_tpl->tpl_vars['pattern']->value) { $_smarty_tpl->tpl_vars['pattern']->_loop = true; ?> <?php $_smarty_tpl->tpl_vars['addressKey'] = new Smarty_variable(explode(" ", $_smarty_tpl->tpl_vars['pattern']->value), null, 0); ?> <?php $_smarty_tpl->tpl_vars['addedli'] = new Smarty_variable(false, null, 0); ?> <?php $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['key']->_loop = false; $_from = $_smarty_tpl->tpl_vars['addressKey']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['key']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['key']->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars['key']->key => $_smarty_tpl->tpl_vars['key']->value) { $_smarty_tpl->tpl_vars['key']->_loop = true; $_smarty_tpl->tpl_vars['key']->iteration++; $_smarty_tpl->tpl_vars['key']->last = $_smarty_tpl->tpl_vars['key']->iteration === $_smarty_tpl->tpl_vars['key']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['foo']['last'] = $_smarty_tpl->tpl_vars['key']->last; ?> <?php $_smarty_tpl->tpl_vars['key_str'] = new Smarty_variable(smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['key']->value, AddressFormat::_CLEANING_REGEX_, ''), null, 0); ?> <?php if (isset($_smarty_tpl->tpl_vars['address']->value['formated'][$_smarty_tpl->tpl_vars['key_str']->value]) && !empty($_smarty_tpl->tpl_vars['address']->value['formated'][$_smarty_tpl->tpl_vars['key_str']->value])) { ?> <?php if (!$_smarty_tpl->tpl_vars['addedli']->value) { ?> <?php $_smarty_tpl->tpl_vars['addedli'] = new Smarty_variable(true, null, 0); ?> <li><span class="<?php if (isset($_smarty_tpl->tpl_vars['addresses_style']->value[$_smarty_tpl->tpl_vars['key_str']->value])) { echo $_smarty_tpl->tpl_vars['addresses_style']->value[$_smarty_tpl->tpl_vars['key_str']->value]; } ?> "> <?php } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['address']->value['formated'][$_smarty_tpl->tpl_vars['key_str']->value], ENT_QUOTES, 'UTF-8', true); ?> <?php } ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['foo']['last'] && $_smarty_tpl->tpl_vars['addedli']->value) { ?> </span></li> <?php } ?> <?php } ?> <?php } ?> </ul> </div> <?php } ?> <?php } ?> </div> <?php } ?> <?php }
function content_56b312468f8a88_38708100($_smarty_tpl) { if (!is_callable('smarty_modifier_regex_replace')) { include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/modifier.regex_replace.php'; } ?> <!-- Block languages module --> <div class="popup-over pull-right e-scale language"> <div class="popup-title"> <?php $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['language']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) { $_smarty_tpl->tpl_vars['language']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['language']->key; ?> <?php if ($_smarty_tpl->tpl_vars['language']->value['iso_code'] == $_smarty_tpl->tpl_vars['lang_iso']->value) { ?> <span><img src="<?php echo $_smarty_tpl->tpl_vars['img_lang_dir']->value; echo $_smarty_tpl->tpl_vars['language']->value['id_lang']; ?> .jpg" alt="<?php echo $_smarty_tpl->tpl_vars['language']->value['iso_code']; ?> " width="16" height="11" /></span> <?php } ?> <?php } ?> </div> <div class="popup-content"> <div id="languages-block-top" class="languages-block"> <ul id="first-languages" class="languages-block_ul"> <?php $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['language']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) { $_smarty_tpl->tpl_vars['language']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['language']->key; ?> <li <?php if ($_smarty_tpl->tpl_vars['language']->value['iso_code'] == $_smarty_tpl->tpl_vars['lang_iso']->value) { ?> class="selected"<?php } ?> > <?php if ($_smarty_tpl->tpl_vars['language']->value['iso_code'] != $_smarty_tpl->tpl_vars['lang_iso']->value) { ?> <?php $_smarty_tpl->tpl_vars['indice_lang'] = new Smarty_variable($_smarty_tpl->tpl_vars['language']->value['id_lang'], null, 0); ?> <?php if (isset($_smarty_tpl->tpl_vars['lang_rewrite_urls']->value[$_smarty_tpl->tpl_vars['indice_lang']->value])) { ?> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['lang_rewrite_urls']->value[$_smarty_tpl->tpl_vars['indice_lang']->value], ENT_QUOTES, 'UTF-8', true); ?> " title="<?php echo $_smarty_tpl->tpl_vars['language']->value['name']; ?> "> <?php } elseif (isset($_smarty_tpl->tpl_vars['lang_leo_rewrite_urls']->value[$_smarty_tpl->tpl_vars['indice_lang']->value])) { ?> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['lang_leo_rewrite_urls']->value[$_smarty_tpl->tpl_vars['indice_lang']->value], ENT_QUOTES, 'UTF-8', true); ?> " title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['language']->value['name'], ENT_QUOTES, 'UTF-8', true); ?> " rel="alternate" hreflang="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['language']->value['iso_code'], ENT_QUOTES, 'UTF-8', true); ?> "> <?php } else { ?> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getLanguageLink($_smarty_tpl->tpl_vars['language']->value['id_lang']), ENT_QUOTES, 'UTF-8', true); ?> " title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['language']->value['name'], ENT_QUOTES, 'UTF-8', true); ?> " rel="alternate" hreflang="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['language']->value['iso_code'], ENT_QUOTES, 'UTF-8', true); ?> "> <?php } ?> <?php } ?> <span><img src="<?php echo $_smarty_tpl->tpl_vars['img_lang_dir']->value; echo $_smarty_tpl->tpl_vars['language']->value['id_lang']; ?> .jpg" alt="<?php echo $_smarty_tpl->tpl_vars['language']->value['iso_code']; ?> " width="16" height="11" /> <?php echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['language']->value['name'], "/\\s\\(.*\\)" . "\$" . "/", ''); ?> </span> <?php if ($_smarty_tpl->tpl_vars['language']->value['iso_code'] != $_smarty_tpl->tpl_vars['lang_iso']->value) { ?> </a> <?php } ?> </li> <?php } ?> </ul> </div> </div> </div> <!-- /Block languages module --> <?php }
function content_5672e65f5d8ca9_59800544($_smarty_tpl) { if (!is_callable('smarty_modifier_regex_replace')) { include 'C:\\xampp\\htdocs\\prestashop\\tools\\smarty\\plugins\\modifier.regex_replace.php'; } ?> <?php $_smarty_tpl->_capture_stack[0][] = array('path', null, null); ob_start(); echo smartyTranslate(array('s' => 'Your shopping cart'), $_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(); } ?> <h1 id="cart_title" class="page-heading"><?php echo smartyTranslate(array('s' => 'Shopping-cart summary'), $_smarty_tpl); ?> <?php if (!isset($_smarty_tpl->tpl_vars['empty']->value) && !$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) { ?> <span class="heading-counter"><?php echo smartyTranslate(array('s' => 'Your shopping cart contains:'), $_smarty_tpl); ?> <span id="summary_products_quantity"><?php echo $_smarty_tpl->tpl_vars['productNumber']->value; ?> <?php if ($_smarty_tpl->tpl_vars['productNumber']->value == 1) { echo smartyTranslate(array('s' => 'product'), $_smarty_tpl); } else { echo smartyTranslate(array('s' => 'products'), $_smarty_tpl); } ?> </span> </span> <?php } ?> </h1> <?php if (isset($_smarty_tpl->tpl_vars['account_created']->value)) { ?> <p class="alert alert-success"> <?php echo smartyTranslate(array('s' => 'Your account has been created.'), $_smarty_tpl); ?> </p> <?php } ?> <?php $_smarty_tpl->tpl_vars['current_step'] = new Smarty_variable('summary', null, 0); echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./order-steps.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, 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, 0, null, array(), 0); ?> <?php if (isset($_smarty_tpl->tpl_vars['empty']->value)) { ?> <p class="alert alert-warning"><?php echo smartyTranslate(array('s' => 'Your shopping cart is empty.'), $_smarty_tpl); ?> </p> <?php } elseif ($_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) { ?> <p class="alert alert-warning"><?php echo smartyTranslate(array('s' => 'This store has not accepted your new order.'), $_smarty_tpl); ?> </p> <?php } else { ?> <p id="emptyCartWarning" class="alert alert-warning unvisible"><?php echo smartyTranslate(array('s' => 'Your shopping cart is empty.'), $_smarty_tpl); ?> </p> <?php if (isset($_smarty_tpl->tpl_vars['lastProductAdded']->value) && $_smarty_tpl->tpl_vars['lastProductAdded']->value) { ?> <div class="cart_last_product"> <div class="cart_last_product_header"> <div class="left"><?php echo smartyTranslate(array('s' => 'Last product added'), $_smarty_tpl); ?> </div> </div> <a class="cart_last_product_img" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['lastProductAdded']->value['id_product'], $_smarty_tpl->tpl_vars['lastProductAdded']->value['link_rewrite'], $_smarty_tpl->tpl_vars['lastProductAdded']->value['category'], null, null, $_smarty_tpl->tpl_vars['lastProductAdded']->value['id_shop']), ENT_QUOTES, 'UTF-8', true); ?> "> <img src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['lastProductAdded']->value['link_rewrite'], $_smarty_tpl->tpl_vars['lastProductAdded']->value['id_image'], 'small_default'), ENT_QUOTES, 'UTF-8', true); ?> " alt="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['lastProductAdded']->value['name'], ENT_QUOTES, 'UTF-8', true); ?> "/> </a> <div class="cart_last_product_content"> <p class="product-name"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['lastProductAdded']->value['id_product'], $_smarty_tpl->tpl_vars['lastProductAdded']->value['link_rewrite'], $_smarty_tpl->tpl_vars['lastProductAdded']->value['category'], null, null, null, $_smarty_tpl->tpl_vars['lastProductAdded']->value['id_product_attribute']), ENT_QUOTES, 'UTF-8', true); ?> "> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['lastProductAdded']->value['name'], ENT_QUOTES, 'UTF-8', true); ?> </a> </p> <?php if (isset($_smarty_tpl->tpl_vars['lastProductAdded']->value['attributes']) && $_smarty_tpl->tpl_vars['lastProductAdded']->value['attributes']) { ?> <small> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['lastProductAdded']->value['id_product'], $_smarty_tpl->tpl_vars['lastProductAdded']->value['link_rewrite'], $_smarty_tpl->tpl_vars['lastProductAdded']->value['category'], null, null, null, $_smarty_tpl->tpl_vars['lastProductAdded']->value['id_product_attribute']), ENT_QUOTES, 'UTF-8', true); ?> "> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['lastProductAdded']->value['attributes'], ENT_QUOTES, 'UTF-8', true); ?> </a> </small> <?php } ?> </div> </div> <?php } ?> <?php ob_start(); if ($_smarty_tpl->tpl_vars['total_discounts']->value != 0) { echo "1"; } else { echo "0"; } $_tmp10 = ob_get_clean(); $_smarty_tpl->tpl_vars['total_discounts_num'] = new Smarty_variable($_tmp10, null, 0); ?> <?php ob_start(); if ($_smarty_tpl->tpl_vars['use_taxes']->value && $_smarty_tpl->tpl_vars['show_taxes']->value) { echo "2"; } else { echo "0"; } $_tmp11 = ob_get_clean(); $_smarty_tpl->tpl_vars['use_show_taxes'] = new Smarty_variable($_tmp11, null, 0); ?> <?php ob_start(); if ($_smarty_tpl->tpl_vars['total_wrapping']->value != 0) { echo "1"; } else { echo "0"; } $_tmp12 = ob_get_clean(); $_smarty_tpl->tpl_vars['total_wrapping_taxes_num'] = new Smarty_variable($_tmp12, null, 0); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayBeforeShoppingCartBlock"), $_smarty_tpl); ?> <div id="order-detail-content" class="table_block table-responsive"> <table id="cart_summary" class="table table-bordered <?php if ($_smarty_tpl->tpl_vars['PS_STOCK_MANAGEMENT']->value) { ?> stock-management-on<?php } else { ?> stock-management-off<?php } ?> "> <thead> <tr> <th class="cart_product first_item"><?php echo smartyTranslate(array('s' => 'Product'), $_smarty_tpl); ?> </th> <th class="cart_description item"><?php echo smartyTranslate(array('s' => 'Description'), $_smarty_tpl); ?> </th> <?php if ($_smarty_tpl->tpl_vars['PS_STOCK_MANAGEMENT']->value) { ?> <?php $_smarty_tpl->tpl_vars['col_span_subtotal'] = new Smarty_variable('3', null, 0); ?> <th class="cart_avail item text-center"><?php echo smartyTranslate(array('s' => 'Availability'), $_smarty_tpl); ?> </th> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['col_span_subtotal'] = new Smarty_variable('2', null, 0); ?> <?php } ?> <th class="cart_unit item text-right"><?php echo smartyTranslate(array('s' => 'Unit price'), $_smarty_tpl); ?> </th> <th class="cart_quantity item text-center"><?php echo smartyTranslate(array('s' => 'Qty'), $_smarty_tpl); ?> </th> <th class="cart_delete last_item"> </th> <th class="cart_total item text-right"><?php echo smartyTranslate(array('s' => 'Total'), $_smarty_tpl); ?> </th> </tr> </thead> <tfoot> <?php $_smarty_tpl->tpl_vars['rowspan_total'] = new Smarty_variable(2 + $_smarty_tpl->tpl_vars['total_discounts_num']->value + $_smarty_tpl->tpl_vars['total_wrapping_taxes_num']->value, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['use_taxes']->value && $_smarty_tpl->tpl_vars['show_taxes']->value && $_smarty_tpl->tpl_vars['total_tax']->value != 0) { ?> <?php $_smarty_tpl->tpl_vars['rowspan_total'] = new Smarty_variable($_smarty_tpl->tpl_vars['rowspan_total']->value + 1, null, 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value != 0) { ?> <?php $_smarty_tpl->tpl_vars['rowspan_total'] = new Smarty_variable($_smarty_tpl->tpl_vars['rowspan_total']->value + 1, null, 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['total_shipping_tax_exc']->value <= 0 && (!isset($_smarty_tpl->tpl_vars['isVirtualCart']->value) || !$_smarty_tpl->tpl_vars['isVirtualCart']->value) && $_smarty_tpl->tpl_vars['free_ship']->value) { ?> <?php $_smarty_tpl->tpl_vars['rowspan_total'] = new Smarty_variable($_smarty_tpl->tpl_vars['rowspan_total']->value + 1, null, 0); ?> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['use_taxes']->value && $_smarty_tpl->tpl_vars['total_shipping_tax_exc']->value != $_smarty_tpl->tpl_vars['total_shipping']->value) { ?> <?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value && $_smarty_tpl->tpl_vars['total_shipping_tax_exc']->value > 0) { ?> <?php $_smarty_tpl->tpl_vars['rowspan_total'] = new Smarty_variable($_smarty_tpl->tpl_vars['rowspan_total']->value + 1, null, 0); ?> <?php } elseif ($_smarty_tpl->tpl_vars['total_shipping']->value > 0) { ?> <?php $_smarty_tpl->tpl_vars['rowspan_total'] = new Smarty_variable($_smarty_tpl->tpl_vars['rowspan_total']->value + 1, null, 0); ?> <?php } ?> <?php } elseif ($_smarty_tpl->tpl_vars['total_shipping_tax_exc']->value > 0) { ?> <?php $_smarty_tpl->tpl_vars['rowspan_total'] = new Smarty_variable($_smarty_tpl->tpl_vars['rowspan_total']->value + 1, null, 0); ?> <?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['use_taxes']->value) { ?> <?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value) { ?> <tr class="cart_total_price"> <td rowspan="<?php echo $_smarty_tpl->tpl_vars['rowspan_total']->value; ?> " colspan="3" id="cart_voucher" class="cart_voucher"> <?php if ($_smarty_tpl->tpl_vars['voucherAllowed']->value) { ?> <form action="<?php if ($_smarty_tpl->tpl_vars['opc']->value) { echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('order-opc', true); } else { echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('order', true); } ?> " method="post" id="voucher"> <fieldset> <h4><?php echo smartyTranslate(array('s' => 'Vouchers'), $_smarty_tpl); ?> </h4> <input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="<?php if (isset($_smarty_tpl->tpl_vars['discount_name']->value) && $_smarty_tpl->tpl_vars['discount_name']->value) { echo $_smarty_tpl->tpl_vars['discount_name']->value; } ?> " /> <input type="hidden" name="submitDiscount" /> <button type="submit" name="submitAddDiscount" class="button btn btn-default button-small"><span><?php echo smartyTranslate(array('s' => 'OK'), $_smarty_tpl); ?> </span></button> </fieldset> </form> <?php if ($_smarty_tpl->tpl_vars['displayVouchers']->value) { ?> <p id="title" class="title-offers"><?php echo smartyTranslate(array('s' => 'Take advantage of our exclusive offers:'), $_smarty_tpl); ?> </p> <div id="display_cart_vouchers"> <?php $_smarty_tpl->tpl_vars['voucher'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['voucher']->_loop = false; $_from = $_smarty_tpl->tpl_vars['displayVouchers']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['voucher']->key => $_smarty_tpl->tpl_vars['voucher']->value) { $_smarty_tpl->tpl_vars['voucher']->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['voucher']->value['code'] != '') { ?> <span class="voucher_name" data-code="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['voucher']->value['code'], ENT_QUOTES, 'UTF-8', true); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['voucher']->value['code'], ENT_QUOTES, 'UTF-8', true); ?> </span> - <?php } echo $_smarty_tpl->tpl_vars['voucher']->value['name']; ?> <br /> <?php } ?> </div> <?php } ?> <?php } ?> </td> <td colspan="<?php echo $_smarty_tpl->tpl_vars['col_span_subtotal']->value; ?> " class="text-right"><?php if ($_smarty_tpl->tpl_vars['display_tax_label']->value) { echo smartyTranslate(array('s' => 'Total products (tax excl.)'), $_smarty_tpl); } else { echo smartyTranslate(array('s' => 'Total products'), $_smarty_tpl); } ?> </td> <td colspan="2" class="price" id="total_product"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['total_products']->value), $_smarty_tpl); ?> </td> </tr> <?php } else { ?> <tr class="cart_total_price"> <td rowspan="<?php echo $_smarty_tpl->tpl_vars['rowspan_total']->value; ?> " colspan="2" id="cart_voucher" class="cart_voucher"> <?php if ($_smarty_tpl->tpl_vars['voucherAllowed']->value) { ?> <form action="<?php if ($_smarty_tpl->tpl_vars['opc']->value) { echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('order-opc', true); } else { echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('order', true); } ?> " method="post" id="voucher"> <fieldset> <h4><?php echo smartyTranslate(array('s' => 'Vouchers'), $_smarty_tpl); ?> </h4> <input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="<?php if (isset($_smarty_tpl->tpl_vars['discount_name']->value) && $_smarty_tpl->tpl_vars['discount_name']->value) { echo $_smarty_tpl->tpl_vars['discount_name']->value; } ?> " /> <input type="hidden" name="submitDiscount" /> <button type="submit" name="submitAddDiscount" class="button btn btn-default button-small"><span><?php echo smartyTranslate(array('s' => 'OK'), $_smarty_tpl); ?> </span></button> </fieldset> </form> <?php if ($_smarty_tpl->tpl_vars['displayVouchers']->value) { ?> <p id="title" class="title-offers"><?php echo smartyTranslate(array('s' => 'Take advantage of our exclusive offers:'), $_smarty_tpl); ?> </p> <div id="display_cart_vouchers"> <?php $_smarty_tpl->tpl_vars['voucher'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['voucher']->_loop = false; $_from = $_smarty_tpl->tpl_vars['displayVouchers']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['voucher']->key => $_smarty_tpl->tpl_vars['voucher']->value) { $_smarty_tpl->tpl_vars['voucher']->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['voucher']->value['code'] != '') { ?> <span class="voucher_name" data-code="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['voucher']->value['code'], ENT_QUOTES, 'UTF-8', true); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['voucher']->value['code'], ENT_QUOTES, 'UTF-8', true); ?> </span> - <?php } echo $_smarty_tpl->tpl_vars['voucher']->value['name']; ?> <br /> <?php } ?> </div> <?php } ?> <?php } ?> </td> <td colspan="<?php echo $_smarty_tpl->tpl_vars['col_span_subtotal']->value; ?> " class="text-right"><?php if ($_smarty_tpl->tpl_vars['display_tax_label']->value) { echo smartyTranslate(array('s' => 'Total products (tax incl.)'), $_smarty_tpl); } else { echo smartyTranslate(array('s' => 'Total products'), $_smarty_tpl); } ?> </td> <td colspan="2" class="price" id="total_product"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['total_products_wt']->value), $_smarty_tpl); ?> </td> </tr> <?php } ?> <?php } else { ?> <tr class="cart_total_price"> <td rowspan="<?php echo $_smarty_tpl->tpl_vars['rowspan_total']->value; ?> " colspan="2" id="cart_voucher" class="cart_voucher"> <?php if ($_smarty_tpl->tpl_vars['voucherAllowed']->value) { ?> <form action="<?php if ($_smarty_tpl->tpl_vars['opc']->value) { echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('order-opc', true); } else { echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('order', true); } ?> " method="post" id="voucher"> <fieldset> <h4><?php echo smartyTranslate(array('s' => 'Vouchers'), $_smarty_tpl); ?> </h4> <input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="<?php if (isset($_smarty_tpl->tpl_vars['discount_name']->value) && $_smarty_tpl->tpl_vars['discount_name']->value) { echo $_smarty_tpl->tpl_vars['discount_name']->value; } ?> " /> <input type="hidden" name="submitDiscount" /> <button type="submit" name="submitAddDiscount" class="button btn btn-default button-small"> <span><?php echo smartyTranslate(array('s' => 'OK'), $_smarty_tpl); ?> </span> </button> </fieldset> </form> <?php if ($_smarty_tpl->tpl_vars['displayVouchers']->value) { ?> <p id="title" class="title-offers"><?php echo smartyTranslate(array('s' => 'Take advantage of our exclusive offers:'), $_smarty_tpl); ?> </p> <div id="display_cart_vouchers"> <?php $_smarty_tpl->tpl_vars['voucher'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['voucher']->_loop = false; $_from = $_smarty_tpl->tpl_vars['displayVouchers']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['voucher']->key => $_smarty_tpl->tpl_vars['voucher']->value) { $_smarty_tpl->tpl_vars['voucher']->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['voucher']->value['code'] != '') { ?> <span class="voucher_name" data-code="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['voucher']->value['code'], ENT_QUOTES, 'UTF-8', true); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['voucher']->value['code'], ENT_QUOTES, 'UTF-8', true); ?> </span> - <?php } echo $_smarty_tpl->tpl_vars['voucher']->value['name']; ?> <br /> <?php } ?> </div> <?php } ?> <?php } ?> </td> <td colspan="<?php echo $_smarty_tpl->tpl_vars['col_span_subtotal']->value; ?> " class="text-right"><?php echo smartyTranslate(array('s' => 'Total products'), $_smarty_tpl); ?> </td> <td colspan="2" class="price" id="total_product"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['total_products']->value), $_smarty_tpl); ?> </td> </tr> <?php } ?> <tr<?php if ($_smarty_tpl->tpl_vars['total_wrapping']->value == 0) { ?> style="display: none;"<?php } ?> > <td colspan="3" class="text-right"> <?php if ($_smarty_tpl->tpl_vars['use_taxes']->value) { ?> <?php if ($_smarty_tpl->tpl_vars['display_tax_label']->value) { echo smartyTranslate(array('s' => 'Total gift wrapping (tax incl.)'), $_smarty_tpl); } else { echo smartyTranslate(array('s' => 'Total gift-wrapping cost'), $_smarty_tpl); } ?> <?php } else { ?> <?php echo smartyTranslate(array('s' => 'Total gift-wrapping cost'), $_smarty_tpl); ?> <?php } ?> </td> <td colspan="2" class="price-discount price" id="total_wrapping"> <?php if ($_smarty_tpl->tpl_vars['use_taxes']->value) { ?> <?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['total_wrapping_tax_exc']->value), $_smarty_tpl); ?> <?php } else { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['total_wrapping']->value), $_smarty_tpl); ?> <?php } ?> <?php } else { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['total_wrapping_tax_exc']->value), $_smarty_tpl); ?> <?php } ?> </td> </tr> <?php if ($_smarty_tpl->tpl_vars['total_shipping_tax_exc']->value <= 0 && (!isset($_smarty_tpl->tpl_vars['isVirtualCart']->value) || !$_smarty_tpl->tpl_vars['isVirtualCart']->value) && $_smarty_tpl->tpl_vars['free_ship']->value) { ?> <tr class="cart_total_delivery<?php if (!$_smarty_tpl->tpl_vars['opc']->value && (!isset($_smarty_tpl->tpl_vars['cart']->value->id_address_delivery) || !$_smarty_tpl->tpl_vars['cart']->value->id_address_delivery)) { ?> unvisible<?php } ?> "> <td colspan="<?php echo $_smarty_tpl->tpl_vars['col_span_subtotal']->value; ?> " class="text-right"><?php echo smartyTranslate(array('s' => 'Total shipping'), $_smarty_tpl); ?> </td> <td colspan="2" class="price" id="total_shipping"><?php echo smartyTranslate(array('s' => 'Free shipping!'), $_smarty_tpl); ?> </td> </tr> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['use_taxes']->value && $_smarty_tpl->tpl_vars['total_shipping_tax_exc']->value != $_smarty_tpl->tpl_vars['total_shipping']->value) { ?> <?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value) { ?> <tr class="cart_total_delivery<?php if ($_smarty_tpl->tpl_vars['total_shipping_tax_exc']->value <= 0) { ?> unvisible<?php } ?> "> <td colspan="<?php echo $_smarty_tpl->tpl_vars['col_span_subtotal']->value; ?> " class="text-right"><?php if ($_smarty_tpl->tpl_vars['display_tax_label']->value) { echo smartyTranslate(array('s' => 'Total shipping (tax excl.)'), $_smarty_tpl); } else { echo smartyTranslate(array('s' => 'Total shipping'), $_smarty_tpl); } ?> </td> <td colspan="2" class="price" id="total_shipping"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['total_shipping_tax_exc']->value), $_smarty_tpl); ?> </td> </tr> <?php } else { ?> <tr class="cart_total_delivery<?php if ($_smarty_tpl->tpl_vars['total_shipping']->value <= 0) { ?> unvisible<?php } ?> "> <td colspan="<?php echo $_smarty_tpl->tpl_vars['col_span_subtotal']->value; ?> " class="text-right"><?php if ($_smarty_tpl->tpl_vars['display_tax_label']->value) { echo smartyTranslate(array('s' => 'Total shipping (tax incl.)'), $_smarty_tpl); } else { echo smartyTranslate(array('s' => 'Total shipping'), $_smarty_tpl); } ?> </td> <td colspan="2" class="price" id="total_shipping" ><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['total_shipping']->value), $_smarty_tpl); ?> </td> </tr> <?php } ?> <?php } else { ?> <tr class="cart_total_delivery<?php if ($_smarty_tpl->tpl_vars['total_shipping_tax_exc']->value <= 0) { ?> unvisible<?php } ?> "> <td colspan="<?php echo $_smarty_tpl->tpl_vars['col_span_subtotal']->value; ?> " class="text-right"><?php echo smartyTranslate(array('s' => 'Total shipping'), $_smarty_tpl); ?> </td> <td colspan="2" class="price" id="total_shipping" ><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['total_shipping_tax_exc']->value), $_smarty_tpl); ?> </td> </tr> <?php } ?> <?php } ?> <tr class="cart_total_voucher<?php if ($_smarty_tpl->tpl_vars['total_discounts']->value == 0) { ?> unvisible<?php } ?> "> <td colspan="<?php echo $_smarty_tpl->tpl_vars['col_span_subtotal']->value; ?> " class="text-right"> <?php if ($_smarty_tpl->tpl_vars['display_tax_label']->value) { ?> <?php if ($_smarty_tpl->tpl_vars['use_taxes']->value && $_smarty_tpl->tpl_vars['priceDisplay']->value == 0) { ?> <?php echo smartyTranslate(array('s' => 'Total vouchers (tax incl.)'), $_smarty_tpl); ?> <?php } else { ?> <?php echo smartyTranslate(array('s' => 'Total vouchers (tax excl.)'), $_smarty_tpl); ?> <?php } ?> <?php } else { ?> <?php echo smartyTranslate(array('s' => 'Total vouchers'), $_smarty_tpl); ?> <?php } ?> </td> <td colspan="2" class="price-discount price" id="total_discount"> <?php if ($_smarty_tpl->tpl_vars['use_taxes']->value && $_smarty_tpl->tpl_vars['priceDisplay']->value == 0) { ?> <?php $_smarty_tpl->tpl_vars['total_discounts_negative'] = new Smarty_variable($_smarty_tpl->tpl_vars['total_discounts']->value * -1, null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['total_discounts_negative'] = new Smarty_variable($_smarty_tpl->tpl_vars['total_discounts_tax_exc']->value * -1, null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['total_discounts_negative']->value), $_smarty_tpl); ?> </td> </tr> <?php if ($_smarty_tpl->tpl_vars['use_taxes']->value && $_smarty_tpl->tpl_vars['show_taxes']->value && $_smarty_tpl->tpl_vars['total_tax']->value != 0) { ?> <?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value != 0) { ?> <tr class="cart_total_price"> <td colspan="<?php echo $_smarty_tpl->tpl_vars['col_span_subtotal']->value; ?> " class="text-right"><?php if ($_smarty_tpl->tpl_vars['display_tax_label']->value) { echo smartyTranslate(array('s' => 'Total (tax excl.)'), $_smarty_tpl); } else { echo smartyTranslate(array('s' => 'Total'), $_smarty_tpl); } ?> </td> <td colspan="2" class="price" id="total_price_without_tax"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['total_price_without_tax']->value), $_smarty_tpl); ?> </td> </tr> <?php } ?> <tr class="cart_total_tax"> <td colspan="<?php echo $_smarty_tpl->tpl_vars['col_span_subtotal']->value; ?> " class="text-right"><?php echo smartyTranslate(array('s' => 'Tax'), $_smarty_tpl); ?> </td> <td colspan="2" class="price" id="total_tax"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['total_tax']->value), $_smarty_tpl); ?> </td> </tr> <?php } ?> <tr class="cart_total_price"> <td colspan="<?php echo $_smarty_tpl->tpl_vars['col_span_subtotal']->value; ?> " class="total_price_container text-right"> <span><?php echo smartyTranslate(array('s' => 'Total'), $_smarty_tpl); ?> </span> <div class="hookDisplayProductPriceBlock-price"> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayCartTotalPriceLabel"), $_smarty_tpl); ?> </div> </td> <?php if ($_smarty_tpl->tpl_vars['use_taxes']->value) { ?> <td colspan="2" class="price" id="total_price_container"> <span id="total_price"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['total_price']->value), $_smarty_tpl); ?> </span> </td> <?php } else { ?> <td colspan="2" class="price" id="total_price_container"> <span id="total_price"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['total_price_without_tax']->value), $_smarty_tpl); ?> </span> </td> <?php } ?> </tr> </tfoot> <tbody> <?php $_smarty_tpl->tpl_vars['odd'] = new Smarty_variable(0, null, 0); ?> <?php $_smarty_tpl->tpl_vars['have_non_virtual_products'] = new Smarty_variable(false, null, 0); ?> <?php $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['product']->_loop = false; $_from = $_smarty_tpl->tpl_vars['products']->value; 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']->first = $_smarty_tpl->tpl_vars['product']->index === 0; $_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']->value['is_virtual'] == 0) { ?> <?php $_smarty_tpl->tpl_vars['have_non_virtual_products'] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars['productId'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['id_product'], null, 0); ?> <?php $_smarty_tpl->tpl_vars['productAttributeId'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['id_product_attribute'], null, 0); ?> <?php $_smarty_tpl->tpl_vars['quantityDisplayed'] = new Smarty_variable(0, null, 0); ?> <?php $_smarty_tpl->tpl_vars['odd'] = new Smarty_variable(($_smarty_tpl->tpl_vars['odd']->value + 1) % 2, null, 0); ?> <?php $_smarty_tpl->tpl_vars['ignoreProductLast'] = new Smarty_variable(isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value]) || count($_smarty_tpl->tpl_vars['gift_products']->value), null, 0); ?> <?php echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./shopping-cart-product-line.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('productLast' => $_smarty_tpl->tpl_vars['product']->last, 'productFirst' => $_smarty_tpl->tpl_vars['product']->first), 0); ?> <?php if (isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value][$_smarty_tpl->tpl_vars['product']->value['id_address_delivery']])) { ?> <?php $_smarty_tpl->tpl_vars['customization'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['customization']->_loop = false; $_smarty_tpl->tpl_vars['id_customization'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value][$_smarty_tpl->tpl_vars['product']->value['id_address_delivery']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['customization']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['customization']->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars['customization']->key => $_smarty_tpl->tpl_vars['customization']->value) { $_smarty_tpl->tpl_vars['customization']->_loop = true; $_smarty_tpl->tpl_vars['id_customization']->value = $_smarty_tpl->tpl_vars['customization']->key; $_smarty_tpl->tpl_vars['customization']->iteration++; $_smarty_tpl->tpl_vars['customization']->last = $_smarty_tpl->tpl_vars['customization']->iteration === $_smarty_tpl->tpl_vars['customization']->total; ?> <tr id="product_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product']; ?> _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute']; ?> _<?php echo $_smarty_tpl->tpl_vars['id_customization']->value; ?> _<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']); ?> " class="product_customization_for_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product']; ?> _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute']; ?> _<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']); if ($_smarty_tpl->tpl_vars['odd']->value) { ?> odd<?php } else { ?> even<?php } ?> customization alternate_item <?php if ($_smarty_tpl->tpl_vars['product']->last && $_smarty_tpl->tpl_vars['customization']->last && !count($_smarty_tpl->tpl_vars['gift_products']->value)) { ?> last_item<?php } ?> "> <td></td> <td colspan="3"> <?php $_smarty_tpl->tpl_vars['custom_data'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['custom_data']->_loop = false; $_smarty_tpl->tpl_vars['type'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['customization']->value['datas']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['custom_data']->key => $_smarty_tpl->tpl_vars['custom_data']->value) { $_smarty_tpl->tpl_vars['custom_data']->_loop = true; $_smarty_tpl->tpl_vars['type']->value = $_smarty_tpl->tpl_vars['custom_data']->key; ?> <?php if ($_smarty_tpl->tpl_vars['type']->value == $_smarty_tpl->tpl_vars['CUSTOMIZE_FILE']->value) { ?> <div class="customizationUploaded"> <ul class="customizationUploaded"> <?php $_smarty_tpl->tpl_vars['picture'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['picture']->_loop = false; $_from = $_smarty_tpl->tpl_vars['custom_data']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['picture']->key => $_smarty_tpl->tpl_vars['picture']->value) { $_smarty_tpl->tpl_vars['picture']->_loop = true; ?> <li><img src="<?php echo $_smarty_tpl->tpl_vars['pic_dir']->value; echo $_smarty_tpl->tpl_vars['picture']->value['value']; ?> _small" alt="" class="customizationUploaded" /></li> <?php } ?> </ul> </div> <?php } elseif ($_smarty_tpl->tpl_vars['type']->value == $_smarty_tpl->tpl_vars['CUSTOMIZE_TEXTFIELD']->value) { ?> <ul class="typedText"> <?php $_smarty_tpl->tpl_vars['textField'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['textField']->_loop = false; $_from = $_smarty_tpl->tpl_vars['custom_data']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['textField']->index = -1; foreach ($_from as $_smarty_tpl->tpl_vars['textField']->key => $_smarty_tpl->tpl_vars['textField']->value) { $_smarty_tpl->tpl_vars['textField']->_loop = true; $_smarty_tpl->tpl_vars['textField']->index++; ?> <li> <?php if ($_smarty_tpl->tpl_vars['textField']->value['name']) { ?> <?php echo $_smarty_tpl->tpl_vars['textField']->value['name']; ?> <?php } else { ?> <?php echo smartyTranslate(array('s' => 'Text #'), $_smarty_tpl); echo $_smarty_tpl->tpl_vars['textField']->index + 1; ?> <?php } ?> : <?php echo $_smarty_tpl->tpl_vars['textField']->value['value']; ?> </li> <?php } ?> </ul> <?php } ?> <?php } ?> </td> <td class="cart_quantity" colspan="1"> <?php if (isset($_smarty_tpl->tpl_vars['cannotModify']->value) && $_smarty_tpl->tpl_vars['cannotModify']->value == 1) { ?> <span><?php if ($_smarty_tpl->tpl_vars['quantityDisplayed']->value == 0 && isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value])) { echo count($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value]); } else { echo $_smarty_tpl->tpl_vars['product']->value['cart_quantity'] - $_smarty_tpl->tpl_vars['quantityDisplayed']->value; } ?> </span> <?php } else { ?> <input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['customization']->value['quantity']; ?> " name="quantity_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product']; ?> _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute']; ?> _<?php echo $_smarty_tpl->tpl_vars['id_customization']->value; ?> _<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']); ?> _hidden"/> <input type="text" value="<?php echo $_smarty_tpl->tpl_vars['customization']->value['quantity']; ?> " class="cart_quantity_input form-control grey" name="quantity_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product']; ?> _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute']; ?> _<?php echo $_smarty_tpl->tpl_vars['id_customization']->value; ?> _<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']); ?> "/> <div class="cart_quantity_button clearfix"> <?php if ($_smarty_tpl->tpl_vars['product']->value['minimal_quantity'] < $_smarty_tpl->tpl_vars['customization']->value['quantity'] - $_smarty_tpl->tpl_vars['quantityDisplayed']->value || $_smarty_tpl->tpl_vars['product']->value['minimal_quantity'] <= 1) { ?> <a id="cart_quantity_down_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product']; ?> _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute']; ?> _<?php echo $_smarty_tpl->tpl_vars['id_customization']->value; ?> _<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']); ?> " class="cart_quantity_down btn btn-default button-minus" href="<?php ob_start(); echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']); $_tmp13 = ob_get_clean(); ob_start(); echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']); $_tmp14 = ob_get_clean(); echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('cart', true, null, "add=1&id_product=" . $_tmp13 . "&ipa=" . $_tmp14 . "&id_address_delivery=" . (string) $_smarty_tpl->tpl_vars['product']->value['id_address_delivery'] . "&id_customization=" . (string) $_smarty_tpl->tpl_vars['id_customization']->value . "&op=down&token=" . (string) $_smarty_tpl->tpl_vars['token_cart']->value), ENT_QUOTES, 'UTF-8', true); ?> " rel="nofollow" title="<?php echo smartyTranslate(array('s' => 'Subtract'), $_smarty_tpl); ?> "> <span><i class="icon-minus"></i></span> </a> <?php } else { ?> <a id="cart_quantity_down_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product']; ?> _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute']; ?> _<?php echo $_smarty_tpl->tpl_vars['id_customization']->value; ?> " class="cart_quantity_down btn btn-default button-minus disabled" href="#" title="<?php echo smartyTranslate(array('s' => 'Subtract'), $_smarty_tpl); ?> "> <span><i class="icon-minus"></i></span> </a> <?php } ?> <a id="cart_quantity_up_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product']; ?> _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute']; ?> _<?php echo $_smarty_tpl->tpl_vars['id_customization']->value; ?> _<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']); ?> " class="cart_quantity_up btn btn-default button-plus" href="<?php ob_start(); echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']); $_tmp15 = ob_get_clean(); ob_start(); echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']); $_tmp16 = ob_get_clean(); echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('cart', true, null, "add=1&id_product=" . $_tmp15 . "&ipa=" . $_tmp16 . "&id_address_delivery=" . (string) $_smarty_tpl->tpl_vars['product']->value['id_address_delivery'] . "&id_customization=" . (string) $_smarty_tpl->tpl_vars['id_customization']->value . "&token=" . (string) $_smarty_tpl->tpl_vars['token_cart']->value), ENT_QUOTES, 'UTF-8', true); ?> " rel="nofollow" title="<?php echo smartyTranslate(array('s' => 'Add'), $_smarty_tpl); ?> "> <span><i class="icon-plus"></i></span> </a> </div> <?php } ?> </td> <td class="cart_delete text-center"> <?php if (isset($_smarty_tpl->tpl_vars['cannotModify']->value) && $_smarty_tpl->tpl_vars['cannotModify']->value == 1) { ?> <?php } else { ?> <a id="<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product']; ?> _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute']; ?> _<?php echo $_smarty_tpl->tpl_vars['id_customization']->value; ?> _<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']); ?> " class="cart_quantity_delete" href="<?php ob_start(); echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']); $_tmp17 = ob_get_clean(); ob_start(); echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']); $_tmp18 = ob_get_clean(); echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('cart', true, null, "delete=1&id_product=" . $_tmp17 . "&ipa=" . $_tmp18 . "&id_customization=" . (string) $_smarty_tpl->tpl_vars['id_customization']->value . "&id_address_delivery=" . (string) $_smarty_tpl->tpl_vars['product']->value['id_address_delivery'] . "&token=" . (string) $_smarty_tpl->tpl_vars['token_cart']->value), ENT_QUOTES, 'UTF-8', true); ?> " rel="nofollow" title="<?php echo smartyTranslate(array('s' => 'Delete'), $_smarty_tpl); ?> "> <i class="icon-trash"></i> </a> <?php } ?> </td> <td> </td> </tr> <?php $_smarty_tpl->tpl_vars['quantityDisplayed'] = new Smarty_variable($_smarty_tpl->tpl_vars['quantityDisplayed']->value + $_smarty_tpl->tpl_vars['customization']->value['quantity'], null, 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['product']->value['quantity'] - $_smarty_tpl->tpl_vars['quantityDisplayed']->value > 0) { echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./shopping-cart-product-line.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('productLast' => $_smarty_tpl->tpl_vars['product']->last, 'productFirst' => $_smarty_tpl->tpl_vars['product']->first), 0); } ?> <?php } ?> <?php } ?> <?php $_smarty_tpl->tpl_vars['last_was_odd'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->iteration % 2, null, 0); ?> <?php $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['product']->_loop = false; $_from = $_smarty_tpl->tpl_vars['gift_products']->value; 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']->first = $_smarty_tpl->tpl_vars['product']->index === 0; $_smarty_tpl->tpl_vars['product']->last = $_smarty_tpl->tpl_vars['product']->iteration === $_smarty_tpl->tpl_vars['product']->total; ?> <?php $_smarty_tpl->tpl_vars['productId'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['id_product'], null, 0); ?> <?php $_smarty_tpl->tpl_vars['productAttributeId'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['id_product_attribute'], null, 0); ?> <?php $_smarty_tpl->tpl_vars['quantityDisplayed'] = new Smarty_variable(0, null, 0); ?> <?php $_smarty_tpl->tpl_vars['odd'] = new Smarty_variable(($_smarty_tpl->tpl_vars['product']->iteration + $_smarty_tpl->tpl_vars['last_was_odd']->value) % 2, null, 0); ?> <?php $_smarty_tpl->tpl_vars['ignoreProductLast'] = new Smarty_variable(isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value]), null, 0); ?> <?php $_smarty_tpl->tpl_vars['cannotModify'] = new Smarty_variable(1, null, 0); ?> <?php echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./shopping-cart-product-line.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('productLast' => $_smarty_tpl->tpl_vars['product']->last, 'productFirst' => $_smarty_tpl->tpl_vars['product']->first), 0); ?> <?php } ?> </tbody> <?php if (sizeof($_smarty_tpl->tpl_vars['discounts']->value)) { ?> <tbody> <?php $_smarty_tpl->tpl_vars['discount'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['discount']->_loop = false; $_from = $_smarty_tpl->tpl_vars['discounts']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['discount']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['discount']->iteration = 0; $_smarty_tpl->tpl_vars['discount']->index = -1; foreach ($_from as $_smarty_tpl->tpl_vars['discount']->key => $_smarty_tpl->tpl_vars['discount']->value) { $_smarty_tpl->tpl_vars['discount']->_loop = true; $_smarty_tpl->tpl_vars['discount']->iteration++; $_smarty_tpl->tpl_vars['discount']->index++; $_smarty_tpl->tpl_vars['discount']->first = $_smarty_tpl->tpl_vars['discount']->index === 0; $_smarty_tpl->tpl_vars['discount']->last = $_smarty_tpl->tpl_vars['discount']->iteration === $_smarty_tpl->tpl_vars['discount']->total; ?> <?php if ((double) $_smarty_tpl->tpl_vars['discount']->value['value_real'] == 0 && $_smarty_tpl->tpl_vars['discount']->value['free_shipping'] != 1 || (double) $_smarty_tpl->tpl_vars['discount']->value['value_real'] == 0 && $_smarty_tpl->tpl_vars['discount']->value['code'] == '') { ?> <?php continue 1; ?> <?php } ?> <tr class="cart_discount <?php if ($_smarty_tpl->tpl_vars['discount']->last) { ?> last_item<?php } elseif ($_smarty_tpl->tpl_vars['discount']->first) { ?> first_item<?php } else { ?> item<?php } ?> " id="cart_discount_<?php echo $_smarty_tpl->tpl_vars['discount']->value['id_discount']; ?> "> <td class="cart_discount_name" colspan="<?php if ($_smarty_tpl->tpl_vars['PS_STOCK_MANAGEMENT']->value) { ?> 3<?php } else { ?> 2<?php } ?> "><?php echo $_smarty_tpl->tpl_vars['discount']->value['name']; ?> </td> <td class="cart_discount_price"> <span class="price-discount"> <?php if (!$_smarty_tpl->tpl_vars['priceDisplay']->value) { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['discount']->value['value_real'] * -1), $_smarty_tpl); } else { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['discount']->value['value_tax_exc'] * -1), $_smarty_tpl); } ?> </span> </td> <td class="cart_discount_delete">1</td> <td class="price_discount_del text-center"> <?php if (strlen($_smarty_tpl->tpl_vars['discount']->value['code'])) { ?> <a href="<?php if ($_smarty_tpl->tpl_vars['opc']->value) { echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('order-opc', true); } else { echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('order', true); } ?> ?deleteDiscount=<?php echo $_smarty_tpl->tpl_vars['discount']->value['id_discount']; ?> " class="price_discount_delete" title="<?php echo smartyTranslate(array('s' => 'Delete'), $_smarty_tpl); ?> "> <i class="icon-trash"></i> </a> <?php } ?> </td> <td class="cart_discount_price"> <span class="price-discount price"><?php if (!$_smarty_tpl->tpl_vars['priceDisplay']->value) { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['discount']->value['value_real'] * -1), $_smarty_tpl); } else { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['discount']->value['value_tax_exc'] * -1), $_smarty_tpl); } ?> </span> </td> </tr> <?php } ?> </tbody> <?php } ?> </table> </div> <!-- end order-detail-content --> <?php if ($_smarty_tpl->tpl_vars['show_option_allow_separate_package']->value) { ?> <p> <label for="allow_seperated_package" class="checkbox inline"> <input type="checkbox" name="allow_seperated_package" id="allow_seperated_package" <?php if ($_smarty_tpl->tpl_vars['cart']->value->allow_seperated_package) { ?> checked="checked"<?php } ?> autocomplete="off"/> <?php echo smartyTranslate(array('s' => 'Send available products first'), $_smarty_tpl); ?> </label> </p> <?php } ?> <?php if (!isset($_smarty_tpl->tpl_vars['addresses_style']->value)) { ?> <?php $_smarty_tpl->createLocalArrayVariable('addresses_style', null, 0); $_smarty_tpl->tpl_vars['addresses_style']->value['company'] = 'address_company'; ?> <?php $_smarty_tpl->createLocalArrayVariable('addresses_style', null, 0); $_smarty_tpl->tpl_vars['addresses_style']->value['vat_number'] = 'address_company'; ?> <?php $_smarty_tpl->createLocalArrayVariable('addresses_style', null, 0); $_smarty_tpl->tpl_vars['addresses_style']->value['firstname'] = 'address_name'; ?> <?php $_smarty_tpl->createLocalArrayVariable('addresses_style', null, 0); $_smarty_tpl->tpl_vars['addresses_style']->value['lastname'] = 'address_name'; ?> <?php $_smarty_tpl->createLocalArrayVariable('addresses_style', null, 0); $_smarty_tpl->tpl_vars['addresses_style']->value['address1'] = 'address_address1'; ?> <?php $_smarty_tpl->createLocalArrayVariable('addresses_style', null, 0); $_smarty_tpl->tpl_vars['addresses_style']->value['address2'] = 'address_address2'; ?> <?php $_smarty_tpl->createLocalArrayVariable('addresses_style', null, 0); $_smarty_tpl->tpl_vars['addresses_style']->value['city'] = 'address_city'; ?> <?php $_smarty_tpl->createLocalArrayVariable('addresses_style', null, 0); $_smarty_tpl->tpl_vars['addresses_style']->value['country'] = 'address_country'; ?> <?php $_smarty_tpl->createLocalArrayVariable('addresses_style', null, 0); $_smarty_tpl->tpl_vars['addresses_style']->value['phone'] = 'address_phone'; ?> <?php $_smarty_tpl->createLocalArrayVariable('addresses_style', null, 0); $_smarty_tpl->tpl_vars['addresses_style']->value['phone_mobile'] = 'address_phone_mobile'; ?> <?php $_smarty_tpl->createLocalArrayVariable('addresses_style', null, 0); $_smarty_tpl->tpl_vars['addresses_style']->value['alias'] = 'address_title'; ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['advanced_payment_api']->value && (!empty($_smarty_tpl->tpl_vars['delivery_option']->value) && (!isset($_smarty_tpl->tpl_vars['isVirtualCart']->value) || !$_smarty_tpl->tpl_vars['isVirtualCart']->value) || $_smarty_tpl->tpl_vars['delivery']->value->id || $_smarty_tpl->tpl_vars['invoice']->value->id) && !$_smarty_tpl->tpl_vars['opc']->value) { ?> <div class="order_delivery clearfix row"> <?php if (!isset($_smarty_tpl->tpl_vars['formattedAddresses']->value) || count($_smarty_tpl->tpl_vars['formattedAddresses']->value['invoice']) == 0 && count($_smarty_tpl->tpl_vars['formattedAddresses']->value['delivery']) == 0 || count($_smarty_tpl->tpl_vars['formattedAddresses']->value['invoice']['formated']) == 0 && count($_smarty_tpl->tpl_vars['formattedAddresses']->value['delivery']['formated']) == 0) { ?> <?php if ($_smarty_tpl->tpl_vars['delivery']->value->id) { ?> <div class="col-xs-12 col-sm-6"<?php if (!$_smarty_tpl->tpl_vars['have_non_virtual_products']->value) { ?> style="display: none;"<?php } ?> > <ul id="delivery_address" class="address item box"> <li><h3 class="page-subheading"><?php echo smartyTranslate(array('s' => 'Delivery address'), $_smarty_tpl); ?> <span class="address_alias">(<?php echo $_smarty_tpl->tpl_vars['delivery']->value->alias; ?> )</span></h3></li> <?php if ($_smarty_tpl->tpl_vars['delivery']->value->company) { ?> <li class="address_company"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['delivery']->value->company, ENT_QUOTES, 'UTF-8', true); ?> </li><?php } ?> <li class="address_name"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['delivery']->value->firstname, ENT_QUOTES, 'UTF-8', true); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['delivery']->value->lastname, ENT_QUOTES, 'UTF-8', true); ?> </li> <li class="address_address1"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['delivery']->value->address1, ENT_QUOTES, 'UTF-8', true); ?> </li> <?php if ($_smarty_tpl->tpl_vars['delivery']->value->address2) { ?> <li class="address_address2"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['delivery']->value->address2, ENT_QUOTES, 'UTF-8', true); ?> </li><?php } ?> <li class="address_city"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['delivery']->value->postcode, ENT_QUOTES, 'UTF-8', true); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['delivery']->value->city, ENT_QUOTES, 'UTF-8', true); ?> </li> <li class="address_country"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['delivery']->value->country, ENT_QUOTES, 'UTF-8', true); ?> <?php if ($_smarty_tpl->tpl_vars['delivery_state']->value) { ?> (<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['delivery_state']->value, ENT_QUOTES, 'UTF-8', true); ?> )<?php } ?> </li> </ul> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['invoice']->value->id) { ?> <div class="col-xs-12 col-sm-6"> <ul id="invoice_address" class="address alternate_item box"> <li><h3 class="page-subheading"><?php echo smartyTranslate(array('s' => 'Invoice address'), $_smarty_tpl); ?> <span class="address_alias">(<?php echo $_smarty_tpl->tpl_vars['invoice']->value->alias; ?> )</span></h3></li> <?php if ($_smarty_tpl->tpl_vars['invoice']->value->company) { ?> <li class="address_company"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['invoice']->value->company, ENT_QUOTES, 'UTF-8', true); ?> </li><?php } ?> <li class="address_name"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['invoice']->value->firstname, ENT_QUOTES, 'UTF-8', true); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['invoice']->value->lastname, ENT_QUOTES, 'UTF-8', true); ?> </li> <li class="address_address1"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['invoice']->value->address1, ENT_QUOTES, 'UTF-8', true); ?> </li> <?php if ($_smarty_tpl->tpl_vars['invoice']->value->address2) { ?> <li class="address_address2"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['invoice']->value->address2, ENT_QUOTES, 'UTF-8', true); ?> </li><?php } ?> <li class="address_city"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['invoice']->value->postcode, ENT_QUOTES, 'UTF-8', true); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['invoice']->value->city, ENT_QUOTES, 'UTF-8', true); ?> </li> <li class="address_country"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['invoice']->value->country, ENT_QUOTES, 'UTF-8', true); ?> <?php if ($_smarty_tpl->tpl_vars['invoice_state']->value) { ?> (<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['invoice_state']->value, ENT_QUOTES, 'UTF-8', true); ?> )<?php } ?> </li> </ul> </div> <?php } ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['address'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['address']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['formattedAddresses']->value; 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; $_smarty_tpl->tpl_vars['address']->index = -1; 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['k']->value = $_smarty_tpl->tpl_vars['address']->key; $_smarty_tpl->tpl_vars['address']->iteration++; $_smarty_tpl->tpl_vars['address']->index++; $_smarty_tpl->tpl_vars['address']->first = $_smarty_tpl->tpl_vars['address']->index === 0; $_smarty_tpl->tpl_vars['address']->last = $_smarty_tpl->tpl_vars['address']->iteration === $_smarty_tpl->tpl_vars['address']->total; ?> <div class="col-xs-12 col-sm-6"<?php if ($_smarty_tpl->tpl_vars['k']->value == 'delivery' && !$_smarty_tpl->tpl_vars['have_non_virtual_products']->value) { ?> style="display: none;"<?php } ?> > <ul class="address <?php if ($_smarty_tpl->tpl_vars['address']->last) { ?> last_item<?php } elseif ($_smarty_tpl->tpl_vars['address']->first) { ?> first_item<?php } ?> <?php if ($_smarty_tpl->tpl_vars['address']->index % 2) { ?> alternate_item<?php } else { ?> item<?php } ?> box"> <li> <h3 class="page-subheading"> <?php if ($_smarty_tpl->tpl_vars['k']->value == 'invoice') { ?> <?php echo smartyTranslate(array('s' => 'Invoice address'), $_smarty_tpl); ?> <?php } elseif ($_smarty_tpl->tpl_vars['k']->value == 'delivery' && $_smarty_tpl->tpl_vars['delivery']->value->id) { ?> <?php echo smartyTranslate(array('s' => 'Delivery address'), $_smarty_tpl); ?> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['address']->value['object']['alias'])) { ?> <span class="address_alias">(<?php echo $_smarty_tpl->tpl_vars['address']->value['object']['alias']; ?> )</span> <?php } ?> </h3> </li> <?php $_smarty_tpl->tpl_vars['pattern'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['pattern']->_loop = false; $_from = $_smarty_tpl->tpl_vars['address']->value['ordered']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['pattern']->key => $_smarty_tpl->tpl_vars['pattern']->value) { $_smarty_tpl->tpl_vars['pattern']->_loop = true; ?> <?php $_smarty_tpl->tpl_vars['addressKey'] = new Smarty_variable(explode(" ", $_smarty_tpl->tpl_vars['pattern']->value), null, 0); ?> <?php $_smarty_tpl->tpl_vars['addedli'] = new Smarty_variable(false, null, 0); ?> <?php $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['key']->_loop = false; $_from = $_smarty_tpl->tpl_vars['addressKey']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['key']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['key']->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars['key']->key => $_smarty_tpl->tpl_vars['key']->value) { $_smarty_tpl->tpl_vars['key']->_loop = true; $_smarty_tpl->tpl_vars['key']->iteration++; $_smarty_tpl->tpl_vars['key']->last = $_smarty_tpl->tpl_vars['key']->iteration === $_smarty_tpl->tpl_vars['key']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['foo']['last'] = $_smarty_tpl->tpl_vars['key']->last; ?> <?php $_smarty_tpl->tpl_vars['key_str'] = new Smarty_variable(smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['key']->value, AddressFormat::_CLEANING_REGEX_, ''), null, 0); ?> <?php if (isset($_smarty_tpl->tpl_vars['address']->value['formated'][$_smarty_tpl->tpl_vars['key_str']->value]) && !empty($_smarty_tpl->tpl_vars['address']->value['formated'][$_smarty_tpl->tpl_vars['key_str']->value])) { ?> <?php if (!$_smarty_tpl->tpl_vars['addedli']->value) { ?> <?php $_smarty_tpl->tpl_vars['addedli'] = new Smarty_variable(true, null, 0); ?> <li><span class="<?php if (isset($_smarty_tpl->tpl_vars['addresses_style']->value[$_smarty_tpl->tpl_vars['key_str']->value])) { echo $_smarty_tpl->tpl_vars['addresses_style']->value[$_smarty_tpl->tpl_vars['key_str']->value]; } ?> "> <?php } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['address']->value['formated'][$_smarty_tpl->tpl_vars['key_str']->value], ENT_QUOTES, 'UTF-8', true); ?> <?php } ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['foo']['last'] && $_smarty_tpl->tpl_vars['addedli']->value) { ?> </span></li> <?php } ?> <?php } ?> <?php } ?> </ul> </div> <?php } ?> <?php } ?> </div> <?php } ?> <div id="HOOK_SHOPPING_CART"><?php echo $_smarty_tpl->tpl_vars['HOOK_SHOPPING_CART']->value; ?> </div> <p class="cart_navigation clearfix"> <?php if (!$_smarty_tpl->tpl_vars['opc']->value) { ?> <a href="<?php if ($_smarty_tpl->tpl_vars['back']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('order', true, null, 'step=1&back={$back}'), ENT_QUOTES, 'UTF-8', true); } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('order', true, null, 'step=1'), ENT_QUOTES, 'UTF-8', true); } ?> " class="button btn btn-default standard-checkout button-medium" title="<?php echo smartyTranslate(array('s' => 'Proceed to checkout'), $_smarty_tpl); ?> "> <span><?php echo smartyTranslate(array('s' => 'Proceed to checkout'), $_smarty_tpl); ?> <i class="icon-chevron-right right"></i></span> </a> <?php } ?> <a href="<?php if (isset($_SERVER['HTTP_REFERER']) && ($_SERVER['HTTP_REFERER'] == $_smarty_tpl->tpl_vars['link']->value->getPageLink('order', true) || $_SERVER['HTTP_REFERER'] == $_smarty_tpl->tpl_vars['link']->value->getPageLink('order-opc', true) || strstr($_SERVER['HTTP_REFERER'], 'step=')) || !isset($_SERVER['HTTP_REFERER'])) { echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('index'); } else { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['secureReferrer'][0][0]->secureReferrer(htmlspecialchars($_SERVER['HTTP_REFERER'], ENT_QUOTES, 'UTF-8', true)); } ?> " class="button-exclusive btn btn-default" title="<?php echo smartyTranslate(array('s' => 'Continue shopping'), $_smarty_tpl); ?> "> <i class="icon-chevron-left"></i><?php echo smartyTranslate(array('s' => 'Continue shopping'), $_smarty_tpl); ?> </a> </p> <div class="clear"></div> <div class="cart_navigation_extra"> <div id="HOOK_SHOPPING_CART_EXTRA"><?php if (isset($_smarty_tpl->tpl_vars['HOOK_SHOPPING_CART_EXTRA']->value)) { echo $_smarty_tpl->tpl_vars['HOOK_SHOPPING_CART_EXTRA']->value; } ?> </div> </div> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('deliveryAddress' => intval($_smarty_tpl->tpl_vars['cart']->value->id_address_delivery)), $_smarty_tpl); $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'txtProduct')); $_block_repeat = true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'txtProduct'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); echo smartyTranslate(array('s' => 'product', 'js' => 1), $_smarty_tpl); $_block_content = ob_get_clean(); $_block_repeat = false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'txtProduct'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'txtProducts')); $_block_repeat = true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'txtProducts'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); echo smartyTranslate(array('s' => 'products', 'js' => 1), $_smarty_tpl); $_block_content = ob_get_clean(); $_block_repeat = false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'txtProducts'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } }
function content_568d50242ab0f2_56558385($_smarty_tpl) { if (!is_callable('smarty_modifier_regex_replace')) { include '/Users/Gauthier/Desktop/G-M-Shop/prestashop/tools/smarty/plugins/modifier.regex_replace.php'; } ?> <?php $_smarty_tpl->_capture_stack[0][] = array('path', null, null); ob_start(); ?> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account', true), ENT_QUOTES, 'UTF-8', true); ?> "> <?php echo smartyTranslate(array('s' => 'My account'), $_smarty_tpl); ?> </a> <span class="navigation-pipe"> <?php echo $_smarty_tpl->tpl_vars['navigationPipe']->value; ?> </span> <span class="navigation_page"> <?php echo smartyTranslate(array('s' => 'Return Merchandise Authorization (RMA)'), $_smarty_tpl); ?> </span> <?php 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(); } ?> <h1 class="page-heading bottom-indent"> <?php echo smartyTranslate(array('s' => 'Return Merchandise Authorization (RMA)'), $_smarty_tpl); ?> </h1> <?php if (isset($_smarty_tpl->tpl_vars['errorQuantity']->value) && $_smarty_tpl->tpl_vars['errorQuantity']->value) { ?> <p class="error"> <?php echo smartyTranslate(array('s' => 'You do not have enough products to request an additional merchandise return.'), $_smarty_tpl); ?> </p> <?php } if (isset($_smarty_tpl->tpl_vars['errorMsg']->value) && $_smarty_tpl->tpl_vars['errorMsg']->value) { ?> <p class="alert alert-danger"> <?php echo smartyTranslate(array('s' => 'Please provide an explanation for your RMA.'), $_smarty_tpl); ?> </p> <form method="POST" id="returnOrderMessage"> <p class="textarea form-group"> <label><?php echo smartyTranslate(array('s' => 'Please provide an explanation for your RMA:'), $_smarty_tpl); ?> </label> <textarea name="returnText" class="form-control"></textarea> </p> <?php $_smarty_tpl->tpl_vars['id_order_detail'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['id_order_detail']->_loop = false; $_from = $_smarty_tpl->tpl_vars['ids_order_detail']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['id_order_detail']->key => $_smarty_tpl->tpl_vars['id_order_detail']->value) { $_smarty_tpl->tpl_vars['id_order_detail']->_loop = true; ?> <input type="hidden" name="ids_order_detail[<?php echo intval($_smarty_tpl->tpl_vars['id_order_detail']->value); ?> ]" value="<?php echo intval($_smarty_tpl->tpl_vars['id_order_detail']->value); ?> "/> <?php } ?> <?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['value']->_loop = false; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['order_qte_input']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) { $_smarty_tpl->tpl_vars['value']->_loop = true; $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['value']->key; ?> <input type="hidden" name="order_qte_input[<?php echo intval($_smarty_tpl->tpl_vars['key']->value); ?> ]" value="<?php echo intval($_smarty_tpl->tpl_vars['value']->value); ?> "/> <?php } ?> <input type="hidden" name="id_order" value="<?php echo intval($_smarty_tpl->tpl_vars['id_order']->value); ?> "/> <input class="unvisible" type="submit" name="submitReturnMerchandise" value="<?php echo smartyTranslate(array('s' => 'Make an RMA slip'), $_smarty_tpl); ?> "/> <p> <button type="submit" name="submitReturnMerchandise" class="btn btn-default button button-small"> <span> <?php echo smartyTranslate(array('s' => 'Make an RMA slip'), $_smarty_tpl); ?> <i class="icon-chevron-right right"></i> </span> </button> </p> </form> <?php } if (isset($_smarty_tpl->tpl_vars['errorDetail1']->value) && $_smarty_tpl->tpl_vars['errorDetail1']->value) { ?> <p class="alert alert-danger"> <?php echo smartyTranslate(array('s' => 'Please check at least one product you would like to return.'), $_smarty_tpl); ?> </p> <?php } if (isset($_smarty_tpl->tpl_vars['errorDetail2']->value) && $_smarty_tpl->tpl_vars['errorDetail2']->value) { ?> <p class="alert alert-danger"> <?php echo smartyTranslate(array('s' => 'For each product you wish to add, please specify the desired quantity.'), $_smarty_tpl); ?> </p> <?php } if (isset($_smarty_tpl->tpl_vars['errorNotReturnable']->value) && $_smarty_tpl->tpl_vars['errorNotReturnable']->value) { ?> <p class="alert alert-danger"> <?php echo smartyTranslate(array('s' => 'This order cannot be returned.'), $_smarty_tpl); ?> </p> <?php } ?> <p class="info-title"> <?php echo smartyTranslate(array('s' => 'Here is a list of pending merchandise returns'), $_smarty_tpl); ?> . </p> <div class="block-center" id="block-history"> <?php if ($_smarty_tpl->tpl_vars['ordersReturn']->value && count($_smarty_tpl->tpl_vars['ordersReturn']->value)) { ?> <table id="order-list" class="table table-bordered footab"> <thead> <tr> <th data-sort-ignore="true" class="first_item"><?php echo smartyTranslate(array('s' => 'Return'), $_smarty_tpl); ?> </th> <th data-sort-ignore="true" class="item"><?php echo smartyTranslate(array('s' => 'Order'), $_smarty_tpl); ?> </th> <th data-hide="phone" class="item"><?php echo smartyTranslate(array('s' => 'Package status'), $_smarty_tpl); ?> </th> <th data-hide="phone,tablet" class="item"><?php echo smartyTranslate(array('s' => 'Date issued'), $_smarty_tpl); ?> </th> <th data-sort-ignore="true" data-hide="phone,tablet" class="last_item"><?php echo smartyTranslate(array('s' => 'Return slip'), $_smarty_tpl); ?> </th> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars['return'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['return']->_loop = false; $_from = $_smarty_tpl->tpl_vars['ordersReturn']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['return']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['return']->iteration = 0; $_smarty_tpl->tpl_vars['return']->index = -1; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['index'] = -1; foreach ($_from as $_smarty_tpl->tpl_vars['return']->key => $_smarty_tpl->tpl_vars['return']->value) { $_smarty_tpl->tpl_vars['return']->_loop = true; $_smarty_tpl->tpl_vars['return']->iteration++; $_smarty_tpl->tpl_vars['return']->index++; $_smarty_tpl->tpl_vars['return']->first = $_smarty_tpl->tpl_vars['return']->index === 0; $_smarty_tpl->tpl_vars['return']->last = $_smarty_tpl->tpl_vars['return']->iteration === $_smarty_tpl->tpl_vars['return']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['first'] = $_smarty_tpl->tpl_vars['return']->first; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['index']++; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['last'] = $_smarty_tpl->tpl_vars['return']->last; ?> <tr class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['first']) { ?> first_item<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['last']) { ?> last_item<?php } else { ?> item<?php } ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['index'] % 2) { ?> alternate_item<?php } ?> "> <td class="bold"> <a class="color-myaccount" href="javascript:showOrder(0, <?php echo intval($_smarty_tpl->tpl_vars['return']->value['id_order_return']); ?> , '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('order-return', true), ENT_QUOTES, 'UTF-8', true); ?> ');"> <?php echo smartyTranslate(array('s' => '#'), $_smarty_tpl); echo sprintf("%06d", $_smarty_tpl->tpl_vars['return']->value['id_order_return']); ?> </a> </td> <td class="history_method"> <a class="color-myaccount" href="javascript:showOrder(1, <?php echo intval($_smarty_tpl->tpl_vars['return']->value['id_order']); ?> , '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('order-detail', true), ENT_QUOTES, 'UTF-8', true); ?> ');"> <?php echo $_smarty_tpl->tpl_vars['return']->value['reference']; ?> </a> </td> <td class="history_method" data-value="<?php echo $_smarty_tpl->tpl_vars['return']->value['state']; ?> "> <span class="label label-info"> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['return']->value['state_name'], ENT_QUOTES, 'UTF-8', true); ?> </span> </td> <td class="bold" data-value="<?php echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['return']->value['date_add'], "/[\\-\\:\\ ]/", ''); ?> "> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['return']->value['date_add'], 'full' => 0), $_smarty_tpl); ?> </td> <td class="history_invoice"> <?php if ($_smarty_tpl->tpl_vars['return']->value['state'] == 2) { ?> <a class="link-button" href="<?php ob_start(); echo intval($_smarty_tpl->tpl_vars['return']->value['id_order_return']); $_tmp20 = ob_get_clean(); echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('pdf-order-return', true, null, "id_order_return=" . $_tmp20), ENT_QUOTES, 'UTF-8', true); ?> " title="<?php echo smartyTranslate(array('s' => 'Order return'), $_smarty_tpl); ?> <?php echo smartyTranslate(array('s' => '#'), $_smarty_tpl); echo sprintf("%06d", $_smarty_tpl->tpl_vars['return']->value['id_order_return']); ?> "> <i class="icon-file-text"></i> <?php echo smartyTranslate(array('s' => 'Print out'), $_smarty_tpl); ?> </a> <?php } else { ?> -- <?php } ?> </td> </tr> <?php } ?> </tbody> </table> <div id="block-order-detail" class="unvisible"> </div> <?php } else { ?> <p class="alert alert-warning"><?php echo smartyTranslate(array('s' => 'You have no merchandise return authorizations.'), $_smarty_tpl); ?> </p> <?php } ?> </div> <ul class="footer_links clearfix"> <li> <a class="btn btn-default button button-small" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account', true), ENT_QUOTES, 'UTF-8', true); ?> "> <span> <i class="icon-chevron-left"></i> <?php echo smartyTranslate(array('s' => 'Back to your account'), $_smarty_tpl); ?> </span> </a> </li> <li> <a class="btn btn-default button button-small" href="<?php if (isset($_smarty_tpl->tpl_vars['force_ssl']->value) && $_smarty_tpl->tpl_vars['force_ssl']->value) { echo $_smarty_tpl->tpl_vars['base_dir_ssl']->value; } else { echo $_smarty_tpl->tpl_vars['base_dir']->value; } ?> "> <span> <i class="icon-chevron-left"></i> <?php echo smartyTranslate(array('s' => 'Home'), $_smarty_tpl); ?> </span> </a> </li> </ul> <?php }
function content_5613b9b82233b5_23741179($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { include 'D:\\wamp\\www\\xiaomipl\\tools\\smarty\\plugins\\modifier.replace.php'; } if (!is_callable('smarty_modifier_regex_replace')) { include 'D:\\wamp\\www\\xiaomipl\\tools\\smarty\\plugins\\modifier.regex_replace.php'; } ?> <!-- Breadcrumb --> <?php if (isset(Smarty::$_smarty_vars['capture']['path'])) { $_smarty_tpl->tpl_vars['path'] = new Smarty_variable(Smarty::$_smarty_vars['capture']['path'], null, 0); } ?> <div class="breadcrumb clearfix"> <a class="home" href="<?php if (isset($_smarty_tpl->tpl_vars['force_ssl']->value) && $_smarty_tpl->tpl_vars['force_ssl']->value) { echo $_smarty_tpl->tpl_vars['base_dir_ssl']->value; } else { echo $_smarty_tpl->tpl_vars['base_dir']->value; } ?> " title="<?php echo smartyTranslate(array('s' => 'Return to Home'), $_smarty_tpl); ?> "><i class="icon-home"></i></a> <?php if (isset($_smarty_tpl->tpl_vars['path']->value) && $_smarty_tpl->tpl_vars['path']->value) { ?> <span class="navigation-pipe"<?php if (isset($_smarty_tpl->tpl_vars['category']->value) && isset($_smarty_tpl->tpl_vars['category']->value->id_category) && $_smarty_tpl->tpl_vars['category']->value->id_category == (int) Configuration::get('PS_ROOT_CATEGORY')) { ?> style="display:none;"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['navigationPipe']->value, ENT_QUOTES, 'UTF-8', true); ?> </span> <?php if (strpos($_smarty_tpl->tpl_vars['path']->value, 'span') !== false) { ?> <span class="navigation_page"><?php echo smarty_modifier_replace(smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['path']->value, '<a ', '<span itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a itemprop="url" '), 'data-gg="">', '><span itemprop="title">'), '</a>', '</span></a></span>'); ?> </span> <?php } else { ?> <?php echo $_smarty_tpl->tpl_vars['path']->value; ?> <?php } ?> <?php } ?> </div> <?php if (isset($_GET['search_query']) && isset($_GET['results']) && $_GET['results'] > 1 && isset($_SERVER['HTTP_REFERER'])) { ?> <div class="pull-right"> <strong> <?php $_smarty_tpl->_capture_stack[0][] = array('default', null, null); ob_start(); if (isset($_GET['HTTP_REFERER']) && $_GET['HTTP_REFERER']) { echo $_GET['HTTP_REFERER']; } elseif (isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER']) { echo $_SERVER['HTTP_REFERER']; } 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(); } ?> <a href="<?php echo smarty_modifier_regex_replace($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['secureReferrer'][0][0]->secureReferrer(htmlspecialchars(Smarty::$_smarty_vars['capture']['default'], ENT_QUOTES, 'UTF-8', true)), '/[\\?|&]content_only=1/', ''); ?> " name="back"> <i class="icon-chevron-left left"></i> <?php echo smartyTranslate(array('s' => 'Back to Search results for "%s" (%d other results)', 'sprintf' => array($_GET['search_query'], $_GET['results'])), $_smarty_tpl); ?> </a> </strong> </div> <?php } ?> <!-- /Breadcrumb --> <?php }
function content_56e07c50954cf2_48877137($_smarty_tpl) { if (!is_callable('smarty_modifier_regex_replace')) { include 'T:\\home\\stamp-expert.ru\\www\\tools\\smarty\\plugins\\modifier.regex_replace.php'; } ?> <?php if ($_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) { ?> <h2 id="cart_title"><?php echo smartyTranslate(array('s' => 'Your shopping cart', 'mod' => 'onepagecheckout'), $_smarty_tpl); ?> </h2> <p class="warning"><?php echo smartyTranslate(array('s' => 'This store has not accepted your new order.', 'mod' => 'onepagecheckout'), $_smarty_tpl); ?> </p> <?php } else { ?> <script type="text/javascript"> // <![CDATA[ var baseDir = '<?php echo $_smarty_tpl->tpl_vars['base_dir_ssl']->value; ?> '; var imgDir = '<?php echo $_smarty_tpl->tpl_vars['img_dir']->value; ?> '; var authenticationUrl = '<?php echo $_smarty_tpl->tpl_vars['link']->value->getPageLink("authentication", true); ?> '; var orderOpcUrl = '<?php echo $_smarty_tpl->tpl_vars['link']->value->getPageLink("order-opc", true); ?> '; var historyUrl = '<?php echo $_smarty_tpl->tpl_vars['link']->value->getPageLink("history", true); ?> '; var guestTrackingUrl = '<?php echo $_smarty_tpl->tpl_vars['link']->value->getPageLink("guest-tracking", true); ?> '; var addressUrl = '<?php echo $_smarty_tpl->tpl_vars['link']->value->getPageLink("address", true, null, "back=order-opc.php"); ?> '; var orderProcess = 'order-opc'; var guestCheckoutEnabled = <?php echo intval($_smarty_tpl->tpl_vars['PS_GUEST_CHECKOUT_ENABLED']->value); ?> ; 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 displayPrice = <?php echo $_smarty_tpl->tpl_vars['priceDisplay']->value; ?> ; var taxEnabled = <?php echo $_smarty_tpl->tpl_vars['use_taxes']->value; ?> ; var conditionEnabled = <?php echo intval($_smarty_tpl->tpl_vars['conditions']->value); ?> ; var countries = new Array(); var countriesNeedIDNumber = new Array(); var countriesNeedZipCode = new Array(); var vat_management = <?php echo intval($_smarty_tpl->tpl_vars['vat_management']->value); ?> ; var txtWithTax = "<?php echo smartyTranslate(array('s' => '(tax incl.)', 'mod' => 'onepagecheckout'), $_smarty_tpl); ?> "; var txtWithoutTax = "<?php echo smartyTranslate(array('s' => '(tax excl.)', 'mod' => 'onepagecheckout'), $_smarty_tpl); ?> "; var txtHasBeenSelected = "<?php echo smartyTranslate(array('s' => 'has been selected', 'mod' => 'onepagecheckout'), $_smarty_tpl); ?> "; var txtNoCarrierIsSelected = "<?php echo smartyTranslate(array('s' => 'No carrier has been selected', 'mod' => 'onepagecheckout'), $_smarty_tpl); ?> "; var txtNoCarrierIsNeeded = "<?php echo smartyTranslate(array('s' => 'No carrier is needed for this order', 'mod' => 'onepagecheckout'), $_smarty_tpl); ?> "; var txtConditionsIsNotNeeded = "<?php echo smartyTranslate(array('s' => 'No terms of service must be accepted', 'mod' => 'onepagecheckout'), $_smarty_tpl); ?> "; var txtTOSIsAccepted = "<?php echo smartyTranslate(array('s' => 'Terms of service is accepted', 'mod' => 'onepagecheckout'), $_smarty_tpl); ?> "; var txtTOSIsNotAccepted = "<?php echo smartyTranslate(array('s' => 'Terms of service have not been accepted', 'mod' => 'onepagecheckout'), $_smarty_tpl); ?> "; var txtThereis = "<?php echo smartyTranslate(array('s' => 'There is', 'mod' => 'onepagecheckout'), $_smarty_tpl); ?> "; var txtErrors = "<?php echo smartyTranslate(array('s' => 'error(s)', 'mod' => 'onepagecheckout'), $_smarty_tpl); ?> "; var txtDeliveryAddress = "<?php echo smartyTranslate(array('s' => 'Delivery address', 'mod' => 'onepagecheckout'), $_smarty_tpl); ?> "; var txtInvoiceAddress = "<?php echo smartyTranslate(array('s' => 'Invoice address', 'mod' => 'onepagecheckout'), $_smarty_tpl); ?> "; var txtModifyMyAddress = "<?php echo smartyTranslate(array('s' => 'Modify my address', 'mod' => 'onepagecheckout'), $_smarty_tpl); ?> "; var txtInstantCheckout = "<?php echo smartyTranslate(array('s' => 'Instant checkout', 'mod' => 'onepagecheckout'), $_smarty_tpl); ?> "; var errorCarrier = "<?php echo $_smarty_tpl->tpl_vars['errorCarrier']->value; ?> "; var errorTOS = "<?php echo $_smarty_tpl->tpl_vars['errorTOS']->value; ?> "; var errorPayment = "<?php echo smartyTranslate(array('s' => 'Please select payment method.', 'mod' => 'onepagecheckout'), $_smarty_tpl); ?> "; var checkedCarrier = "<?php if (isset($_smarty_tpl->tpl_vars['checked']->value)) { echo $_smarty_tpl->tpl_vars['checked']->value; } else { ?> 0<?php } ?> "; var txtProduct = "<?php echo smartyTranslate(array('s' => 'product', 'mod' => 'onepagecheckout'), $_smarty_tpl); ?> "; var txtProducts = "<?php echo smartyTranslate(array('s' => 'products', 'mod' => 'onepagecheckout'), $_smarty_tpl); ?> "; var txtFreePrice = "<?php echo smartyTranslate(array('s' => 'Free!', 'mod' => 'onepagecheckout'), $_smarty_tpl); ?> "; <?php if (isset($_smarty_tpl->tpl_vars['onlyCartSummary']->value)) { ?> var onlyCartSummary = '1'; <?php } else { ?> var onlyCartSummary = '0'; <?php } ?> var addresses = new Array(); var isLogged = <?php echo intval($_smarty_tpl->tpl_vars['isLogged']->value); ?> ; var isGuest = <?php echo intval($_smarty_tpl->tpl_vars['isGuest']->value); ?> ; var isVirtualCart = <?php echo intval($_smarty_tpl->tpl_vars['isVirtualCart']->value); ?> ; var isPaymentStep = <?php echo intval($_smarty_tpl->tpl_vars['isPaymentStep']->value); ?> ; var opc_scroll_cart = "<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['scroll_cart'] && $_smarty_tpl->tpl_vars['productNumber']->value; ?> "; var opc_scroll_header_cart = "<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['scroll_header_cart'] && $_smarty_tpl->tpl_vars['productNumber']->value; ?> "; var opc_scroll_info = "1"; var opc_scroll_summary = "<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['scroll_summary'] && $_smarty_tpl->tpl_vars['productNumber']->value; ?> "; var opc_scroll_products = "<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['scroll_products']; ?> "; var opc_page_fading = "<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['page_fading'] && $_smarty_tpl->tpl_vars['productNumber']->value; ?> "; var opc_fading_duration = "<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['fading_duration']; ?> "; var opc_fading_opacity = "<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['fading_opacity']; ?> "; var opc_sample_values = "<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['sample_values']; ?> "; var opc_sample_to_placeholder = ('<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['sample_to_placeholder']; ?> ' == '1') ? true: false; var opc_inline_validation = "<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['inline_validation']; ?> "; var opc_validation_checkboxes = "<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['validation_checkboxes']; ?> "; var opc_display_info_block = '<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['display_info_block']; ?> '; var opc_info_block_content = '<?php echo smarty_modifier_regex_replace(smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['info_block_content']->value, "/[\r\t\n]/", " "), "/\\'/", "\\'"); ?> '; var opc_before_info_element = '<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['before_info_element']; ?> '; var opc_check_number_in_address = '<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['check_number_in_address']; ?> '; var opc_capitalize_fields = '<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['capitalize_fields']; ?> '; var opc_relay_update = '<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['update_payments_relay']; ?> '; var opc_hide_carrier = '<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['hide_carrier']; ?> '; var opc_hide_payment = '<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['hide_payment']; ?> '; var opc_override_checkout_btn = '<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['override_checkout_btn']; ?> '; var ps_guest_checkout_enabled = '<?php echo $_smarty_tpl->tpl_vars['PS_GUEST_CHECKOUT_ENABLED']->value; ?> ' var opc_display_password_msg = '<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['display_password_msg']; ?> '; var opc_live_zip = '<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['live_zip']; ?> '; var opc_live_city = '<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['live_city']; ?> '; var opc_cart_summary_bottom = '<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['cart_summary_bottom']; ?> '; var opc_above_confirmation_message = '<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['above_confirmation_message']; ?> '; var opc_order_detail_review = '<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['order_detail_review']; ?> '; var opc_animate_fields_padding = '<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['animate_fields_padding']; ?> '; var opc_two_column_opc = '<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['two_column_opc']; ?> '; var opc_three_column_opc = ('<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['three_column_opc']; ?> ' == '1') ? true: false; var opc_cookie_cache = '<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['cookie_cache']; ?> '; var opc_move_cgv = '<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['move_cgv']; ?> '; var opc_responsive_layout = '<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['responsive_layout']; ?> '; var opc_company_based_vat = '<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['company_based_vat']; ?> '; var opc_save_account_overlay = '<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['save_account_overlay']; ?> '; var opc_payment_radio_buttons = '<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['payment_radio_buttons']; ?> '; var opc_invoice_first = false; var opc_default_ps_carriers = ('<?php echo $_smarty_tpl->tpl_vars['opc_config']->value['default_ps_carriers']; ?> ' == '1') ? true : false; // Some more translations var ntf_close = "<?php echo smartyTranslate(array('s' => 'Close', 'mod' => 'onepagecheckout'), $_smarty_tpl); ?> "; var ntf_number_in_address_missing = "<?php echo smartyTranslate(array('s' => 'Number in address is missing, are you sure you don\'t have one?', 'mod' => 'onepagecheckout'), $_smarty_tpl); ?> "; var freeShippingTranslation = "<?php echo smartyTranslate(array('s' => 'Free shipping!', 'mod' => 'onepagecheckout'), $_smarty_tpl); ?> "; var freeProductTranslation = "<?php echo smartyTranslate(array('s' => 'Free!', 'mod' => 'onepagecheckout'), $_smarty_tpl); ?> "; //]]> </script> <div id="opc_checkout" class="<?php if (version_compare(@constant('_PS_VERSION_'), '1.6', '>')) { ?> ps16<?php } else { ?> ps15<?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['productNumber']->value) { ?> <!-- Shopping Cart --> <?php if (!$_smarty_tpl->tpl_vars['twoStepCheckout']->value && !$_smarty_tpl->tpl_vars['opc_config']->value['cart_summary_bottom']) { ?> <span class="summary-top"></span> <?php echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['opc_templates_path']->value . "/shopping-cart.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <!-- END Shopping Cart --> <!-- Create account / Guest account / Login block --> <?php echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['opc_templates_path']->value . "/order-opc-new-account.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <!-- END Create account / Guest account / Login block --> <div id="shipping-payment-block"> <div class="inner-table"> <!-- Carrier --> <?php if ($_smarty_tpl->tpl_vars['opc_config']->value['default_ps_carriers']) { ?> <?php echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['opc_templates_path']->value . "/order-carrier-def.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['opc_templates_path']->value . "/order-carrier.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <!-- END Carrier --> <!-- Payment --> <?php echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['opc_templates_path']->value . "/order-payment.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <!-- END Payment --> <?php } else { ?> <h2><?php echo smartyTranslate(array('s' => 'Your shopping cart', 'mod' => 'onepagecheckout'), $_smarty_tpl); ?> </h2> <p class="warning"><?php echo smartyTranslate(array('s' => 'Your shopping cart is empty.', 'mod' => 'onepagecheckout'), $_smarty_tpl); ?> </p> <?php } ?> </div> <?php } }
function content_5672e64adea5c0_49566769($_smarty_tpl) { if (!is_callable('smarty_modifier_regex_replace')) { include 'C:\\xampp\\htdocs\\prestashop\\tools\\smarty\\plugins\\modifier.regex_replace.php'; } $_smarty_tpl->_capture_stack[0][] = array('path', null, null); ob_start(); ?> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account', true), ENT_QUOTES, 'UTF-8', true); ?> "><?php echo smartyTranslate(array('s' => 'My account'), $_smarty_tpl); ?> </a><span class="navigation-pipe"><?php echo $_smarty_tpl->tpl_vars['navigationPipe']->value; ?> </span><span class="navigation_page"><?php echo smartyTranslate(array('s' => 'My vouchers'), $_smarty_tpl); ?> </span><?php 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(); } ?> <h1 class="page-heading"> <?php echo smartyTranslate(array('s' => 'My vouchers'), $_smarty_tpl); ?> </h1> <?php if (isset($_smarty_tpl->tpl_vars['cart_rules']->value) && count($_smarty_tpl->tpl_vars['cart_rules']->value) && $_smarty_tpl->tpl_vars['nb_cart_rules']->value) { ?> <table class="discount table table-bordered footab"> <thead> <tr> <th data-sort-ignore="true" class="discount_code first_item"><?php echo smartyTranslate(array('s' => 'Code'), $_smarty_tpl); ?> </th> <th data-sort-ignore="true" class="discount_description item"><?php echo smartyTranslate(array('s' => 'Description'), $_smarty_tpl); ?> </th> <th class="discount_quantity item"><?php echo smartyTranslate(array('s' => 'Quantity'), $_smarty_tpl); ?> </th> <th data-sort-ignore="true" data-hide="phone,tablet" class="discount_value item"><?php echo smartyTranslate(array('s' => 'Value'), $_smarty_tpl); ?> *</th> <th data-hide="phone,tablet" class="discount_minimum item"><?php echo smartyTranslate(array('s' => 'Minimum'), $_smarty_tpl); ?> </th> <th data-sort-ignore="true" data-hide="phone,tablet" class="discount_cumulative item"><?php echo smartyTranslate(array('s' => 'Cumulative'), $_smarty_tpl); ?> </th> <th data-hide="phone" class="discount_expiration_date last_item"><?php echo smartyTranslate(array('s' => 'Expiration date'), $_smarty_tpl); ?> </th> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars['discountDetail'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['discountDetail']->_loop = false; $_from = $_smarty_tpl->tpl_vars['cart_rules']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['discountDetail']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['discountDetail']->iteration = 0; $_smarty_tpl->tpl_vars['discountDetail']->index = -1; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['index'] = -1; foreach ($_from as $_smarty_tpl->tpl_vars['discountDetail']->key => $_smarty_tpl->tpl_vars['discountDetail']->value) { $_smarty_tpl->tpl_vars['discountDetail']->_loop = true; $_smarty_tpl->tpl_vars['discountDetail']->iteration++; $_smarty_tpl->tpl_vars['discountDetail']->index++; $_smarty_tpl->tpl_vars['discountDetail']->first = $_smarty_tpl->tpl_vars['discountDetail']->index === 0; $_smarty_tpl->tpl_vars['discountDetail']->last = $_smarty_tpl->tpl_vars['discountDetail']->iteration === $_smarty_tpl->tpl_vars['discountDetail']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['first'] = $_smarty_tpl->tpl_vars['discountDetail']->first; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['index']++; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['last'] = $_smarty_tpl->tpl_vars['discountDetail']->last; ?> <tr class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['first']) { ?> first_item<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['last']) { ?> last_item<?php } else { ?> item<?php } ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['index'] % 2) { ?> alternate_item<?php } ?> "> <td class="discount_code"><?php echo $_smarty_tpl->tpl_vars['discountDetail']->value['code']; ?> </td> <td class="discount_description"><?php echo $_smarty_tpl->tpl_vars['discountDetail']->value['name']; ?> </td> <td data-value="<?php echo $_smarty_tpl->tpl_vars['discountDetail']->value['quantity_for_user']; ?> " class="discount_quantity"><?php echo $_smarty_tpl->tpl_vars['discountDetail']->value['quantity_for_user']; ?> </td> <td class="discount_value"> <?php if ($_smarty_tpl->tpl_vars['discountDetail']->value['id_discount_type'] == 1) { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['discountDetail']->value['value'], ENT_QUOTES, 'UTF-8', true); ?> % <?php } elseif ($_smarty_tpl->tpl_vars['discountDetail']->value['id_discount_type'] == 2) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['discountDetail']->value['value']), $_smarty_tpl); ?> (<?php if ($_smarty_tpl->tpl_vars['discountDetail']->value['reduction_tax'] == 1) { echo smartyTranslate(array('s' => 'Tax included'), $_smarty_tpl); } else { echo smartyTranslate(array('s' => 'Tax excluded'), $_smarty_tpl); } ?> ) <?php } elseif ($_smarty_tpl->tpl_vars['discountDetail']->value['id_discount_type'] == 3) { ?> <?php echo smartyTranslate(array('s' => 'Free shipping'), $_smarty_tpl); ?> <?php } else { ?> - <?php } ?> </td> <td class="discount_minimum" data-value="<?php if ($_smarty_tpl->tpl_vars['discountDetail']->value['minimal'] == 0) { ?> 0<?php } else { echo $_smarty_tpl->tpl_vars['discountDetail']->value['minimal']; } ?> "> <?php if ($_smarty_tpl->tpl_vars['discountDetail']->value['minimal'] == 0) { ?> <?php echo smartyTranslate(array('s' => 'None'), $_smarty_tpl); ?> <?php } else { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['discountDetail']->value['minimal']), $_smarty_tpl); ?> <?php } ?> </td> <td class="discount_cumulative"> <?php if ($_smarty_tpl->tpl_vars['discountDetail']->value['cumulable'] == 1) { ?> <i class="icon-ok icon"></i> <?php echo smartyTranslate(array('s' => 'Yes'), $_smarty_tpl); ?> <?php } else { ?> <i class="icon-remove icon"></i> <?php echo smartyTranslate(array('s' => 'No'), $_smarty_tpl); ?> <?php } ?> </td> <td class="discount_expiration_date" data-value="<?php echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['discountDetail']->value['date_to'], "/[\\-\\:\\ ]/", ''); ?> "> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['discountDetail']->value['date_to']), $_smarty_tpl); ?> </td> </tr> <?php } ?> </tbody> </table> <?php } else { ?> <p class="alert alert-warning"><?php echo smartyTranslate(array('s' => 'You do not have any vouchers.'), $_smarty_tpl); ?> </p> <?php } ?> <ul class="footer_links clearfix"> <li> <a class="btn btn-default button button-small" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account', true), ENT_QUOTES, 'UTF-8', true); ?> "> <span> <i class="icon-chevron-left"></i> <?php echo smartyTranslate(array('s' => 'Back to your account'), $_smarty_tpl); ?> </span> </a> </li> <li> <a class="btn btn-default button button-small" href="<?php if (isset($_smarty_tpl->tpl_vars['force_ssl']->value) && $_smarty_tpl->tpl_vars['force_ssl']->value) { echo $_smarty_tpl->tpl_vars['base_dir_ssl']->value; } else { echo $_smarty_tpl->tpl_vars['base_dir']->value; } ?> "> <span> <i class="icon-chevron-left"></i> <?php echo smartyTranslate(array('s' => 'Home'), $_smarty_tpl); ?> </span> </a> </li> </ul> <?php }
function content_56bb0225022556_93848200($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { include 'D:\\OpenServer\\domains\\Creative.mu\\tools\\smarty\\plugins\\modifier.replace.php'; } if (!is_callable('smarty_modifier_regex_replace')) { include 'D:\\OpenServer\\domains\\Creative.mu\\tools\\smarty\\plugins\\modifier.regex_replace.php'; } ?> <tr id="product_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product']; ?> _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute']; ?> _<?php if ($_smarty_tpl->tpl_vars['quantityDisplayed']->value > 0) { ?> nocustom<?php } else { ?> 0<?php } ?> _<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']); if (!empty($_smarty_tpl->tpl_vars['product']->value['gift'])) { ?> _gift<?php } ?> " class="cart_item<?php if (isset($_smarty_tpl->tpl_vars['productLast']->value) && $_smarty_tpl->tpl_vars['productLast']->value && (!isset($_smarty_tpl->tpl_vars['ignoreProductLast']->value) || !$_smarty_tpl->tpl_vars['ignoreProductLast']->value)) { ?> last_item<?php } if (isset($_smarty_tpl->tpl_vars['productFirst']->value) && $_smarty_tpl->tpl_vars['productFirst']->value) { ?> first_item<?php } if (isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value]) && $_smarty_tpl->tpl_vars['quantityDisplayed']->value == 0) { ?> alternate_item<?php } ?> address_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']); ?> <?php if ($_smarty_tpl->tpl_vars['odd']->value) { ?> odd<?php } else { ?> even<?php } ?> "> <td class="cart_product"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value['id_product'], $_smarty_tpl->tpl_vars['product']->value['link_rewrite'], $_smarty_tpl->tpl_vars['product']->value['category'], null, null, $_smarty_tpl->tpl_vars['product']->value['id_shop'], $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'], false, false, true), ENT_QUOTES, 'UTF-8', true); ?> "><img src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value['link_rewrite'], $_smarty_tpl->tpl_vars['product']->value['id_image'], 'small_default'), ENT_QUOTES, 'UTF-8', true); ?> " alt="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['name'], ENT_QUOTES, 'UTF-8', true); ?> " <?php if (isset($_smarty_tpl->tpl_vars['smallSize']->value)) { ?> width="<?php echo $_smarty_tpl->tpl_vars['smallSize']->value['width']; ?> " height="<?php echo $_smarty_tpl->tpl_vars['smallSize']->value['height']; ?> " <?php } ?> /></a> </td> <td class="cart_description"> <?php $_smarty_tpl->_capture_stack[0][] = array('sep', null, null); ob_start(); ?> : <?php 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 $_smarty_tpl->_capture_stack[0][] = array('default', null, null); ob_start(); echo smartyTranslate(array('s' => ' : '), $_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(); } ?> <p class="product-name"><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value['id_product'], $_smarty_tpl->tpl_vars['product']->value['link_rewrite'], $_smarty_tpl->tpl_vars['product']->value['category'], null, null, $_smarty_tpl->tpl_vars['product']->value['id_shop'], $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'], false, false, true), ENT_QUOTES, 'UTF-8', true); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['name'], ENT_QUOTES, 'UTF-8', true); ?> </a></p> <?php if ($_smarty_tpl->tpl_vars['product']->value['reference']) { ?> <small class="cart_ref"><?php echo smartyTranslate(array('s' => 'SKU'), $_smarty_tpl); echo Smarty::$_smarty_vars['capture']['default']; echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['reference'], ENT_QUOTES, 'UTF-8', true); ?> </small><?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['product']->value['attributes']) && $_smarty_tpl->tpl_vars['product']->value['attributes']) { ?> <small><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value['id_product'], $_smarty_tpl->tpl_vars['product']->value['link_rewrite'], $_smarty_tpl->tpl_vars['product']->value['category'], null, null, $_smarty_tpl->tpl_vars['product']->value['id_shop'], $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'], false, false, true), ENT_QUOTES, 'UTF-8', true); ?> "><?php echo htmlspecialchars(smarty_modifier_replace($_smarty_tpl->tpl_vars['product']->value['attributes'], Smarty::$_smarty_vars['capture']['sep'], Smarty::$_smarty_vars['capture']['default']), ENT_QUOTES, 'UTF-8', true); ?> </a></small><?php } ?> </td> <?php if ($_smarty_tpl->tpl_vars['PS_STOCK_MANAGEMENT']->value) { ?> <td class="cart_avail"><span class="label<?php if ($_smarty_tpl->tpl_vars['product']->value['quantity_available'] <= 0 && isset($_smarty_tpl->tpl_vars['product']->value['allow_oosp']) && !$_smarty_tpl->tpl_vars['product']->value['allow_oosp']) { ?> label-danger<?php } elseif ($_smarty_tpl->tpl_vars['product']->value['quantity_available'] <= 0) { ?> label-warning<?php } else { ?> label-success<?php } ?> "><?php if ($_smarty_tpl->tpl_vars['product']->value['quantity_available'] <= 0) { if (isset($_smarty_tpl->tpl_vars['product']->value['allow_oosp']) && $_smarty_tpl->tpl_vars['product']->value['allow_oosp']) { if (isset($_smarty_tpl->tpl_vars['product']->value['available_later']) && $_smarty_tpl->tpl_vars['product']->value['available_later']) { echo $_smarty_tpl->tpl_vars['product']->value['available_later']; } else { echo smartyTranslate(array('s' => 'In Stock'), $_smarty_tpl); } } else { echo smartyTranslate(array('s' => 'Out of stock'), $_smarty_tpl); } } else { if (isset($_smarty_tpl->tpl_vars['product']->value['available_now']) && $_smarty_tpl->tpl_vars['product']->value['available_now']) { echo $_smarty_tpl->tpl_vars['product']->value['available_now']; } else { echo smartyTranslate(array('s' => 'In Stock'), $_smarty_tpl); } } ?> </span><?php if (!$_smarty_tpl->tpl_vars['product']->value['is_virtual']) { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductDeliveryTime", 'product' => $_smarty_tpl->tpl_vars['product']->value), $_smarty_tpl); } ?> </td> <?php } ?> <td class="cart_unit" data-title="<?php echo smartyTranslate(array('s' => 'Unit price'), $_smarty_tpl); ?> "> <ul class="price text-right" id="product_price_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product']; ?> _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute']; if ($_smarty_tpl->tpl_vars['quantityDisplayed']->value > 0) { ?> _nocustom<?php } ?> _<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']); if (!empty($_smarty_tpl->tpl_vars['product']->value['gift'])) { ?> _gift<?php } ?> "> <?php if (!empty($_smarty_tpl->tpl_vars['product']->value['gift'])) { ?> <li class="gift-icon"><?php echo smartyTranslate(array('s' => 'Gift!'), $_smarty_tpl); ?> </li> <?php } else { ?> <?php if (!$_smarty_tpl->tpl_vars['priceDisplay']->value) { ?> <li class="price<?php if (isset($_smarty_tpl->tpl_vars['product']->value['is_discounted']) && $_smarty_tpl->tpl_vars['product']->value['is_discounted'] && isset($_smarty_tpl->tpl_vars['product']->value['reduction_applies']) && $_smarty_tpl->tpl_vars['product']->value['reduction_applies']) { ?> special-price<?php } ?> "><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['product']->value['price_wt']), $_smarty_tpl); ?> </li> <?php } else { ?> <li class="price<?php if (isset($_smarty_tpl->tpl_vars['product']->value['is_discounted']) && $_smarty_tpl->tpl_vars['product']->value['is_discounted'] && isset($_smarty_tpl->tpl_vars['product']->value['reduction_applies']) && $_smarty_tpl->tpl_vars['product']->value['reduction_applies']) { ?> special-price<?php } ?> "><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['product']->value['price']), $_smarty_tpl); ?> </li> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['product']->value['is_discounted']) && $_smarty_tpl->tpl_vars['product']->value['is_discounted'] && isset($_smarty_tpl->tpl_vars['product']->value['reduction_applies']) && $_smarty_tpl->tpl_vars['product']->value['reduction_applies']) { ?> <li class="price-percent-reduction small"> <?php if (!$_smarty_tpl->tpl_vars['priceDisplay']->value) { ?> <?php if (isset($_smarty_tpl->tpl_vars['product']->value['reduction_type']) && $_smarty_tpl->tpl_vars['product']->value['reduction_type'] == 'amount') { ?> <?php $_smarty_tpl->tpl_vars['priceReduction'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['price_wt'] - $_smarty_tpl->tpl_vars['product']->value['price_without_specific_price'], null, 0); ?> <?php $_smarty_tpl->tpl_vars['symbol'] = new Smarty_variable($_smarty_tpl->tpl_vars['currency']->value->sign, null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['priceReduction'] = new Smarty_variable(($_smarty_tpl->tpl_vars['product']->value['price_without_specific_price'] - $_smarty_tpl->tpl_vars['product']->value['price_wt']) / $_smarty_tpl->tpl_vars['product']->value['price_without_specific_price'] * 100 * -1, null, 0); ?> <?php $_smarty_tpl->tpl_vars['symbol'] = new Smarty_variable('%', null, 0); ?> <?php } ?> <?php } else { ?> <?php if (isset($_smarty_tpl->tpl_vars['product']->value['reduction_type']) && $_smarty_tpl->tpl_vars['product']->value['reduction_type'] == 'amount') { ?> <?php $_smarty_tpl->tpl_vars['priceReduction'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['price'] - $_smarty_tpl->tpl_vars['product']->value['price_without_specific_price'], null, 0); ?> <?php $_smarty_tpl->tpl_vars['symbol'] = new Smarty_variable($_smarty_tpl->tpl_vars['currency']->value->sign, null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['priceReduction'] = new Smarty_variable(($_smarty_tpl->tpl_vars['product']->value['price_without_specific_price'] - $_smarty_tpl->tpl_vars['product']->value['price']) / $_smarty_tpl->tpl_vars['product']->value['price_without_specific_price'] * -100, null, 0); ?> <?php $_smarty_tpl->tpl_vars['symbol'] = new Smarty_variable('%', null, 0); ?> <?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['symbol']->value == '%') { ?> <?php echo smarty_modifier_regex_replace(sprintf("%.2f", $_smarty_tpl->tpl_vars['priceReduction']->value), "/[^\\d]0+" . "\$" . "/", ''); echo $_smarty_tpl->tpl_vars['symbol']->value; ?> <?php } else { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['priceReduction']->value), $_smarty_tpl); ?> <?php } ?> </li> <li class="old-price"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['product']->value['price_without_specific_price']), $_smarty_tpl); ?> </li> <?php } ?> <?php } ?> </ul> </td> <td class="cart_quantity text-center" data-title="<?php echo smartyTranslate(array('s' => 'Quantity'), $_smarty_tpl); ?> "> <?php if (isset($_smarty_tpl->tpl_vars['cannotModify']->value) && $_smarty_tpl->tpl_vars['cannotModify']->value == 1) { ?> <span> <?php if ($_smarty_tpl->tpl_vars['quantityDisplayed']->value == 0 && isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value])) { ?> <?php echo $_smarty_tpl->tpl_vars['product']->value['customizationQuantityTotal']; ?> <?php } else { ?> <?php echo $_smarty_tpl->tpl_vars['product']->value['cart_quantity'] - $_smarty_tpl->tpl_vars['quantityDisplayed']->value; ?> <?php } ?> </span> <?php } else { ?> <?php if (isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value]) && $_smarty_tpl->tpl_vars['quantityDisplayed']->value == 0) { ?> <span id="cart_quantity_custom_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product']; ?> _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute']; ?> _<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']); ?> " ><?php echo $_smarty_tpl->tpl_vars['product']->value['customizationQuantityTotal']; ?> </span> <?php } ?> <?php if (!isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value]) || $_smarty_tpl->tpl_vars['quantityDisplayed']->value > 0) { ?> <input type="hidden" value="<?php if ($_smarty_tpl->tpl_vars['quantityDisplayed']->value == 0 && isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value])) { echo count($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value]); } else { echo $_smarty_tpl->tpl_vars['product']->value['cart_quantity'] - $_smarty_tpl->tpl_vars['quantityDisplayed']->value; } ?> " name="quantity_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product']; ?> _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute']; ?> _<?php if ($_smarty_tpl->tpl_vars['quantityDisplayed']->value > 0) { ?> nocustom<?php } else { ?> 0<?php } ?> _<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']); ?> _hidden" /> <input size="2" type="text" autocomplete="off" class="cart_quantity_input form-control grey" value="<?php if ($_smarty_tpl->tpl_vars['quantityDisplayed']->value == 0 && isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value])) { echo count($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value]); } else { echo $_smarty_tpl->tpl_vars['product']->value['cart_quantity'] - $_smarty_tpl->tpl_vars['quantityDisplayed']->value; } ?> " name="quantity_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product']; ?> _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute']; ?> _<?php if ($_smarty_tpl->tpl_vars['quantityDisplayed']->value > 0) { ?> nocustom<?php } else { ?> 0<?php } ?> _<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']); ?> " /> <div class="cart_quantity_button clearfix"> <?php if ($_smarty_tpl->tpl_vars['product']->value['minimal_quantity'] < $_smarty_tpl->tpl_vars['product']->value['cart_quantity'] - $_smarty_tpl->tpl_vars['quantityDisplayed']->value || $_smarty_tpl->tpl_vars['product']->value['minimal_quantity'] <= 1) { ?> <a rel="nofollow" class="cart_quantity_down btn btn-default button-minus" id="cart_quantity_down_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product']; ?> _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute']; ?> _<?php if ($_smarty_tpl->tpl_vars['quantityDisplayed']->value > 0) { ?> nocustom<?php } else { ?> 0<?php } ?> _<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']); ?> " href="<?php ob_start(); echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']); $_tmp66 = ob_get_clean(); ob_start(); echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']); $_tmp67 = ob_get_clean(); ob_start(); echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']); $_tmp68 = ob_get_clean(); echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('cart', true, null, "add=1&id_product=" . $_tmp66 . "&ipa=" . $_tmp67 . "&id_address_delivery=" . $_tmp68 . "&op=down&token=" . (string) $_smarty_tpl->tpl_vars['token_cart']->value), ENT_QUOTES, 'UTF-8', true); ?> " title="<?php echo smartyTranslate(array('s' => 'Subtract'), $_smarty_tpl); ?> "> <span><i class="icon-minus"></i></span> </a> <?php } else { ?> <a class="cart_quantity_down btn btn-default button-minus disabled" href="#" id="cart_quantity_down_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product']; ?> _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute']; ?> _<?php if ($_smarty_tpl->tpl_vars['quantityDisplayed']->value > 0) { ?> nocustom<?php } else { ?> 0<?php } ?> _<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']); ?> " title="<?php echo smartyTranslate(array('s' => 'You must purchase a minimum of %d of this product.', 'sprintf' => $_smarty_tpl->tpl_vars['product']->value['minimal_quantity']), $_smarty_tpl); ?> "> <span><i class="icon-minus"></i></span> </a> <?php } ?> <a rel="nofollow" class="cart_quantity_up btn btn-default button-plus" id="cart_quantity_up_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product']; ?> _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute']; ?> _<?php if ($_smarty_tpl->tpl_vars['quantityDisplayed']->value > 0) { ?> nocustom<?php } else { ?> 0<?php } ?> _<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']); ?> " href="<?php ob_start(); echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']); $_tmp69 = ob_get_clean(); ob_start(); echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']); $_tmp70 = ob_get_clean(); ob_start(); echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']); $_tmp71 = ob_get_clean(); echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('cart', true, null, "add=1&id_product=" . $_tmp69 . "&ipa=" . $_tmp70 . "&id_address_delivery=" . $_tmp71 . "&token=" . (string) $_smarty_tpl->tpl_vars['token_cart']->value), ENT_QUOTES, 'UTF-8', true); ?> " title="<?php echo smartyTranslate(array('s' => 'Add'), $_smarty_tpl); ?> "><span><i class="icon-plus"></i></span></a> </div> <?php } ?> <?php } ?> </td> <?php if (!isset($_smarty_tpl->tpl_vars['noDeleteButton']->value) || !$_smarty_tpl->tpl_vars['noDeleteButton']->value) { ?> <td class="cart_delete text-center" data-title="<?php echo smartyTranslate(array('s' => 'Delete'), $_smarty_tpl); ?> "> <?php if ((!isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value]) || $_smarty_tpl->tpl_vars['quantityDisplayed']->value > 0) && empty($_smarty_tpl->tpl_vars['product']->value['gift'])) { ?> <div> <a rel="nofollow" title="<?php echo smartyTranslate(array('s' => 'Delete'), $_smarty_tpl); ?> " class="cart_quantity_delete" id="<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product']; ?> _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute']; ?> _<?php if ($_smarty_tpl->tpl_vars['quantityDisplayed']->value > 0) { ?> nocustom<?php } else { ?> 0<?php } ?> _<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']); ?> " href="<?php ob_start(); echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']); $_tmp72 = ob_get_clean(); ob_start(); echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']); $_tmp73 = ob_get_clean(); ob_start(); echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']); $_tmp74 = ob_get_clean(); echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('cart', true, null, "delete=1&id_product=" . $_tmp72 . "&ipa=" . $_tmp73 . "&id_address_delivery=" . $_tmp74 . "&token=" . (string) $_smarty_tpl->tpl_vars['token_cart']->value), ENT_QUOTES, 'UTF-8', true); ?> "><i class="icon-trash"></i></a> </div> <?php } else { ?> <?php } ?> </td> <?php } ?> <td class="cart_total" data-title="<?php echo smartyTranslate(array('s' => 'Total'), $_smarty_tpl); ?> "> <span class="price" id="total_product_price_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product']; ?> _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute']; if ($_smarty_tpl->tpl_vars['quantityDisplayed']->value > 0) { ?> _nocustom<?php } ?> _<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']); if (!empty($_smarty_tpl->tpl_vars['product']->value['gift'])) { ?> _gift<?php } ?> "> <?php if (!empty($_smarty_tpl->tpl_vars['product']->value['gift'])) { ?> <span class="gift-icon"><?php echo smartyTranslate(array('s' => 'Gift!'), $_smarty_tpl); ?> </span> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['quantityDisplayed']->value == 0 && isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value])) { ?> <?php if (!$_smarty_tpl->tpl_vars['priceDisplay']->value) { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['product']->value['total_customization_wt']), $_smarty_tpl); } else { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['product']->value['total_customization']), $_smarty_tpl); } ?> <?php } else { ?> <?php if (!$_smarty_tpl->tpl_vars['priceDisplay']->value) { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['product']->value['total_wt']), $_smarty_tpl); } else { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['product']->value['total']), $_smarty_tpl); } ?> <?php } ?> <?php } ?> </span> </td> </tr> <?php }