if (OL_COMMERCE) {
                    $olPrice = round($price, CURRENCY_DECIMAL_PLACES);
                    include_once DIR_FS_INC . 'olc_get_vpe_and_baseprice_info.inc.php';
                    $vpe = array();
                    olc_get_vpe_and_baseprice_info($vpe, $best_sellers, $olPrice);
                    $vpe = $vpe['PRODUCTS_VPE'];
                    include DIR_FS_INC . 'olc_get_price_disclaimer.inc.php';
                    $tax_info = $price_disclaimer;
                    if (CUSTOMER_SHOW_PRICE_TAX) {
                        $price = olc_add_tax($price, $tax_class);
                    }
                    $price = olc_format_price($price, true, true);
                } else {
                    if (!is_object($product)) {
                        $product = new product();
                    }
                    $vpe = $product->getVPEtext($best_sellers, $price);
                    $price = $xtPrice->xtcFormat($price, true, $tax_class, true, false);
                    $tax_info = $main->getTaxInfo(olc_get_tax_rate($tax_class));
                    $picture_disclaimer = EMPTY_STRING;
                }
            }
            $box_content[] = array('ID' => olc_row_number_format($rows), 'NAME' => $best_sellers['products_name'], 'PRICE' => $price, 'VPE' => $vpe, 'TAX_INFO' => $tax_info, 'SHORT_DESCRIPTION' => $products_short_description, 'PICTURE_DISCLAIMER' => $picture_disclaimer, 'IMAGE' => $image, 'LINK' => olc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers['products_id']));
        }
    }
    $box_smarty->assign('SHOW_MARQUEE', $show_marquee);
    $box_smarty->assign('entries_count', sizeof($box_content));
    $box_smarty->assign('box_content', $box_content);
    $box_best_sellers = $box_smarty->fetch(CURRENT_TEMPLATE_BOXES . 'box_bestsellers' . HTML_EXT, $cacheid);
    $smarty->assign('box_BESTSELLERS', $box_best_sellers);
}
         $olPrice = round($random_products_price, CURRENCY_DECIMAL_PLACES);
         include_once DIR_FS_INC . 'olc_get_vpe_and_baseprice_info.inc.php';
         $vpe = array();
         olc_get_vpe_and_baseprice_info($vpe, $random_product, $olPrice);
         $vpe = $vpe['PRODUCTS_VPE'];
         include DIR_FS_INC . 'olc_get_price_disclaimer.inc.php';
         $tax_info = $price_disclaimer;
         if (CUSTOMER_SHOW_PRICE_TAX) {
             $random_products_price = olc_add_tax($random_products_price, $tax_class);
         }
     } else {
         $random_products_price_real = $random_products_price;
         if (!is_object($product)) {
             $product = new product();
         }
         $vpe = $product->getVPEtext($random_product, $random_products_price);
         $random_products_price = $xtPrice->xtcFormat($random_products_price, true, $tax_class, true, false);
         $tax_info = $main->getTaxInfo(olc_get_tax_rate($tax_class));
         $picture_disclaimer = EMPTY_STRING;
     }
 }
 $categories_id = $random_product['categories_id'];
 $products_name = $random_product['products_name'];
 if ($products_name) {
     $category_path = olc_get_path($categories_id);
     $categories_name = $random_product['categories_name'];
     $image = $random_product['products_image'];
     if ($image) {
         $image = olc_image(DIR_WS_THUMBNAIL_IMAGES . $image, $products_name);
     }
     $products_id_par = 'products_id=' . $products_id;