_decodeProperties($_smarty_tpl, array ( 'version' => '3.1.39', 'unifunc' => 'content_6494327a1f3cc8_40355888', 'has_nocache_code' => false, 'file_dependency' => array ( '4d5112ad7064b92b222f89228e9a94569626637d' => array ( 0 => 'C:\\xampp\\htdocs\\hotelcommerce\\admin\\themes\\default\\template\\controllers\\attribute_generator\\content.tpl', 1 => 1687433793, 2 => 'file', ), ), 'includes' => array ( ), ),false)) { function content_6494327a1f3cc8_40355888 (Smarty_Internal_Template $_smarty_tpl) { $_smarty_tpl->_loadInheritance(); $_smarty_tpl->inheritance->init($_smarty_tpl, false); ?> type="text/javascript"> var attrs = new Array(); attrs[0] = new Array(0, '---'); smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['attribute_js']->value, 'group', false, 'idgrp'); $_smarty_tpl->tpl_vars['group']->do_else = true; if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['idgrp']->value => $_smarty_tpl->tpl_vars['group']->value) { $_smarty_tpl->tpl_vars['group']->do_else = false; ?> _assignInScope('row', "attrs[".((string)$_smarty_tpl->tpl_vars['idgrp']->value)."] = new Array(0, '---'");?> smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['group']->value, 'attrname', false, 'idattr'); $_smarty_tpl->tpl_vars['attrname']->do_else = true; if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['idattr']->value => $_smarty_tpl->tpl_vars['attrname']->value) { $_smarty_tpl->tpl_vars['attrname']->do_else = false; ?> tpl_vars['attrname']->value, ENT_QUOTES, 'UTF-8', true); $_prefixVariable1=ob_get_clean(); $_smarty_tpl->_assignInScope('row', ((string)$_smarty_tpl->tpl_vars['row']->value).", ".((string)$_smarty_tpl->tpl_vars['idattr']->value).", '".$_prefixVariable1."'");?> smarty->ext->_foreach->restore($_smarty_tpl, 1);?> _assignInScope('row', ((string)$_smarty_tpl->tpl_vars['row']->value).");");?> tpl_vars['row']->value;?> smarty->ext->_foreach->restore($_smarty_tpl, 1);?> i18n_tax_exc = 'smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Tax Excluded'),$_smarty_tpl ) );?> '; i18n_tax_inc = 'smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Tax Included'),$_smarty_tpl ) );?> '; var product_tax = 'tpl_vars['tax_rates']->value;?> '; function calcPrice(element, element_has_tax) { var element_price = element.val().replace(/,/g, '.'); var other_element_price = 0; if (!isNaN(element_price)) { if (element_has_tax) other_element_price = parseFloat(element_price / ((product_tax / 100) + 1)).toFixed(6); else other_element_price = ps_round(parseFloat(element_price * ((product_tax / 100) + 1)), 2).toFixed(2); } $('#related_to_'+element.attr('name')).val(other_element_price); } $(document).ready(function() { $('.price_impact').each(function() { calcPrice($(this), false); }); }); >
inheritance->instanceBlock($_smarty_tpl, 'Block_3556126396494327a130d01_65506530', "leadin"); ?>
tpl_vars['generate']->value) {?>
smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'%d product(s) successfully created.','sprintf'=>$_smarty_tpl->tpl_vars['combinations_size']->value),$_smarty_tpl ) );?>

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

smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'The Combinations Generator is a tool that allows you to easily create a series of combinations by selecting the related attributes. For example, if you\'re selling t-shirts in three different sizes and two different colors, the generator will create six combinations for you.'),$_smarty_tpl ) );?>
smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'You\'re currently generating combinations for the following product:'),$_smarty_tpl ) );?> tpl_vars['product_name']->value, ENT_QUOTES, 'UTF-8', true);?>
smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Step 1: On the left side, select the attributes you want to use (Hold down the "Ctrl" key on your keyboard and validate by clicking on "Add")'),$_smarty_tpl ) );?>
smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['attribute_groups']->value, 'attribute_group', false, 'k'); $_smarty_tpl->tpl_vars['attribute_group']->do_else = true; if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['k']->value => $_smarty_tpl->tpl_vars['attribute_group']->value) { $_smarty_tpl->tpl_vars['attribute_group']->do_else = false; ?> tpl_vars['attribute_js']->value[$_smarty_tpl->tpl_vars['attribute_group']->value['id_attribute_group']]))) {?>
tpl_vars['attributes']->value[$_smarty_tpl->tpl_vars['attribute_group']->value['id_attribute_group']]))) {?> smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['attributes']->value[$_smarty_tpl->tpl_vars['attribute_group']->value['id_attribute_group']], 'attribute', false, 'k'); $_smarty_tpl->tpl_vars['attribute']->do_else = true; if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['k']->value => $_smarty_tpl->tpl_vars['attribute']->value) { $_smarty_tpl->tpl_vars['attribute']->do_else = false; ?> type="text/javascript"> $('#table_tpl_vars['attribute_group']->value['id_attribute_group'];?> ').append(create_attribute_row(tpl_vars['k']->value;?> , tpl_vars['attribute_group']->value['id_attribute_group'];?> , 'tpl_vars['attribute']->value['attribute_name']);?> ', tpl_vars['attribute']->value['price'];?> , tpl_vars['attribute']->value['weight'];?> )); toggle(getE('table_' + tpl_vars['attribute_group']->value['id_attribute_group'];?> ).parentNode, true); > smarty->ext->_foreach->restore($_smarty_tpl, 1);?> smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Select a default quantity, and reference, for each combination the generator will create for this product.'),$_smarty_tpl ) );?>
smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Default Quantity:'),$_smarty_tpl ) );?>
smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Default Reference:'),$_smarty_tpl ) );?>
smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Please click on "Generate these Combinations"'),$_smarty_tpl ) );?>
array ( 0 => 'Block_3556126396494327a130d01_65506530', ), ); public function callBlock(Smarty_Internal_Template $_smarty_tpl) { } } /* {/block "leadin"} */ }