'price_break_special' => $products_prices[$customer_group_id]['special_status'] == 1 && $products_prices[$customer_group_id][$qty]['special'] > 0 ? $currencies->display_price($products_prices[$customer_group_id][$qty]['special'], $products_tax_rate) : '');
                                }       
                              }
                    */
                } else {
                    $xsell_product_price = $currencies->display_price($products_prices[0][0]['regular'], $products_tax_rate);
                    $products_prices[0]['special_status'] == 1 && $products_prices[0][0]['special'] > 0 ? $xsell_product_price_special = $currencies->display_price($products_prices[0][0]['special'], $products_tax_rate) : ($xsell_product_price_special = '');
                    $sizeof = count($products_prices[0]);
                    /*          
                              if ($sizeof > 2) {      
                                $array_keys = array_keys($products_prices[0]);
                                for ($count=2, $n=$sizeof; $count<$n; $count++) {
                                  $qty = $array_keys[$count];
                                  $xsell_price_breaks_array[]=array('qty' => $qty,
                                                                    'price_break' => $currencies->display_price($products_prices[0][$qty]['regular'], $products_tax_rate),
                                                                    'price_break_special' => $products_prices[0]['special_status'] == 1 && $products_prices[0][$qty]['special'] > 0 ? $currencies->display_price($products_prices[0][$qty]['special'], $products_tax_rate) : '');                                      
                                }                                           
                              } 
                    */
                }
                $xsell_products_image = xos_get_product_images($xsell['products_image']);
                $xsell_products_array[] = array('link_filename_product_info' => xos_href_link(FILENAME_PRODUCT_INFO, 'p=' . $xsell['products_id']), 'image' => xos_image(DIR_WS_IMAGES . 'products/small/' . rawurlencode($xsell_products_image['name']), $xsell['products_name']), 'info' => $xsell['products_info'], 'price' => $xsell_product_price, 'price_special' => $xsell_product_price_special, 'price_breaks' => $xsell_price_breaks_array, 'tax_description' => xos_get_products_tax_description($xsell['products_tax_class_id'], $products_tax_rate), 'name' => $xsell['products_name']);
            }
            $smarty->assign('xsell_products', $xsell_products_array);
            $smarty->configLoad('languages/' . $_SESSION['language'] . '.conf', 'xsell_products');
            $output_xsell_products = $smarty->fetch(SELECTED_TPL . '/includes/modules/xsell_products.tpl');
            $smarty->clearAssign('xsell_products');
            $smarty->assign('xsell_products', $output_xsell_products);
        }
    }
}
            }
            $popup_img = DIR_WS_IMAGES . 'products/large/' . $products_img_name['name'];
            $pop_size = @GetImageSize("{$popup_img}");
            if ($pop_size[0] > $pop_width) {
                $pop_width = $pop_size[0];
            }
            if ($pop_size[1] > $pop_height) {
                $pop_height = $pop_size[1];
            }
        }
        if ($small_width_total > $pop_width) {
            $pop_width = $small_width_total;
        }
        $product_image = array_shift($products_image_name);
        $smarty->assign(array('box_width' => (int) ($pop_width + 50), 'box_height' => (int) ($pop_height + $small_height + 55), 'link_product_img' => xos_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . '&img_name=' . rawurlencode($product_image['name']), $request_type), 'link_product_img_noscript' => xos_href_link(FILENAME_IMAGES_WINDOW, 'pID=' . $product_info['products_id'], 'NONSSL', true, false, false, false, false), 'product_img' => xos_image(DIR_WS_IMAGES . 'products/medium/' . rawurlencode($product_image['name']), addslashes($product_info['products_name']), '', '', 'style="margin: 5px;"')));
    }
    $back = sizeof($_SESSION['navigation']->path) - 2;
    if (!empty($_SESSION['navigation']->path[$back])) {
        $get_params_array = $_SESSION['navigation']->path[$back]['get'];
        $get_params_array['rmp'] = '0';
        $back_link = xos_href_link($_SESSION['navigation']->path[$back]['page'], xos_array_to_query_string($get_params_array, array('action', xos_session_name())), $_SESSION['navigation']->path[$back]['mode']);
    } else {
        $back_link = 'javascript:history.go(-1)';
    }
    $smarty->assign(array('form_begin' => xos_draw_form('product_reviews_write', xos_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, xos_get_all_get_params(array('lnc', 'cur', 'tpl', 'action')) . 'action=process', 'SSL'), 'post', 'onsubmit="return checkForm();"', true), 'form_end' => '</form>', 'radio_fields' => xos_draw_radio_field('rating', '1') . ' ' . xos_draw_radio_field('rating', '2') . ' ' . xos_draw_radio_field('rating', '3') . ' ' . xos_draw_radio_field('rating', '4') . ' ' . xos_draw_radio_field('rating', '5'), 'textarea_field' => xos_draw_textarea_field('review', '60', '15'), 'customers_name' => xos_output_string_protected($customer['customers_firstname'] . ' ' . $customer['customers_lastname']), 'products_name' => $product_info['products_name'], 'products_p_unit' => $product_info['products_p_unit'], 'products_model' => $product_info['products_model'], 'products_price' => $product_price, 'products_price_special' => $product_price_special, 'products_price_breaks' => $price_breaks_array, 'products_tax_description' => xos_get_products_tax_description($product_info['products_tax_class_id'], $products_tax_rate), 'td_width_img' => MEDIUM_PRODUCT_IMAGE_MAX_WIDTH + 10, 'link_back' => $back_link, 'link_buy_now' => xos_href_link(basename($_SERVER['PHP_SELF']), xos_get_all_get_params(array('action')) . 'action=buy_now')));
    $smarty->configLoad('languages/' . $_SESSION['language'] . '.conf', 'product_reviews_write');
    $output_product_reviews_write = $smarty->fetch(SELECTED_TPL . '/product_reviews_write.tpl');
    $smarty->assign('central_contents', $output_product_reviews_write);
    $smarty->display(SELECTED_TPL . '/frame.tpl');
    require DIR_WS_INCLUDES . 'application_bottom.php';
}
         $table_inner_array[] = array('case' => 'name', 'products_name' => $listing['products_name'], 'products_link' => xos_href_link(FILENAME_PRODUCT_INFO, 'p=' . $listing['products_id']));
     }
     break;
 case 'PRODUCT_LIST_INFO':
     $table_inner_array[] = array('case' => 'info', 'products_info' => $listing['products_info']);
     $smarty->assign('product_info', true);
     break;
 case 'PRODUCT_LIST_PACKING_UNIT':
     $table_inner_array[] = array('case' => 'packing_unit', 'products_p_unit' => $listing['products_p_unit']);
     break;
 case 'PRODUCT_LIST_MANUFACTURER':
     $table_inner_array[] = array('case' => 'manufacturer', 'manufacturers_name' => $listing['manufacturers_name'], 'manufacturers_link' => xos_href_link(FILENAME_DEFAULT, 'm=' . $listing['manufacturers_id']));
     break;
 case 'PRODUCT_LIST_PRICE':
     $popup_content_id = xos_get_delivery_times_values($listing['products_delivery_time_id'], 'popup_content_id');
     $table_inner_array[] = array('case' => 'price', 'price_breaks' => $price_breaks, 'products_id' => $listing['products_id'], 'products_delivery_time' => xos_get_delivery_times_values($listing['products_delivery_time_id']), 'link_filename_popup_content_products_delivery_time' => $popup_content_id > 0 ? xos_href_link(FILENAME_POPUP_CONTENT, 'co=' . $popup_content_id . '&p=' . $listing['products_id'], $request_type) : '', 'tax_description' => xos_get_products_tax_description($listing['products_tax_class_id'], $products_tax_rate), 'price' => $product_price, 'price_special' => $product_price_special, 'price_breaks' => $price_breaks_array);
     break;
 case 'PRODUCT_LIST_QUANTITY':
     $table_inner_array[] = array('case' => 'quantity', 'products_quantity' => $listing['products_quantity'] > 0 ? $listing['products_quantity'] : '<span class="red-mark">' . $listing['products_quantity'] . '</span>');
     break;
 case 'PRODUCT_LIST_WEIGHT':
     $table_inner_array[] = array('case' => 'weight', 'products_weight' => $listing['products_weight']);
     break;
 case 'PRODUCT_LIST_IMAGE':
     $products_image_name = xos_get_product_images($listing['products_image']);
     if (!empty($_GET['m'])) {
         $table_inner_array[] = array('case' => 'image', 'products_image_small' => xos_lazy_image(DIR_WS_IMAGES . 'products/small/' . rawurlencode($products_image_name['name']), $listing['products_name'], '', '', 'class="img-responsive center-block lazy" style="display: none;"') . '<noscript>' . xos_image(DIR_WS_IMAGES . 'products/small/' . rawurlencode($products_image_name['name']), $listing['products_name'], '', '', 'class="img-responsive center-block"') . '</noscript>', 'products_image_medium' => xos_lazy_image(DIR_WS_IMAGES . 'products/medium/' . rawurlencode($products_image_name['name']), $listing['products_name'], '', '', 'class="img-responsive center-block lazy" style="display: none;"') . '<noscript>' . xos_image(DIR_WS_IMAGES . 'products/medium/' . rawurlencode($products_image_name['name']), $listing['products_name'], '', '', 'class="img-responsive center-block"') . '</noscript>', 'products_link_image' => xos_href_link(FILENAME_PRODUCT_INFO, 'm=' . $_GET['m'] . '&p=' . $listing['products_id']));
     } else {
         $table_inner_array[] = array('case' => 'image', 'products_image_small' => xos_lazy_image(DIR_WS_IMAGES . 'products/small/' . rawurlencode($products_image_name['name']), $listing['products_name'], '', '', 'class="img-responsive center-block lazy" style="display: none;"') . '<noscript>' . xos_image(DIR_WS_IMAGES . 'products/small/' . rawurlencode($products_image_name['name']), $listing['products_name'], '', '', 'class="img-responsive center-block"') . '</noscript>', 'products_image_medium' => xos_lazy_image(DIR_WS_IMAGES . 'products/medium/' . rawurlencode($products_image_name['name']), $listing['products_name'], '', '', 'class="img-responsive center-block lazy" style="display: none;"') . '<noscript>' . xos_image(DIR_WS_IMAGES . 'products/medium/' . rawurlencode($products_image_name['name']), $listing['products_name'], '', '', 'class="img-responsive center-block"') . '</noscript>', 'products_link_image' => xos_href_link(FILENAME_PRODUCT_INFO, 'p=' . $listing['products_id']));
     }
     $smarty->assign('product_image', true);
                }
            } else {
                $product_price = $currencies->display_price($products_prices[0][0]['regular'], $products_tax_rate);
                $products_prices[0]['special_status'] == 1 && $products_prices[0][0]['special'] > 0 ? $product_price_special = $currencies->display_price($products_prices[0][0]['special'], $products_tax_rate) : ($product_price_special = '');
                $sizeof = count($products_prices[0]);
                if ($sizeof > 2) {
                    $array_keys = array_keys($products_prices[0]);
                    for ($count = 2, $n = $sizeof; $count < $n; $count++) {
                        $qty = $array_keys[$count];
                        $price_breaks_array[] = array('qty' => $qty, 'price_break' => $currencies->display_price($products_prices[0][$qty]['regular'], $products_tax_rate), 'price_break_special' => $products_prices[0]['special_status'] == 1 && $products_prices[0][$qty]['special'] > 0 ? $currencies->display_price($products_prices[0][$qty]['special'], $products_tax_rate) : '');
                    }
                }
            }
            $product_image = xos_get_product_images($products_new['products_image']);
            $popup_content_id = xos_get_delivery_times_values($products_new['products_delivery_time_id'], 'popup_content_id');
            $products_new_array[] = array('link_filename_product_info' => xos_href_link(FILENAME_PRODUCT_INFO, 'p=' . $products_new['products_id']), 'href_buy_now' => xos_href_link(FILENAME_PRODUCTS_NEW, xos_get_all_get_params(array('action')) . 'action=buy_now&p=' . $products_new['products_id']), 'date_added' => xos_date_long($products_new['products_date_added']), 'image' => xos_image(DIR_WS_IMAGES . 'products/small/' . rawurlencode($product_image['name']), $products_new['products_name'], '', '', 'class="img-responsive"'), 'td_width_img' => SMALL_PRODUCT_IMAGE_MAX_WIDTH + 10, 'manufacturer' => $products_new['manufacturers_name'], 'tax_description' => xos_get_products_tax_description($products_new['products_tax_class_id'], $products_tax_rate), 'products_delivery_time' => xos_get_delivery_times_values($products_new['products_delivery_time_id']), 'link_filename_popup_content_products_delivery_time' => $popup_content_id > 0 ? xos_href_link(FILENAME_POPUP_CONTENT, 'co=' . $popup_content_id . '&p=' . $products_new['products_id'], $request_type) : '', 'price' => $product_price, 'price_special' => $product_price_special, 'price_breaks' => $price_breaks_array, 'info' => $products_new['products_info'], 'products_p_unit' => $products_new['products_p_unit'], 'products_model' => $products_new['products_model'], 'products_quantity' => $products_new['products_quantity'], 'name' => $products_new['products_name']);
            unset($price_breaks_array);
        }
        if (PREV_NEXT_BAR_LOCATION == '1' || PREV_NEXT_BAR_LOCATION == '3') {
            $smarty->assign('nav_bar_top', true);
        }
        if (PREV_NEXT_BAR_LOCATION == '2' || PREV_NEXT_BAR_LOCATION == '3') {
            $smarty->assign('nav_bar_bottom', true);
        }
        $smarty->assign('new_products', true);
    }
    $smarty->assign(array('nav_bar_number' => $products_new_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS_NEW), 'nav_bar_result' => '<nav><ul class="pagination">' . $products_new_split->display_links(MAX_DISPLAY_PAGE_LINKS, xos_get_all_get_params(array('page', 'info', 'lnc', 'cur', 'tpl', 'x', 'y'))) . '</ul></nav>', 'interval_days_back' => INTERVAL_DAYS_BACK, 'products_new' => $products_new_array));
    $smarty->configLoad('languages/' . $_SESSION['language'] . '.conf', 'products_new');
}
$output_products_new = $smarty->fetch(SELECTED_TPL . '/products_new.tpl', $cache_id);
$smarty->assign('central_contents', $output_products_new);
     if ($sizeof > 2) {
         $array_keys = array_keys($products_prices[0]);
         for ($count = 2, $n = $sizeof; $count < $n; $count++) {
             $qty = $array_keys[$count];
             $price_breaks_array[] = array('qty' => $qty, 'price_break' => $currencies->display_price($products_prices[0][$qty]['regular'], $products_tax_rate), 'price_break_special' => $products_prices[0]['special_status'] == 1 && $products_prices[0][$qty]['special'] > 0 ? $currencies->display_price($products_prices[0][$qty]['special'], $products_tax_rate) : '');
         }
     }
 }
 $products_description_array = array();
 $description = preg_split("#<div[^>]*page-break-after[^>]*>.*?</div>#is", stripslashes($product_info['products_description']));
 $tab_label = explode(',', $product_info['products_description_tab_label']);
 for ($i = 0, $n = sizeof($tab_label); $i < $n; $i++) {
     $products_description_array[] = array('tab_label' => trim($tab_label[$i]), 'description' => $description[$i]);
 }
 $popup_content_id = xos_get_delivery_times_values($product_info['products_delivery_time_id'], 'popup_content_id');
 $smarty->assign(array('product_check' => true, 'products_name' => $product_info['products_name'], 'products_p_unit' => $product_info['products_p_unit'], 'products_delivery_time' => xos_get_delivery_times_values($product_info['products_delivery_time_id']), 'link_filename_popup_content_products_delivery_time' => $popup_content_id > 0 ? xos_href_link(FILENAME_POPUP_CONTENT, 'co=' . $popup_content_id . '&p=' . $product_info['products_id'], $request_type) : '', 'products_model' => $product_info['products_model'], 'products_weight' => $product_info['products_weight'], 'products_quantity' => STOCK_CHECK == 'true' ? $product_info['products_quantity'] > 0 ? $product_info['products_quantity'] : '<span class="red-mark">' . $product_info['products_quantity'] . '</span>' : '', 'products_price' => $product_price, 'products_price_special' => $product_price_special, 'products_price_breaks' => $price_breaks_array, 'products_tax_description' => xos_get_products_tax_description($product_info['products_tax_class_id'], $products_tax_rate), 'products_description' => $products_description_array));
 $products_image_name = xos_get_product_images($product_info['products_image'], 'all');
 if (xos_not_null($products_image_name)) {
     $pop_width = 0;
     $pop_height = 0;
     $small_height = 0;
     $small_width_total = 0;
     foreach ($products_image_name as $products_img_name) {
         if (count($products_image_name) > 1) {
             $small_img = DIR_WS_IMAGES . 'products/small/' . $products_img_name['name'];
             $small_size = @GetImageSize("{$small_img}");
             $small_width_total += $small_size[0] + 10;
             if ($small_size[1] + 10 > $small_height) {
                 $small_height = $small_size[1] + 10;
             }
         }
Beispiel #6
0
                    $array_keys = array_keys($products_prices[$customer_group_id]);
                    for ($count=2, $n=$sizeof; $count<$n; $count++) {
                      $qty = $array_keys[$count];
                      $specials_price_breaks_array[]=array('qty' => $qty,
                                                           'price_break' => $currencies->display_price($products_prices[$customer_group_id][$qty]['regular'], $products_tax_rate),
                                                           'price_break_special' => $products_prices[$customer_group_id]['special_status'] == 1 && $products_prices[$customer_group_id][$qty]['special'] > 0 ? $currencies->display_price($products_prices[$customer_group_id][$qty]['special'], $products_tax_rate) : '');
                    }       
                  }
            */
        } else {
            $specials_product_price = $currencies->display_price($products_prices[0][0]['regular'], $products_tax_rate);
            $products_prices[0]['special_status'] == 1 && $products_prices[0][0]['special'] > 0 ? $specials_product_price_special = $currencies->display_price($products_prices[0][0]['special'], $products_tax_rate) : ($specials_product_price_special = '');
            $sizeof = count($products_prices[0]);
            /*      
                  if ($sizeof > 2) {      
                    $array_keys = array_keys($products_prices[0]);
                    for ($count=2, $n=$sizeof; $count<$n; $count++) {
                      $qty = $array_keys[$count];
                      $specials_price_breaks_array[]=array('qty' => $qty,
                                                           'price_break' => $currencies->display_price($products_prices[0][$qty]['regular'], $products_tax_rate),
                                                           'price_break_special' => $products_prices[0]['special_status'] == 1 && $products_prices[0][$qty]['special'] > 0 ? $currencies->display_price($products_prices[0][$qty]['special'], $products_tax_rate) : '');                                      
                    }                                           
                  } 
            */
        }
        $random_special_product_image = xos_get_product_images($random_product['products_image']);
        $smarty->assign(array('box_specials_link_filename_specials' => xos_href_link(FILENAME_SPECIALS), 'box_specials_link_filename_product_info' => xos_href_link(FILENAME_PRODUCT_INFO, 'p=' . $random_product["products_id"]), 'box_specials_product_image' => xos_image(DIR_WS_IMAGES . 'products/small/' . rawurlencode($random_special_product_image['name']), $random_product['products_name']), 'box_specials_product_name' => $random_product['products_name'], 'box_specials_product_price' => $specials_product_price, 'box_specials_product_price_special' => $specials_product_price_special, 'box_specials_products_tax_description' => xos_get_products_tax_description($random_product['products_tax_class_id'], $products_tax_rate), 'box_specials_product_price_breaks' => $specials_price_breaks_array));
        $output_specials = $smarty->fetch(SELECTED_TPL . '/includes/boxes/specials.tpl');
        $smarty->assign('box_specials', $output_specials);
    }
}
             $popup_img = DIR_WS_IMAGES . 'products/large/' . $products_img_name['name'];
             $pop_size = @GetImageSize("{$popup_img}");
             if ($pop_size[0] > $pop_width) {
                 $pop_width = $pop_size[0];
             }
             if ($pop_size[1] > $pop_height) {
                 $pop_height = $pop_size[1];
             }
         }
         if ($small_width_total > $pop_width) {
             $pop_width = $small_width_total;
         }
         $product_image = array_shift($products_image_name);
         $smarty->assign(array('box_width' => (int) ($pop_width + 50), 'box_height' => (int) ($pop_height + $small_height + 55), 'link_product_img' => xos_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $review['products_id'] . '&img_name=' . rawurlencode($product_image['name'])), 'link_product_img_noscript' => xos_href_link(FILENAME_IMAGES_WINDOW, 'pID=' . $review['products_id'], 'NONSSL', true, false, false, false, false), 'product_img' => xos_image(DIR_WS_IMAGES . 'products/medium/' . rawurlencode($product_image['name']), addslashes($review['products_name']), '', '', 'style="margin: 5px;"')));
     }
     $smarty->assign(array('date_added' => xos_date_long($review['date_added']), 'review_rating' => $review['reviews_rating'], 'review_text' => xos_break_string(nl2br(xos_output_string_protected($review['reviews_text'])), 60, '-<br />'), 'stars_image' => xos_image(DIR_WS_IMAGES . 'catalog/templates/' . SELECTED_TPL . '/stars_' . $review['reviews_rating'] . '.gif', sprintf(TEXT_OF_5_STARS, $review['reviews_rating'])), 'customers_name' => xos_output_string_protected($review['customers_name']), 'products_name' => $review['products_name'], 'products_p_unit' => $review['products_p_unit'], 'products_model' => $review['products_model'], 'products_quantity' => $review['products_quantity'], 'products_price' => $product_price, 'products_price_special' => $product_price_special, 'products_price_breaks' => $price_breaks_array, 'products_tax_description' => xos_get_products_tax_description($review['products_tax_class_id'], $products_tax_rate), 'td_width_img' => MEDIUM_PRODUCT_IMAGE_MAX_WIDTH + 10, 'link_filename_product_reviews_write' => xos_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, xos_get_all_get_params(array('lnc', 'cur', 'tpl', 'rmp')), 'SSL'), 'link_buy_now' => xos_href_link(basename($_SERVER['PHP_SELF']), xos_get_all_get_params(array('action')) . 'action=buy_now')));
     $smarty->configLoad('languages/' . $_SESSION['language'] . '.conf', 'product_reviews_info');
 }
 // link_back will not be cached (nocache)
 $back = sizeof($_SESSION['navigation']->path) - 2;
 if (!empty($_SESSION['navigation']->path[$back])) {
     $get_params_array = $_SESSION['navigation']->path[$back]['get'];
     $get_params_array['rmp'] = '0';
     $smarty->assign('link_back', xos_href_link($_SESSION['navigation']->path[$back]['page'], xos_array_to_query_string($get_params_array, array('action', xos_session_name())), $_SESSION['navigation']->path[$back]['mode']), true);
 } else {
     $smarty->assign('link_back', 'javascript:history.go(-1)', true);
 }
 $output_product_reviews_info = $smarty->fetch(SELECTED_TPL . '/product_reviews_info.tpl', $cache_id);
 $smarty->assign('central_contents', $output_product_reviews_info);
 $smarty->caching = 0;
 $smarty->display(SELECTED_TPL . '/frame.tpl');
             $popup_img = DIR_WS_IMAGES . 'products/large/' . $products_img_name['name'];
             $pop_size = @GetImageSize("{$popup_img}");
             if ($pop_size[0] > $pop_width) {
                 $pop_width = $pop_size[0];
             }
             if ($pop_size[1] > $pop_height) {
                 $pop_height = $pop_size[1];
             }
         }
         if ($small_width_total > $pop_width) {
             $pop_width = $small_width_total;
         }
         $product_image = array_shift($products_image_name);
         $smarty->assign(array('box_width' => (int) ($pop_width + 50), 'box_height' => (int) ($pop_height + $small_height + 55), 'link_product_img' => xos_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . '&img_name=' . rawurlencode($product_image['name'])), 'link_product_img_noscript' => xos_href_link(FILENAME_IMAGES_WINDOW, 'pID=' . $product_info['products_id'], 'NONSSL', true, false, false, false, false), 'product_img' => xos_image(DIR_WS_IMAGES . 'products/medium/' . rawurlencode($product_image['name']), addslashes($product_info['products_name']), '', '', 'style="margin: 5px;"')));
     }
     $smarty->assign(array('products_name' => $product_info['products_name'], 'products_p_unit' => $product_info['products_p_unit'], 'products_model' => $product_info['products_model'], 'products_quantity' => $product_info['products_quantity'], 'products_price' => $product_price, 'products_price_special' => $product_price_special, 'products_price_breaks' => $price_breaks_array, 'products_tax_description' => xos_get_products_tax_description($product_info['products_tax_class_id'], $products_tax_rate), 'td_width_img' => MEDIUM_PRODUCT_IMAGE_MAX_WIDTH + 10, 'link_filename_product_reviews_write' => xos_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, xos_get_all_get_params(array('lnc', 'cur', 'tpl', 'rmp')), 'SSL'), 'link_buy_now' => xos_href_link(basename($_SERVER['PHP_SELF']), xos_get_all_get_params(array('action')) . 'action=buy_now'), 'nav_bar_number' => $reviews_split->display_count(TEXT_DISPLAY_NUMBER_OF_REVIEWS), 'nav_bar_result' => TEXT_RESULT_PAGE . ' ' . $reviews_split->display_links(MAX_DISPLAY_PAGE_LINKS, xos_get_all_get_params(array('page', 'info', 'lnc', 'cur', 'tpl', 'x', 'y'))), 'nav_bar_result_in_pull_down_menu' => $reviews_split->display_links_in_pull_down_menu(MAX_DISPLAY_PAGE_LINKS, xos_get_all_get_params(array('page', 'info', 'lnc', 'cur', 'tpl', 'x', 'y')))));
     $smarty->configLoad('languages/' . $_SESSION['language'] . '.conf', 'product_reviews');
 }
 // link_back will not be cached (nocache)
 $back = sizeof($_SESSION['navigation']->path) - 2;
 if (!empty($_SESSION['navigation']->path[$back])) {
     $get_params_array = $_SESSION['navigation']->path[$back]['get'];
     $get_params_array['rmp'] = '0';
     $smarty->assign('link_back', xos_href_link($_SESSION['navigation']->path[$back]['page'], xos_array_to_query_string($get_params_array, array('action', xos_session_name())), $_SESSION['navigation']->path[$back]['mode']), true);
 } else {
     $smarty->assign('link_back', 'javascript:history.go(-1)', true);
 }
 $output_product_reviews = $smarty->fetch(SELECTED_TPL . '/product_reviews.tpl', $cache_id);
 $smarty->assign('central_contents', $output_product_reviews);
 $smarty->caching = 0;
 $smarty->display(SELECTED_TPL . '/frame.tpl');