function content_55ccec9f3684d7_78524518($_smarty_tpl)
    {
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        fn_preload_lang_vars(array('you_save', 'you_save'));
        if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
            $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
            ob_start();
            if ($_smarty_tpl->tpl_vars['show_price_values']->value && $_smarty_tpl->tpl_vars['show_price']->value && $_smarty_tpl->tpl_vars['product']->value['use_calc'] == "Y" && $_smarty_tpl->tpl_vars['runtime']->value['controller'] == "products" && ($_smarty_tpl->tpl_vars['runtime']->value['mode'] == "quick_view" || $_smarty_tpl->tpl_vars['runtime']->value['mode'] == "view" || $_smarty_tpl->tpl_vars['runtime']->value['mode'] == "price_calculation" || $_smarty_tpl->tpl_vars['runtime']->value['mode'] == "options")) {
                ?>

	<?php 
                $_smarty_tpl->_capture_stack[0][] = array("old_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, null);
                ob_start();
                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("price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, null);
                ob_start();
                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("list_discount_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, null);
                ob_start();
                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("clean_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, null);
                ob_start();
                ?>
	<?php 
                $_smarty_tpl->tpl_vars["formaula_description"] = new Smarty_variable(fn_get_formula_description($_REQUEST['product_id']), null, 0);
                ?>
	<?php 
                if ($_smarty_tpl->tpl_vars['formaula_description']->value) {
                    ?>
		<div class="wysiwyg-content">
			
		</div>
	<?php 
                } else {
                    ?>
		
	<?php 
                }
                ?>

	<script type="text/javascript">
	//<![CDATA[
		
		function fn_ppc_update_val(elm) {
			$(elm).val($(elm).val().replace(',', '.'));
		}
		function fn_price_calculation(elm, min, max, def_val, obj_id) {
			var re = /(^([0-9])*\.[0-9]*$)|(^([0-9])*$)/;
			var val = $(elm).val();
			if (val == '' || !re.test(val)) {
				$(elm).val(def_val);
			}
			if (val < min) {
				$(elm).val(min);
			}
			if (val > max && max != 0) {
				$(elm).val(max);
			}
			fn_change_options(obj_id, '', '');
		}
		
	//]]>
	</script>

	<?php 
                $_smarty_tpl->tpl_vars["fields"] = new Smarty_variable(fn_get_fields($_REQUEST['product_id']), null, 0);
                ?>
	<?php 
                $_smarty_tpl->tpl_vars["names"] = new Smarty_variable(fn_get_names($_REQUEST['product_id']), null, 0);
                ?>
        
	<div class="price-calculator" id="price_calculator<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                ?>
">
		<?php 
                $_smarty_tpl->tpl_vars["field"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["field"]->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['fields']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars["field"]->key => $_smarty_tpl->tpl_vars["field"]->value) {
                    $_smarty_tpl->tpl_vars["field"]->_loop = true;
                    ?>
			<div class="cm-reload-<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
" id="p_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['name'], ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                    ?>
">
			<label for="price_calculator_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['name'], ENT_QUOTES, 'UTF-8');
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                    ?>
"><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['name'], ENT_QUOTES, 'UTF-8');
                    ?>
 <?php 
                    if ($_smarty_tpl->tpl_vars['field']->value['is_selectbox'] != "Y") {
                        ?>
<span class="list-price">(<?php 
                        echo $_smarty_tpl->__('range');
                        ?>
: <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['min'], ENT_QUOTES, 'UTF-8');
                        ?>
 - <?php 
                        if ($_smarty_tpl->tpl_vars['field']->value['max'] > 0) {
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['max'], ENT_QUOTES, 'UTF-8');
                        } else {
                            ?>
&infin;<?php 
                        }
                        ?>
)</span><?php 
                    }
                    ?>
</label>
				<?php 
                    if ($_smarty_tpl->tpl_vars['field']->value['is_selectbox'] != "Y") {
                        ?>
					<input class="cm-value-<?php 
                        if ($_smarty_tpl->tpl_vars['field']->value['additional'] > 0) {
                            ?>
integer<?php 
                        } else {
                            ?>
decimal<?php 
                        }
                        ?>
" id="price_calculator_<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['name'], ENT_QUOTES, 'UTF-8');
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                        ?>
" type="text" value="<?php 
                        echo htmlspecialchars(fn_unset_double_zero($_smarty_tpl->tpl_vars['field']->value['default_value']), ENT_QUOTES, 'UTF-8');
                        ?>
" name="product_data[<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                        ?>
][extra][price_calc][<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['name'], ENT_QUOTES, 'UTF-8');
                        ?>
]" onchange="fn_price_calculation(this, <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['min'], ENT_QUOTES, 'UTF-8');
                        ?>
, <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['max'], ENT_QUOTES, 'UTF-8');
                        ?>
, <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['default_value'], ENT_QUOTES, 'UTF-8');
                        ?>
, '<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                        ?>
');" onkeyup="fn_ppc_update_val(this)" size="5">
				<?php 
                    } else {
                        ?>
					<select id="price_calculator_<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['name'], ENT_QUOTES, 'UTF-8');
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                        ?>
"  name="product_data[<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                        ?>
][extra][price_calc][<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['name'], ENT_QUOTES, 'UTF-8');
                        ?>
]" onchange="fn_price_calculation(this, <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['min'], ENT_QUOTES, 'UTF-8');
                        ?>
, <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['max'], ENT_QUOTES, 'UTF-8');
                        ?>
, <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['default_value'], ENT_QUOTES, 'UTF-8');
                        ?>
, '<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                        ?>
');">
						<?php 
                        $_smarty_tpl->tpl_vars["field_options"] = new Smarty_variable(fn_get_field_variants($_smarty_tpl->tpl_vars['field']->value), null, 0);
                        ?>
						<?php 
                        $_smarty_tpl->tpl_vars["op"] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars["op"]->_loop = false;
                        $_from = $_smarty_tpl->tpl_vars['field_options']->value;
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars["op"]->key => $_smarty_tpl->tpl_vars["op"]->value) {
                            $_smarty_tpl->tpl_vars["op"]->_loop = true;
                            ?>
							<option <?php 
                            if ($_smarty_tpl->tpl_vars['op']->value == $_smarty_tpl->tpl_vars['field']->value['default_value']) {
                                ?>
selected="selected"<?php 
                            }
                            ?>
 value="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['op']->value, ENT_QUOTES, 'UTF-8');
                            ?>
"><?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['op']->value, ENT_QUOTES, 'UTF-8');
                            ?>
</option>
						<?php 
                        }
                        ?>
					</select>
				<?php 
                    }
                    ?>
				<span class="strong"><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['abbreviation'], ENT_QUOTES, 'UTF-8');
                    ?>
</span>
				<?php 
                    if ($_smarty_tpl->tpl_vars['field']->value['additional'] > 0) {
                        ?>
					<select name="product_data[<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                        ?>
][extra][price_calc][add<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['name'], ENT_QUOTES, 'UTF-8');
                        ?>
]" id="price_calculator_add<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['name'], ENT_QUOTES, 'UTF-8');
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                        ?>
" onchange="fn_price_calculation(this, 0, <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['additional'], ENT_QUOTES, 'UTF-8');
                        ?>
, 0, '<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                        ?>
');">
					<?php 
                        if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["id"])) {
                            unset($_smarty_tpl->tpl_vars['smarty']->value['section']["id"]);
                        }
                        $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['name'] = "id";
                        $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['field']->value['additional']) ? count($_loop) : max(0, (int) $_loop);
                        unset($_loop);
                        $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['show'] = true;
                        $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['loop'];
                        $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['step'] = 1;
                        $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['loop'] - 1;
                        if ($_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['show']) {
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['loop'];
                            if ($_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['total'] == 0) {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['show'] = false;
                            }
                        } else {
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['total'] = 0;
                        }
                        if ($_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['show']) {
                            for ($_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['iteration']++) {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['iteration'];
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['step'];
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['step'];
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['iteration'] == 1;
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['total'];
                                ?>
						<option value="<?php 
                                echo htmlspecialchars($_smarty_tpl->getVariable('smarty')->value['section']['id']['index'], ENT_QUOTES, 'UTF-8');
                                ?>
">
							<?php 
                                if ($_smarty_tpl->getVariable('smarty')->value['section']['id']['index'] == 0) {
                                    ?>
								0
							<?php 
                                } else {
                                    ?>
								<?php 
                                    $_smarty_tpl->tpl_vars["nod"] = new Smarty_variable(fn_nod($_smarty_tpl->getVariable('smarty')->value['section']['id']['index'], $_smarty_tpl->tpl_vars['field']->value['additional']), null, 0);
                                    ?>
								<?php 
                                    echo htmlspecialchars($_smarty_tpl->getVariable('smarty')->value['section']['id']['index'] / $_smarty_tpl->tpl_vars['nod']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
/<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['additional'] / $_smarty_tpl->tpl_vars['nod']->value, ENT_QUOTES, 'UTF-8');
                                    ?>

							<?php 
                                }
                                ?>
						</option>
					<?php 
                            }
                        }
                        ?>
					</select>
					<span class="strong"><?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['add_abbreviation'], ENT_QUOTES, 'UTF-8');
                        ?>
</span>
				<?php 
                    }
                    ?>
			<!--p_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['name'], ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                    ?>
--></div>
		<?php 
                }
                ?>
		
		
		<div class="price-wrap cm-reload-<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                ?>
" id="price_calculator_total<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                ?>
">
                        
                        
                        
			
				
			
				
                                
                                <?php 
                $_smarty_tpl->tpl_vars["original_price_calc"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['original_price'], null, 0);
                ?>
                                
                                <?php 
                $_smarty_tpl->tpl_vars["price_calc"] = new Smarty_variable(floatval($_smarty_tpl->tpl_vars['product']->value['price']), null, 0);
                ?>
			
                        
                        <?php 
                if (!$_smarty_tpl->tpl_vars['price_calc']->value) {
                    ?>
                            <?php 
                    $_smarty_tpl->tpl_vars["price_calc"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['ppc_new_price'], null, 0);
                    ?>
                        <?php 
                }
                ?>
                        <?php 
                if ($_smarty_tpl->tpl_vars['original_price_calc']->value != $_smarty_tpl->tpl_vars['price_calc']->value) {
                    ?>
                            <span id="old_price_update_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
">
                                 <span class="ty-strike"><?php 
                    echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['original_price_calc']->value, 'span_id' => "old_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, 'class' => "ty-list-price ty-nowrap"), 0);
                    ?>
</span>
                            </span>
                           
                            <span class="" id="line_discount_update_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
">
                                <span class="ty-list-price save-price ty-nowrap" id="line_discount_value_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
">
                                    <?php 
                    echo $_smarty_tpl->__("you_save");
                    ?>
: 
                                    <?php 
                    echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['original_price_calc']->value - $_smarty_tpl->tpl_vars['price_calc']->value, 'span_id' => "discount_value_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, 'class' => "ty-list-price ty-nowrap"), 0);
                    ?>

                                    (<span id="prc_discount_value_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
" class="ty-list-price ty-nowrap"><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['discount_prc'], ENT_QUOTES, 'UTF-8');
                    ?>
</span>%)
                                </span>
                            </span>
                            
                        <?php 
                }
                ?>
                        
                        
			<?php 
                if ($_smarty_tpl->tpl_vars['price_calc']->value) {
                    ?>
                            <input type="hidden" value="1" name="appearance[show_price_values]">
                            <input type="hidden" value="1" name="appearance[show_price]">
                            <span class="ty-price-update" id="price_update_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
">
                                <span id="line_discounted_price_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
" class="ty-price" style="font-family: Open Sans;font-size: 20px;font-style: normal;font-weight: bold;text-decoration: none;">
				<?php 
                    echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['price_calc']->value, 'span_id' => "discounted_price_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, 'class' => "price-num"), 0);
                    ?>

                                </span>
                            </span>
			<?php 
                } else {
                    ?>
				<?php 
                    echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => fn_get_price_default_params($_REQUEST['product_id']), 'span_id' => "discounted_price_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, 'class' => "price-num"), 0);
                    ?>

                                
			<?php 
                }
                ?>
                        
                        <input type="hidden" value="<?php 
                if ($_smarty_tpl->tpl_vars['price_calc']->value) {
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['price_calc']->value, ENT_QUOTES, 'UTF-8');
                } else {
                    echo htmlspecialchars(fn_get_price_default_params($_REQUEST['product_id']), ENT_QUOTES, 'UTF-8');
                }
                ?>
" name="product_data[<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                ?>
][extra][price_calc][total_price_calc]">
			<!--<input type="hidden" value="<?php 
                if ($_smarty_tpl->tpl_vars['price_calc']->value) {
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['price_calc']->value, ENT_QUOTES, 'UTF-8');
                } else {
                    echo htmlspecialchars(fn_get_price_by_selected_options($_REQUEST['product_id'], $_smarty_tpl->tpl_vars['product']->value['selected_options']), ENT_QUOTES, 'UTF-8');
                }
                ?>
" name="product_data[<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                ?>
][extra][price_calc][total_price_calc]">-->
			<?php 
                if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['show_prices_taxed_clean'] == "Y") {
                    ?>
 
				<?php 
                    $_smarty_tpl->tpl_vars["product_tax"] = new Smarty_variable(fn_calculate_product_taxes($_smarty_tpl->tpl_vars['obj_id']->value, $_smarty_tpl->tpl_vars['price_calc']->value), null, 0);
                    ?>
				<br/>
				<?php 
                    if ($_smarty_tpl->tpl_vars['product_tax']->value['clean_price'] != $_smarty_tpl->tpl_vars['product_tax']->value['taxed_price'] && $_smarty_tpl->tpl_vars['product_tax']->value['included_tax']) {
                        ?>
					<span class="list-price nowrap" id="line_product_price_<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                        ?>
">(<?php 
                        echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['product_tax']->value['taxed_price'], 'class' => "list-price nowrap"), 0);
                        ?>
 <?php 
                        echo $_smarty_tpl->__('inc_tax');
                        ?>
)</span>
				<?php 
                    } elseif ($_smarty_tpl->tpl_vars['product_tax']->value['clean_price'] != $_smarty_tpl->tpl_vars['product_tax']->value['taxed_price'] && !$_smarty_tpl->tpl_vars['product_tax']->value['included_tax']) {
                        ?>
					<span class="list-price nowrap">(<?php 
                        echo $_smarty_tpl->__('including_tax');
                        ?>
)</span>
				<?php 
                    }
                    ?>
			<?php 
                }
                ?>
		<!--price_calculator_total<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                ?>
--></div>
		
	<!--price_calculator<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                ?>
--></div>
	<?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['render_ppc_price']->value) {
                    ?>
		<?php 
                    $_smarty_tpl->tpl_vars["capture_name"] = new Smarty_variable("clean_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
		<?php 
                    echo htmlspecialchars(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['capture_name']->value], ENT_QUOTES, 'UTF-8');
                    ?>

	<?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();
            }
            if (trim(Smarty::$_smarty_vars['capture']['template_content'])) {
                if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") {
                    ?>
<span class="cm-template-box template-box" data-ca-te-template="addons/product_price_calculator/hooks/products/product_data.post.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "addons/product_price_calculator/hooks/products/product_data.post.tpl"), $_smarty_tpl);
                    ?>
"><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php 
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                    ?>
<!--[/tpl_id]--></span><?php 
                } else {
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                }
            }
        } else {
            if ($_smarty_tpl->tpl_vars['show_price_values']->value && $_smarty_tpl->tpl_vars['show_price']->value && $_smarty_tpl->tpl_vars['product']->value['use_calc'] == "Y" && $_smarty_tpl->tpl_vars['runtime']->value['controller'] == "products" && ($_smarty_tpl->tpl_vars['runtime']->value['mode'] == "quick_view" || $_smarty_tpl->tpl_vars['runtime']->value['mode'] == "view" || $_smarty_tpl->tpl_vars['runtime']->value['mode'] == "price_calculation" || $_smarty_tpl->tpl_vars['runtime']->value['mode'] == "options")) {
                ?>

	<?php 
                $_smarty_tpl->_capture_stack[0][] = array("old_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, null);
                ob_start();
                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("price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, null);
                ob_start();
                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("list_discount_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, null);
                ob_start();
                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("clean_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, null);
                ob_start();
                ?>
	<?php 
                $_smarty_tpl->tpl_vars["formaula_description"] = new Smarty_variable(fn_get_formula_description($_REQUEST['product_id']), null, 0);
                ?>
	<?php 
                if ($_smarty_tpl->tpl_vars['formaula_description']->value) {
                    ?>
		<div class="wysiwyg-content">
			
		</div>
	<?php 
                } else {
                    ?>
		
	<?php 
                }
                ?>

	<script type="text/javascript">
	//<![CDATA[
		
		function fn_ppc_update_val(elm) {
			$(elm).val($(elm).val().replace(',', '.'));
		}
		function fn_price_calculation(elm, min, max, def_val, obj_id) {
			var re = /(^([0-9])*\.[0-9]*$)|(^([0-9])*$)/;
			var val = $(elm).val();
			if (val == '' || !re.test(val)) {
				$(elm).val(def_val);
			}
			if (val < min) {
				$(elm).val(min);
			}
			if (val > max && max != 0) {
				$(elm).val(max);
			}
			fn_change_options(obj_id, '', '');
		}
		
	//]]>
	</script>

	<?php 
                $_smarty_tpl->tpl_vars["fields"] = new Smarty_variable(fn_get_fields($_REQUEST['product_id']), null, 0);
                ?>
	<?php 
                $_smarty_tpl->tpl_vars["names"] = new Smarty_variable(fn_get_names($_REQUEST['product_id']), null, 0);
                ?>
        
	<div class="price-calculator" id="price_calculator<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                ?>
">
		<?php 
                $_smarty_tpl->tpl_vars["field"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["field"]->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['fields']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars["field"]->key => $_smarty_tpl->tpl_vars["field"]->value) {
                    $_smarty_tpl->tpl_vars["field"]->_loop = true;
                    ?>
			<div class="cm-reload-<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
" id="p_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['name'], ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                    ?>
">
			<label for="price_calculator_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['name'], ENT_QUOTES, 'UTF-8');
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                    ?>
"><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['name'], ENT_QUOTES, 'UTF-8');
                    ?>
 <?php 
                    if ($_smarty_tpl->tpl_vars['field']->value['is_selectbox'] != "Y") {
                        ?>
<span class="list-price">(<?php 
                        echo $_smarty_tpl->__('range');
                        ?>
: <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['min'], ENT_QUOTES, 'UTF-8');
                        ?>
 - <?php 
                        if ($_smarty_tpl->tpl_vars['field']->value['max'] > 0) {
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['max'], ENT_QUOTES, 'UTF-8');
                        } else {
                            ?>
&infin;<?php 
                        }
                        ?>
)</span><?php 
                    }
                    ?>
</label>
				<?php 
                    if ($_smarty_tpl->tpl_vars['field']->value['is_selectbox'] != "Y") {
                        ?>
					<input class="cm-value-<?php 
                        if ($_smarty_tpl->tpl_vars['field']->value['additional'] > 0) {
                            ?>
integer<?php 
                        } else {
                            ?>
decimal<?php 
                        }
                        ?>
" id="price_calculator_<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['name'], ENT_QUOTES, 'UTF-8');
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                        ?>
" type="text" value="<?php 
                        echo htmlspecialchars(fn_unset_double_zero($_smarty_tpl->tpl_vars['field']->value['default_value']), ENT_QUOTES, 'UTF-8');
                        ?>
" name="product_data[<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                        ?>
][extra][price_calc][<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['name'], ENT_QUOTES, 'UTF-8');
                        ?>
]" onchange="fn_price_calculation(this, <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['min'], ENT_QUOTES, 'UTF-8');
                        ?>
, <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['max'], ENT_QUOTES, 'UTF-8');
                        ?>
, <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['default_value'], ENT_QUOTES, 'UTF-8');
                        ?>
, '<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                        ?>
');" onkeyup="fn_ppc_update_val(this)" size="5">
				<?php 
                    } else {
                        ?>
					<select id="price_calculator_<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['name'], ENT_QUOTES, 'UTF-8');
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                        ?>
"  name="product_data[<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                        ?>
][extra][price_calc][<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['name'], ENT_QUOTES, 'UTF-8');
                        ?>
]" onchange="fn_price_calculation(this, <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['min'], ENT_QUOTES, 'UTF-8');
                        ?>
, <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['max'], ENT_QUOTES, 'UTF-8');
                        ?>
, <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['default_value'], ENT_QUOTES, 'UTF-8');
                        ?>
, '<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                        ?>
');">
						<?php 
                        $_smarty_tpl->tpl_vars["field_options"] = new Smarty_variable(fn_get_field_variants($_smarty_tpl->tpl_vars['field']->value), null, 0);
                        ?>
						<?php 
                        $_smarty_tpl->tpl_vars["op"] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars["op"]->_loop = false;
                        $_from = $_smarty_tpl->tpl_vars['field_options']->value;
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars["op"]->key => $_smarty_tpl->tpl_vars["op"]->value) {
                            $_smarty_tpl->tpl_vars["op"]->_loop = true;
                            ?>
							<option <?php 
                            if ($_smarty_tpl->tpl_vars['op']->value == $_smarty_tpl->tpl_vars['field']->value['default_value']) {
                                ?>
selected="selected"<?php 
                            }
                            ?>
 value="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['op']->value, ENT_QUOTES, 'UTF-8');
                            ?>
"><?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['op']->value, ENT_QUOTES, 'UTF-8');
                            ?>
</option>
						<?php 
                        }
                        ?>
					</select>
				<?php 
                    }
                    ?>
				<span class="strong"><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['abbreviation'], ENT_QUOTES, 'UTF-8');
                    ?>
</span>
				<?php 
                    if ($_smarty_tpl->tpl_vars['field']->value['additional'] > 0) {
                        ?>
					<select name="product_data[<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                        ?>
][extra][price_calc][add<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['name'], ENT_QUOTES, 'UTF-8');
                        ?>
]" id="price_calculator_add<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['name'], ENT_QUOTES, 'UTF-8');
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                        ?>
" onchange="fn_price_calculation(this, 0, <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['additional'], ENT_QUOTES, 'UTF-8');
                        ?>
, 0, '<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                        ?>
');">
					<?php 
                        if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["id"])) {
                            unset($_smarty_tpl->tpl_vars['smarty']->value['section']["id"]);
                        }
                        $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['name'] = "id";
                        $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['field']->value['additional']) ? count($_loop) : max(0, (int) $_loop);
                        unset($_loop);
                        $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['show'] = true;
                        $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['loop'];
                        $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['step'] = 1;
                        $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['loop'] - 1;
                        if ($_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['show']) {
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['loop'];
                            if ($_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['total'] == 0) {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['show'] = false;
                            }
                        } else {
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['total'] = 0;
                        }
                        if ($_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['show']) {
                            for ($_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['iteration']++) {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['iteration'];
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['step'];
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['step'];
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['iteration'] == 1;
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["id"]['total'];
                                ?>
						<option value="<?php 
                                echo htmlspecialchars($_smarty_tpl->getVariable('smarty')->value['section']['id']['index'], ENT_QUOTES, 'UTF-8');
                                ?>
">
							<?php 
                                if ($_smarty_tpl->getVariable('smarty')->value['section']['id']['index'] == 0) {
                                    ?>
								0
							<?php 
                                } else {
                                    ?>
								<?php 
                                    $_smarty_tpl->tpl_vars["nod"] = new Smarty_variable(fn_nod($_smarty_tpl->getVariable('smarty')->value['section']['id']['index'], $_smarty_tpl->tpl_vars['field']->value['additional']), null, 0);
                                    ?>
								<?php 
                                    echo htmlspecialchars($_smarty_tpl->getVariable('smarty')->value['section']['id']['index'] / $_smarty_tpl->tpl_vars['nod']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
/<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['additional'] / $_smarty_tpl->tpl_vars['nod']->value, ENT_QUOTES, 'UTF-8');
                                    ?>

							<?php 
                                }
                                ?>
						</option>
					<?php 
                            }
                        }
                        ?>
					</select>
					<span class="strong"><?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['add_abbreviation'], ENT_QUOTES, 'UTF-8');
                        ?>
</span>
				<?php 
                    }
                    ?>
			<!--p_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['name'], ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                    ?>
--></div>
		<?php 
                }
                ?>
		
		
		<div class="price-wrap cm-reload-<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                ?>
" id="price_calculator_total<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                ?>
">
                        
                        
                        
			
				
			
				
                                
                                <?php 
                $_smarty_tpl->tpl_vars["original_price_calc"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['original_price'], null, 0);
                ?>
                                
                                <?php 
                $_smarty_tpl->tpl_vars["price_calc"] = new Smarty_variable(floatval($_smarty_tpl->tpl_vars['product']->value['price']), null, 0);
                ?>
			
                        
                        <?php 
                if (!$_smarty_tpl->tpl_vars['price_calc']->value) {
                    ?>
                            <?php 
                    $_smarty_tpl->tpl_vars["price_calc"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['ppc_new_price'], null, 0);
                    ?>
                        <?php 
                }
                ?>
                        <?php 
                if ($_smarty_tpl->tpl_vars['original_price_calc']->value != $_smarty_tpl->tpl_vars['price_calc']->value) {
                    ?>
                            <span id="old_price_update_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
">
                                 <span class="ty-strike"><?php 
                    echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['original_price_calc']->value, 'span_id' => "old_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, 'class' => "ty-list-price ty-nowrap"), 0);
                    ?>
</span>
                            </span>
                           
                            <span class="" id="line_discount_update_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
">
                                <span class="ty-list-price save-price ty-nowrap" id="line_discount_value_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
">
                                    <?php 
                    echo $_smarty_tpl->__("you_save");
                    ?>
: 
                                    <?php 
                    echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['original_price_calc']->value - $_smarty_tpl->tpl_vars['price_calc']->value, 'span_id' => "discount_value_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, 'class' => "ty-list-price ty-nowrap"), 0);
                    ?>

                                    (<span id="prc_discount_value_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
" class="ty-list-price ty-nowrap"><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['discount_prc'], ENT_QUOTES, 'UTF-8');
                    ?>
</span>%)
                                </span>
                            </span>
                            
                        <?php 
                }
                ?>
                        
                        
			<?php 
                if ($_smarty_tpl->tpl_vars['price_calc']->value) {
                    ?>
                            <input type="hidden" value="1" name="appearance[show_price_values]">
                            <input type="hidden" value="1" name="appearance[show_price]">
                            <span class="ty-price-update" id="price_update_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
">
                                <span id="line_discounted_price_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
" class="ty-price" style="font-family: Open Sans;font-size: 20px;font-style: normal;font-weight: bold;text-decoration: none;">
				<?php 
                    echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['price_calc']->value, 'span_id' => "discounted_price_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, 'class' => "price-num"), 0);
                    ?>

                                </span>
                            </span>
			<?php 
                } else {
                    ?>
				<?php 
                    echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => fn_get_price_default_params($_REQUEST['product_id']), 'span_id' => "discounted_price_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, 'class' => "price-num"), 0);
                    ?>

                                
			<?php 
                }
                ?>
                        
                        <input type="hidden" value="<?php 
                if ($_smarty_tpl->tpl_vars['price_calc']->value) {
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['price_calc']->value, ENT_QUOTES, 'UTF-8');
                } else {
                    echo htmlspecialchars(fn_get_price_default_params($_REQUEST['product_id']), ENT_QUOTES, 'UTF-8');
                }
                ?>
" name="product_data[<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                ?>
][extra][price_calc][total_price_calc]">
			<!--<input type="hidden" value="<?php 
                if ($_smarty_tpl->tpl_vars['price_calc']->value) {
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['price_calc']->value, ENT_QUOTES, 'UTF-8');
                } else {
                    echo htmlspecialchars(fn_get_price_by_selected_options($_REQUEST['product_id'], $_smarty_tpl->tpl_vars['product']->value['selected_options']), ENT_QUOTES, 'UTF-8');
                }
                ?>
" name="product_data[<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                ?>
][extra][price_calc][total_price_calc]">-->
			<?php 
                if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['show_prices_taxed_clean'] == "Y") {
                    ?>
 
				<?php 
                    $_smarty_tpl->tpl_vars["product_tax"] = new Smarty_variable(fn_calculate_product_taxes($_smarty_tpl->tpl_vars['obj_id']->value, $_smarty_tpl->tpl_vars['price_calc']->value), null, 0);
                    ?>
				<br/>
				<?php 
                    if ($_smarty_tpl->tpl_vars['product_tax']->value['clean_price'] != $_smarty_tpl->tpl_vars['product_tax']->value['taxed_price'] && $_smarty_tpl->tpl_vars['product_tax']->value['included_tax']) {
                        ?>
					<span class="list-price nowrap" id="line_product_price_<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                        ?>
">(<?php 
                        echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['product_tax']->value['taxed_price'], 'class' => "list-price nowrap"), 0);
                        ?>
 <?php 
                        echo $_smarty_tpl->__('inc_tax');
                        ?>
)</span>
				<?php 
                    } elseif ($_smarty_tpl->tpl_vars['product_tax']->value['clean_price'] != $_smarty_tpl->tpl_vars['product_tax']->value['taxed_price'] && !$_smarty_tpl->tpl_vars['product_tax']->value['included_tax']) {
                        ?>
					<span class="list-price nowrap">(<?php 
                        echo $_smarty_tpl->__('including_tax');
                        ?>
)</span>
				<?php 
                    }
                    ?>
			<?php 
                }
                ?>
		<!--price_calculator_total<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                ?>
--></div>
		
	<!--price_calculator<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                ?>
--></div>
	<?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['render_ppc_price']->value) {
                    ?>
		<?php 
                    $_smarty_tpl->tpl_vars["capture_name"] = new Smarty_variable("clean_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
		<?php 
                    echo htmlspecialchars(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['capture_name']->value], ENT_QUOTES, 'UTF-8');
                    ?>

	<?php 
                }
            }
        }
    }
    function content_55d5c758eec3d0_63313044($_smarty_tpl)
    {
        if ($_smarty_tpl->tpl_vars['oi']->value['extra']['price_calc']) {
            ?>
	<div class="options-info">
		<?php 
            $_smarty_tpl->tpl_vars["fields"] = new Smarty_variable(fn_get_fields($_smarty_tpl->tpl_vars['oi']->value['product_id']), null, 0);
            ?>
		<?php 
            $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['field']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['fields']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) {
                $_smarty_tpl->tpl_vars['field']->_loop = true;
                ?>
 
			<?php 
                $_smarty_tpl->tpl_vars["item"] = new Smarty_variable($_smarty_tpl->tpl_vars['field']->value['name'], null, 0);
                ?>
			<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value, ENT_QUOTES, 'UTF-8');
                ?>
: <?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['oi']->value['extra']['price_calc'][$_smarty_tpl->tpl_vars['item']->value], ENT_QUOTES, 'UTF-8');
                ?>
 <?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['abbreviation'], ENT_QUOTES, 'UTF-8');
                ?>

			<?php 
                if ($_smarty_tpl->tpl_vars['field']->value['additional'] > 0) {
                    ?>
				<?php 
                    $_smarty_tpl->tpl_vars["item"] = new Smarty_variable("add" . (string) $_smarty_tpl->tpl_vars['field']->value['name'], null, 0);
                    ?>
				<?php 
                    $_smarty_tpl->tpl_vars["nod"] = new Smarty_variable(fn_nod($_smarty_tpl->tpl_vars['oi']->value['extra']['price_calc'][$_smarty_tpl->tpl_vars['item']->value], $_smarty_tpl->tpl_vars['field']->value['additional']), null, 0);
                    ?>
				<?php 
                    if ($_smarty_tpl->tpl_vars['oi']->value['extra']['price_calc'][$_smarty_tpl->tpl_vars['item']->value]) {
                        ?>
					<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['oi']->value['extra']['price_calc'][$_smarty_tpl->tpl_vars['item']->value] / $_smarty_tpl->tpl_vars['nod']->value, ENT_QUOTES, 'UTF-8');
                        ?>
/<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['additional'] / $_smarty_tpl->tpl_vars['nod']->value, ENT_QUOTES, 'UTF-8');
                        ?>
 <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['add_abbreviation'], ENT_QUOTES, 'UTF-8');
                        ?>

				<?php 
                    }
                    ?>
			<?php 
                }
                ?>
		<?php 
            }
            ?>
		
	</div>
<?php 
        }
    }
    function content_55e01fce1b7d60_50170070($_smarty_tpl)
    {
        if ($_smarty_tpl->tpl_vars['oi']->value['extra']['price_calc']) {
            ?>
	<p style="margin: 2px 0px 3px 0px;">
		<?php 
            $_smarty_tpl->tpl_vars["fields"] = new Smarty_variable(fn_get_fields($_smarty_tpl->tpl_vars['oi']->value['product_id']), null, 0);
            ?>
		<?php 
            $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['field']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['fields']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) {
                $_smarty_tpl->tpl_vars['field']->_loop = true;
                ?>
 
			<?php 
                $_smarty_tpl->tpl_vars["item"] = new Smarty_variable($_smarty_tpl->tpl_vars['field']->value['name'], null, 0);
                ?>
			<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value, ENT_QUOTES, 'UTF-8');
                ?>
: <?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['oi']->value['extra']['price_calc'][$_smarty_tpl->tpl_vars['item']->value], ENT_QUOTES, 'UTF-8');
                ?>
 <?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['abbreviation'], ENT_QUOTES, 'UTF-8');
                ?>

			<?php 
                if ($_smarty_tpl->tpl_vars['field']->value['additional'] > 0) {
                    ?>
				<?php 
                    $_smarty_tpl->tpl_vars["item"] = new Smarty_variable("add" . (string) $_smarty_tpl->tpl_vars['field']->value['name'], null, 0);
                    ?>
				<?php 
                    $_smarty_tpl->tpl_vars["nod"] = new Smarty_variable(fn_nod($_smarty_tpl->tpl_vars['oi']->value['extra']['price_calc'][$_smarty_tpl->tpl_vars['item']->value], $_smarty_tpl->tpl_vars['field']->value['additional']), null, 0);
                    ?>
				<?php 
                    if ($_smarty_tpl->tpl_vars['oi']->value['extra']['price_calc'][$_smarty_tpl->tpl_vars['item']->value]) {
                        ?>
					<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['oi']->value['extra']['price_calc'][$_smarty_tpl->tpl_vars['item']->value] / $_smarty_tpl->tpl_vars['nod']->value, ENT_QUOTES, 'UTF-8');
                        ?>
/<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['additional'] / $_smarty_tpl->tpl_vars['nod']->value, ENT_QUOTES, 'UTF-8');
                        ?>
 <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['add_abbreviation'], ENT_QUOTES, 'UTF-8');
                        ?>

				<?php 
                    }
                    ?>
			<?php 
                }
                ?>
		<?php 
            }
            ?>
	</p>
<?php 
        }
    }
    function content_55d5c7115b9be2_92558378($_smarty_tpl)
    {
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
            $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
            ob_start();
            if ($_smarty_tpl->tpl_vars['oi']->value['extra']['price_calc']) {
                ?>
	<p style="margin: 2px 0px 3px 0px;">
		<?php 
                $_smarty_tpl->tpl_vars["fields"] = new Smarty_variable(fn_get_fields($_smarty_tpl->tpl_vars['oi']->value['product_id']), null, 0);
                ?>
		<?php 
                $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['field']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['fields']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) {
                    $_smarty_tpl->tpl_vars['field']->_loop = true;
                    ?>
 
			<?php 
                    $_smarty_tpl->tpl_vars["item"] = new Smarty_variable($_smarty_tpl->tpl_vars['field']->value['name'], null, 0);
                    ?>
			<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value, ENT_QUOTES, 'UTF-8');
                    ?>
: <?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['oi']->value['extra']['price_calc'][$_smarty_tpl->tpl_vars['item']->value], ENT_QUOTES, 'UTF-8');
                    ?>
 <?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['abbreviation'], ENT_QUOTES, 'UTF-8');
                    ?>

			<?php 
                    if ($_smarty_tpl->tpl_vars['field']->value['additional'] > 0) {
                        ?>
				<?php 
                        $_smarty_tpl->tpl_vars["item"] = new Smarty_variable("add" . (string) $_smarty_tpl->tpl_vars['field']->value['name'], null, 0);
                        ?>
				<?php 
                        $_smarty_tpl->tpl_vars["nod"] = new Smarty_variable(fn_nod($_smarty_tpl->tpl_vars['oi']->value['extra']['price_calc'][$_smarty_tpl->tpl_vars['item']->value], $_smarty_tpl->tpl_vars['field']->value['additional']), null, 0);
                        ?>
				<?php 
                        if ($_smarty_tpl->tpl_vars['oi']->value['extra']['price_calc'][$_smarty_tpl->tpl_vars['item']->value]) {
                            ?>
					<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['oi']->value['extra']['price_calc'][$_smarty_tpl->tpl_vars['item']->value] / $_smarty_tpl->tpl_vars['nod']->value, ENT_QUOTES, 'UTF-8');
                            ?>
/<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['additional'] / $_smarty_tpl->tpl_vars['nod']->value, ENT_QUOTES, 'UTF-8');
                            ?>
 <?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['add_abbreviation'], ENT_QUOTES, 'UTF-8');
                            ?>

				<?php 
                        }
                        ?>
			<?php 
                    }
                    ?>
		<?php 
                }
                ?>
	</p>
<?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();
            }
            if (trim(Smarty::$_smarty_vars['capture']['template_content'])) {
                if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") {
                    ?>
<span class="cm-template-box template-box" data-ca-te-template="addons/product_price_calculator/hooks/orders/product_info.post.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "addons/product_price_calculator/hooks/orders/product_info.post.tpl"), $_smarty_tpl);
                    ?>
"><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php 
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                    ?>
<!--[/tpl_id]--></span><?php 
                } else {
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                }
            }
        } else {
            if ($_smarty_tpl->tpl_vars['oi']->value['extra']['price_calc']) {
                ?>
	<p style="margin: 2px 0px 3px 0px;">
		<?php 
                $_smarty_tpl->tpl_vars["fields"] = new Smarty_variable(fn_get_fields($_smarty_tpl->tpl_vars['oi']->value['product_id']), null, 0);
                ?>
		<?php 
                $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['field']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['fields']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) {
                    $_smarty_tpl->tpl_vars['field']->_loop = true;
                    ?>
 
			<?php 
                    $_smarty_tpl->tpl_vars["item"] = new Smarty_variable($_smarty_tpl->tpl_vars['field']->value['name'], null, 0);
                    ?>
			<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value, ENT_QUOTES, 'UTF-8');
                    ?>
: <?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['oi']->value['extra']['price_calc'][$_smarty_tpl->tpl_vars['item']->value], ENT_QUOTES, 'UTF-8');
                    ?>
 <?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['abbreviation'], ENT_QUOTES, 'UTF-8');
                    ?>

			<?php 
                    if ($_smarty_tpl->tpl_vars['field']->value['additional'] > 0) {
                        ?>
				<?php 
                        $_smarty_tpl->tpl_vars["item"] = new Smarty_variable("add" . (string) $_smarty_tpl->tpl_vars['field']->value['name'], null, 0);
                        ?>
				<?php 
                        $_smarty_tpl->tpl_vars["nod"] = new Smarty_variable(fn_nod($_smarty_tpl->tpl_vars['oi']->value['extra']['price_calc'][$_smarty_tpl->tpl_vars['item']->value], $_smarty_tpl->tpl_vars['field']->value['additional']), null, 0);
                        ?>
				<?php 
                        if ($_smarty_tpl->tpl_vars['oi']->value['extra']['price_calc'][$_smarty_tpl->tpl_vars['item']->value]) {
                            ?>
					<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['oi']->value['extra']['price_calc'][$_smarty_tpl->tpl_vars['item']->value] / $_smarty_tpl->tpl_vars['nod']->value, ENT_QUOTES, 'UTF-8');
                            ?>
/<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['additional'] / $_smarty_tpl->tpl_vars['nod']->value, ENT_QUOTES, 'UTF-8');
                            ?>
 <?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['add_abbreviation'], ENT_QUOTES, 'UTF-8');
                            ?>

				<?php 
                        }
                        ?>
			<?php 
                    }
                    ?>
		<?php 
                }
                ?>
	</p>
<?php 
            }
        }
    }