_decodeProperties($_smarty_tpl, array ( 'version' => '3.1.39', 'unifunc' => 'content_649432892037f0_44173986', 'has_nocache_code' => false, 'file_dependency' => array ( '97f61520f118ab37002b2e6c69a198672a056199' => array ( 0 => 'C:\\xampp\\htdocs\\hotelcommerce\\admin\\themes\\default\\template\\controllers\\normal_products\\prices.tpl', 1 => 1687433793, 2 => 'file', ), ), 'includes' => array ( 'file:controllers/products/multishop/check_fields.tpl' => 1, 'file:controllers/products/multishop/checkbox.tpl' => 4, ), ),false)) { function content_649432892037f0_44173986 (Smarty_Internal_Template $_smarty_tpl) { echo ' type="text/javascript"> var Customer = new Object(); var product_url = 'tpl_vars['link']->value->getAdminLink('AdminNormalProducts',true));?> '; var ecotax_tax_excl = parseFloat(tpl_vars['ecotax_tax_excl']->value;?> ); var priceDisplayPrecision = ; $(document).ready(function () { Customer = { "hiddenField": jQuery('#id_customer'), "field": jQuery('#customer'), "container": jQuery('#customers'), "loader": jQuery('#customerLoader'), "init": function() { jQuery(Customer.field).typeWatch({ "captureLength": 1, "highlight": true, "wait": 50, "callback": Customer.search }).focus(Customer.placeholderIn).blur(Customer.placeholderOut); }, "placeholderIn": function() { if (this.value == 'smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'All customers'),$_smarty_tpl ) );?> ') { this.value = ''; } }, "placeholderOut": function() { if (this.value == '') { this.value = 'smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'All customers'),$_smarty_tpl ) );?> '; } }, "search": function() { Customer.showLoader(); jQuery.ajax({ "type": "POST", "url": "tpl_vars['link']->value->getAdminLink('AdminCustomers'));?> ", "async": true, "dataType": "json", "data": { "ajax": "1", "token": "smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0], array( array('tab'=>'AdminCustomers'),$_smarty_tpl ) );?> ", "tab": "AdminCustomers", "action": "searchCustomers", "customer_search": Customer.field.val() }, "success": Customer.success }); }, "success": function(result) { if(result.found) { var html = ''; } else html = '
smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'No customers found'),$_smarty_tpl ) );?>
'; Customer.hideLoader(); Customer.container.html(html); jQuery('.fancybox', Customer.container).fancybox(); }, "select": function(id_customer, fullname) { Customer.hiddenField.val(id_customer); Customer.field.val(fullname); Customer.container.empty(); return false; }, "showLoader": function() { Customer.loader.fadeIn(); }, "hideLoader": function() { Customer.loader.fadeOut(); } }; Customer.init(); }); > smarty->ext->_capture->open($_smarty_tpl, 'default', 'priceDisplayPrecisionFormat', null); echo (('%.').((defined('_PS_PRICE_DISPLAY_PRECISION_') ? constant('_PS_PRICE_DISPLAY_PRECISION_') : null))).('f'); $_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);?>

smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'product price'),$_smarty_tpl ) );?>

tpl_vars['country_display_tax_label']->value || $_smarty_tpl->tpl_vars['tax_exclude_taxe_option']->value) {?>style="display:none;"> smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'You must enter either the pre-tax retail price, or the retail price with tax. The input field will be automatically calculated.'),$_smarty_tpl ) );?>
_subTemplateRender("file:controllers/products/multishop/check_fields.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('product_tab'=>"Prices"), 0, false); ?>
_subTemplateRender("file:controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('field'=>"wholesale_price",'type'=>"default"), 0, false); ?>
tpl_vars['currency']->value->prefix; echo $_smarty_tpl->tpl_vars['currency']->value->suffix;?>
tpl_vars['pack']->value)) && $_smarty_tpl->tpl_vars['pack']->value->isPack($_smarty_tpl->tpl_vars['product']->value->id)) {?>

smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['toolsConvertPrice'][0], array( array('price'=>sprintf($_smarty_tpl->tpl_vars['priceDisplayPrecisionFormat']->value,$_smarty_tpl->tpl_vars['pack']->value->noPackWholesalePrice($_smarty_tpl->tpl_vars['product']->value->id))),$_smarty_tpl ) ); $_prefixVariable11 = ob_get_clean(); echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'The sum of wholesale prices of the product in the pack is %s%s%s','sprintf'=>array($_smarty_tpl->tpl_vars['currency']->value->prefix,$_prefixVariable11,$_smarty_tpl->tpl_vars['currency']->value->suffix)),$_smarty_tpl ) );?>

_subTemplateRender("file:controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('field'=>"price",'type'=>"price"), 0, true); ?>
tpl_vars['currency']->value->prefix; echo $_smarty_tpl->tpl_vars['currency']->value->suffix;?>
_subTemplateRender("file:controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('field'=>"id_tax_rules_group",'type'=>"default"), 0, true); ?>
type="text/javascript"> noTax = tpl_vars['tax_exclude_taxe_option']->value) {?>truefalse; taxesArray = new Array(); smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['taxesRatesByGroup']->value, 'tax_by_group'); $_smarty_tpl->tpl_vars['tax_by_group']->do_else = true; if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['tax_by_group']->value) { $_smarty_tpl->tpl_vars['tax_by_group']->do_else = false; ?> taxesArray[tpl_vars['tax_by_group']->value['id_tax_rules_group'];?> ] = tpl_vars['tax_by_group']->value);?> ; smarty->ext->_foreach->restore($_smarty_tpl, 1);?> ecotaxTaxRate = tpl_vars['ecotaxTaxRate']->value/100;?> ; >
tpl_vars['tax_exclude_taxe_option']->value) {?>
smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Taxes are currently disabled:'),$_smarty_tpl ) );?> smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Click here to open the Taxes configuration page.'),$_smarty_tpl ) );?>
tpl_vars['ps_use_ecotax']->value) {?> style="display:none;">
_subTemplateRender("file:controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('field'=>"ecotax",'type'=>"default"), 0, true); ?>
tpl_vars['currency']->value->prefix; echo $_smarty_tpl->tpl_vars['currency']->value->suffix;?>
tpl_vars['country_display_tax_label']->value || $_smarty_tpl->tpl_vars['tax_exclude_taxe_option']->value) {?>style="display:none;" >
tpl_vars['currency']->value->prefix; echo $_smarty_tpl->tpl_vars['currency']->value->suffix;?>
tpl_vars['pack']->value)) && $_smarty_tpl->tpl_vars['pack']->value->isPack($_smarty_tpl->tpl_vars['product']->value->id)) {?>

smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['toolsConvertPrice'][0], array( array('price'=>sprintf($_smarty_tpl->tpl_vars['priceDisplayPrecisionFormat']->value,$_smarty_tpl->tpl_vars['pack']->value->noPackPrice($_smarty_tpl->tpl_vars['product']->value->id))),$_smarty_tpl ) ); $_prefixVariable13 = ob_get_clean(); echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'The sum of prices of the products in the pack is %s%s%s','sprintf'=>array($_smarty_tpl->tpl_vars['currency']->value->prefix,$_prefixVariable13,$_smarty_tpl->tpl_vars['currency']->value->suffix)),$_smarty_tpl ) );?>

tpl_vars['product']->value->unity)) && $_smarty_tpl->tpl_vars['product']->value->unity) {?>
smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'or'),$_smarty_tpl ) );?> tpl_vars['currency']->value->prefix;?> 0.00tpl_vars['currency']->value->suffix;?> smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'per'),$_smarty_tpl ) );?> tpl_vars['product']->value->unity;?> tpl_vars['ps_tax']->value && $_smarty_tpl->tpl_vars['country_display_tax_label']->value) {?> smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'(tax incl.)'),$_smarty_tpl ) ); }?>
smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Final retail price:'),$_smarty_tpl ) );?> tpl_vars['currency']->value->prefix;?> 0.00 tpl_vars['currency']->value->suffix;?> tpl_vars['ps_tax']->value) {?> style="display:none;"> (smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'tax incl.'),$_smarty_tpl ) );?> ) tpl_vars['ps_tax']->value) {?> style="display:none;" > tpl_vars['country_display_tax_label']->value) {?> / tpl_vars['currency']->value->prefix;?> tpl_vars['currency']->value->suffix;?> tpl_vars['country_display_tax_label']->value) {?>(smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'tax excl.'),$_smarty_tpl ) );?> )
tpl_vars['specificPriceModificationForm']->value))) {?>

smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Specific prices'),$_smarty_tpl ) );?>

smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'You can set specific prices for clients belonging to different groups, different countries, etc.'),$_smarty_tpl ) );?>
type="text/javascript"> var product_prices = new Array(); smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['combinations']->value, 'combination'); $_smarty_tpl->tpl_vars['combination']->do_else = true; if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['combination']->value) { $_smarty_tpl->tpl_vars['combination']->do_else = false; ?> product_prices['tpl_vars['combination']->value['id_product_attribute'];?> '] = 'tpl_vars['combination']->value['price'],'\'');?> '; smarty->ext->_foreach->restore($_smarty_tpl, 1);?> > type="text/javascript"> var currencyName = 'tpl_vars['currency']->value->name, ENT_QUOTES, 'UTF-8', true),'\'');?> '; $(document).ready(function(){ var adv_payment = $(".adv_payment_active:checked").val(); if (adv_payment == 1) $(".adv_payment_field").show(); else $(".adv_payment_field").hide(); $(".adv_payment_active").on('change',function() { var adv_payment = $(".adv_payment_active:checked").val(); if (adv_payment == 1) $(".adv_payment_field").show(); else if (adv_payment == 0) $(".adv_payment_field").hide(); }); var payment_type = $(".payment_type:checked").val(); if (payment_type == 1) { $("#type_percent").show(); $("#type_amount").hide(); } else if (payment_type == 2) { $("#type_percent").hide(); $("#type_amount").show(); } $(".payment_type").on('change',function() { var payment_type = $(".payment_type:checked").val(); if (payment_type == 1) { $("#type_percent").show(); $("#type_amount").hide(); } else if (payment_type == 2) { $("#type_percent").hide(); $("#type_amount").show(); } }); product_prices['0'] = $('#sp_current_ht_price').html(); $('#id_product_attribute').change(function() { $('#sp_current_ht_price').html(product_prices[$('#id_product_attribute option:selected').val()]); }); $('#leave_bprice').click(function() { if (this.checked) $('#sp_price').attr('disabled', 'disabled'); else $('#sp_price').removeAttr('disabled'); }); $('.datepicker').datetimepicker({ prevText: '', nextText: '', dateFormat: 'yy-mm-dd', // Define a custom regional settings in order to use PrestaShop translation tools currentText: 'smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Now','js'=>1),$_smarty_tpl ) );?> ', closeText: 'smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Done','js'=>1),$_smarty_tpl ) );?> ', ampm: false, amNames: ['AM', 'A'], pmNames: ['PM', 'P'], timeFormat: 'hh:mm:ss tt', timeSuffix: '', timeOnlyTitle: 'smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Choose Time','js'=>1),$_smarty_tpl ) );?> ', timeText: 'smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Time','js'=>1),$_smarty_tpl ) );?> ', hourText: 'smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Hour','js'=>1),$_smarty_tpl ) );?> ', minuteText: 'smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Minute','js'=>1),$_smarty_tpl ) );?> ' }); $('#sp_reduction_type').on('change', function() { if (this.value == 'percentage') $('#sp_reduction_tax').hide(); else $('#sp_reduction_tax').show(); }); }); >
tpl_vars['multi_shop']->value) {?>tpl_vars['country_display_tax_label']->value) {?> tpl_vars['specificPriceModificationForm']->value;?> type="text/javascript"> $(document).ready(function() { delete_price_rule = 'smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>"Do you really want to remove this price rule?"),$_smarty_tpl ) );?> '; calcPriceTI(); //unitPriceWithTax('unit'); }); >
smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Rule'),$_smarty_tpl ) );?> smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Shop'),$_smarty_tpl ) );?> smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Currency'),$_smarty_tpl ) );?> smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Country'),$_smarty_tpl ) );?> smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Group'),$_smarty_tpl ) );?> smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Customer'),$_smarty_tpl ) );?> smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Fixed price (tax excl.)'),$_smarty_tpl ) );?> smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Fixed price'),$_smarty_tpl ) );?> smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Impact'),$_smarty_tpl ) );?> smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Period'),$_smarty_tpl ) );?> smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Action'),$_smarty_tpl ) );?>