Code:if (eregi("block-OSCSpecials.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
global $cPath, $languages_id, $random_product;
$currencies = new currencies();
$content ='';
if ($random_product = tep_random_select("select p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from " . "products" . " p, " . "products_description" . " pd, " . "specials" . " s where p.products_status = '1' and p.products_id = s.products_id and pd.products_id = s.products_id and pd.language_id = '" . $languages_id . "' and s.status = '1' order by s.specials_date_added DESC limit " . MAX_RANDOM_SELECT_SPECIALS)) {
$content = '<center><a href="'.tep_href_link("product_info.php", 'products_id=' . $random_product["products_id"], 'NONSSL') . '">' . tep_image('modules/catalog/images/'.$random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link('product_info.php', 'products_id=' . $random_product['products_id'], 'NONSSL') . '">' . $random_product['products_name'] /*. '</a><br><s>'. $currencies->display_price($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</s><br><span class="productSpecialPrice">' . $currencies->display_price($random_product['specials_new_products_price'], tep_get_tax_rate($random_product['products_tax_class_id']))*/ . '</span></center>';
}
?>
|