function content_55ccf2eab791e0_87754991($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php';
        }
        if (!is_callable('smarty_function_split')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.split.php';
        }
        if (!is_callable('smarty_function_math')) {
            include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/function.math.php';
        }
        if (!is_callable('smarty_block_hook')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php';
        }
        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('enter_your_price', 'contact_us_for_price', 'empty', 'enter_your_price', 'contact_us_for_price', 'empty'));
        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['products']->value) {
                ?>
    
    <?php 
                echo smarty_function_script(array('src' => "js/tygh/exceptions.js"), $_smarty_tpl);
                ?>

    

    <?php 
                if (!$_smarty_tpl->tpl_vars['no_pagination']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/pagination2.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>
    
    <?php 
                if (!$_smarty_tpl->tpl_vars['no_sorting']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("views/products/components/sorting.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>

    <?php 
                if (!$_smarty_tpl->tpl_vars['show_empty']->value) {
                    ?>
        <?php 
                    echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products"), $_smarty_tpl);
                    ?>

    <?php 
                } else {
                    ?>
        <?php 
                    echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products", 'skip_complete' => true), $_smarty_tpl);
                    ?>

    <?php 
                }
                ?>

    <?php 
                echo smarty_function_math(array('equation' => "100 / x", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "cell_width"), $_smarty_tpl);
                ?>

    <?php 
                if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars["cur_number"] = new Smarty_variable(1, null, 0);
                    ?>
    <?php 
                }
                ?>

    
    <?php 
                echo smarty_function_script(array('src' => "js/tygh/product_image_gallery.js"), $_smarty_tpl);
                ?>


    <?php 
                if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars['quick_nav_ids'] = new Smarty_variable(fn_fields_from_multi_level($_smarty_tpl->tpl_vars['products']->value, "product_id", "product_id"), null, 0);
                    ?>
    <?php 
                }
                ?>
    
    <div class="grid-list testgridlist2">
        <?php 
                $_smarty_tpl->tpl_vars["sproducts"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["sproducts"]->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['splitted_products']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars["sproducts"]->total = $_smarty_tpl->_count($_from);
                $_smarty_tpl->tpl_vars["sproducts"]->iteration = 0;
                foreach ($_from as $_smarty_tpl->tpl_vars["sproducts"]->key => $_smarty_tpl->tpl_vars["sproducts"]->value) {
                    $_smarty_tpl->tpl_vars["sproducts"]->_loop = true;
                    $_smarty_tpl->tpl_vars["sproducts"]->iteration++;
                    $_smarty_tpl->tpl_vars["sproducts"]->last = $_smarty_tpl->tpl_vars["sproducts"]->iteration === $_smarty_tpl->tpl_vars["sproducts"]->total;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sprod"]['last'] = $_smarty_tpl->tpl_vars["sproducts"]->last;
                    $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["product"]->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['sproducts']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration'] = 0;
                    foreach ($_from as $_smarty_tpl->tpl_vars["product"]->key => $_smarty_tpl->tpl_vars["product"]->value) {
                        $_smarty_tpl->tpl_vars["product"]->_loop = true;
                        $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration']++;
                        ?>
<div class="ty-column<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8');
                        ?>
 ls_grid_coloumns"><?php 
                        if ($_smarty_tpl->tpl_vars['product']->value) {
                            $_smarty_tpl->tpl_vars["obj_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                            $_smarty_tpl->tpl_vars["obj_id_prefix"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                            echo $_smarty_tpl->getSubTemplate("common/product_data.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value), 0);
                            $_smarty_tpl->tpl_vars["form_open"] = new Smarty_variable("form_open_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_open']->value];
                            $_smarty_tpl->tpl_vars["wishlist_id"] = new Smarty_variable('', null, 0);
                            if ($_smarty_tpl->tpl_vars['wishlist']->value) {
                                $_smarty_tpl->tpl_vars["wishlist_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['cart_id'], null, 0);
                            }
                            ?>
<div class="ty-grid-list__item ty-quick-view-button__wrapper" id="grid_product_default_tpl_<?php 
                            if ($_smarty_tpl->tpl_vars['wishlist_id']->value) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8');
                            } else {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                            }
                            ?>
"><?php 
                            $_smarty_tpl->tpl_vars["is_wishlist"] = new Smarty_variable(false, null, 0);
                            if ($_smarty_tpl->tpl_vars['product']->value['cart_id']) {
                                $_smarty_tpl->tpl_vars["is_wishlist"] = new Smarty_variable(true, null, 0);
                            }
                            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:product_multicolumns_list"));
                            $_block_repeat = true;
                            echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), null, $_smarty_tpl, $_block_repeat);
                            while ($_block_repeat) {
                                ob_start();
                                ?>
<div class="ty-grid-list__image"><div class="ty-grid-list__top_info"><?php 
                                if ($_smarty_tpl->tpl_vars['product']->value['promo_name'] || $_smarty_tpl->tpl_vars['product']->value['top_title']) {
                                    ?>
<div class="ty-grid-list__top_info_promo_name"><?php 
                                    if ($_smarty_tpl->tpl_vars['product']->value['promo_name']) {
                                        echo $_smarty_tpl->tpl_vars['product']->value['promo_name'];
                                    } elseif ($_smarty_tpl->tpl_vars['product']->value['top_title']) {
                                        echo $_smarty_tpl->tpl_vars['product']->value['top_title'];
                                    }
                                    ?>
</div><?php 
                                }
                                ?>
</div><?php 
                                echo $_smarty_tpl->getSubTemplate("views/products/components/product_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value, 'wishlist' => $_smarty_tpl->tpl_vars['is_wishlist']->value, 'show_gallery' => true, 'ls_is_category_page' => true), 0);
                                $_smarty_tpl->tpl_vars["discount_label"] = new Smarty_variable("discount_label_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['discount_label']->value];
                                ?>
</div><div class="ty-grid-list__item-name"><a href="<?php 
                                echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "`&wishlist_id=" . (string) $_smarty_tpl->tpl_vars['wishlist_id']->value . "`"), ENT_QUOTES, 'UTF-8');
                                ?>
" class="ty-cart-content__product-title"><?php 
                                if (strlen($_smarty_tpl->tpl_vars['product']->value['product']) > 24) {
                                    echo substr($_smarty_tpl->tpl_vars['product']->value['product'], 0, 24);
                                    ?>
 ...<?php 
                                } else {
                                    echo $_smarty_tpl->tpl_vars['product']->value['product'];
                                }
                                ?>
</a><?php 
                                if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") {
                                    ?>
<span class="item-number"><?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['cur_number']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
.&nbsp;</span><?php 
                                    echo smarty_function_math(array('equation' => "num + 1", 'num' => $_smarty_tpl->tpl_vars['cur_number']->value, 'assign' => "cur_number"), $_smarty_tpl);
                                }
                                $_smarty_tpl->tpl_vars["name"] = new Smarty_variable("name_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                ?>
</div><div class="ty-grid-list__item-subtitle"><?php 
                                echo $_smarty_tpl->tpl_vars['product']->value['subtitle'];
                                ?>
</div><div class="ty-grid-list__price <?php 
                                if ($_smarty_tpl->tpl_vars['product']->value['price'] == 0) {
                                    ?>
ty-grid-list__no-price<?php 
                                }
                                ?>
"><?php 
                                if ($_smarty_tpl->tpl_vars['product']->value['discount']) {
                                    $_smarty_tpl->tpl_vars["old_price"] = new Smarty_variable("old_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                    if (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value])) {
                                        echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value];
                                    }
                                } else {
                                    $_smarty_tpl->tpl_vars["price"] = new Smarty_variable("price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['price']->value];
                                }
                                $_smarty_tpl->tpl_vars["list_discount"] = new Smarty_variable("list_discount_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['list_discount']->value];
                                ?>
</div><div class="ty-grid-list__control"><?php 
                                if ($_REQUEST['dispatch'] == 'wishlist.view') {
                                    echo $_smarty_tpl->getSubTemplate("views/products/components/move_to_cart_button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('wishlist' => $_smarty_tpl->tpl_vars['wishlist_id']->value, 'item_id' => $_smarty_tpl->tpl_vars['product']->value['cart_id'], 'quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0);
                                } elseif ($_REQUEST['dispatch'] != 'wishlist.view' && $_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') {
                                    echo $_smarty_tpl->getSubTemplate("views/products/components/quick_view_link.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('wishlist' => $_smarty_tpl->tpl_vars['wishlist_id']->value, 'item_id' => $_smarty_tpl->tpl_vars['product']->value['cart_id'], 'quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0);
                                }
                                ?>
<div class="controller_flip"><a href="" onclick="fn_flip_info('<?php 
                                if ($_smarty_tpl->tpl_vars['wishlist_id']->value) {
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8');
                                } else {
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                }
                                ?>
', 'grid_product_default_tpl', 'grid_product_short_details_tpl');return false;" class="controller_flip_link" >test</a></div><?php 
                                if ($_smarty_tpl->tpl_vars['show_add_to_cart']->value) {
                                    ?>
<div class="button-container"><?php 
                                    $_smarty_tpl->tpl_vars["add_to_cart"] = new Smarty_variable("add_to_cart_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['add_to_cart']->value];
                                    ?>
</div><?php 
                                }
                                ?>
</div><?php 
                                $_block_content = ob_get_clean();
                                $_block_repeat = false;
                                echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), $_block_content, $_smarty_tpl, $_block_repeat);
                            }
                            array_pop($_smarty_tpl->smarty->_tag_stack);
                            ?>
</div><div class="product_short_details" id="grid_product_short_details_tpl_<?php 
                            if ($_smarty_tpl->tpl_vars['wishlist_id']->value) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8');
                            } else {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                            }
                            ?>
" style="display:none;"><div class="grid_product_short_details_title"><?php 
                            echo $_smarty_tpl->tpl_vars['product']->value['product'];
                            ?>
</div><div class="grid_product_short_details_short_desc"><?php 
                            echo $_smarty_tpl->tpl_vars['product']->value['subtitle'];
                            ?>
</div><?php 
                            $_smarty_tpl->tpl_vars["rating"] = new Smarty_variable("rating_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            if (Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value]) {
                                ?>
<div class="grid-list__rating"><?php 
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value];
                                ?>
</div><?php 
                            }
                            ?>
<div class="grid_product_short_details_price"><?php 
                            if ($_smarty_tpl->tpl_vars['product']->value['price_range']) {
                                ?>
<span class="ty-price<?php 
                                if (!floatval($_smarty_tpl->tpl_vars['product']->value['price_range']['min_price']) && !$_smarty_tpl->tpl_vars['product']->value['zero_price_action']) {
                                    ?>
 hidden<?php 
                                }
                                ?>
" id="line_discounted_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' => round($_smarty_tpl->tpl_vars['product']->value['price_range']['min_price']) - $_smarty_tpl->tpl_vars['product']->value['promo_value'] - $_smarty_tpl->tpl_vars['product']->value['price_range']['min_price'] * $_smarty_tpl->tpl_vars['product']->value['promo_percentage'] / 100, 'span_id' => "discounted_price_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, 'class' => "ty-price-num"), 0);
                                ?>
-<?php 
                                echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => floatval(round($_smarty_tpl->tpl_vars['product']->value['price_range']['max_price']) - floatval($_smarty_tpl->tpl_vars['product']->value['promo_value']) - floatval(floatval($_smarty_tpl->tpl_vars['product']->value['price_range']['max_price']) * $_smarty_tpl->tpl_vars['product']->value['promo_percentage'] / 100)), 'span_id' => "discounted_price_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, 'class' => "ty-price-num"), 0);
                                ?>
</span><?php 
                            } else {
                                if (floatval($_smarty_tpl->tpl_vars['product']->value['price']) || $_smarty_tpl->tpl_vars['product']->value['zero_price_action'] == "P" || $_smarty_tpl->tpl_vars['hide_add_to_cart_button']->value == "Y" && $_smarty_tpl->tpl_vars['product']->value['zero_price_action'] == "A") {
                                    ?>
<span class="ty-price<?php 
                                    if (!floatval($_smarty_tpl->tpl_vars['product']->value['price']) && !$_smarty_tpl->tpl_vars['product']->value['zero_price_action']) {
                                        ?>
 hidden<?php 
                                    }
                                    ?>
" id="line_discounted_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 
                                    if ($_smarty_tpl->tpl_vars['details_page']->value) {
                                    }
                                    echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['product']->value['price'], 'span_id' => "discounted_price_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, 'class' => "ty-price-num"), 0);
                                    ?>
</span><?php 
                                } elseif ($_smarty_tpl->tpl_vars['product']->value['zero_price_action'] == "A" && $_smarty_tpl->tpl_vars['show_add_to_cart']->value) {
                                    $_smarty_tpl->tpl_vars["base_currency"] = new Smarty_variable($_smarty_tpl->tpl_vars['currencies']->value[@constant('CART_PRIMARY_CURRENCY')], null, 0);
                                    ?>
<span class="ty-price-curency"><span class="ty-price-curency__title"><?php 
                                    echo $_smarty_tpl->__("enter_your_price");
                                    ?>
:</span><div class="ty-price-curency-input"><?php 
                                    if ($_smarty_tpl->tpl_vars['base_currency']->value['after'] != "Y") {
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['base_currency']->value['symbol'], ENT_QUOTES, 'UTF-8');
                                    }
                                    ?>
<input class="ty-price-curency__input" type="text" size="3" name="product_data[<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
][price]" value="" /></div><?php 
                                    if ($_smarty_tpl->tpl_vars['base_currency']->value['after'] == "Y") {
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['base_currency']->value['symbol'], ENT_QUOTES, 'UTF-8');
                                    }
                                    ?>
</span><?php 
                                } elseif ($_smarty_tpl->tpl_vars['product']->value['zero_price_action'] == "R") {
                                    ?>
<span class="ty-no-price"><?php 
                                    echo $_smarty_tpl->__("contact_us_for_price");
                                    ?>
</span><?php 
                                    $_smarty_tpl->tpl_vars["show_qty"] = new Smarty_variable(false, null, 0);
                                }
                            }
                            ?>
</div><div class="grid_product_short_details_global_options"><?php 
                            if ($_REQUEST['dispatch'] == 'wishlist.view') {
                                ?>
<input type="hidden" name="redirect_url" value="index.php?dispatch=wishlist.delete&cart_id=<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8');
                                ?>
" /><input type="hidden" name="appearance[show_price_values]" value="1" /><input type="hidden" name="appearance[show_price]" value="1" /><input type="hidden" name="appearance[show_product_options]" value="1" /><input type="hidden" name="appearance[details_page]" value="1" /><input type="hidden" name="appearance[dont_show_points]" value="" /><input type="hidden" name="appearance[show_sku]" value="" /><input type="hidden" name="appearance[show_product_amount]" value="1" /><input type="hidden" name="appearance[show_add_to_cart]" value="1" /><input type="hidden" name="appearance[separate_buttons]" value="1" /><input type="hidden" name="appearance[show_list_buttons]" value="1" /><input type="hidden" name="appearance[but_role]" value="big" /><input type="hidden" name="appearance[quick_view]" value="" /><input type="hidden" name="additional_info[info_type]" value="D" /><input type="hidden" name="additional_info[get_icon]" value="1" /><input type="hidden" name="additional_info[get_detailed]" value="1" /><input type="hidden" name="additional_info[get_additional]" value="" /><input type="hidden" name="additional_info[get_options]" value="1" /><input type="hidden" name="additional_info[get_discounts]" value="1" /><input type="hidden" name="additional_info[get_features]" value="" /><input type="hidden" name="additional_info[get_extra]" value="" /><input type="hidden" name="additional_info[get_taxed_prices]" value="1" /><input type="hidden" name="additional_info[get_for_one_product]" value="1" /><input type="hidden" name="additional_info[detailed_params]" value="1" /><input type="hidden" name="additional_info[features_display_on]" value="C" /><input type="hidden" name="product_data[<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                ?>
][extra][price_calc][total_price_calc]" value="<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['price'], ENT_QUOTES, 'UTF-8');
                                ?>
" /><?php 
                            }
                            if (count($_smarty_tpl->tpl_vars['product']->value['product_options']) > 0) {
                                $_smarty_tpl->tpl_vars["product_option_iterat_nr"] = new Smarty_variable(1, null, 0);
                                $_smarty_tpl->tpl_vars["product_options"] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars["product_options"]->_loop = false;
                                $_from = $_smarty_tpl->tpl_vars['product']->value['product_options'];
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars["product_options"]->key => $_smarty_tpl->tpl_vars["product_options"]->value) {
                                    $_smarty_tpl->tpl_vars["product_options"]->_loop = true;
                                    if ($_smarty_tpl->tpl_vars['product_option_iterat_nr']->value < 5) {
                                        ?>
<div class="grid_product_short_details_global_option"><?php 
                                        if ($_REQUEST['dispatch'] == 'wishlist.view') {
                                            ?>
<label class="ty-control-group__label ty-product-options__item-label cm-required" for="option_<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                            ?>
_<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['option_id'], ENT_QUOTES, 'UTF-8');
                                            ?>
"><?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['option_name'], ENT_QUOTES, 'UTF-8');
                                            ?>
:</label><label class="ty-control-group__label ty-product-options__item-label label_option_variant_selected"><?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['variants'][$_smarty_tpl->tpl_vars['product']->value['selected_options'][$_smarty_tpl->tpl_vars['product_options']->value['option_id']]]['variant_name'], ENT_QUOTES, 'UTF-8');
                                            ?>
<input type="hidden" value="<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['variants'][$_smarty_tpl->tpl_vars['product']->value['selected_options'][$_smarty_tpl->tpl_vars['product_options']->value['option_id']]]['variant_id'], ENT_QUOTES, 'UTF-8');
                                            ?>
" name="product_data[<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                            ?>
][product_options][<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['option_id'], ENT_QUOTES, 'UTF-8');
                                            ?>
]"></label><?php 
                                        } else {
                                            if (!$_smarty_tpl->tpl_vars['product_options']->value['product_id']) {
                                                ?>
<span class="grid_product_short_details_global_option_title"><?php 
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['option_name'], ENT_QUOTES, 'UTF-8');
                                                ?>
</span><br/><div class="grid_product_short_details_global_option_variants"><?php 
                                                if (count($_smarty_tpl->tpl_vars['product_options']->value['variants']) > 0) {
                                                    $_smarty_tpl->tpl_vars["product_option__variants_iterat_nr"] = new Smarty_variable(1, null, 0);
                                                    $_smarty_tpl->tpl_vars["product_option_variant"] = new Smarty_Variable();
                                                    $_smarty_tpl->tpl_vars["product_option_variant"]->_loop = false;
                                                    $_from = $_smarty_tpl->tpl_vars['product_options']->value['variants'];
                                                    if (!is_array($_from) && !is_object($_from)) {
                                                        settype($_from, 'array');
                                                    }
                                                    foreach ($_from as $_smarty_tpl->tpl_vars["product_option_variant"]->key => $_smarty_tpl->tpl_vars["product_option_variant"]->value) {
                                                        $_smarty_tpl->tpl_vars["product_option_variant"]->_loop = true;
                                                        if ($_smarty_tpl->tpl_vars['product_option__variants_iterat_nr']->value < 5) {
                                                            if ($_smarty_tpl->tpl_vars['product_options']->value['option_type'] == 'Y' && count($_smarty_tpl->tpl_vars['product_option_variant']->value['image_pair']) > 0) {
                                                                echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('class' => (string) $_smarty_tpl->tpl_vars['_class']->value . " ty-product-options__image", 'images' => $_smarty_tpl->tpl_vars['product_option_variant']->value['image_pair'], 'obj_id' => "variant_image_" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "_" . (string) $_smarty_tpl->tpl_vars['product_options']->value['option_id'] . "_" . (string) $_smarty_tpl->tpl_vars['product_option_variant']->value['variant_id']), 0);
                                                            } else {
                                                                ?>
<span class="grid_product_short_details_global_option_variant_title"><?php 
                                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['product_option_variant']->value['variant_name'], ENT_QUOTES, 'UTF-8');
                                                                ?>
</span>&nbsp;&nbsp;&nbsp;<?php 
                                                            }
                                                        } elseif ($_smarty_tpl->tpl_vars['product_option__variants_iterat_nr']->value == 5) {
                                                            ?>
<span class="option_variant_continue"> ..... </span><?php 
                                                        }
                                                        $_smarty_tpl->tpl_vars["product_option__variants_iterat_nr"] = new Smarty_variable($_smarty_tpl->tpl_vars['product_option__variants_iterat_nr']->value + 1, null, 0);
                                                    }
                                                }
                                                ?>
</div><?php 
                                            }
                                        }
                                        ?>
</div><?php 
                                    }
                                    $_smarty_tpl->tpl_vars["product_option_iterat_nr"] = new Smarty_variable($_smarty_tpl->tpl_vars['product_option_iterat_nr']->value + 1, null, 0);
                                }
                            }
                            if ($_REQUEST['dispatch'] == 'wishlist.view') {
                                ?>
<input type="hidden" name="ls_calculate_estimate" value="true" /><input type="hidden" name="full_render" value="Y" /><input type="hidden" name="dispatch[checkout.add..<?php 
                                ob_start();
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                $_tmp1 = ob_get_clean();
                                echo htmlspecialchars($_tmp1, ENT_QUOTES, 'UTF-8');
                                ?>
]" value="" /><?php 
                            }
                            ?>
</div><div class="grid_product_short_details_view_product"><a href="<?php 
                            echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "`&wishlist_id=" . (string) $_smarty_tpl->tpl_vars['wishlist_id']->value . "`"), ENT_QUOTES, 'UTF-8');
                            ?>
" class="ty-cart-content__product-title-button">VEZI PRODUSUL</a></div><div class="ty-grid-list__control grid_product_short_details_control_buttons"><?php 
                            if ($_REQUEST['dispatch'] == 'wishlist.view') {
                                echo $_smarty_tpl->getSubTemplate("views/products/components/move_to_cart_button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('wishlist' => $_smarty_tpl->tpl_vars['wishlist_id']->value, 'item_id' => $_smarty_tpl->tpl_vars['product']->value['cart_id'], 'quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0);
                            } elseif ($_REQUEST['dispatch'] != 'wishlist.view' && $_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') {
                                echo $_smarty_tpl->getSubTemplate("views/products/components/quick_view_link.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('wishlist' => $_smarty_tpl->tpl_vars['wishlist_id']->value, 'item_id' => $_smarty_tpl->tpl_vars['product']->value['cart_id'], 'quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0);
                            }
                            ?>
<div class="controller_flip"><a href="" onclick="fn_flip_info('<?php 
                            if ($_smarty_tpl->tpl_vars['wishlist_id']->value) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8');
                            } else {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                            }
                            ?>
', 'grid_product_short_details_tpl', 'grid_product_default_tpl');return false;" class="controller_flip_link" >test</a></div></div></div><?php 
                            $_smarty_tpl->tpl_vars["form_close"] = new Smarty_variable("form_close_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_close']->value];
                        }
                        ?>
</div><?php 
                    }
                    if ($_smarty_tpl->tpl_vars['show_empty']->value && $_smarty_tpl->getVariable('smarty')->value['foreach']['sprod']['last']) {
                        $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable($_smarty_tpl->getVariable('smarty')->value['foreach']['sproducts']['iteration'], null, 0);
                        $_smarty_tpl->_capture_stack[0][] = array("iteration", null, null);
                        ob_start();
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['iteration']->value, ENT_QUOTES, 'UTF-8');
                        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();
                        }
                        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:products_multicolumns_extra"));
                        $_block_repeat = true;
                        echo smarty_block_hook(array('name' => "products:products_multicolumns_extra"), null, $_smarty_tpl, $_block_repeat);
                        while ($_block_repeat) {
                            ob_start();
                            $_block_content = ob_get_clean();
                            $_block_repeat = false;
                            echo smarty_block_hook(array('name' => "products:products_multicolumns_extra"), $_block_content, $_smarty_tpl, $_block_repeat);
                        }
                        array_pop($_smarty_tpl->smarty->_tag_stack);
                        $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable(Smarty::$_smarty_vars['capture']['iteration'], null, 0);
                        if ($_smarty_tpl->tpl_vars['iteration']->value % $_smarty_tpl->tpl_vars['columns']->value != 0) {
                            echo smarty_function_math(array('assign' => "empty_count", 'equation' => "c - it%c", 'it' => $_smarty_tpl->tpl_vars['iteration']->value, 'c' => $_smarty_tpl->tpl_vars['columns']->value), $_smarty_tpl);
                            if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"])) {
                                unset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]);
                            }
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['empty_count']->value) ? count($_loop) : max(0, (int) $_loop);
                            unset($_loop);
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['name'] = "empty_rows";
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = true;
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] = 1;
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] - 1;
                            if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                                if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] == 0) {
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = false;
                                }
                            } else {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = 0;
                            }
                            if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                                for ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration']++) {
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == 1;
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'];
                                    ?>
<div class="ty-column<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
"><div class="ty-product-empty"><span class="ty-product-empty__text"><?php 
                                    echo $_smarty_tpl->__("empty");
                                    ?>
</span></div></div><?php 
                                }
                            }
                        }
                    }
                }
                ?>
    </div>
    <?php 
                echo $_smarty_tpl->getSubTemplate("common/ls_next_page.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                ?>

    <?php 
                if (!$_smarty_tpl->tpl_vars['no_pagination']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/pagination2.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>

<?php 
            }
            ?>

<?php 
            $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null);
            ob_start();
            echo htmlspecialchars($_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8');
            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();
            }
            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="blocks/list_templates/grid_list.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "blocks/list_templates/grid_list.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['products']->value) {
                ?>
    
    <?php 
                echo smarty_function_script(array('src' => "js/tygh/exceptions.js"), $_smarty_tpl);
                ?>

    

    <?php 
                if (!$_smarty_tpl->tpl_vars['no_pagination']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/pagination2.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>
    
    <?php 
                if (!$_smarty_tpl->tpl_vars['no_sorting']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("views/products/components/sorting.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>

    <?php 
                if (!$_smarty_tpl->tpl_vars['show_empty']->value) {
                    ?>
        <?php 
                    echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products"), $_smarty_tpl);
                    ?>

    <?php 
                } else {
                    ?>
        <?php 
                    echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products", 'skip_complete' => true), $_smarty_tpl);
                    ?>

    <?php 
                }
                ?>

    <?php 
                echo smarty_function_math(array('equation' => "100 / x", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "cell_width"), $_smarty_tpl);
                ?>

    <?php 
                if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars["cur_number"] = new Smarty_variable(1, null, 0);
                    ?>
    <?php 
                }
                ?>

    
    <?php 
                echo smarty_function_script(array('src' => "js/tygh/product_image_gallery.js"), $_smarty_tpl);
                ?>


    <?php 
                if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars['quick_nav_ids'] = new Smarty_variable(fn_fields_from_multi_level($_smarty_tpl->tpl_vars['products']->value, "product_id", "product_id"), null, 0);
                    ?>
    <?php 
                }
                ?>
    
    <div class="grid-list testgridlist2">
        <?php 
                $_smarty_tpl->tpl_vars["sproducts"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["sproducts"]->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['splitted_products']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars["sproducts"]->total = $_smarty_tpl->_count($_from);
                $_smarty_tpl->tpl_vars["sproducts"]->iteration = 0;
                foreach ($_from as $_smarty_tpl->tpl_vars["sproducts"]->key => $_smarty_tpl->tpl_vars["sproducts"]->value) {
                    $_smarty_tpl->tpl_vars["sproducts"]->_loop = true;
                    $_smarty_tpl->tpl_vars["sproducts"]->iteration++;
                    $_smarty_tpl->tpl_vars["sproducts"]->last = $_smarty_tpl->tpl_vars["sproducts"]->iteration === $_smarty_tpl->tpl_vars["sproducts"]->total;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sprod"]['last'] = $_smarty_tpl->tpl_vars["sproducts"]->last;
                    $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["product"]->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['sproducts']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration'] = 0;
                    foreach ($_from as $_smarty_tpl->tpl_vars["product"]->key => $_smarty_tpl->tpl_vars["product"]->value) {
                        $_smarty_tpl->tpl_vars["product"]->_loop = true;
                        $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration']++;
                        ?>
<div class="ty-column<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8');
                        ?>
 ls_grid_coloumns"><?php 
                        if ($_smarty_tpl->tpl_vars['product']->value) {
                            $_smarty_tpl->tpl_vars["obj_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                            $_smarty_tpl->tpl_vars["obj_id_prefix"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                            echo $_smarty_tpl->getSubTemplate("common/product_data.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value), 0);
                            $_smarty_tpl->tpl_vars["form_open"] = new Smarty_variable("form_open_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_open']->value];
                            $_smarty_tpl->tpl_vars["wishlist_id"] = new Smarty_variable('', null, 0);
                            if ($_smarty_tpl->tpl_vars['wishlist']->value) {
                                $_smarty_tpl->tpl_vars["wishlist_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['cart_id'], null, 0);
                            }
                            ?>
<div class="ty-grid-list__item ty-quick-view-button__wrapper" id="grid_product_default_tpl_<?php 
                            if ($_smarty_tpl->tpl_vars['wishlist_id']->value) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8');
                            } else {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                            }
                            ?>
"><?php 
                            $_smarty_tpl->tpl_vars["is_wishlist"] = new Smarty_variable(false, null, 0);
                            if ($_smarty_tpl->tpl_vars['product']->value['cart_id']) {
                                $_smarty_tpl->tpl_vars["is_wishlist"] = new Smarty_variable(true, null, 0);
                            }
                            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:product_multicolumns_list"));
                            $_block_repeat = true;
                            echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), null, $_smarty_tpl, $_block_repeat);
                            while ($_block_repeat) {
                                ob_start();
                                ?>
<div class="ty-grid-list__image"><div class="ty-grid-list__top_info"><?php 
                                if ($_smarty_tpl->tpl_vars['product']->value['promo_name'] || $_smarty_tpl->tpl_vars['product']->value['top_title']) {
                                    ?>
<div class="ty-grid-list__top_info_promo_name"><?php 
                                    if ($_smarty_tpl->tpl_vars['product']->value['promo_name']) {
                                        echo $_smarty_tpl->tpl_vars['product']->value['promo_name'];
                                    } elseif ($_smarty_tpl->tpl_vars['product']->value['top_title']) {
                                        echo $_smarty_tpl->tpl_vars['product']->value['top_title'];
                                    }
                                    ?>
</div><?php 
                                }
                                ?>
</div><?php 
                                echo $_smarty_tpl->getSubTemplate("views/products/components/product_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value, 'wishlist' => $_smarty_tpl->tpl_vars['is_wishlist']->value, 'show_gallery' => true, 'ls_is_category_page' => true), 0);
                                $_smarty_tpl->tpl_vars["discount_label"] = new Smarty_variable("discount_label_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['discount_label']->value];
                                ?>
</div><div class="ty-grid-list__item-name"><a href="<?php 
                                echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "`&wishlist_id=" . (string) $_smarty_tpl->tpl_vars['wishlist_id']->value . "`"), ENT_QUOTES, 'UTF-8');
                                ?>
" class="ty-cart-content__product-title"><?php 
                                if (strlen($_smarty_tpl->tpl_vars['product']->value['product']) > 24) {
                                    echo substr($_smarty_tpl->tpl_vars['product']->value['product'], 0, 24);
                                    ?>
 ...<?php 
                                } else {
                                    echo $_smarty_tpl->tpl_vars['product']->value['product'];
                                }
                                ?>
</a><?php 
                                if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") {
                                    ?>
<span class="item-number"><?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['cur_number']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
.&nbsp;</span><?php 
                                    echo smarty_function_math(array('equation' => "num + 1", 'num' => $_smarty_tpl->tpl_vars['cur_number']->value, 'assign' => "cur_number"), $_smarty_tpl);
                                }
                                $_smarty_tpl->tpl_vars["name"] = new Smarty_variable("name_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                ?>
</div><div class="ty-grid-list__item-subtitle"><?php 
                                echo $_smarty_tpl->tpl_vars['product']->value['subtitle'];
                                ?>
</div><div class="ty-grid-list__price <?php 
                                if ($_smarty_tpl->tpl_vars['product']->value['price'] == 0) {
                                    ?>
ty-grid-list__no-price<?php 
                                }
                                ?>
"><?php 
                                if ($_smarty_tpl->tpl_vars['product']->value['discount']) {
                                    $_smarty_tpl->tpl_vars["old_price"] = new Smarty_variable("old_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                    if (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value])) {
                                        echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value];
                                    }
                                } else {
                                    $_smarty_tpl->tpl_vars["price"] = new Smarty_variable("price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['price']->value];
                                }
                                $_smarty_tpl->tpl_vars["list_discount"] = new Smarty_variable("list_discount_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['list_discount']->value];
                                ?>
</div><div class="ty-grid-list__control"><?php 
                                if ($_REQUEST['dispatch'] == 'wishlist.view') {
                                    echo $_smarty_tpl->getSubTemplate("views/products/components/move_to_cart_button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('wishlist' => $_smarty_tpl->tpl_vars['wishlist_id']->value, 'item_id' => $_smarty_tpl->tpl_vars['product']->value['cart_id'], 'quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0);
                                } elseif ($_REQUEST['dispatch'] != 'wishlist.view' && $_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') {
                                    echo $_smarty_tpl->getSubTemplate("views/products/components/quick_view_link.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('wishlist' => $_smarty_tpl->tpl_vars['wishlist_id']->value, 'item_id' => $_smarty_tpl->tpl_vars['product']->value['cart_id'], 'quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0);
                                }
                                ?>
<div class="controller_flip"><a href="" onclick="fn_flip_info('<?php 
                                if ($_smarty_tpl->tpl_vars['wishlist_id']->value) {
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8');
                                } else {
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                }
                                ?>
', 'grid_product_default_tpl', 'grid_product_short_details_tpl');return false;" class="controller_flip_link" >test</a></div><?php 
                                if ($_smarty_tpl->tpl_vars['show_add_to_cart']->value) {
                                    ?>
<div class="button-container"><?php 
                                    $_smarty_tpl->tpl_vars["add_to_cart"] = new Smarty_variable("add_to_cart_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['add_to_cart']->value];
                                    ?>
</div><?php 
                                }
                                ?>
</div><?php 
                                $_block_content = ob_get_clean();
                                $_block_repeat = false;
                                echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), $_block_content, $_smarty_tpl, $_block_repeat);
                            }
                            array_pop($_smarty_tpl->smarty->_tag_stack);
                            ?>
</div><div class="product_short_details" id="grid_product_short_details_tpl_<?php 
                            if ($_smarty_tpl->tpl_vars['wishlist_id']->value) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8');
                            } else {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                            }
                            ?>
" style="display:none;"><div class="grid_product_short_details_title"><?php 
                            echo $_smarty_tpl->tpl_vars['product']->value['product'];
                            ?>
</div><div class="grid_product_short_details_short_desc"><?php 
                            echo $_smarty_tpl->tpl_vars['product']->value['subtitle'];
                            ?>
</div><?php 
                            $_smarty_tpl->tpl_vars["rating"] = new Smarty_variable("rating_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            if (Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value]) {
                                ?>
<div class="grid-list__rating"><?php 
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value];
                                ?>
</div><?php 
                            }
                            ?>
<div class="grid_product_short_details_price"><?php 
                            if ($_smarty_tpl->tpl_vars['product']->value['price_range']) {
                                ?>
<span class="ty-price<?php 
                                if (!floatval($_smarty_tpl->tpl_vars['product']->value['price_range']['min_price']) && !$_smarty_tpl->tpl_vars['product']->value['zero_price_action']) {
                                    ?>
 hidden<?php 
                                }
                                ?>
" id="line_discounted_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' => round($_smarty_tpl->tpl_vars['product']->value['price_range']['min_price']) - $_smarty_tpl->tpl_vars['product']->value['promo_value'] - $_smarty_tpl->tpl_vars['product']->value['price_range']['min_price'] * $_smarty_tpl->tpl_vars['product']->value['promo_percentage'] / 100, 'span_id' => "discounted_price_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, 'class' => "ty-price-num"), 0);
                                ?>
-<?php 
                                echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => floatval(round($_smarty_tpl->tpl_vars['product']->value['price_range']['max_price']) - floatval($_smarty_tpl->tpl_vars['product']->value['promo_value']) - floatval(floatval($_smarty_tpl->tpl_vars['product']->value['price_range']['max_price']) * $_smarty_tpl->tpl_vars['product']->value['promo_percentage'] / 100)), 'span_id' => "discounted_price_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, 'class' => "ty-price-num"), 0);
                                ?>
</span><?php 
                            } else {
                                if (floatval($_smarty_tpl->tpl_vars['product']->value['price']) || $_smarty_tpl->tpl_vars['product']->value['zero_price_action'] == "P" || $_smarty_tpl->tpl_vars['hide_add_to_cart_button']->value == "Y" && $_smarty_tpl->tpl_vars['product']->value['zero_price_action'] == "A") {
                                    ?>
<span class="ty-price<?php 
                                    if (!floatval($_smarty_tpl->tpl_vars['product']->value['price']) && !$_smarty_tpl->tpl_vars['product']->value['zero_price_action']) {
                                        ?>
 hidden<?php 
                                    }
                                    ?>
" id="line_discounted_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 
                                    if ($_smarty_tpl->tpl_vars['details_page']->value) {
                                    }
                                    echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['product']->value['price'], 'span_id' => "discounted_price_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, 'class' => "ty-price-num"), 0);
                                    ?>
</span><?php 
                                } elseif ($_smarty_tpl->tpl_vars['product']->value['zero_price_action'] == "A" && $_smarty_tpl->tpl_vars['show_add_to_cart']->value) {
                                    $_smarty_tpl->tpl_vars["base_currency"] = new Smarty_variable($_smarty_tpl->tpl_vars['currencies']->value[@constant('CART_PRIMARY_CURRENCY')], null, 0);
                                    ?>
<span class="ty-price-curency"><span class="ty-price-curency__title"><?php 
                                    echo $_smarty_tpl->__("enter_your_price");
                                    ?>
:</span><div class="ty-price-curency-input"><?php 
                                    if ($_smarty_tpl->tpl_vars['base_currency']->value['after'] != "Y") {
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['base_currency']->value['symbol'], ENT_QUOTES, 'UTF-8');
                                    }
                                    ?>
<input class="ty-price-curency__input" type="text" size="3" name="product_data[<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
][price]" value="" /></div><?php 
                                    if ($_smarty_tpl->tpl_vars['base_currency']->value['after'] == "Y") {
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['base_currency']->value['symbol'], ENT_QUOTES, 'UTF-8');
                                    }
                                    ?>
</span><?php 
                                } elseif ($_smarty_tpl->tpl_vars['product']->value['zero_price_action'] == "R") {
                                    ?>
<span class="ty-no-price"><?php 
                                    echo $_smarty_tpl->__("contact_us_for_price");
                                    ?>
</span><?php 
                                    $_smarty_tpl->tpl_vars["show_qty"] = new Smarty_variable(false, null, 0);
                                }
                            }
                            ?>
</div><div class="grid_product_short_details_global_options"><?php 
                            if ($_REQUEST['dispatch'] == 'wishlist.view') {
                                ?>
<input type="hidden" name="redirect_url" value="index.php?dispatch=wishlist.delete&cart_id=<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8');
                                ?>
" /><input type="hidden" name="appearance[show_price_values]" value="1" /><input type="hidden" name="appearance[show_price]" value="1" /><input type="hidden" name="appearance[show_product_options]" value="1" /><input type="hidden" name="appearance[details_page]" value="1" /><input type="hidden" name="appearance[dont_show_points]" value="" /><input type="hidden" name="appearance[show_sku]" value="" /><input type="hidden" name="appearance[show_product_amount]" value="1" /><input type="hidden" name="appearance[show_add_to_cart]" value="1" /><input type="hidden" name="appearance[separate_buttons]" value="1" /><input type="hidden" name="appearance[show_list_buttons]" value="1" /><input type="hidden" name="appearance[but_role]" value="big" /><input type="hidden" name="appearance[quick_view]" value="" /><input type="hidden" name="additional_info[info_type]" value="D" /><input type="hidden" name="additional_info[get_icon]" value="1" /><input type="hidden" name="additional_info[get_detailed]" value="1" /><input type="hidden" name="additional_info[get_additional]" value="" /><input type="hidden" name="additional_info[get_options]" value="1" /><input type="hidden" name="additional_info[get_discounts]" value="1" /><input type="hidden" name="additional_info[get_features]" value="" /><input type="hidden" name="additional_info[get_extra]" value="" /><input type="hidden" name="additional_info[get_taxed_prices]" value="1" /><input type="hidden" name="additional_info[get_for_one_product]" value="1" /><input type="hidden" name="additional_info[detailed_params]" value="1" /><input type="hidden" name="additional_info[features_display_on]" value="C" /><input type="hidden" name="product_data[<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                ?>
][extra][price_calc][total_price_calc]" value="<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['price'], ENT_QUOTES, 'UTF-8');
                                ?>
" /><?php 
                            }
                            if (count($_smarty_tpl->tpl_vars['product']->value['product_options']) > 0) {
                                $_smarty_tpl->tpl_vars["product_option_iterat_nr"] = new Smarty_variable(1, null, 0);
                                $_smarty_tpl->tpl_vars["product_options"] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars["product_options"]->_loop = false;
                                $_from = $_smarty_tpl->tpl_vars['product']->value['product_options'];
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars["product_options"]->key => $_smarty_tpl->tpl_vars["product_options"]->value) {
                                    $_smarty_tpl->tpl_vars["product_options"]->_loop = true;
                                    if ($_smarty_tpl->tpl_vars['product_option_iterat_nr']->value < 5) {
                                        ?>
<div class="grid_product_short_details_global_option"><?php 
                                        if ($_REQUEST['dispatch'] == 'wishlist.view') {
                                            ?>
<label class="ty-control-group__label ty-product-options__item-label cm-required" for="option_<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                            ?>
_<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['option_id'], ENT_QUOTES, 'UTF-8');
                                            ?>
"><?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['option_name'], ENT_QUOTES, 'UTF-8');
                                            ?>
:</label><label class="ty-control-group__label ty-product-options__item-label label_option_variant_selected"><?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['variants'][$_smarty_tpl->tpl_vars['product']->value['selected_options'][$_smarty_tpl->tpl_vars['product_options']->value['option_id']]]['variant_name'], ENT_QUOTES, 'UTF-8');
                                            ?>
<input type="hidden" value="<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['variants'][$_smarty_tpl->tpl_vars['product']->value['selected_options'][$_smarty_tpl->tpl_vars['product_options']->value['option_id']]]['variant_id'], ENT_QUOTES, 'UTF-8');
                                            ?>
" name="product_data[<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                            ?>
][product_options][<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['option_id'], ENT_QUOTES, 'UTF-8');
                                            ?>
]"></label><?php 
                                        } else {
                                            if (!$_smarty_tpl->tpl_vars['product_options']->value['product_id']) {
                                                ?>
<span class="grid_product_short_details_global_option_title"><?php 
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['option_name'], ENT_QUOTES, 'UTF-8');
                                                ?>
</span><br/><div class="grid_product_short_details_global_option_variants"><?php 
                                                if (count($_smarty_tpl->tpl_vars['product_options']->value['variants']) > 0) {
                                                    $_smarty_tpl->tpl_vars["product_option__variants_iterat_nr"] = new Smarty_variable(1, null, 0);
                                                    $_smarty_tpl->tpl_vars["product_option_variant"] = new Smarty_Variable();
                                                    $_smarty_tpl->tpl_vars["product_option_variant"]->_loop = false;
                                                    $_from = $_smarty_tpl->tpl_vars['product_options']->value['variants'];
                                                    if (!is_array($_from) && !is_object($_from)) {
                                                        settype($_from, 'array');
                                                    }
                                                    foreach ($_from as $_smarty_tpl->tpl_vars["product_option_variant"]->key => $_smarty_tpl->tpl_vars["product_option_variant"]->value) {
                                                        $_smarty_tpl->tpl_vars["product_option_variant"]->_loop = true;
                                                        if ($_smarty_tpl->tpl_vars['product_option__variants_iterat_nr']->value < 5) {
                                                            if ($_smarty_tpl->tpl_vars['product_options']->value['option_type'] == 'Y' && count($_smarty_tpl->tpl_vars['product_option_variant']->value['image_pair']) > 0) {
                                                                echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('class' => (string) $_smarty_tpl->tpl_vars['_class']->value . " ty-product-options__image", 'images' => $_smarty_tpl->tpl_vars['product_option_variant']->value['image_pair'], 'obj_id' => "variant_image_" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "_" . (string) $_smarty_tpl->tpl_vars['product_options']->value['option_id'] . "_" . (string) $_smarty_tpl->tpl_vars['product_option_variant']->value['variant_id']), 0);
                                                            } else {
                                                                ?>
<span class="grid_product_short_details_global_option_variant_title"><?php 
                                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['product_option_variant']->value['variant_name'], ENT_QUOTES, 'UTF-8');
                                                                ?>
</span>&nbsp;&nbsp;&nbsp;<?php 
                                                            }
                                                        } elseif ($_smarty_tpl->tpl_vars['product_option__variants_iterat_nr']->value == 5) {
                                                            ?>
<span class="option_variant_continue"> ..... </span><?php 
                                                        }
                                                        $_smarty_tpl->tpl_vars["product_option__variants_iterat_nr"] = new Smarty_variable($_smarty_tpl->tpl_vars['product_option__variants_iterat_nr']->value + 1, null, 0);
                                                    }
                                                }
                                                ?>
</div><?php 
                                            }
                                        }
                                        ?>
</div><?php 
                                    }
                                    $_smarty_tpl->tpl_vars["product_option_iterat_nr"] = new Smarty_variable($_smarty_tpl->tpl_vars['product_option_iterat_nr']->value + 1, null, 0);
                                }
                            }
                            if ($_REQUEST['dispatch'] == 'wishlist.view') {
                                ?>
<input type="hidden" name="ls_calculate_estimate" value="true" /><input type="hidden" name="full_render" value="Y" /><input type="hidden" name="dispatch[checkout.add..<?php 
                                ob_start();
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                $_tmp2 = ob_get_clean();
                                echo htmlspecialchars($_tmp2, ENT_QUOTES, 'UTF-8');
                                ?>
]" value="" /><?php 
                            }
                            ?>
</div><div class="grid_product_short_details_view_product"><a href="<?php 
                            echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "`&wishlist_id=" . (string) $_smarty_tpl->tpl_vars['wishlist_id']->value . "`"), ENT_QUOTES, 'UTF-8');
                            ?>
" class="ty-cart-content__product-title-button">VEZI PRODUSUL</a></div><div class="ty-grid-list__control grid_product_short_details_control_buttons"><?php 
                            if ($_REQUEST['dispatch'] == 'wishlist.view') {
                                echo $_smarty_tpl->getSubTemplate("views/products/components/move_to_cart_button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('wishlist' => $_smarty_tpl->tpl_vars['wishlist_id']->value, 'item_id' => $_smarty_tpl->tpl_vars['product']->value['cart_id'], 'quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0);
                            } elseif ($_REQUEST['dispatch'] != 'wishlist.view' && $_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') {
                                echo $_smarty_tpl->getSubTemplate("views/products/components/quick_view_link.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('wishlist' => $_smarty_tpl->tpl_vars['wishlist_id']->value, 'item_id' => $_smarty_tpl->tpl_vars['product']->value['cart_id'], 'quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0);
                            }
                            ?>
<div class="controller_flip"><a href="" onclick="fn_flip_info('<?php 
                            if ($_smarty_tpl->tpl_vars['wishlist_id']->value) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8');
                            } else {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                            }
                            ?>
', 'grid_product_short_details_tpl', 'grid_product_default_tpl');return false;" class="controller_flip_link" >test</a></div></div></div><?php 
                            $_smarty_tpl->tpl_vars["form_close"] = new Smarty_variable("form_close_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_close']->value];
                        }
                        ?>
</div><?php 
                    }
                    if ($_smarty_tpl->tpl_vars['show_empty']->value && $_smarty_tpl->getVariable('smarty')->value['foreach']['sprod']['last']) {
                        $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable($_smarty_tpl->getVariable('smarty')->value['foreach']['sproducts']['iteration'], null, 0);
                        $_smarty_tpl->_capture_stack[0][] = array("iteration", null, null);
                        ob_start();
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['iteration']->value, ENT_QUOTES, 'UTF-8');
                        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();
                        }
                        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:products_multicolumns_extra"));
                        $_block_repeat = true;
                        echo smarty_block_hook(array('name' => "products:products_multicolumns_extra"), null, $_smarty_tpl, $_block_repeat);
                        while ($_block_repeat) {
                            ob_start();
                            $_block_content = ob_get_clean();
                            $_block_repeat = false;
                            echo smarty_block_hook(array('name' => "products:products_multicolumns_extra"), $_block_content, $_smarty_tpl, $_block_repeat);
                        }
                        array_pop($_smarty_tpl->smarty->_tag_stack);
                        $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable(Smarty::$_smarty_vars['capture']['iteration'], null, 0);
                        if ($_smarty_tpl->tpl_vars['iteration']->value % $_smarty_tpl->tpl_vars['columns']->value != 0) {
                            echo smarty_function_math(array('assign' => "empty_count", 'equation' => "c - it%c", 'it' => $_smarty_tpl->tpl_vars['iteration']->value, 'c' => $_smarty_tpl->tpl_vars['columns']->value), $_smarty_tpl);
                            if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"])) {
                                unset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]);
                            }
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['empty_count']->value) ? count($_loop) : max(0, (int) $_loop);
                            unset($_loop);
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['name'] = "empty_rows";
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = true;
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] = 1;
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] - 1;
                            if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                                if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] == 0) {
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = false;
                                }
                            } else {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = 0;
                            }
                            if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                                for ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration']++) {
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == 1;
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'];
                                    ?>
<div class="ty-column<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
"><div class="ty-product-empty"><span class="ty-product-empty__text"><?php 
                                    echo $_smarty_tpl->__("empty");
                                    ?>
</span></div></div><?php 
                                }
                            }
                        }
                    }
                }
                ?>
    </div>
    <?php 
                echo $_smarty_tpl->getSubTemplate("common/ls_next_page.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                ?>

    <?php 
                if (!$_smarty_tpl->tpl_vars['no_pagination']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/pagination2.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>

<?php 
            }
            ?>

<?php 
            $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null);
            ob_start();
            echo htmlspecialchars($_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8');
            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();
            }
        }
    }
    function content_55dc75a003e1f6_47584415($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.script.php';
        }
        if (!is_callable('smarty_function_split')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.split.php';
        }
        if (!is_callable('smarty_function_math')) {
            include '/var/www/html/market/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php';
        }
        if (!is_callable('smarty_block_hook')) {
            include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php';
        }
        if (!is_callable('smarty_function_set_id')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.set_id.php';
        }
        fn_preload_lang_vars(array('empty', 'empty'));
        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['products']->value) {
                ?>

    <?php 
                echo smarty_function_script(array('src' => "js/tygh/exceptions.js"), $_smarty_tpl);
                ?>

    

    <?php 
                if (!$_smarty_tpl->tpl_vars['no_pagination']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>
    
    <?php 
                if (!$_smarty_tpl->tpl_vars['no_sorting']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("views/products/components/sorting.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>

    <?php 
                if (!$_smarty_tpl->tpl_vars['show_empty']->value) {
                    ?>
        <?php 
                    echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products"), $_smarty_tpl);
                    ?>

    <?php 
                } else {
                    ?>
        <?php 
                    echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products", 'skip_complete' => true), $_smarty_tpl);
                    ?>

    <?php 
                }
                ?>

    <?php 
                echo smarty_function_math(array('equation' => "100 / x", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "cell_width"), $_smarty_tpl);
                ?>

    <?php 
                if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars["cur_number"] = new Smarty_variable(1, null, 0);
                    ?>
    <?php 
                }
                ?>

    
    <?php 
                echo smarty_function_script(array('src' => "js/tygh/product_image_gallery.js"), $_smarty_tpl);
                ?>


    <?php 
                if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars['quick_nav_ids'] = new Smarty_variable(fn_fields_from_multi_level($_smarty_tpl->tpl_vars['products']->value, "product_id", "product_id"), null, 0);
                    ?>
    <?php 
                }
                ?>
    <div class="grid-list">
        <?php 
                $_smarty_tpl->tpl_vars["sproducts"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["sproducts"]->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['splitted_products']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars["sproducts"]->total = $_smarty_tpl->_count($_from);
                $_smarty_tpl->tpl_vars["sproducts"]->iteration = 0;
                foreach ($_from as $_smarty_tpl->tpl_vars["sproducts"]->key => $_smarty_tpl->tpl_vars["sproducts"]->value) {
                    $_smarty_tpl->tpl_vars["sproducts"]->_loop = true;
                    $_smarty_tpl->tpl_vars["sproducts"]->iteration++;
                    $_smarty_tpl->tpl_vars["sproducts"]->last = $_smarty_tpl->tpl_vars["sproducts"]->iteration === $_smarty_tpl->tpl_vars["sproducts"]->total;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sprod"]['last'] = $_smarty_tpl->tpl_vars["sproducts"]->last;
                    $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["product"]->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['sproducts']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration'] = 0;
                    foreach ($_from as $_smarty_tpl->tpl_vars["product"]->key => $_smarty_tpl->tpl_vars["product"]->value) {
                        $_smarty_tpl->tpl_vars["product"]->_loop = true;
                        $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration']++;
                        ?>
<div class="ty-column<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8');
                        ?>
"><?php 
                        if ($_smarty_tpl->tpl_vars['product']->value) {
                            $_smarty_tpl->tpl_vars["obj_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                            $_smarty_tpl->tpl_vars["obj_id_prefix"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                            echo $_smarty_tpl->getSubTemplate("common/product_data.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value), 0);
                            ?>
<div class="ty-grid-list__item ty-quick-view-button__wrapper"><?php 
                            $_smarty_tpl->tpl_vars["form_open"] = new Smarty_variable("form_open_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_open']->value];
                            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:product_multicolumns_list"));
                            $_block_repeat = true;
                            echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), null, $_smarty_tpl, $_block_repeat);
                            while ($_block_repeat) {
                                ob_start();
                                ?>
<div class="ty-grid-list__image"><?php 
                                echo $_smarty_tpl->getSubTemplate("views/products/components/product_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value, 'show_gallery' => true), 0);
                                $_smarty_tpl->tpl_vars["discount_label"] = new Smarty_variable("discount_label_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['discount_label']->value];
                                ?>
</div><div class="ty-grid-list__item-name"><?php 
                                if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") {
                                    ?>
<span class="item-number"><?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['cur_number']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
.&nbsp;</span><?php 
                                    echo smarty_function_math(array('equation' => "num + 1", 'num' => $_smarty_tpl->tpl_vars['cur_number']->value, 'assign' => "cur_number"), $_smarty_tpl);
                                }
                                $_smarty_tpl->tpl_vars["name"] = new Smarty_variable("name_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['name']->value];
                                ?>
</div><div class="ty-grid-list__price <?php 
                                if ($_smarty_tpl->tpl_vars['product']->value['price'] == 0) {
                                    ?>
ty-grid-list__no-price<?php 
                                }
                                ?>
"><?php 
                                $_smarty_tpl->tpl_vars["old_price"] = new Smarty_variable("old_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                if (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value])) {
                                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value];
                                }
                                $_smarty_tpl->tpl_vars["price"] = new Smarty_variable("price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['price']->value];
                                $_smarty_tpl->tpl_vars["clean_price"] = new Smarty_variable("clean_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['clean_price']->value];
                                $_smarty_tpl->tpl_vars["list_discount"] = new Smarty_variable("list_discount_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['list_discount']->value];
                                ?>
</div><?php 
                                $_smarty_tpl->tpl_vars["rating"] = new Smarty_variable("rating_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                if (Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value]) {
                                    ?>
<div class="grid-list__rating"><?php 
                                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value];
                                    ?>
</div><?php 
                                }
                                ?>
<div class="ty-grid-list__control"><?php 
                                if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') {
                                    echo $_smarty_tpl->getSubTemplate("views/products/components/quick_view_link.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0);
                                }
                                if ($_smarty_tpl->tpl_vars['show_add_to_cart']->value) {
                                    ?>
<div class="button-container"><?php 
                                    $_smarty_tpl->tpl_vars["add_to_cart"] = new Smarty_variable("add_to_cart_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['add_to_cart']->value];
                                    ?>
</div><?php 
                                }
                                ?>
</div><?php 
                                $_block_content = ob_get_clean();
                                $_block_repeat = false;
                                echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), $_block_content, $_smarty_tpl, $_block_repeat);
                            }
                            array_pop($_smarty_tpl->smarty->_tag_stack);
                            $_smarty_tpl->tpl_vars["form_close"] = new Smarty_variable("form_close_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_close']->value];
                            ?>
</div><?php 
                        }
                        ?>
</div><?php 
                    }
                    if ($_smarty_tpl->tpl_vars['show_empty']->value && $_smarty_tpl->getVariable('smarty')->value['foreach']['sprod']['last']) {
                        $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable($_smarty_tpl->getVariable('smarty')->value['foreach']['sproducts']['iteration'], null, 0);
                        $_smarty_tpl->_capture_stack[0][] = array("iteration", null, null);
                        ob_start();
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['iteration']->value, ENT_QUOTES, 'UTF-8');
                        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();
                        }
                        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:products_multicolumns_extra"));
                        $_block_repeat = true;
                        echo smarty_block_hook(array('name' => "products:products_multicolumns_extra"), null, $_smarty_tpl, $_block_repeat);
                        while ($_block_repeat) {
                            ob_start();
                            $_block_content = ob_get_clean();
                            $_block_repeat = false;
                            echo smarty_block_hook(array('name' => "products:products_multicolumns_extra"), $_block_content, $_smarty_tpl, $_block_repeat);
                        }
                        array_pop($_smarty_tpl->smarty->_tag_stack);
                        $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable(Smarty::$_smarty_vars['capture']['iteration'], null, 0);
                        if ($_smarty_tpl->tpl_vars['iteration']->value % $_smarty_tpl->tpl_vars['columns']->value != 0) {
                            echo smarty_function_math(array('assign' => "empty_count", 'equation' => "c - it%c", 'it' => $_smarty_tpl->tpl_vars['iteration']->value, 'c' => $_smarty_tpl->tpl_vars['columns']->value), $_smarty_tpl);
                            if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"])) {
                                unset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]);
                            }
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['empty_count']->value) ? count($_loop) : max(0, (int) $_loop);
                            unset($_loop);
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['name'] = "empty_rows";
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = true;
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] = 1;
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] - 1;
                            if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                                if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] == 0) {
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = false;
                                }
                            } else {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = 0;
                            }
                            if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                                for ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration']++) {
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == 1;
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'];
                                    ?>
<div class="ty-column<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
"><div class="ty-product-empty"><span class="ty-product-empty__text"><?php 
                                    echo $_smarty_tpl->__("empty");
                                    ?>
</span></div></div><?php 
                                }
                            }
                        }
                    }
                }
                ?>
    </div>

    <?php 
                if (!$_smarty_tpl->tpl_vars['no_pagination']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>

<?php 
            }
            ?>

<?php 
            $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null);
            ob_start();
            echo htmlspecialchars($_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8');
            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();
            }
            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="blocks/list_templates/grid_list.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "blocks/list_templates/grid_list.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['products']->value) {
                ?>

    <?php 
                echo smarty_function_script(array('src' => "js/tygh/exceptions.js"), $_smarty_tpl);
                ?>

    

    <?php 
                if (!$_smarty_tpl->tpl_vars['no_pagination']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>
    
    <?php 
                if (!$_smarty_tpl->tpl_vars['no_sorting']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("views/products/components/sorting.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>

    <?php 
                if (!$_smarty_tpl->tpl_vars['show_empty']->value) {
                    ?>
        <?php 
                    echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products"), $_smarty_tpl);
                    ?>

    <?php 
                } else {
                    ?>
        <?php 
                    echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products", 'skip_complete' => true), $_smarty_tpl);
                    ?>

    <?php 
                }
                ?>

    <?php 
                echo smarty_function_math(array('equation' => "100 / x", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "cell_width"), $_smarty_tpl);
                ?>

    <?php 
                if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars["cur_number"] = new Smarty_variable(1, null, 0);
                    ?>
    <?php 
                }
                ?>

    
    <?php 
                echo smarty_function_script(array('src' => "js/tygh/product_image_gallery.js"), $_smarty_tpl);
                ?>


    <?php 
                if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars['quick_nav_ids'] = new Smarty_variable(fn_fields_from_multi_level($_smarty_tpl->tpl_vars['products']->value, "product_id", "product_id"), null, 0);
                    ?>
    <?php 
                }
                ?>
    <div class="grid-list">
        <?php 
                $_smarty_tpl->tpl_vars["sproducts"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["sproducts"]->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['splitted_products']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars["sproducts"]->total = $_smarty_tpl->_count($_from);
                $_smarty_tpl->tpl_vars["sproducts"]->iteration = 0;
                foreach ($_from as $_smarty_tpl->tpl_vars["sproducts"]->key => $_smarty_tpl->tpl_vars["sproducts"]->value) {
                    $_smarty_tpl->tpl_vars["sproducts"]->_loop = true;
                    $_smarty_tpl->tpl_vars["sproducts"]->iteration++;
                    $_smarty_tpl->tpl_vars["sproducts"]->last = $_smarty_tpl->tpl_vars["sproducts"]->iteration === $_smarty_tpl->tpl_vars["sproducts"]->total;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sprod"]['last'] = $_smarty_tpl->tpl_vars["sproducts"]->last;
                    $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["product"]->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['sproducts']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration'] = 0;
                    foreach ($_from as $_smarty_tpl->tpl_vars["product"]->key => $_smarty_tpl->tpl_vars["product"]->value) {
                        $_smarty_tpl->tpl_vars["product"]->_loop = true;
                        $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration']++;
                        ?>
<div class="ty-column<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8');
                        ?>
"><?php 
                        if ($_smarty_tpl->tpl_vars['product']->value) {
                            $_smarty_tpl->tpl_vars["obj_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                            $_smarty_tpl->tpl_vars["obj_id_prefix"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                            echo $_smarty_tpl->getSubTemplate("common/product_data.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value), 0);
                            ?>
<div class="ty-grid-list__item ty-quick-view-button__wrapper"><?php 
                            $_smarty_tpl->tpl_vars["form_open"] = new Smarty_variable("form_open_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_open']->value];
                            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:product_multicolumns_list"));
                            $_block_repeat = true;
                            echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), null, $_smarty_tpl, $_block_repeat);
                            while ($_block_repeat) {
                                ob_start();
                                ?>
<div class="ty-grid-list__image"><?php 
                                echo $_smarty_tpl->getSubTemplate("views/products/components/product_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value, 'show_gallery' => true), 0);
                                $_smarty_tpl->tpl_vars["discount_label"] = new Smarty_variable("discount_label_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['discount_label']->value];
                                ?>
</div><div class="ty-grid-list__item-name"><?php 
                                if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") {
                                    ?>
<span class="item-number"><?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['cur_number']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
.&nbsp;</span><?php 
                                    echo smarty_function_math(array('equation' => "num + 1", 'num' => $_smarty_tpl->tpl_vars['cur_number']->value, 'assign' => "cur_number"), $_smarty_tpl);
                                }
                                $_smarty_tpl->tpl_vars["name"] = new Smarty_variable("name_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['name']->value];
                                ?>
</div><div class="ty-grid-list__price <?php 
                                if ($_smarty_tpl->tpl_vars['product']->value['price'] == 0) {
                                    ?>
ty-grid-list__no-price<?php 
                                }
                                ?>
"><?php 
                                $_smarty_tpl->tpl_vars["old_price"] = new Smarty_variable("old_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                if (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value])) {
                                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value];
                                }
                                $_smarty_tpl->tpl_vars["price"] = new Smarty_variable("price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['price']->value];
                                $_smarty_tpl->tpl_vars["clean_price"] = new Smarty_variable("clean_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['clean_price']->value];
                                $_smarty_tpl->tpl_vars["list_discount"] = new Smarty_variable("list_discount_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['list_discount']->value];
                                ?>
</div><?php 
                                $_smarty_tpl->tpl_vars["rating"] = new Smarty_variable("rating_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                if (Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value]) {
                                    ?>
<div class="grid-list__rating"><?php 
                                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value];
                                    ?>
</div><?php 
                                }
                                ?>
<div class="ty-grid-list__control"><?php 
                                if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') {
                                    echo $_smarty_tpl->getSubTemplate("views/products/components/quick_view_link.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0);
                                }
                                if ($_smarty_tpl->tpl_vars['show_add_to_cart']->value) {
                                    ?>
<div class="button-container"><?php 
                                    $_smarty_tpl->tpl_vars["add_to_cart"] = new Smarty_variable("add_to_cart_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['add_to_cart']->value];
                                    ?>
</div><?php 
                                }
                                ?>
</div><?php 
                                $_block_content = ob_get_clean();
                                $_block_repeat = false;
                                echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), $_block_content, $_smarty_tpl, $_block_repeat);
                            }
                            array_pop($_smarty_tpl->smarty->_tag_stack);
                            $_smarty_tpl->tpl_vars["form_close"] = new Smarty_variable("form_close_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_close']->value];
                            ?>
</div><?php 
                        }
                        ?>
</div><?php 
                    }
                    if ($_smarty_tpl->tpl_vars['show_empty']->value && $_smarty_tpl->getVariable('smarty')->value['foreach']['sprod']['last']) {
                        $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable($_smarty_tpl->getVariable('smarty')->value['foreach']['sproducts']['iteration'], null, 0);
                        $_smarty_tpl->_capture_stack[0][] = array("iteration", null, null);
                        ob_start();
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['iteration']->value, ENT_QUOTES, 'UTF-8');
                        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();
                        }
                        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:products_multicolumns_extra"));
                        $_block_repeat = true;
                        echo smarty_block_hook(array('name' => "products:products_multicolumns_extra"), null, $_smarty_tpl, $_block_repeat);
                        while ($_block_repeat) {
                            ob_start();
                            $_block_content = ob_get_clean();
                            $_block_repeat = false;
                            echo smarty_block_hook(array('name' => "products:products_multicolumns_extra"), $_block_content, $_smarty_tpl, $_block_repeat);
                        }
                        array_pop($_smarty_tpl->smarty->_tag_stack);
                        $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable(Smarty::$_smarty_vars['capture']['iteration'], null, 0);
                        if ($_smarty_tpl->tpl_vars['iteration']->value % $_smarty_tpl->tpl_vars['columns']->value != 0) {
                            echo smarty_function_math(array('assign' => "empty_count", 'equation' => "c - it%c", 'it' => $_smarty_tpl->tpl_vars['iteration']->value, 'c' => $_smarty_tpl->tpl_vars['columns']->value), $_smarty_tpl);
                            if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"])) {
                                unset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]);
                            }
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['empty_count']->value) ? count($_loop) : max(0, (int) $_loop);
                            unset($_loop);
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['name'] = "empty_rows";
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = true;
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] = 1;
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] - 1;
                            if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                                if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] == 0) {
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = false;
                                }
                            } else {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = 0;
                            }
                            if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                                for ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration']++) {
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == 1;
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'];
                                    ?>
<div class="ty-column<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
"><div class="ty-product-empty"><span class="ty-product-empty__text"><?php 
                                    echo $_smarty_tpl->__("empty");
                                    ?>
</span></div></div><?php 
                                }
                            }
                        }
                    }
                }
                ?>
    </div>

    <?php 
                if (!$_smarty_tpl->tpl_vars['no_pagination']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>

<?php 
            }
            ?>

<?php 
            $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null);
            ob_start();
            echo htmlspecialchars($_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8');
            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();
            }
        }
    }
    function content_55dc759e99e334_19551761($_smarty_tpl)
    {
        if (!is_callable('smarty_block_hook')) {
            include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php';
        }
        if (!is_callable('smarty_function_set_id')) {
            include '/var/www/html/market/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();
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['block']->value['properties']['enable_quick_view'] == "Y") {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars['quick_nav_ids'] = new Smarty_variable(fn_fields_from_multi_level($_smarty_tpl->tpl_vars['items']->value, "product_id", "product_id"), null, 0);
            }
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['block']->value['properties']['hide_add_to_cart_button'] == "Y") {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["_show_add_to_cart"] = new Smarty_variable(false, null, 0);
                ?>
    <?php 
            } else {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["_show_add_to_cart"] = new Smarty_variable(true, null, 0);
                ?>
    <?php 
            }
            ?>
    <?php 
            if ($_smarty_tpl->tpl_vars['block']->value['properties']['show_price'] == "Y") {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["_hide_price"] = new Smarty_variable(false, null, 0);
                ?>
    <?php 
            } else {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["_hide_price"] = new Smarty_variable(true, null, 0);
            }
            ?>

<?php 
            $_smarty_tpl->tpl_vars["obj_prefix"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['block']->value['block_id'] . "000", null, 0);
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['block']->value['properties']['outside_navigation'] == "Y") {
                ?>
    <div class="owl-theme ty-owl-controls">
        <div class="owl-controls clickable owl-controls-outside"  id="owl_outside_nav_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['block_id'], ENT_QUOTES, 'UTF-8');
                ?>
">
            <div class="owl-buttons">
                <div id="owl_prev_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                ?>
" class="owl-prev"><i class="ty-icon-left-open-thin"></i></div>
                <div id="owl_next_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                ?>
" class="owl-next"><i class="ty-icon-right-open-thin"></i></div>
            </div>
        </div>
    </div>
<?php 
            }
            ?>

<div id="scroll_list_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['block_id'], ENT_QUOTES, 'UTF-8');
            ?>
" class="owl-carousel ty-scroller-list">
    <?php 
            $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["product"]->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['items']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars["product"]->key => $_smarty_tpl->tpl_vars["product"]->value) {
                $_smarty_tpl->tpl_vars["product"]->_loop = true;
                ?>
        <?php 
                $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:product_scroller_list"));
                $_block_repeat = true;
                echo smarty_block_hook(array('name' => "products:product_scroller_list"), null, $_smarty_tpl, $_block_repeat);
                while ($_block_repeat) {
                    ob_start();
                    ?>

        <div class="ty-scroller-list__item">
            <?php 
                    $_smarty_tpl->tpl_vars["obj_id"] = new Smarty_variable("scr_" . (string) $_smarty_tpl->tpl_vars['block']->value['block_id'] . "000" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                    ?>
            <div class="ty-scroller-list__img-block">
                <?php 
                    $_smarty_tpl->tpl_vars["object_img"] = new Smarty_variable($_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('images' => $_smarty_tpl->tpl_vars['product']->value['main_pair'], 'image_width' => $_smarty_tpl->tpl_vars['block']->value['properties']['thumbnail_width'], 'image_height' => $_smarty_tpl->tpl_vars['block']->value['properties']['thumbnail_width'], 'no_ids' => true, 'lazy_load' => true), 0));
                    ?>

                <a href="<?php 
                    echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id']), ENT_QUOTES, 'UTF-8');
                    ?>
"><?php 
                    echo $_smarty_tpl->tpl_vars['object_img']->value;
                    ?>
</a>
                <?php 
                    if ($_smarty_tpl->tpl_vars['block']->value['properties']['enable_quick_view'] == "Y") {
                        ?>
                    <?php 
                        echo $_smarty_tpl->getSubTemplate("views/products/components/quick_view_link.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0);
                        ?>

                <?php 
                    }
                    ?>
            </div>
            <div class="ty-scroller-list__description">
                <?php 
                    echo $_smarty_tpl->getSubTemplate("blocks/list_templates/simple_list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value, 'show_trunc_name' => true, 'show_price' => true, 'show_add_to_cart' => $_smarty_tpl->tpl_vars['_show_add_to_cart']->value, 'but_role' => "action", 'hide_price' => $_smarty_tpl->tpl_vars['_hide_price']->value, 'hide_qty' => true, 'show_discount_label' => true), 0);
                    ?>

            </div>
        </div>
        <?php 
                    $_block_content = ob_get_clean();
                    $_block_repeat = false;
                    echo smarty_block_hook(array('name' => "products:product_scroller_list"), $_block_content, $_smarty_tpl, $_block_repeat);
                }
                array_pop($_smarty_tpl->smarty->_tag_stack);
                ?>

    <?php 
            }
            ?>
</div>


<?php 
            echo $_smarty_tpl->getSubTemplate("common/scroller_init.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('prev_selector' => "#owl_prev_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value, 'next_selector' => "#owl_next_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value), 0);
            ?>


<?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="blocks/products/products_scroller.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "blocks/products/products_scroller.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 {
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['block']->value['properties']['enable_quick_view'] == "Y") {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars['quick_nav_ids'] = new Smarty_variable(fn_fields_from_multi_level($_smarty_tpl->tpl_vars['items']->value, "product_id", "product_id"), null, 0);
            }
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['block']->value['properties']['hide_add_to_cart_button'] == "Y") {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["_show_add_to_cart"] = new Smarty_variable(false, null, 0);
                ?>
    <?php 
            } else {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["_show_add_to_cart"] = new Smarty_variable(true, null, 0);
                ?>
    <?php 
            }
            ?>
    <?php 
            if ($_smarty_tpl->tpl_vars['block']->value['properties']['show_price'] == "Y") {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["_hide_price"] = new Smarty_variable(false, null, 0);
                ?>
    <?php 
            } else {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["_hide_price"] = new Smarty_variable(true, null, 0);
            }
            ?>

<?php 
            $_smarty_tpl->tpl_vars["obj_prefix"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['block']->value['block_id'] . "000", null, 0);
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['block']->value['properties']['outside_navigation'] == "Y") {
                ?>
    <div class="owl-theme ty-owl-controls">
        <div class="owl-controls clickable owl-controls-outside"  id="owl_outside_nav_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['block_id'], ENT_QUOTES, 'UTF-8');
                ?>
">
            <div class="owl-buttons">
                <div id="owl_prev_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                ?>
" class="owl-prev"><i class="ty-icon-left-open-thin"></i></div>
                <div id="owl_next_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                ?>
" class="owl-next"><i class="ty-icon-right-open-thin"></i></div>
            </div>
        </div>
    </div>
<?php 
            }
            ?>

<div id="scroll_list_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['block_id'], ENT_QUOTES, 'UTF-8');
            ?>
" class="owl-carousel ty-scroller-list">
    <?php 
            $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["product"]->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['items']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars["product"]->key => $_smarty_tpl->tpl_vars["product"]->value) {
                $_smarty_tpl->tpl_vars["product"]->_loop = true;
                ?>
        <?php 
                $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:product_scroller_list"));
                $_block_repeat = true;
                echo smarty_block_hook(array('name' => "products:product_scroller_list"), null, $_smarty_tpl, $_block_repeat);
                while ($_block_repeat) {
                    ob_start();
                    ?>

        <div class="ty-scroller-list__item">
            <?php 
                    $_smarty_tpl->tpl_vars["obj_id"] = new Smarty_variable("scr_" . (string) $_smarty_tpl->tpl_vars['block']->value['block_id'] . "000" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                    ?>
            <div class="ty-scroller-list__img-block">
                <?php 
                    $_smarty_tpl->tpl_vars["object_img"] = new Smarty_variable($_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('images' => $_smarty_tpl->tpl_vars['product']->value['main_pair'], 'image_width' => $_smarty_tpl->tpl_vars['block']->value['properties']['thumbnail_width'], 'image_height' => $_smarty_tpl->tpl_vars['block']->value['properties']['thumbnail_width'], 'no_ids' => true, 'lazy_load' => true), 0));
                    ?>

                <a href="<?php 
                    echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id']), ENT_QUOTES, 'UTF-8');
                    ?>
"><?php 
                    echo $_smarty_tpl->tpl_vars['object_img']->value;
                    ?>
</a>
                <?php 
                    if ($_smarty_tpl->tpl_vars['block']->value['properties']['enable_quick_view'] == "Y") {
                        ?>
                    <?php 
                        echo $_smarty_tpl->getSubTemplate("views/products/components/quick_view_link.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0);
                        ?>

                <?php 
                    }
                    ?>
            </div>
            <div class="ty-scroller-list__description">
                <?php 
                    echo $_smarty_tpl->getSubTemplate("blocks/list_templates/simple_list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value, 'show_trunc_name' => true, 'show_price' => true, 'show_add_to_cart' => $_smarty_tpl->tpl_vars['_show_add_to_cart']->value, 'but_role' => "action", 'hide_price' => $_smarty_tpl->tpl_vars['_hide_price']->value, 'hide_qty' => true, 'show_discount_label' => true), 0);
                    ?>

            </div>
        </div>
        <?php 
                    $_block_content = ob_get_clean();
                    $_block_repeat = false;
                    echo smarty_block_hook(array('name' => "products:product_scroller_list"), $_block_content, $_smarty_tpl, $_block_repeat);
                }
                array_pop($_smarty_tpl->smarty->_tag_stack);
                ?>

    <?php 
            }
            ?>
</div>


<?php 
            echo $_smarty_tpl->getSubTemplate("common/scroller_init.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('prev_selector' => "#owl_prev_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value, 'next_selector' => "#owl_next_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value), 0);
            ?>


<?php 
        }
    }
    function content_55e01fce03b6c4_57891956($_smarty_tpl)
    {
        if (!is_callable('smarty_block_hook')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php';
        }
        if (!is_callable('smarty_modifier_replace')) {
            include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/modifier.replace.php';
        }
        if (!is_callable('smarty_modifier_date_format')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.date_format.php';
        }
        fn_preload_lang_vars(array('invoice', 'invoice', 'credit_memo', 'credit_memo', 'order_details', 'invoice_title', 'phone1_label', 'phone2_label', 'fax', 'web_site', 'email', 'order', 'status', 'date', 'payment_method', 'shipping_method', 'tracking_number', 'customer', 'phone', 'fax', 'company', 'url', 'bill_to', 'ship_to', 'product', 'quantity', 'unit_price', 'discount', 'tax', 'subtotal', 'deleted_product', 'sku', 'free', 'free', 'subtotal', 'including_discount', 'order_discount', 'coupon', 'taxes', 'included', 'tax_exempt', 'payment_surcharge', 'shipping_cost', 'total_cost', 'notes'));
        if ($_smarty_tpl->tpl_vars['order_info']->value) {
            ?>

<?php 
            $_smarty_tpl->tpl_vars["order_header"] = new Smarty_variable($_smarty_tpl->__("invoice"), null, 0);
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['status_settings']->value['appearance_type'] == "I" && $_smarty_tpl->tpl_vars['order_info']->value['doc_ids'][$_smarty_tpl->tpl_vars['status_settings']->value['appearance_type']]) {
                ?>
    <?php 
                ob_start();
                echo $_smarty_tpl->__("invoice");
                $_tmp1 = ob_get_clean();
                $_smarty_tpl->tpl_vars["doc_id_text"] = new Smarty_variable($_tmp1 . " #" . (string) $_smarty_tpl->tpl_vars['order_info']->value['doc_ids'][$_smarty_tpl->tpl_vars['status_settings']->value['appearance_type']], null, 0);
            } elseif ($_smarty_tpl->tpl_vars['status_settings']->value['appearance_type'] == "C" && $_smarty_tpl->tpl_vars['order_info']->value['doc_ids'][$_smarty_tpl->tpl_vars['status_settings']->value['appearance_type']]) {
                ?>
    <?php 
                ob_start();
                echo $_smarty_tpl->__("credit_memo");
                $_tmp2 = ob_get_clean();
                $_smarty_tpl->tpl_vars["doc_id_text"] = new Smarty_variable($_tmp2 . " #" . (string) $_smarty_tpl->tpl_vars['order_info']->value['doc_ids'][$_smarty_tpl->tpl_vars['status_settings']->value['appearance_type']], null, 0);
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["order_header"] = new Smarty_variable($_smarty_tpl->__("credit_memo"), null, 0);
            } elseif ($_smarty_tpl->tpl_vars['status_settings']->value['appearance_type'] == "O") {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["order_header"] = new Smarty_variable($_smarty_tpl->__("order_details"), null, 0);
            }
            ?>

<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main-table" style="height: 100%; background-color: #f4f6f8; font-size: 12px; font-family: Arial;">
<tr>
    <td align="center" style="width: 100%; height: 100%;">
    <table cellpadding="0" cellspacing="0" border="0" style=" width: 602px; table-layout: fixed; margin: 24px 0 24px 0;">
    <tr>
        <td style="background-color: #ffffff; border: 1px solid #e6e6e6; margin: 0px auto 0px auto; padding: 0px 44px 0px 46px; text-align: left;">
            <table cellpadding="0" cellspacing="0" border="0" width="100%" style="padding: 27px 0px 0px 0px; border-bottom: 1px solid #868686; margin-bottom: 8px;">
            <tr>
                <td align="left" style="padding-bottom: 3px;" valign="middle"><img src="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['logos']->value['mail']['image']['image_path'], ENT_QUOTES, 'UTF-8');
            ?>
" width="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['logos']->value['mail']['image']['image_x'], ENT_QUOTES, 'UTF-8');
            ?>
" height="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['logos']->value['mail']['image']['image_y'], ENT_QUOTES, 'UTF-8');
            ?>
" border="0" alt="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['logos']->value['mail']['image']['alt'], ENT_QUOTES, 'UTF-8');
            ?>
" /></td>
                <td width="100%" valign="bottom" style="text-align: right;  font: bold 26px Arial; text-transform: uppercase;  margin: 0px;"><?php 
            echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['order_header']->value) === null || $tmp === '' ? $_smarty_tpl->__("invoice_title") : $tmp, ENT_QUOTES, 'UTF-8');
            ?>
</td>

            </tr>
            </table>

            <table cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr valign="top">
                <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:invoice_company_info"));
            $_block_repeat = true;
            echo smarty_block_hook(array('name' => "orders:invoice_company_info"), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

                <td style="width: 50%; padding: 14px 0px 0px 2px; font-size: 12px; font-family: Arial;">
                    <h2 style="font: bold 12px Arial; margin: 0px 0px 3px 0px;"><?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['company_data']->value['company_name'], ENT_QUOTES, 'UTF-8');
                ?>
</h2>
                    <?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['company_data']->value['company_address'], ENT_QUOTES, 'UTF-8');
                ?>
<br />
                    <?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['company_data']->value['company_city'], ENT_QUOTES, 'UTF-8');
                if ($_smarty_tpl->tpl_vars['company_data']->value['company_city'] && ($_smarty_tpl->tpl_vars['company_data']->value['company_state_descr'] || $_smarty_tpl->tpl_vars['company_data']->value['company_zipcode'])) {
                    ?>
,<?php 
                }
                ?>
 <?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['company_data']->value['company_state_descr'], ENT_QUOTES, 'UTF-8');
                ?>
 <?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['company_data']->value['company_zipcode'], ENT_QUOTES, 'UTF-8');
                ?>
<br />
                    <?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['company_data']->value['company_country_descr'], ENT_QUOTES, 'UTF-8');
                ?>

                    <table cellpadding="0" cellspacing="0" border="0">
                    <?php 
                if ($_smarty_tpl->tpl_vars['company_data']->value['company_phone']) {
                    ?>
                    <tr valign="top">
                        <td style="font-size: 12px; font-family: verdana, helvetica, arial, sans-serif; text-transform: uppercase; color: #000000; padding-right: 10px;    white-space: nowrap;"><?php 
                    echo $_smarty_tpl->__("phone1_label");
                    ?>
:</td>
                        <td width="100%" style="font-size: 12px; font-family: Arial;"><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['company_data']->value['company_phone'], ENT_QUOTES, 'UTF-8');
                    ?>
</td>
                    </tr>
                    <?php 
                }
                ?>
                    <?php 
                if ($_smarty_tpl->tpl_vars['company_data']->value['company_phone_2']) {
                    ?>
                    <tr valign="top">
                        <td style="font-size: 12px; font-family: verdana, helvetica, arial, sans-serif; text-transform: uppercase; color: #000000; padding-right: 10px; white-space: nowrap;"><?php 
                    echo $_smarty_tpl->__("phone2_label");
                    ?>
:</td>
                        <td width="100%" style="font-size: 12px; font-family: Arial;"><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['company_data']->value['company_phone_2'], ENT_QUOTES, 'UTF-8');
                    ?>
</td>
                    </tr>
                    <?php 
                }
                ?>
                    <?php 
                if ($_smarty_tpl->tpl_vars['company_data']->value['company_fax']) {
                    ?>
                    <tr valign="top">
                        <td style="font-size: 12px; font-family: verdana, helvetica, arial, sans-serif; text-transform: uppercase; color: #000000; padding-right: 10px; white-space: nowrap;"><?php 
                    echo $_smarty_tpl->__("fax");
                    ?>
:</td>
                        <td width="100%" style="font-size: 12px; font-family: Arial;"><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['company_data']->value['company_fax'], ENT_QUOTES, 'UTF-8');
                    ?>
</td>
                    </tr>
                    <?php 
                }
                ?>
                    <?php 
                if ($_smarty_tpl->tpl_vars['company_data']->value['company_website']) {
                    ?>
                    <tr valign="top">
                        <td style="font-size: 12px; font-family: verdana, helvetica, arial, sans-serif; text-transform: uppercase; color: #000000; padding-right: 10px; white-space: nowrap;"><?php 
                    echo $_smarty_tpl->__("web_site");
                    ?>
:</td>
                        <td width="100%" style="font-size: 12px; font-family: Arial;"><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['company_data']->value['company_website'], ENT_QUOTES, 'UTF-8');
                    ?>
</td>
                    </tr>
                    <?php 
                }
                ?>
                    <?php 
                if ($_smarty_tpl->tpl_vars['company_data']->value['company_orders_department']) {
                    ?>
                    <tr valign="top">
                        <td style="font-size: 12px; font-family: verdana, helvetica, arial, sans-serif; text-transform: uppercase; color: #000000; padding-right: 10px; white-space: nowrap;"><?php 
                    echo $_smarty_tpl->__("email");
                    ?>
:</td>
                        <td width="100%" style="font-size: 12px; font-family: Arial;"><a href="mailto:<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['company_data']->value['company_orders_department'], ENT_QUOTES, 'UTF-8');
                    ?>
"><?php 
                    echo htmlspecialchars(smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['company_data']->value['company_orders_department'], ",", "<br>"), " ", ''), ENT_QUOTES, 'UTF-8');
                    ?>
</a></td>
                    </tr>
                    <?php 
                }
                ?>
                    </table>
                </td>
                <?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_hook(array('name' => "orders:invoice_company_info"), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

                <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:invoice_order_status_info"));
            $_block_repeat = true;
            echo smarty_block_hook(array('name' => "orders:invoice_order_status_info"), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

                <td style="padding-top: 14px;">
                    <h2 style="font: bold 17px Tahoma; margin: 0px;"><?php 
                if ($_smarty_tpl->tpl_vars['doc_id_text']->value) {
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['doc_id_text']->value, ENT_QUOTES, 'UTF-8');
                    ?>
 <br /><?php 
                }
                echo $_smarty_tpl->__("order");
                ?>
&nbsp;#<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['order_id'], ENT_QUOTES, 'UTF-8');
                ?>
</h2>
                    <table cellpadding="0" cellspacing="0" border="0">
                    <tr valign="top">
                        <td style="font-size: 12px; font-family: verdana, helvetica, arial, sans-serif; text-transform: uppercase; color: #000000; padding-right: 10px; white-space: nowrap;"><?php 
                echo $_smarty_tpl->__("status");
                ?>
:</td>
                        <td width="100%" style="font-size: 12px; font-family: Arial;"><?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['order_status']->value['description'], ENT_QUOTES, 'UTF-8');
                ?>
</td>
                    </tr>
                    <tr valign="top">
                        <td style="font-size: 12px; font-family: verdana, helvetica, arial, sans-serif; text-transform: uppercase; color: #000000; padding-right: 10px; white-space: nowrap;"><?php 
                echo $_smarty_tpl->__("date");
                ?>
:</td>
                        <td style="font-size: 12px; font-family: Arial;"><?php 
                echo htmlspecialchars(smarty_modifier_date_format($_smarty_tpl->tpl_vars['order_info']->value['timestamp'], (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['date_format'] . ", " . (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['time_format']), ENT_QUOTES, 'UTF-8');
                ?>
</td>
                    </tr>
                    <tr valign="top">
                        <td style="font-size: 12px; font-family: verdana, helvetica, arial, sans-serif; text-transform: uppercase; color: #000000; padding-right: 10px; white-space: nowrap;"><?php 
                echo $_smarty_tpl->__("payment_method");
                ?>
:</td>
                        <td style="font-size: 12px; font-family: Arial;"><?php 
                echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['payment_method']->value['payment']) === null || $tmp === '' ? " - " : $tmp, ENT_QUOTES, 'UTF-8');
                ?>
</td>
                    </tr>
                    <?php 
                if ($_smarty_tpl->tpl_vars['order_info']->value['shipping']) {
                    ?>
                    <tr valign="top">
                        <td style="font-size: 12px; font-family: verdana, helvetica, arial, sans-serif; text-transform: uppercase; color: #000000; padding-right: 10px; white-space: nowrap;"><?php 
                    echo $_smarty_tpl->__("shipping_method");
                    ?>
:</td>
                        <td style="font-size: 12px; font-family: Arial;">
                            <?php 
                    $_smarty_tpl->tpl_vars["shipping"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["shipping"]->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['order_info']->value['shipping'];
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    $_smarty_tpl->tpl_vars["shipping"]->total = $_smarty_tpl->_count($_from);
                    $_smarty_tpl->tpl_vars["shipping"]->iteration = 0;
                    foreach ($_from as $_smarty_tpl->tpl_vars["shipping"]->key => $_smarty_tpl->tpl_vars["shipping"]->value) {
                        $_smarty_tpl->tpl_vars["shipping"]->_loop = true;
                        $_smarty_tpl->tpl_vars["shipping"]->iteration++;
                        $_smarty_tpl->tpl_vars["shipping"]->last = $_smarty_tpl->tpl_vars["shipping"]->iteration === $_smarty_tpl->tpl_vars["shipping"]->total;
                        $_smarty_tpl->tpl_vars['smarty']->value['foreach']["f_shipp"]['last'] = $_smarty_tpl->tpl_vars["shipping"]->last;
                        ?>
                                <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping'], ENT_QUOTES, 'UTF-8');
                        if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['f_shipp']['last']) {
                            ?>
, <?php 
                        }
                        ?>
                                <?php 
                        if ($_smarty_tpl->tpl_vars['shipments']->value[$_smarty_tpl->tpl_vars['shipping']->value['group_key']]['tracking_number']) {
                            $_smarty_tpl->tpl_vars["tracking_number_exists"] = new Smarty_variable("Y", null, 0);
                        }
                        ?>
                            <?php 
                    }
                    ?>
</td>
                    </tr>
                    <?php 
                    if ($_smarty_tpl->tpl_vars['tracking_number_exists']->value && !$_smarty_tpl->tpl_vars['use_shipments']->value) {
                        ?>
                        <tr valign="top">
                            <td style="font-size: 12px; font-family: verdana, helvetica, arial, sans-serif; text-transform: uppercase; color: #000000; padding-right: 10px; white-space: nowrap;"><?php 
                        echo $_smarty_tpl->__("tracking_number");
                        ?>
:</td>
                            <td style="font-size: 12px; font-family: Arial;">
                                <?php 
                        $_smarty_tpl->tpl_vars["shipping"] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars["shipping"]->_loop = false;
                        $_from = $_smarty_tpl->tpl_vars['order_info']->value['shipping'];
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        $_smarty_tpl->tpl_vars["shipping"]->total = $_smarty_tpl->_count($_from);
                        $_smarty_tpl->tpl_vars["shipping"]->iteration = 0;
                        foreach ($_from as $_smarty_tpl->tpl_vars["shipping"]->key => $_smarty_tpl->tpl_vars["shipping"]->value) {
                            $_smarty_tpl->tpl_vars["shipping"]->_loop = true;
                            $_smarty_tpl->tpl_vars["shipping"]->iteration++;
                            $_smarty_tpl->tpl_vars["shipping"]->last = $_smarty_tpl->tpl_vars["shipping"]->iteration === $_smarty_tpl->tpl_vars["shipping"]->total;
                            $_smarty_tpl->tpl_vars['smarty']->value['foreach']["f_shipp"]['last'] = $_smarty_tpl->tpl_vars["shipping"]->last;
                            ?>
                                    <?php 
                            if ($_smarty_tpl->tpl_vars['shipments']->value[$_smarty_tpl->tpl_vars['shipping']->value['group_key']]['tracking_number']) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['shipments']->value[$_smarty_tpl->tpl_vars['shipping']->value['group_key']]['tracking_number'], ENT_QUOTES, 'UTF-8');
                                if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['f_shipp']['last']) {
                                    ?>
,<?php 
                                }
                            }
                            ?>
                                <?php 
                        }
                        ?>
</td>
                        </tr>
                    <?php 
                    }
                    ?>
                    <?php 
                }
                ?>
                    </table>
                </td>
                <?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_hook(array('name' => "orders:invoice_order_status_info"), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

            </tr>
            </table>
        
            <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:invoice_customer_info"));
            $_block_repeat = true;
            echo smarty_block_hook(array('name' => "orders:invoice_customer_info"), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

            <?php 
                if (!$_smarty_tpl->tpl_vars['profile_fields']->value) {
                    ?>
            <?php 
                    $_smarty_tpl->tpl_vars["profile_fields"] = new Smarty_variable(fn_get_profile_fields('I'), null, 0);
                    ?>
            <?php 
                }
                ?>
            <?php 
                if ($_smarty_tpl->tpl_vars['profile_fields']->value) {
                    ?>
            <table cellpadding="0" cellspacing="0" border="0" width="100%" style="padding: 32px 0px 24px 0px;">
            <tr valign="top">
                <?php 
                    if ($_smarty_tpl->tpl_vars['profile_fields']->value['C']) {
                        ?>
                <?php 
                        $_smarty_tpl->tpl_vars["profields_c"] = new Smarty_variable(fn_fields_from_multi_level($_smarty_tpl->tpl_vars['profile_fields']->value['C'], "field_name", "field_id"), null, 0);
                        ?>
                <td width="33%" style="font-size: 12px; font-family: Arial;">
                    <h3 style="font: bold 17px Tahoma; padding: 0px 0px 3px 1px; margin: 0px;"><?php 
                        echo $_smarty_tpl->__("customer");
                        ?>
:</h3>
                    <p style="margin: 2px 0px 3px 0px;"><?php 
                        if ($_smarty_tpl->tpl_vars['profields_c']->value['firstname']) {
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['firstname'], ENT_QUOTES, 'UTF-8');
                            ?>
&nbsp;<?php 
                        }
                        if ($_smarty_tpl->tpl_vars['profields_c']->value['lastname']) {
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['lastname'], ENT_QUOTES, 'UTF-8');
                        }
                        ?>
</p>
                    <?php 
                        if ($_smarty_tpl->tpl_vars['profields_c']->value['email']) {
                            ?>
<p style="margin: 2px 0px 3px 0px;"><a href="mailto:<?php 
                            echo htmlspecialchars(rawurlencode($_smarty_tpl->tpl_vars['order_info']->value['email']), ENT_QUOTES, 'UTF-8');
                            ?>
"><?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['email'], ENT_QUOTES, 'UTF-8');
                            ?>
</a></p><?php 
                        }
                        ?>
                    <?php 
                        if ($_smarty_tpl->tpl_vars['profields_c']->value['phone']) {
                            ?>
<p style="margin: 2px 0px 3px 0px;"><span style="text-transform: uppercase;"><?php 
                            echo $_smarty_tpl->__("phone");
                            ?>
:</span>&nbsp;<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['phone'], ENT_QUOTES, 'UTF-8');
                            ?>
</p><?php 
                        }
                        ?>
                    <?php 
                        if ($_smarty_tpl->tpl_vars['profields_c']->value['fax'] && $_smarty_tpl->tpl_vars['order_info']->value['fax']) {
                            ?>
<p style="margin: 2px 0px 3px 0px;"><span style="text-transform: uppercase;"><?php 
                            echo $_smarty_tpl->__("fax");
                            ?>
:</span>&nbsp;<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['fax'], ENT_QUOTES, 'UTF-8');
                            ?>
</p><?php 
                        }
                        ?>
                    <?php 
                        if ($_smarty_tpl->tpl_vars['profields_c']->value['company'] && $_smarty_tpl->tpl_vars['order_info']->value['company']) {
                            ?>
<p style="margin: 2px 0px 3px 0px;"><span style="text-transform: uppercase;"><?php 
                            echo $_smarty_tpl->__("company");
                            ?>
:</span>&nbsp;<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['company'], ENT_QUOTES, 'UTF-8');
                            ?>
</p><?php 
                        }
                        ?>
                    <?php 
                        if ($_smarty_tpl->tpl_vars['profields_c']->value['url'] && $_smarty_tpl->tpl_vars['order_info']->value['url']) {
                            ?>
<p style="margin: 2px 0px 3px 0px;"><span style="text-transform: uppercase;"><?php 
                            echo $_smarty_tpl->__("url");
                            ?>
:</span>&nbsp;<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['url'], ENT_QUOTES, 'UTF-8');
                            ?>
</p><?php 
                        }
                        ?>
                    <?php 
                        echo $_smarty_tpl->getSubTemplate("profiles/profiles_extra_fields.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('fields' => $_smarty_tpl->tpl_vars['profile_fields']->value['C']), 0);
                        ?>

                </td>
                <?php 
                    }
                    ?>
                <?php 
                    if ($_smarty_tpl->tpl_vars['profile_fields']->value['B']) {
                        ?>
                <?php 
                        $_smarty_tpl->tpl_vars["profields_b"] = new Smarty_variable(fn_fields_from_multi_level($_smarty_tpl->tpl_vars['profile_fields']->value['B'], "field_name", "field_id"), null, 0);
                        ?>
                <td width="34%" style="font-size: 12px; font-family: Arial; <?php 
                        if ($_smarty_tpl->tpl_vars['profile_fields']->value['S']) {
                            ?>
padding-right: 10px;<?php 
                        }
                        ?>
 <?php 
                        if ($_smarty_tpl->tpl_vars['profile_fields']->value['C']) {
                            ?>
padding-left: 10px;<?php 
                        }
                        ?>
">
                    <h3 style="font: bold 17px Tahoma; padding: 0px 0px 3px 1px; margin: 0px;"><?php 
                        echo $_smarty_tpl->__("bill_to");
                        ?>
:</h3>
                    <?php 
                        if ($_smarty_tpl->tpl_vars['order_info']->value['b_firstname'] && $_smarty_tpl->tpl_vars['profields_b']->value['b_firstname'] || $_smarty_tpl->tpl_vars['order_info']->value['b_lastname'] && $_smarty_tpl->tpl_vars['profields_b']->value['b_lastname']) {
                            ?>
                    <p style="margin: 2px 0px 3px 0px;">
                        <?php 
                            if ($_smarty_tpl->tpl_vars['profields_b']->value['b_firstname']) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['b_firstname'], ENT_QUOTES, 'UTF-8');
                                ?>
 <?php 
                            }
                            if ($_smarty_tpl->tpl_vars['profields_b']->value['b_lastname']) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['b_lastname'], ENT_QUOTES, 'UTF-8');
                            }
                            ?>
                    </p>
                    <?php 
                        }
                        ?>
                    <?php 
                        if ($_smarty_tpl->tpl_vars['order_info']->value['b_address'] && $_smarty_tpl->tpl_vars['profields_b']->value['b_address'] || $_smarty_tpl->tpl_vars['order_info']->value['b_address_2'] && $_smarty_tpl->tpl_vars['profields_b']->value['b_address_2']) {
                            ?>
                    <p style="margin: 2px 0px 3px 0px;">
                        <?php 
                            if ($_smarty_tpl->tpl_vars['profields_b']->value['b_address']) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['b_address'], ENT_QUOTES, 'UTF-8');
                                ?>
 <?php 
                            }
                            if ($_smarty_tpl->tpl_vars['profields_b']->value['b_address_2']) {
                                ?>
<br /><?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['b_address_2'], ENT_QUOTES, 'UTF-8');
                            }
                            ?>
                    </p>
                    <?php 
                        }
                        ?>
                    <?php 
                        if ($_smarty_tpl->tpl_vars['order_info']->value['b_city'] && $_smarty_tpl->tpl_vars['profields_b']->value['b_city'] || $_smarty_tpl->tpl_vars['order_info']->value['b_state_descr'] && $_smarty_tpl->tpl_vars['profields_b']->value['b_state'] || $_smarty_tpl->tpl_vars['order_info']->value['b_zipcode'] && $_smarty_tpl->tpl_vars['profields_b']->value['b_zipcode']) {
                            ?>
                    <p style="margin: 2px 0px 3px 0px;">
                        <?php 
                            if ($_smarty_tpl->tpl_vars['profields_b']->value['b_city']) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['b_city'], ENT_QUOTES, 'UTF-8');
                                if ($_smarty_tpl->tpl_vars['profields_b']->value['b_state']) {
                                    ?>
,<?php 
                                }
                                ?>
 <?php 
                            }
                            if ($_smarty_tpl->tpl_vars['profields_b']->value['b_state']) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['b_state_descr'], ENT_QUOTES, 'UTF-8');
                                ?>
 <?php 
                            }
                            if ($_smarty_tpl->tpl_vars['profields_b']->value['b_zipcode']) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['b_zipcode'], ENT_QUOTES, 'UTF-8');
                            }
                            ?>
                    </p>
                    <?php 
                        }
                        ?>
                    <?php 
                        if ($_smarty_tpl->tpl_vars['order_info']->value['b_country_descr'] && $_smarty_tpl->tpl_vars['profields_b']->value['b_country']) {
                            ?>
                    <p style="margin: 2px 0px 3px 0px;">
                        <?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['b_country_descr'], ENT_QUOTES, 'UTF-8');
                            ?>

                    </p>
                    <?php 
                        }
                        ?>
                    <?php 
                        if ($_smarty_tpl->tpl_vars['order_info']->value['b_phone'] && $_smarty_tpl->tpl_vars['profields_b']->value['b_phone']) {
                            ?>
                    <p style="margin: 2px 0px 3px 0px;">
                        <?php 
                            if ($_smarty_tpl->tpl_vars['profields_b']->value['b_phone']) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['b_phone'], ENT_QUOTES, 'UTF-8');
                                ?>
 <?php 
                            }
                            ?>
                    </p>
                    <?php 
                        }
                        ?>
                    <?php 
                        echo $_smarty_tpl->getSubTemplate("profiles/profiles_extra_fields.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('fields' => $_smarty_tpl->tpl_vars['profile_fields']->value['B']), 0);
                        ?>

                </td>
                <?php 
                    }
                    ?>
                <?php 
                    if ($_smarty_tpl->tpl_vars['profile_fields']->value['S']) {
                        ?>
                <?php 
                        $_smarty_tpl->tpl_vars["profields_s"] = new Smarty_variable(fn_fields_from_multi_level($_smarty_tpl->tpl_vars['profile_fields']->value['S'], "field_name", "field_id"), null, 0);
                        ?>
                <td width="33%" style="font-size: 12px; font-family: Arial;">
                    <h3 style="font: bold 17px Tahoma; padding: 0px 0px 3px 1px; margin: 0px;"><?php 
                        echo $_smarty_tpl->__("ship_to");
                        ?>
:</h3>
                    <?php 
                        if ($_smarty_tpl->tpl_vars['order_info']->value['s_firstname'] && $_smarty_tpl->tpl_vars['profields_s']->value['s_firstname'] || $_smarty_tpl->tpl_vars['order_info']->value['s_lastname'] && $_smarty_tpl->tpl_vars['profields_s']->value['s_lastname']) {
                            ?>
                    <p style="margin: 2px 0px 3px 0px;">
                        <?php 
                            if ($_smarty_tpl->tpl_vars['profields_s']->value['s_firstname']) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['s_firstname'], ENT_QUOTES, 'UTF-8');
                                ?>
 <?php 
                            }
                            if ($_smarty_tpl->tpl_vars['profields_s']->value['s_lastname']) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['s_lastname'], ENT_QUOTES, 'UTF-8');
                            }
                            ?>
                    </p>
                    <?php 
                        }
                        ?>
                    <?php 
                        if ($_smarty_tpl->tpl_vars['order_info']->value['s_address'] && $_smarty_tpl->tpl_vars['profields_s']->value['s_address'] || $_smarty_tpl->tpl_vars['order_info']->value['s_address_2'] && $_smarty_tpl->tpl_vars['profields_s']->value['s_address_2']) {
                            ?>
                    <p style="margin: 2px 0px 3px 0px;">
                        <?php 
                            if ($_smarty_tpl->tpl_vars['profields_s']->value['s_address']) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['s_address'], ENT_QUOTES, 'UTF-8');
                                ?>
 <?php 
                            }
                            if ($_smarty_tpl->tpl_vars['profields_s']->value['s_address_2']) {
                                ?>
<br /><?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['s_address_2'], ENT_QUOTES, 'UTF-8');
                            }
                            ?>
                    </p>
                    <?php 
                        }
                        ?>
                    <?php 
                        if ($_smarty_tpl->tpl_vars['order_info']->value['s_city'] && $_smarty_tpl->tpl_vars['profields_s']->value['s_city'] || $_smarty_tpl->tpl_vars['order_info']->value['s_state_descr'] && $_smarty_tpl->tpl_vars['profields_s']->value['s_state'] || $_smarty_tpl->tpl_vars['order_info']->value['s_zipcode'] && $_smarty_tpl->tpl_vars['profields_s']->value['s_zipcode']) {
                            ?>
                    <p style="margin: 2px 0px 3px 0px;">
                        <?php 
                            if ($_smarty_tpl->tpl_vars['profields_s']->value['s_city']) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['s_city'], ENT_QUOTES, 'UTF-8');
                                if ($_smarty_tpl->tpl_vars['profields_s']->value['s_state']) {
                                    ?>
,<?php 
                                }
                                ?>
 <?php 
                            }
                            if ($_smarty_tpl->tpl_vars['profields_s']->value['s_state']) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['s_state_descr'], ENT_QUOTES, 'UTF-8');
                                ?>
 <?php 
                            }
                            if ($_smarty_tpl->tpl_vars['profields_s']->value['s_zipcode']) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['s_zipcode'], ENT_QUOTES, 'UTF-8');
                            }
                            ?>
                    </p>
                    <?php 
                        }
                        ?>
                    <?php 
                        if ($_smarty_tpl->tpl_vars['order_info']->value['s_country_descr'] && $_smarty_tpl->tpl_vars['profields_s']->value['s_country']) {
                            ?>
                    <p style="margin: 2px 0px 3px 0px;">
                        <?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['s_country_descr'], ENT_QUOTES, 'UTF-8');
                            ?>

                    </p>
                    <?php 
                        }
                        ?>
                    <?php 
                        if ($_smarty_tpl->tpl_vars['order_info']->value['s_phone'] && $_smarty_tpl->tpl_vars['profields_s']->value['s_phone']) {
                            ?>
                    <p style="margin: 2px 0px 3px 0px;">
                        <?php 
                            if ($_smarty_tpl->tpl_vars['profields_s']->value['s_phone']) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['s_phone'], ENT_QUOTES, 'UTF-8');
                                ?>
 <?php 
                            }
                            ?>
                    </p>
                    <?php 
                        }
                        ?>
                    <?php 
                        echo $_smarty_tpl->getSubTemplate("profiles/profiles_extra_fields.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('fields' => $_smarty_tpl->tpl_vars['profile_fields']->value['S']), 0);
                        ?>

                </td>
                <?php 
                    }
                    ?>
            </tr>
            </table>
            <?php 
                }
                ?>
            <?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_hook(array('name' => "orders:invoice_customer_info"), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

            
        
        
            
            
            <table width="100%" cellpadding="0" cellspacing="1" style="background-color: #dddddd;">
            <tr>
                <th width="70%" style="background-color: #eeeeee; padding: 6px 10px; white-space: nowrap; font-size: 12px; font-family: Arial;"><?php 
            echo $_smarty_tpl->__("product");
            ?>
</th>
                <th style="background-color: #eeeeee; padding: 6px 10px; white-space: nowrap; font-size: 12px; font-family: Arial;"><?php 
            echo $_smarty_tpl->__("quantity");
            ?>
</th>
                <th style="background-color: #eeeeee; padding: 6px 10px; white-space: nowrap; font-size: 12px; font-family: Arial;"><?php 
            echo $_smarty_tpl->__("unit_price");
            ?>
</th>
                <?php 
            if ($_smarty_tpl->tpl_vars['order_info']->value['use_discount']) {
                ?>
                    <th style="background-color: #eeeeee; padding: 6px 10px; white-space: nowrap; font-size: 12px; font-family: Arial;"><?php 
                echo $_smarty_tpl->__("discount");
                ?>
</th>
                <?php 
            }
            ?>
                <?php 
            if ($_smarty_tpl->tpl_vars['order_info']->value['taxes'] && $_smarty_tpl->tpl_vars['settings']->value['General']['tax_calculation'] != "subtotal") {
                ?>
                    <th style="background-color: #eeeeee; padding: 6px 10px; white-space: nowrap; font-size: 12px; font-family: Arial;"><?php 
                echo $_smarty_tpl->__("tax");
                ?>
</th>
                <?php 
            }
            ?>
                <th style="background-color: #eeeeee; padding: 6px 10px; white-space: nowrap; font-size: 12px; font-family: Arial;"><?php 
            echo $_smarty_tpl->__("subtotal");
            ?>
</th>
            </tr>
            <?php 
            $_smarty_tpl->tpl_vars["oi"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["oi"]->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['order_info']->value['products'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars["oi"]->key => $_smarty_tpl->tpl_vars["oi"]->value) {
                $_smarty_tpl->tpl_vars["oi"]->_loop = true;
                ?>
            <?php 
                $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:items_list_row"));
                $_block_repeat = true;
                echo smarty_block_hook(array('name' => "orders:items_list_row"), null, $_smarty_tpl, $_block_repeat);
                while ($_block_repeat) {
                    ob_start();
                    ?>

                <?php 
                    if (!$_smarty_tpl->tpl_vars['oi']->value['extra']['parent']) {
                        ?>
                <tr>
                    <td style="padding: 5px 10px; background-color: #ffffff; font-size: 12px; font-family: Arial;">
                        <?php 
                        echo ($tmp = @$_smarty_tpl->tpl_vars['oi']->value['product']) === null || $tmp === '' ? $_smarty_tpl->__("deleted_product") : $tmp;
                        ?>

                        <?php 
                        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:product_info"));
                        $_block_repeat = true;
                        echo smarty_block_hook(array('name' => "orders:product_info"), null, $_smarty_tpl, $_block_repeat);
                        while ($_block_repeat) {
                            ob_start();
                            ?>

                        <?php 
                            if ($_smarty_tpl->tpl_vars['oi']->value['product_code']) {
                                ?>
<p style="margin: 2px 0px 3px 0px;"><?php 
                                echo $_smarty_tpl->__("sku");
                                ?>
: <?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['oi']->value['product_code'], ENT_QUOTES, 'UTF-8');
                                ?>
</p><?php 
                            }
                            ?>
                        <?php 
                            $_block_content = ob_get_clean();
                            $_block_repeat = false;
                            echo smarty_block_hook(array('name' => "orders:product_info"), $_block_content, $_smarty_tpl, $_block_repeat);
                        }
                        array_pop($_smarty_tpl->smarty->_tag_stack);
                        ?>

                        <?php 
                        if ($_smarty_tpl->tpl_vars['oi']->value['product_options']) {
                            ?>
<br/><?php 
                            echo $_smarty_tpl->getSubTemplate("common/options_info.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_options' => $_smarty_tpl->tpl_vars['oi']->value['product_options']), 0);
                        }
                        ?>
                    </td>
                    <td style="padding: 5px 10px; background-color: #ffffff; text-align: center; font-size: 12px; font-family: Arial;"><?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['oi']->value['amount'], ENT_QUOTES, 'UTF-8');
                        ?>
</td>
                    <td style="padding: 5px 10px; background-color: #ffffff; text-align: right; font-size: 12px; font-family: Arial;"><?php 
                        if ($_smarty_tpl->tpl_vars['oi']->value['extra']['exclude_from_calculate']) {
                            echo $_smarty_tpl->__("free");
                        } else {
                            echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['oi']->value['original_price']), 0);
                        }
                        ?>
</td>
                    <?php 
                        if ($_smarty_tpl->tpl_vars['order_info']->value['use_discount']) {
                            ?>
                    <td style="padding: 5px 10px; background-color: #ffffff; text-align: right; font-size: 12px; font-family: Arial;"><?php 
                            if (floatval($_smarty_tpl->tpl_vars['oi']->value['extra']['discount'])) {
                                echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['oi']->value['extra']['discount']), 0);
                            } else {
                                ?>
&nbsp;-&nbsp;<?php 
                            }
                            ?>
</td>
                    <?php 
                        }
                        ?>
                    <?php 
                        if ($_smarty_tpl->tpl_vars['order_info']->value['taxes'] && $_smarty_tpl->tpl_vars['settings']->value['General']['tax_calculation'] != "subtotal") {
                            ?>
                        <td style="padding: 5px 10px; background-color: #ffffff; text-align: right; font-size: 12px; font-family: Arial;"><?php 
                            if ($_smarty_tpl->tpl_vars['oi']->value['tax_value']) {
                                echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['oi']->value['tax_value']), 0);
                            } else {
                                ?>
&nbsp;-&nbsp;<?php 
                            }
                            ?>
</td>
                    <?php 
                        }
                        ?>
        
                    <td style="padding: 5px 10px; background-color: #ffffff; text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;"><b><?php 
                        if ($_smarty_tpl->tpl_vars['oi']->value['extra']['exclude_from_calculate']) {
                            echo $_smarty_tpl->__("free");
                        } else {
                            echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['oi']->value['display_subtotal']), 0);
                        }
                        ?>
</b>&nbsp;</td>
                </tr>
                <?php 
                    }
                    ?>
            <?php 
                    $_block_content = ob_get_clean();
                    $_block_repeat = false;
                    echo smarty_block_hook(array('name' => "orders:items_list_row"), $_block_content, $_smarty_tpl, $_block_repeat);
                }
                array_pop($_smarty_tpl->smarty->_tag_stack);
                ?>

            <?php 
            }
            ?>
            <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:extra_list"));
            $_block_repeat = true;
            echo smarty_block_hook(array('name' => "orders:extra_list"), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

            <?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_hook(array('name' => "orders:extra_list"), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

            </table>
        
            <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:ordered_products"));
            $_block_repeat = true;
            echo smarty_block_hook(array('name' => "orders:ordered_products"), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

            <?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_hook(array('name' => "orders:ordered_products"), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

            
        
            
            <table cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr>
                <td align="right">
                <table border="0" style="padding: 3px 0px 12px 0px;">
                <tr>
                    <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;"><b><?php 
            echo $_smarty_tpl->__("subtotal");
            ?>
:</b>&nbsp;</td>
                    <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;"><?php 
            echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['order_info']->value['display_subtotal']), 0);
            ?>
</td>
                </tr>
                <?php 
            if (floatval($_smarty_tpl->tpl_vars['order_info']->value['discount'])) {
                ?>
                <tr>
                    <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;"><b><?php 
                echo $_smarty_tpl->__("including_discount");
                ?>
:</b>&nbsp;</td>
                    <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;">
                        <?php 
                echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['order_info']->value['discount']), 0);
                ?>
</td>
                </tr>
                <?php 
            }
            ?>

            
                <?php 
            if (floatval($_smarty_tpl->tpl_vars['order_info']->value['subtotal_discount'])) {
                ?>
                <tr>
                    <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;"><?php 
                echo $_smarty_tpl->__("order_discount");
                ?>
:</td>
                    <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;">
                        <?php 
                echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['order_info']->value['subtotal_discount']), 0);
                ?>
</td>
                </tr>
                <?php 
            }
            ?>

                <?php 
            if ($_smarty_tpl->tpl_vars['order_info']->value['coupons']) {
                ?>
                <?php 
                $_smarty_tpl->tpl_vars["coupon"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["coupon"]->_loop = false;
                $_smarty_tpl->tpl_vars["key"] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['order_info']->value['coupons'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars["coupon"]->key => $_smarty_tpl->tpl_vars["coupon"]->value) {
                    $_smarty_tpl->tpl_vars["coupon"]->_loop = true;
                    $_smarty_tpl->tpl_vars["key"]->value = $_smarty_tpl->tpl_vars["coupon"]->key;
                    ?>
                <tr>
                    <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;"><b><?php 
                    echo $_smarty_tpl->__("coupon");
                    ?>
:</b>&nbsp;</td>
                    <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;"><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8');
                    ?>
</td>
                </tr>
                <?php 
                }
                ?>
                <?php 
            }
            ?>
                <?php 
            if ($_smarty_tpl->tpl_vars['order_info']->value['taxes']) {
                ?>
                <tr>
                    <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;"><b><?php 
                echo $_smarty_tpl->__("taxes");
                ?>
:</b>&nbsp;</td>
                    <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;">&nbsp;</td>
                </tr>
                <?php 
                $_smarty_tpl->tpl_vars['tax_data'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['tax_data']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['order_info']->value['taxes'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['tax_data']->key => $_smarty_tpl->tpl_vars['tax_data']->value) {
                    $_smarty_tpl->tpl_vars['tax_data']->_loop = true;
                    ?>
                <tr>
                    <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;"><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['tax_data']->value['description'], ENT_QUOTES, 'UTF-8');
                    ?>
&nbsp;<?php 
                    echo $_smarty_tpl->getSubTemplate("common/modifier.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('mod_value' => $_smarty_tpl->tpl_vars['tax_data']->value['rate_value'], 'mod_type' => $_smarty_tpl->tpl_vars['tax_data']->value['rate_type']), 0);
                    if ($_smarty_tpl->tpl_vars['tax_data']->value['price_includes_tax'] == "Y" && ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['cart_prices_w_taxes'] != "Y" || $_smarty_tpl->tpl_vars['settings']->value['General']['tax_calculation'] == "subtotal")) {
                        ?>
&nbsp;<?php 
                        echo $_smarty_tpl->__("included");
                    }
                    if ($_smarty_tpl->tpl_vars['tax_data']->value['regnumber']) {
                        ?>
&nbsp;(<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['tax_data']->value['regnumber'], ENT_QUOTES, 'UTF-8');
                        ?>
)<?php 
                    }
                    ?>
:&nbsp;</td>
                    <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;"><?php 
                    echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['tax_data']->value['tax_subtotal']), 0);
                    ?>
</td>
                </tr>
                <?php 
                }
                ?>
                <?php 
            }
            ?>
                <?php 
            if ($_smarty_tpl->tpl_vars['order_info']->value['tax_exempt'] == 'Y') {
                ?>
                <tr>
                    <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;"><b><?php 
                echo $_smarty_tpl->__("tax_exempt");
                ?>
</b></td>
                    <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;">&nbsp;</td>
                </tr>
                <?php 
            }
            ?>
            
                <?php 
            if (floatval($_smarty_tpl->tpl_vars['order_info']->value['payment_surcharge']) && !$_smarty_tpl->tpl_vars['take_surcharge_from_vendor']->value) {
                ?>
                <tr>
                    <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;"><?php 
                echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['order_info']->value['payment_method']['surcharge_title']) === null || $tmp === '' ? $_smarty_tpl->__("payment_surcharge") : $tmp, ENT_QUOTES, 'UTF-8');
                ?>
:&nbsp;</td>
                    <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;"><b><?php 
                echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['order_info']->value['payment_surcharge']), 0);
                ?>
</b></td>
                </tr>
                <?php 
            }
            ?>
            
            
                <?php 
            if ($_smarty_tpl->tpl_vars['order_info']->value['shipping']) {
                ?>
                <tr>
                    <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;"><b><?php 
                echo $_smarty_tpl->__("shipping_cost");
                ?>
:</b>&nbsp;</td>
                    <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;"><?php 
                echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['order_info']->value['display_shipping_cost']), 0);
                ?>
</td>
                </tr>
                <?php 
            }
            ?>
                <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:totals"));
            $_block_repeat = true;
            echo smarty_block_hook(array('name' => "orders:totals"), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

                <?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_hook(array('name' => "orders:totals"), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

                
                <tr>
                    <td colspan="2"><hr style="border: 0px solid #d5d5d5; border-top-width: 1px;" /></td>
                </tr>
                <tr>
                    <td style="text-align: right; white-space: nowrap; font: 15px Tahoma; text-align: right;"><?php 
            echo $_smarty_tpl->__("total_cost");
            ?>
:&nbsp;</td>
                    <td style="text-align: right; white-space: nowrap; font: 15px Tahoma; text-align: right;"><strong style="font: bold 17px Tahoma;"><?php 
            echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['order_info']->value['total']), 0);
            ?>
</strong></td>
                </tr>
                </table>
                </td>
            </tr>
            </table>
        
            
        
            <?php 
            if ($_smarty_tpl->tpl_vars['order_info']->value['notes']) {
                ?>
            <table cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr valign="top">
                <td style="font-size: 12px; font-family: Arial;"><strong><?php 
                echo $_smarty_tpl->__("notes");
                ?>
:</strong></td>
            </tr>
            <tr valign="top">
                <td><div style="overflow-x: auto; clear: both; width: 510px; height: 100%; padding-bottom: 20px; overflow-y: hidden; font-size: 12px; font-family: Arial;"><?php 
                echo nl2br($_smarty_tpl->tpl_vars['order_info']->value['notes']);
                ?>
</div></td>
            </tr>
            </table>
            <?php 
            }
            ?>
        <?php 
        }
        ?>
        
        <?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:invoice"));
        $_block_repeat = true;
        echo smarty_block_hook(array('name' => "orders:invoice"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

        <?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_hook(array('name' => "orders:invoice"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

        </td>
    </tr>
    </table>
    </td>
</tr>
</table>
<?php 
    }
コード例 #5
0
ファイル: fn.catalog.php プロジェクト: heg-arc-ne/cscart
/**
 * Gets categories tree beginning from category identifier defined in params or root category
 * @param array $params Categories search params
 *      category_id - Root category identifier
 *      visible - Flag that defines if only visible categories should be included
 *      current_category_id - Identifier of current node for visible categories
 *      simple - Flag that defines if category path should be getted as set of category IDs
 *      plain - Flag that defines if continues list of categories should be returned
 *      --------------------------------------
 *      Examples:
 *      Gets whole categories tree:
 *      fn_get_categories()
 *      --------------------------------------
 *      Gets subcategories tree of the category:
 *      fn_get_categories(array(
 *          'category_id' => 123
 *      ))
 *      --------------------------------------
 *      Gets all first-level nodes of the category
 *      fn_get_categories(array(
 *          'category_id' => 123,
 *          'visible' => true
 *      ))
 *      --------------------------------------
 *      Gets all visible nodes of the category, start from the root
 *      fn_get_categories(array(
 *          'category_id' => 0,
 *          'current_category_id' => 234,
 *          'visible' => true
 *      ))
 * @param string $lang_code 2-letters language code
 * @return array Categories tree
 */
function fn_get_categories($params = array(), $lang_code = CART_LANGUAGE)
{
    /**
     * Changes params for the categories search
     *
     * @param array  $params    Categories search params
     * @param string $lang_code 2-letters language code
     */
    fn_set_hook('get_categories_pre', $params, $lang_code);
    $default_params = array('category_id' => 0, 'visible' => false, 'current_category_id' => 0, 'simple' => true, 'plain' => false, 'limit' => 0, 'item_ids' => '', 'group_by_level' => true, 'get_images' => false, 'category_delimiter' => '/', 'get_frontend_urls' => false, 'max_nesting_level' => null);
    $params = array_merge($default_params, $params);
    $sortings = array('timestamp' => '?:categories.timestamp', 'name' => '?:category_descriptions.category', 'position' => array('?:categories.position', '?:category_descriptions.category'));
    $auth =& $_SESSION['auth'];
    $fields = array('?:categories.category_id', '?:categories.parent_id', '?:categories.id_path', '?:category_descriptions.category', '?:categories.position', '?:categories.status');
    if ($params['simple'] == false) {
        $fields[] = '?:categories.product_count';
    }
    if (empty($params['current_category_id']) && !empty($params['product_category_id'])) {
        $params['current_category_id'] = $params['product_category_id'];
    }
    $condition = '';
    if (fn_allowed_for('MULTIVENDOR')) {
        if (Registry::get('runtime.company_id')) {
            $company_id = Registry::get('runtime.company_id');
        } elseif (!empty($params['company_ids'])) {
            $company_id = (int) $params['company_ids'];
        }
        if (!empty($company_id)) {
            $company_data = fn_get_company_data($company_id);
            if (!empty($company_data['category_ids'])) {
                $company_condition = db_quote(' AND ?:categories.category_id IN (?n)', $company_data['category_ids']);
                $condition .= $company_condition;
            }
        }
    }
    if (AREA == 'C') {
        $_statuses = array('A');
        // Show enabled products/categories
        $condition .= fn_get_localizations_condition('?:categories.localization', true);
        $condition .= " AND (" . fn_find_array_in_set($auth['usergroup_ids'], '?:categories.usergroup_ids', true) . ")";
        $condition .= db_quote(" AND ?:categories.status IN (?a)", $_statuses);
    }
    if (!empty($params['status'])) {
        $condition .= db_quote(" AND ?:categories.status IN (?a)", $params['status']);
    }
    if (isset($params['parent_category_id'])) {
        // set parent id, that was set in block properties
        $params['category_id'] = $params['parent_category_id'];
    }
    if ($params['visible'] == true && empty($params['b_id'])) {
        if (!empty($params['current_category_id'])) {
            $cur_id_path = db_get_field("SELECT id_path FROM ?:categories WHERE category_id = ?i", $params['current_category_id']);
            if (!empty($cur_id_path)) {
                $parent_categories_ids = explode('/', $cur_id_path);
            }
        }
        if (!empty($params['category_id']) || empty($parent_categories_ids)) {
            $parent_categories_ids[] = $params['category_id'];
        }
        $parents_condition = db_quote(" AND ?:categories.parent_id IN (?n)", $parent_categories_ids);
    }
    // if we have company_condtion, skip $parents_condition, it will be processed later by PHP
    if (!empty($parents_condition) && empty($company_condition)) {
        $condition .= $parents_condition;
    }
    if (!empty($params['category_id'])) {
        $from_id_path = db_get_field("SELECT id_path FROM ?:categories WHERE category_id = ?i", $params['category_id']);
        $condition .= db_quote(" AND ?:categories.id_path LIKE ?l", "{$from_id_path}/%");
    }
    if (!empty($params['item_ids'])) {
        $condition .= db_quote(' AND ?:categories.category_id IN (?n)', explode(',', $params['item_ids']));
    }
    if (!empty($params['except_id']) && (empty($params['item_ids']) || !empty($params['item_ids']) && !in_array($params['except_id'], explode(',', $params['item_ids'])))) {
        $condition .= db_quote(' AND ?:categories.category_id != ?i AND ?:categories.parent_id != ?i', $params['except_id'], $params['except_id']);
    }
    if (!empty($params['period']) && $params['period'] != 'A') {
        list($params['time_from'], $params['time_to']) = fn_create_periods($params);
        $condition .= db_quote(" AND (?:categories.timestamp >= ?i AND ?:categories.timestamp <= ?i)", $params['time_from'], $params['time_to']);
    }
    if (!empty($params['max_nesting_level'])) {
        $condition .= db_quote(" AND ?:categories.level <= ?i", $params['max_nesting_level']);
    }
    $limit = $join = $group_by = '';
    /**
     * Changes SQL params for the categories search
     *
     * @param array  $params    Categories search params
     * @param string $join      Join parametrs
     * @param string $condition Request condition
     * @param array  $fields    Selectable fields
     * @param string $group_by  Group by parameters
     * @param array  $sortings  Sorting fields
     * @param string $lang_code Language code
     */
    fn_set_hook('get_categories', $params, $join, $condition, $fields, $group_by, $sortings, $lang_code);
    if (!empty($params['limit'])) {
        $limit = db_quote(' LIMIT 0, ?i', $params['limit']);
    }
    $sorting = db_sort($params, $sortings, 'position', 'asc');
    if (!empty($params['get_conditions'])) {
        return array($fields, $join, $condition, $group_by, $sorting, $limit);
    }
    $categories = db_get_hash_array('SELECT ' . implode(',', $fields) . " FROM ?:categories LEFT JOIN ?:category_descriptions ON ?:categories.category_id = ?:category_descriptions.category_id AND ?:category_descriptions.lang_code = ?s {$join} WHERE 1 ?p {$group_by} {$sorting} ?p", 'category_id', $lang_code, $condition, $limit);
    /**
     * Process categories list after getting it
     * @param array $categories Categories list
     * @param array $params     Categories search params
     */
    fn_set_hook('get_categories_after_sql', $categories, $params);
    if (empty($categories)) {
        return array(array());
    }
    if (fn_allowed_for('ULTIMATE')) {
        // we can't build the correct tree for vendors if there are not available parent categories
        if (!empty($company_condition)) {
            $selected_ids = array_keys($categories);
            $parent_ids = array();
            // so get skipped parent categories ids
            foreach ($categories as $v) {
                if ($v['parent_id'] && !in_array($v['parent_id'], $selected_ids)) {
                    $parent_ids = array_merge($parent_ids, explode('/', $v['id_path']));
                }
            }
            if (!empty($parent_ids)) {
                // and retrieve its data
                if (Registry::get('runtime.company_id') && !empty($company_condition)) {
                    $condition = str_replace($company_condition, '', $condition);
                }
                $condition .= db_quote(' AND ?:categories.category_id IN (?a)', $parent_ids);
                $fields[] = '1 as disabled';
                //mark such categories as disabled
                $parent_categories = db_get_hash_array('SELECT ' . implode(',', $fields) . " FROM ?:categories LEFT JOIN ?:category_descriptions ON ?:categories.category_id = ?:category_descriptions.category_id AND ?:category_descriptions.lang_code = ?s {$join} WHERE 1 ?p {$group_by} {$sorting} ?p", 'category_id', $lang_code, $condition, $limit);
                $categories = $categories + $parent_categories;
            }
            // process parents_condition if it was skipped
            if (!empty($parent_categories_ids)) {
                foreach ($categories as $k => $v) {
                    if (!in_array($v['parent_id'], $parent_categories_ids)) {
                        unset($categories[$k]);
                    }
                }
            }
        }
    }
    // @TODO remove from here, because active category may not exist in the resulting set. This is the job for controller.
    if (!empty($params['active_category_id']) && !empty($categories[$params['active_category_id']])) {
        $categories[$params['active_category_id']]['active'] = true;
        Registry::set('runtime.active_category_ids', explode('/', $categories[$params['active_category_id']]['id_path']));
    }
    $categories_list = array();
    if ($params['simple'] == true || $params['group_by_level'] == true) {
        $child_for = array_keys($categories);
        $where_condition = !empty($params['except_id']) ? db_quote(' AND category_id != ?i', $params['except_id']) : '';
        $has_children = db_get_hash_array("SELECT category_id, parent_id FROM ?:categories WHERE parent_id IN(?n) ?p", 'parent_id', $child_for, $where_condition);
    }
    $category_ids = array();
    // Group categories by the level (simple)
    if ($params['simple'] == true) {
        foreach ($categories as $k => $v) {
            $v['level'] = substr_count($v['id_path'], '/');
            if ((!empty($params['current_category_id']) || $v['level'] == 0) && isset($has_children[$k])) {
                $v['has_children'] = $has_children[$k]['category_id'];
            }
            $categories_list[$v['level']][$v['category_id']] = $v;
            $category_ids[] = $v['category_id'];
        }
    } elseif ($params['group_by_level'] == true) {
        // Group categories by the level (simple) and literalize path
        foreach ($categories as $k => $v) {
            $path = explode('/', $v['id_path']);
            $category_path = array();
            foreach ($path as $__k => $__v) {
                $category_path[$__v] = @$categories[$__v]['category'];
            }
            $v['category_path'] = implode($params['category_delimiter'], $category_path);
            $v['level'] = substr_count($v['id_path'], "/");
            if ((!empty($params['current_category_id']) || $v['level'] == 0) && isset($has_children[$k])) {
                $v['has_children'] = $has_children[$k]['category_id'];
            }
            $categories_list[$v['level']][$v['category_id']] = $v;
            $category_ids[] = $v['category_id'];
        }
    } else {
        // @FIXME: Seems that this code isn't being executed anywhere
        $categories_list = $categories;
        $category_ids = fn_fields_from_multi_level($categories_list, 'category_id', 'category_id');
    }
    ksort($categories_list, SORT_NUMERIC);
    $categories_list = array_reverse($categories_list, !$params['simple'] && !$params['group_by_level']);
    // Lazy-load category image pairs
    if ($params['get_images']) {
        $image_pairs_for_categories = fn_get_image_pairs($category_ids, 'category', 'M', true, true, $lang_code);
    }
    // Rearrangement of subcategories and filling with images
    foreach ($categories_list as $level => $categories_of_level) {
        // Fill categories' image pairs for plain structure of array
        if ($params['get_images'] && !$params['simple'] && !$params['group_by_level'] && !empty($image_pairs_for_categories[$level])) {
            $categories_list[$level]['main_pair'] = reset($image_pairs_for_categories[$level]);
        }
        foreach ($categories_of_level as $category_id => $category_data) {
            // Fill categories' image pairs for multi-level structure of array
            if ($params['get_images'] && !empty($image_pairs_for_categories[$category_id]) && ($params['simple'] || $params['group_by_level'])) {
                $categories_list[$level][$category_id]['main_pair'] = reset($image_pairs_for_categories[$category_id]);
            }
            // Move subcategories to their parents' elements
            if (isset($category_data['parent_id']) && isset($categories_list[$level + 1][$category_data['parent_id']])) {
                $categories_list[$level + 1][$category_data['parent_id']]['subcategories'][] = $categories_list[$level][$category_id];
                unset($categories_list[$level][$category_id]);
            }
        }
    }
    if (!empty($params['get_frontend_urls'])) {
        foreach ($categories_list as &$category) {
            $category['url'] = fn_url('categories.view?category_id=' . $category['category_id'], 'C');
        }
    }
    if ($params['group_by_level'] == true) {
        $categories_list = array_pop($categories_list);
    }
    if ($params['plain'] == true) {
        $categories_list = fn_multi_level_to_plain($categories_list, 'subcategories');
    }
    if (!empty($params['item_ids'])) {
        $categories_list = fn_sort_by_ids($categories_list, explode(',', $params['item_ids']), 'category_id');
    }
    if (!empty($params['add_root'])) {
        array_unshift($categories_list, array('category_id' => 0, 'category' => $params['add_root']));
    }
    /**
     * Process categories list before cutting second and fird levels
     *
     * @param array $categories_list Categories list
     * @param array $params          Categories search params
     */
    fn_set_hook('get_categories_before_cut_levels', $categories_list, $params);
    fn_dropdown_appearance_cut_second_third_levels($categories_list, 'subcategories', $params);
    /**
     * Process final category list
     *
     * @param array  $categories_list Categories list
     * @param array  $params          Categories search params
     * @param string $lang_code       Language code
     */
    fn_set_hook('get_categories_post', $categories_list, $params, $lang_code);
    // process search results
    if (!empty($params['save_view_results'])) {
        $request = $params;
        $request['page'] = 1;
        $categories_res = $params['plain'] == true ? $categories_list : fn_multi_level_to_plain($categories_list, 'subcategories');
        foreach ($categories_res as $key => $item) {
            if (empty($item['category_id'])) {
                unset($categories_res[$key]);
            }
        }
        $request['total_items'] = $request['items_per_page'] = count($categories_res);
        LastView::instance()->processResults('categories', $categories_res, $request);
    }
    return array($categories_list, $params);
}
コード例 #6
0
ファイル: func.php プロジェクト: ambient-lounge/site
/**
 * Gets categories tree beginning from category identifier defined in params or root category
 * @param array $params Categories search params
 *      category_id - Root category identifier
 *      visible - Flag that defines if only visible categories should be included
 *      current_category_id - Identifier of current node for visible categories
 *      simple - Flag that defines if category path should be getted as set of category IDs
 *      plain - Flag that defines if continues list of categories should be returned
 *      --------------------------------------
 *      Examples:
 *      Gets whole categories tree:
 *      fn_ebay_get_categories()
 *      --------------------------------------
 *      Gets subcategories tree of the category:
 *      fn_ebay_get_categories(array(
 *          'category_id' => 123
 *      ))
 *      --------------------------------------
 *      Gets all first-level nodes of the category
 *      fn_ebay_get_categories(array(
 *          'category_id' => 123,
 *          'visible' => true
 *      ))
 *      --------------------------------------
 *      Gets all visible nodes of the category, start from the root
 *      fn_ebay_get_categories(array(
 *          'category_id' => 0,
 *          'current_category_id' => 234,
 *          'visible' => true
 *      ))
 * @param int $site_id
 * @param string $lang_code 2-letters language code
 * @return array Categories tree
 */
function fn_ebay_get_categories($params = array(), $site_id = 0, $lang_code = CART_LANGUAGE)
{
    $default_params = array('category_id' => 0, 'visible' => false, 'current_category_id' => 0, 'simple' => true, 'plain' => false, 'limit' => 0, 'item_ids' => '', 'group_by_level' => true, 'category_delimiter' => ',', 'max_nesting_level' => null);
    $params = array_merge($default_params, $params);
    $sortings = array('name' => '?:ebay_categories.name');
    $fields = array('category_id', 'parent_id', 'id_path', 'name', 'level', 'leaf', 'site_id');
    if (empty($params['current_category_id']) && !empty($params['product_category_id'])) {
        $params['current_category_id'] = $params['product_category_id'];
    }
    $condition = db_quote('AND site_id = ?i', $site_id);
    if (isset($params['parent_category_id'])) {
        // set parent id, that was set in block properties
        $params['category_id'] = $params['parent_category_id'];
    }
    if (empty($params['b_id'])) {
        $parent_categories_ids = array();
        if (!empty($params['current_category_id'])) {
            $cur_id_path = db_get_field("SELECT id_path FROM ?:ebay_categories WHERE category_id = ?i AND site_id = ?i", $params['current_category_id'], $site_id);
            if (!empty($cur_id_path)) {
                $parent_categories_ids = explode(',', $cur_id_path);
            }
        }
        if (!empty($params['category_id']) || empty($parent_categories_ids)) {
            $parent_categories_ids[] = $params['category_id'];
        }
        $parents_condition = db_quote(" AND ?:ebay_categories.parent_id IN (?n)", $parent_categories_ids);
    }
    // if we have company_condtion, skip $parents_condition, it will be processed later by PHP
    if (!empty($parents_condition) && empty($company_condition)) {
        $condition .= $parents_condition;
    }
    if (!empty($params['category_id'])) {
        $from_id_path = db_get_field("SELECT id_path FROM ?:ebay_categories WHERE category_id = ?i AND site_id = ?i", $params['category_id'], $site_id);
        $condition .= db_quote(" AND ?:ebay_categories.id_path LIKE ?l", "{$from_id_path},%");
    }
    if (!empty($params['item_ids'])) {
        $condition .= db_quote(' AND ?:ebay_categories.category_id IN (?n)', explode(',', $params['item_ids']));
    }
    if (!empty($params['except_id']) && (empty($params['item_ids']) || !empty($params['item_ids']) && !in_array($params['except_id'], explode(',', $params['item_ids'])))) {
        $condition .= db_quote(' AND ?:ebay_categories.category_id != ?i AND ?:ebay_categories.parent_id != ?i', $params['except_id'], $params['except_id']);
    }
    if (!empty($params['max_nesting_level'])) {
        $condition .= db_quote(" AND ?:ebay_categories.level <= ?i", $params['max_nesting_level']);
    }
    $limit = $join = $group_by = '';
    if (!empty($params['limit'])) {
        $limit = db_quote(' LIMIT 0, ?i', $params['limit']);
    }
    $sorting = db_sort($params, $sortings, 'name', 'asc');
    $categories = db_get_hash_array('SELECT ' . implode(',', $fields) . " FROM ?:ebay_categories WHERE 1 ?p {$group_by} {$sorting} ?p", 'category_id', $condition, $limit);
    if (empty($categories)) {
        return array(array());
    }
    // @TODO remove from here, because active category may not exist in the resulting set. This is the job for controller.
    if (!empty($params['active_category_id']) && !empty($categories[$params['active_category_id']])) {
        $categories[$params['active_category_id']]['active'] = true;
    }
    $categories_list = array();
    if ($params['simple'] == true || $params['group_by_level'] == true) {
        $child_for = array_keys($categories);
        $where_condition = !empty($params['except_id']) ? db_quote(' AND category_id != ?i', $params['except_id']) : '';
        $has_children = db_get_hash_array("SELECT category_id, parent_id FROM ?:ebay_categories WHERE parent_id IN(?n) AND site_id = ?i ?p", 'parent_id', $child_for, $site_id, $where_condition);
    }
    $category_ids = array();
    // Group categories by the level (simple)
    if ($params['simple'] == true) {
        foreach ($categories as $k => $v) {
            $v['level'] = substr_count($v['id_path'], ',');
            if ((!empty($params['current_category_id']) || $v['level'] == 0) && isset($has_children[$k])) {
                $v['has_children'] = $has_children[$k]['category_id'];
            }
            $categories_list[$v['level']][$v['category_id']] = $v;
            $category_ids[] = $v['category_id'];
        }
    } elseif ($params['group_by_level'] == true) {
        // Group categories by the level (simple) and literalize path
        foreach ($categories as $k => $v) {
            $path = explode('/', $v['id_path']);
            $category_path = array();
            foreach ($path as $__k => $__v) {
                $category_path[$__v] = @$categories[$__v]['category'];
            }
            $v['category_path'] = implode($params['category_delimiter'], $category_path);
            $v['level'] = substr_count($v['id_path'], ",");
            if ((!empty($params['current_category_id']) || $v['level'] == 0) && isset($has_children[$k])) {
                $v['has_children'] = $has_children[$k]['category_id'];
            }
            $categories_list[$v['level']][$v['category_id']] = $v;
            $category_ids[] = $v['category_id'];
        }
    } else {
        // @FIXME: Seems that this code isn't being executed anywhere
        $categories_list = $categories;
        $category_ids = fn_fields_from_multi_level($categories_list, 'category_id', 'category_id');
    }
    ksort($categories_list, SORT_NUMERIC);
    $categories_list = array_reverse($categories_list, !$params['simple'] && !$params['group_by_level']);
    // Rearrangement of subcategories and filling with images
    foreach ($categories_list as $level => $categories_of_level) {
        foreach ($categories_of_level as $category_id => $category_data) {
            // Move subcategories to their parents' elements
            if (isset($category_data['parent_id']) && isset($categories_list[$level + 1][$category_data['parent_id']])) {
                $categories_list[$level + 1][$category_data['parent_id']]['subcategories'][] = $categories_list[$level][$category_id];
                unset($categories_list[$level][$category_id]);
            }
        }
    }
    if ($params['group_by_level'] == true) {
        $categories_list = array_pop($categories_list);
    }
    if ($params['plain'] == true) {
        $categories_list = fn_multi_level_to_plain($categories_list, 'subcategories');
    }
    if (!empty($params['item_ids'])) {
        $categories_list = fn_sort_by_ids($categories_list, explode(',', $params['item_ids']), 'category_id');
    }
    if (!empty($params['add_root'])) {
        array_unshift($categories_list, array('category_id' => 0, 'category' => $params['add_root']));
    }
    fn_dropdown_appearance_cut_second_third_levels($categories_list, 'subcategories', $params);
    return array($categories_list, $params);
}
    function content_55cceca0610ac9_26483771($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php';
        }
        if (!is_callable('smarty_function_split')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.split.php';
        }
        if (!is_callable('smarty_function_math')) {
            include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/function.math.php';
        }
        if (!is_callable('smarty_block_hook')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php';
        }
        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('remove', 'empty', 'remove', 'empty'));
        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['products_footer']->value) {
                ?>


    <?php 
                echo smarty_function_script(array('src' => "js/tygh/exceptions.js"), $_smarty_tpl);
                ?>

    

    <?php 
                if (!$_smarty_tpl->tpl_vars['no_pagination']->value) {
                    ?>

        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>

    
    <?php 
                if (!$_smarty_tpl->tpl_vars['no_sorting']->value) {
                    ?>

        <?php 
                    echo $_smarty_tpl->getSubTemplate("views/products/components/sorting.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>


    <?php 
                if (!$_smarty_tpl->tpl_vars['show_empty']->value) {
                    ?>

        <?php 
                    echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products_footer']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products"), $_smarty_tpl);
                    ?>

    <?php 
                } else {
                    ?>

        <?php 
                    echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products_footer']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products", 'skip_complete' => true), $_smarty_tpl);
                    ?>

    <?php 
                }
                ?>


    <?php 
                echo smarty_function_math(array('equation' => "100 / x", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "cell_width"), $_smarty_tpl);
                ?>

    <?php 
                if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") {
                    ?>

        <?php 
                    $_smarty_tpl->tpl_vars["cur_number"] = new Smarty_variable(1, null, 0);
                    ?>

    <?php 
                }
                ?>


    
    

    <?php 
                if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') {
                    ?>

        <?php 
                    $_smarty_tpl->tpl_vars['quick_nav_ids'] = new Smarty_variable(fn_fields_from_multi_level($_smarty_tpl->tpl_vars['products_footer']->value, "product_id", "product_id"), null, 0);
                    ?>

    <?php 
                }
                ?>

    <!--div class="grid-list"-->
    <div class="ls_preferate_carousel">
    <div class="lsc_wrap">
    <div class="lsc_slider">
    <!--ul id="ls_fav_ul" class="owl-carousel"-->
     <ul class="recent_carousel_ul lcs_fix">
        <?php 
                $_smarty_tpl->tpl_vars["sproducts"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["sproducts"]->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['splitted_products']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars["sproducts"]->total = $_smarty_tpl->_count($_from);
                $_smarty_tpl->tpl_vars["sproducts"]->iteration = 0;
                foreach ($_from as $_smarty_tpl->tpl_vars["sproducts"]->key => $_smarty_tpl->tpl_vars["sproducts"]->value) {
                    $_smarty_tpl->tpl_vars["sproducts"]->_loop = true;
                    $_smarty_tpl->tpl_vars["sproducts"]->iteration++;
                    $_smarty_tpl->tpl_vars["sproducts"]->last = $_smarty_tpl->tpl_vars["sproducts"]->iteration === $_smarty_tpl->tpl_vars["sproducts"]->total;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sprod"]['last'] = $_smarty_tpl->tpl_vars["sproducts"]->last;
                    $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["product"]->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['sproducts']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration'] = 0;
                    foreach ($_from as $_smarty_tpl->tpl_vars["product"]->key => $_smarty_tpl->tpl_vars["product"]->value) {
                        $_smarty_tpl->tpl_vars["product"]->_loop = true;
                        $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration']++;
                        ?>
<!--div class="ty-column"--><li class="clearfix lsc_li_container"><span style="display: none" class="ls_cart_combination_hash"><?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['cart_id'], ENT_QUOTES, 'UTF-8');
                        ?>
</span><?php 
                        if ($_smarty_tpl->tpl_vars['product']->value) {
                            $_smarty_tpl->tpl_vars["obj_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                            $_smarty_tpl->tpl_vars["obj_id_prefix"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                            echo $_smarty_tpl->getSubTemplate("common/product_data2.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value), 0);
                            ?>
<!--div class="ty-grid-list__item ty-quick-view-button__wrapper"--><?php 
                            $_smarty_tpl->tpl_vars["form_open"] = new Smarty_variable("form_open_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_open']->value];
                            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:product_multicolumns_list"));
                            $_block_repeat = true;
                            echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), null, $_smarty_tpl, $_block_repeat);
                            while ($_block_repeat) {
                                ob_start();
                                ?>
<!--div class="ty-twishlist-item testmulticolumnpre3"><a href="<?php 
                                echo htmlspecialchars(fn_url("wishlist.delete?cart_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['cart_id']), ENT_QUOTES, 'UTF-8');
                                ?>
" class="ty-twishlist-item__remove ty-remove" title="<?php 
                                echo $_smarty_tpl->__("remove");
                                ?>
"><i class="ty-remove__icon ty-icon-cancel-circle"></i></a></div--><div class="ty-grid-list__image testgridlistfooter2"><?php 
                                echo $_smarty_tpl->getSubTemplate("views/products/components/product_icon2.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value, 'show_gallery' => false), 0);
                                $_smarty_tpl->tpl_vars["discount_label"] = new Smarty_variable("discount_label_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['discount_label']->value];
                                ?>
</div><?php 
                                $_block_content = ob_get_clean();
                                $_block_repeat = false;
                                echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), $_block_content, $_smarty_tpl, $_block_repeat);
                            }
                            array_pop($_smarty_tpl->smarty->_tag_stack);
                            $_smarty_tpl->tpl_vars["form_close"] = new Smarty_variable("form_close_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_close']->value];
                            ?>
<!--/div--><form enctype="multipart/form-data"><input type='hidden' name='ls_move_to' value='cart'><input type='hidden' name='ls_cart_combination_hash' value='<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['cart_id'], ENT_QUOTES, 'UTF-8');
                            ?>
'><?php 
                            $_smarty_tpl->tpl_vars["option"] = new Smarty_Variable();
                            $_smarty_tpl->tpl_vars["option"]->_loop = false;
                            $_smarty_tpl->tpl_vars['option_id'] = new Smarty_Variable();
                            $_from = $_smarty_tpl->tpl_vars['product']->value['product_options'];
                            if (!is_array($_from) && !is_object($_from)) {
                                settype($_from, 'array');
                            }
                            foreach ($_from as $_smarty_tpl->tpl_vars["option"]->key => $_smarty_tpl->tpl_vars["option"]->value) {
                                $_smarty_tpl->tpl_vars["option"]->_loop = true;
                                $_smarty_tpl->tpl_vars['option_id']->value = $_smarty_tpl->tpl_vars["option"]->key;
                                ?>
<input type="hidden" name="product_data[<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                                ?>
][product_options][<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['option_id']->value, ENT_QUOTES, 'UTF-8');
                                ?>
]" value="<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['option']->value['value'], ENT_QUOTES, 'UTF-8');
                                ?>
"><?php 
                            }
                            ?>
<input type="hidden" name="result_ids" value="cart_status*,wish_list*,checkout*,account_info*"><input type="hidden" name="redirect_url" value="<?php 
                            echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['config']->value['current_url']), ENT_QUOTES, 'UTF-8');
                            ?>
"><input type="hidden" name="product_data[<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                            ?>
][product_id]" value="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                            ?>
"><!--input type="hidden" name="product_data[2704][product_options][2291]" value="111924"><input type="hidden" name="product_data[2704][product_options][3468]" value="111210"><input type="hidden" name="product_data[2704][product_options][3471]" value="111239"><input type="hidden" name="product_data[2704][product_options][3470]" value="111238"><input type="hidden" name="product_data[2704][product_options][3485]" value="111357"><input type="hidden" name="product_data[2704][product_options][3469]" value="111212"><input type="hidden" name="product_data[2704][product_options][3484]" value="111885"--><input type="hidden" name="appearance[show_product_options]" value="1"><input type="hidden" name="appearance[details_page]" value="1"><input type="hidden" name="additional_info[info_type]" value="D"><input type="hidden" name="additional_info[get_icon]" value="1"><input type="hidden" name="additional_info[get_detailed]" value="1"><input type="hidden" name="additional_info[get_additional]" value=""><input type="hidden" name="additional_info[get_options]" value="1"><input type="hidden" name="additional_info[get_discounts]" value="1"><input type="hidden" name="additional_info[get_features]" value=""><input type="hidden" name="additional_info[get_extra]" value=""><input type="hidden" name="additional_info[get_taxed_prices]" value="1"><input type="hidden" name="additional_info[get_for_one_product]" value="1"><input type="hidden" name="additional_info[detailed_params]" value="1"><input type="hidden" name="additional_info[features_display_on]" value="C"><input type="hidden" name="appearance[show_add_to_cart]" value="1"><input type="hidden" name="appearance[separate_buttons]" value="1"><input type="hidden" name="appearance[show_list_buttons]" value="1"><input type="hidden" name="appearance[but_role]" value="big"><input type="hidden" name="appearance[quick_view]" value=""><input type="hidden" name="is_ajax" value="1"><input type="hidden" name="full_render" value="Y"><input type="hidden" name="dispatch[checkout.add..<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                            ?>
]" value=""><span class="ls_move_to_cart"><img class="ls_move_to_cart" src='../../../../../../../../design/themes/responsive/media/images/images/move_to_cart.png'></span></form><?php 
                        }
                        ?>
</li><!--/div--><?php 
                    }
                    if ($_smarty_tpl->tpl_vars['show_empty']->value && $_smarty_tpl->getVariable('smarty')->value['foreach']['sprod']['last']) {
                        $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable($_smarty_tpl->getVariable('smarty')->value['foreach']['sproducts']['iteration'], null, 0);
                        $_smarty_tpl->_capture_stack[0][] = array("iteration", null, null);
                        ob_start();
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['iteration']->value, ENT_QUOTES, 'UTF-8');
                        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();
                        }
                        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:products_multicolumns_extra"));
                        $_block_repeat = true;
                        echo smarty_block_hook(array('name' => "products:products_multicolumns_extra"), null, $_smarty_tpl, $_block_repeat);
                        while ($_block_repeat) {
                            ob_start();
                            $_block_content = ob_get_clean();
                            $_block_repeat = false;
                            echo smarty_block_hook(array('name' => "products:products_multicolumns_extra"), $_block_content, $_smarty_tpl, $_block_repeat);
                        }
                        array_pop($_smarty_tpl->smarty->_tag_stack);
                        $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable(Smarty::$_smarty_vars['capture']['iteration'], null, 0);
                        if ($_smarty_tpl->tpl_vars['iteration']->value % $_smarty_tpl->tpl_vars['columns']->value != 0) {
                            echo smarty_function_math(array('assign' => "empty_count", 'equation' => "c - it%c", 'it' => $_smarty_tpl->tpl_vars['iteration']->value, 'c' => $_smarty_tpl->tpl_vars['columns']->value), $_smarty_tpl);
                            if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"])) {
                                unset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]);
                            }
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['empty_count']->value) ? count($_loop) : max(0, (int) $_loop);
                            unset($_loop);
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['name'] = "empty_rows";
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = true;
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] = 1;
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] - 1;
                            if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                                if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] == 0) {
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = false;
                                }
                            } else {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = 0;
                            }
                            if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                                for ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration']++) {
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == 1;
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'];
                                    ?>
<!--div class="ty-column<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
"><div class="ty-product-empty"><span class="ty-product-empty__text"><?php 
                                    echo $_smarty_tpl->__("empty");
                                    ?>
</span></div></div--><?php 
                                }
                            }
                        }
                    }
                }
                ?>

    </ul>
    </div>
    <div class="lsc_slider-nav">
        <span class="ls_nav_bullets" style="display: none"></span>
        <button class="lsc_previous_b" data-dir="prev">Previous</button>
        <button class="lsc_next_b"  data-dir="next">Next</button>
    </div>
    </div>
    </div>

    <?php 
                if (!$_smarty_tpl->tpl_vars['no_pagination']->value) {
                    ?>

        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>


<?php 
            }
            ?>


<?php 
            $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null);
            ob_start();
            echo htmlspecialchars($_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8');
            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();
            }
            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="blocks/list_templates/grid_list_footer.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "blocks/list_templates/grid_list_footer.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['products_footer']->value) {
                ?>


    <?php 
                echo smarty_function_script(array('src' => "js/tygh/exceptions.js"), $_smarty_tpl);
                ?>

    

    <?php 
                if (!$_smarty_tpl->tpl_vars['no_pagination']->value) {
                    ?>

        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>

    
    <?php 
                if (!$_smarty_tpl->tpl_vars['no_sorting']->value) {
                    ?>

        <?php 
                    echo $_smarty_tpl->getSubTemplate("views/products/components/sorting.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>


    <?php 
                if (!$_smarty_tpl->tpl_vars['show_empty']->value) {
                    ?>

        <?php 
                    echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products_footer']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products"), $_smarty_tpl);
                    ?>

    <?php 
                } else {
                    ?>

        <?php 
                    echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products_footer']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products", 'skip_complete' => true), $_smarty_tpl);
                    ?>

    <?php 
                }
                ?>


    <?php 
                echo smarty_function_math(array('equation' => "100 / x", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "cell_width"), $_smarty_tpl);
                ?>

    <?php 
                if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") {
                    ?>

        <?php 
                    $_smarty_tpl->tpl_vars["cur_number"] = new Smarty_variable(1, null, 0);
                    ?>

    <?php 
                }
                ?>


    
    

    <?php 
                if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') {
                    ?>

        <?php 
                    $_smarty_tpl->tpl_vars['quick_nav_ids'] = new Smarty_variable(fn_fields_from_multi_level($_smarty_tpl->tpl_vars['products_footer']->value, "product_id", "product_id"), null, 0);
                    ?>

    <?php 
                }
                ?>

    <!--div class="grid-list"-->
    <div class="ls_preferate_carousel">
    <div class="lsc_wrap">
    <div class="lsc_slider">
    <!--ul id="ls_fav_ul" class="owl-carousel"-->
     <ul class="recent_carousel_ul lcs_fix">
        <?php 
                $_smarty_tpl->tpl_vars["sproducts"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["sproducts"]->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['splitted_products']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars["sproducts"]->total = $_smarty_tpl->_count($_from);
                $_smarty_tpl->tpl_vars["sproducts"]->iteration = 0;
                foreach ($_from as $_smarty_tpl->tpl_vars["sproducts"]->key => $_smarty_tpl->tpl_vars["sproducts"]->value) {
                    $_smarty_tpl->tpl_vars["sproducts"]->_loop = true;
                    $_smarty_tpl->tpl_vars["sproducts"]->iteration++;
                    $_smarty_tpl->tpl_vars["sproducts"]->last = $_smarty_tpl->tpl_vars["sproducts"]->iteration === $_smarty_tpl->tpl_vars["sproducts"]->total;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sprod"]['last'] = $_smarty_tpl->tpl_vars["sproducts"]->last;
                    $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["product"]->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['sproducts']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration'] = 0;
                    foreach ($_from as $_smarty_tpl->tpl_vars["product"]->key => $_smarty_tpl->tpl_vars["product"]->value) {
                        $_smarty_tpl->tpl_vars["product"]->_loop = true;
                        $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration']++;
                        ?>
<!--div class="ty-column"--><li class="clearfix lsc_li_container"><span style="display: none" class="ls_cart_combination_hash"><?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['cart_id'], ENT_QUOTES, 'UTF-8');
                        ?>
</span><?php 
                        if ($_smarty_tpl->tpl_vars['product']->value) {
                            $_smarty_tpl->tpl_vars["obj_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                            $_smarty_tpl->tpl_vars["obj_id_prefix"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                            echo $_smarty_tpl->getSubTemplate("common/product_data2.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value), 0);
                            ?>
<!--div class="ty-grid-list__item ty-quick-view-button__wrapper"--><?php 
                            $_smarty_tpl->tpl_vars["form_open"] = new Smarty_variable("form_open_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_open']->value];
                            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:product_multicolumns_list"));
                            $_block_repeat = true;
                            echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), null, $_smarty_tpl, $_block_repeat);
                            while ($_block_repeat) {
                                ob_start();
                                ?>
<!--div class="ty-twishlist-item testmulticolumnpre3"><a href="<?php 
                                echo htmlspecialchars(fn_url("wishlist.delete?cart_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['cart_id']), ENT_QUOTES, 'UTF-8');
                                ?>
" class="ty-twishlist-item__remove ty-remove" title="<?php 
                                echo $_smarty_tpl->__("remove");
                                ?>
"><i class="ty-remove__icon ty-icon-cancel-circle"></i></a></div--><div class="ty-grid-list__image testgridlistfooter2"><?php 
                                echo $_smarty_tpl->getSubTemplate("views/products/components/product_icon2.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value, 'show_gallery' => false), 0);
                                $_smarty_tpl->tpl_vars["discount_label"] = new Smarty_variable("discount_label_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['discount_label']->value];
                                ?>
</div><?php 
                                $_block_content = ob_get_clean();
                                $_block_repeat = false;
                                echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), $_block_content, $_smarty_tpl, $_block_repeat);
                            }
                            array_pop($_smarty_tpl->smarty->_tag_stack);
                            $_smarty_tpl->tpl_vars["form_close"] = new Smarty_variable("form_close_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_close']->value];
                            ?>
<!--/div--><form enctype="multipart/form-data"><input type='hidden' name='ls_move_to' value='cart'><input type='hidden' name='ls_cart_combination_hash' value='<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['cart_id'], ENT_QUOTES, 'UTF-8');
                            ?>
'><?php 
                            $_smarty_tpl->tpl_vars["option"] = new Smarty_Variable();
                            $_smarty_tpl->tpl_vars["option"]->_loop = false;
                            $_smarty_tpl->tpl_vars['option_id'] = new Smarty_Variable();
                            $_from = $_smarty_tpl->tpl_vars['product']->value['product_options'];
                            if (!is_array($_from) && !is_object($_from)) {
                                settype($_from, 'array');
                            }
                            foreach ($_from as $_smarty_tpl->tpl_vars["option"]->key => $_smarty_tpl->tpl_vars["option"]->value) {
                                $_smarty_tpl->tpl_vars["option"]->_loop = true;
                                $_smarty_tpl->tpl_vars['option_id']->value = $_smarty_tpl->tpl_vars["option"]->key;
                                ?>
<input type="hidden" name="product_data[<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                                ?>
][product_options][<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['option_id']->value, ENT_QUOTES, 'UTF-8');
                                ?>
]" value="<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['option']->value['value'], ENT_QUOTES, 'UTF-8');
                                ?>
"><?php 
                            }
                            ?>
<input type="hidden" name="result_ids" value="cart_status*,wish_list*,checkout*,account_info*"><input type="hidden" name="redirect_url" value="<?php 
                            echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['config']->value['current_url']), ENT_QUOTES, 'UTF-8');
                            ?>
"><input type="hidden" name="product_data[<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                            ?>
][product_id]" value="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                            ?>
"><!--input type="hidden" name="product_data[2704][product_options][2291]" value="111924"><input type="hidden" name="product_data[2704][product_options][3468]" value="111210"><input type="hidden" name="product_data[2704][product_options][3471]" value="111239"><input type="hidden" name="product_data[2704][product_options][3470]" value="111238"><input type="hidden" name="product_data[2704][product_options][3485]" value="111357"><input type="hidden" name="product_data[2704][product_options][3469]" value="111212"><input type="hidden" name="product_data[2704][product_options][3484]" value="111885"--><input type="hidden" name="appearance[show_product_options]" value="1"><input type="hidden" name="appearance[details_page]" value="1"><input type="hidden" name="additional_info[info_type]" value="D"><input type="hidden" name="additional_info[get_icon]" value="1"><input type="hidden" name="additional_info[get_detailed]" value="1"><input type="hidden" name="additional_info[get_additional]" value=""><input type="hidden" name="additional_info[get_options]" value="1"><input type="hidden" name="additional_info[get_discounts]" value="1"><input type="hidden" name="additional_info[get_features]" value=""><input type="hidden" name="additional_info[get_extra]" value=""><input type="hidden" name="additional_info[get_taxed_prices]" value="1"><input type="hidden" name="additional_info[get_for_one_product]" value="1"><input type="hidden" name="additional_info[detailed_params]" value="1"><input type="hidden" name="additional_info[features_display_on]" value="C"><input type="hidden" name="appearance[show_add_to_cart]" value="1"><input type="hidden" name="appearance[separate_buttons]" value="1"><input type="hidden" name="appearance[show_list_buttons]" value="1"><input type="hidden" name="appearance[but_role]" value="big"><input type="hidden" name="appearance[quick_view]" value=""><input type="hidden" name="is_ajax" value="1"><input type="hidden" name="full_render" value="Y"><input type="hidden" name="dispatch[checkout.add..<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                            ?>
]" value=""><span class="ls_move_to_cart"><img class="ls_move_to_cart" src='../../../../../../../../design/themes/responsive/media/images/images/move_to_cart.png'></span></form><?php 
                        }
                        ?>
</li><!--/div--><?php 
                    }
                    if ($_smarty_tpl->tpl_vars['show_empty']->value && $_smarty_tpl->getVariable('smarty')->value['foreach']['sprod']['last']) {
                        $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable($_smarty_tpl->getVariable('smarty')->value['foreach']['sproducts']['iteration'], null, 0);
                        $_smarty_tpl->_capture_stack[0][] = array("iteration", null, null);
                        ob_start();
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['iteration']->value, ENT_QUOTES, 'UTF-8');
                        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();
                        }
                        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:products_multicolumns_extra"));
                        $_block_repeat = true;
                        echo smarty_block_hook(array('name' => "products:products_multicolumns_extra"), null, $_smarty_tpl, $_block_repeat);
                        while ($_block_repeat) {
                            ob_start();
                            $_block_content = ob_get_clean();
                            $_block_repeat = false;
                            echo smarty_block_hook(array('name' => "products:products_multicolumns_extra"), $_block_content, $_smarty_tpl, $_block_repeat);
                        }
                        array_pop($_smarty_tpl->smarty->_tag_stack);
                        $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable(Smarty::$_smarty_vars['capture']['iteration'], null, 0);
                        if ($_smarty_tpl->tpl_vars['iteration']->value % $_smarty_tpl->tpl_vars['columns']->value != 0) {
                            echo smarty_function_math(array('assign' => "empty_count", 'equation' => "c - it%c", 'it' => $_smarty_tpl->tpl_vars['iteration']->value, 'c' => $_smarty_tpl->tpl_vars['columns']->value), $_smarty_tpl);
                            if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"])) {
                                unset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]);
                            }
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['empty_count']->value) ? count($_loop) : max(0, (int) $_loop);
                            unset($_loop);
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['name'] = "empty_rows";
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = true;
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] = 1;
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] - 1;
                            if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                                if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] == 0) {
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = false;
                                }
                            } else {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = 0;
                            }
                            if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                                for ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration']++) {
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == 1;
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'];
                                    ?>
<!--div class="ty-column<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
"><div class="ty-product-empty"><span class="ty-product-empty__text"><?php 
                                    echo $_smarty_tpl->__("empty");
                                    ?>
</span></div></div--><?php 
                                }
                            }
                        }
                    }
                }
                ?>

    </ul>
    </div>
    <div class="lsc_slider-nav">
        <span class="ls_nav_bullets" style="display: none"></span>
        <button class="lsc_previous_b" data-dir="prev">Previous</button>
        <button class="lsc_next_b"  data-dir="next">Next</button>
    </div>
    </div>
    </div>

    <?php 
                if (!$_smarty_tpl->tpl_vars['no_pagination']->value) {
                    ?>

        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>


<?php 
            }
            ?>


<?php 
            $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null);
            ob_start();
            echo htmlspecialchars($_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8');
            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();
            }
        }
    }