[TEP-COMMIT] [CVS catalog] Fix problem with product names on product reviews page
anonymous-OfajU3CKLf1/[email protected] 3 May 2004 19:43:26 -0000
| Newsgroups | gmane.comp.web.oscommerce.cvs |
|---|---|
| Message-ID | <[email protected]> |
Commit in catalog/catalog/includes/boxes on MAIN
whats_new.php +6 -6 1.34 -> 1.35
Fix problem with product names on product reviews page
----------
catalog /catalog /includes /boxes
whats_new.php 1.34 -> 1.35
diff -u -r1.34 -r1.35
--- whats_new.php 2004/02/16 07:26:55 1.34
+++ whats_new.php 2004/05/03 19:43:24 1.35
@@ -20,23 +20,23 @@
<tr>
<td>
<?php
- $products_name = tep_get_products_name($Qwhatsnew->valueInt('products_id'));
- $specials_price = tep_get_products_special_price($Qwhatsnew->valueInt('products_id'));
+ $new_products_name = tep_get_products_name($Qwhatsnew->valueInt('products_id'));
+ $new_products_specials_price = tep_get_products_special_price($Qwhatsnew->valueInt('products_id'));
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_WHATS_NEW);
new infoBoxHeading($info_box_contents, false, false, tep_href_link(FILENAME_PRODUCTS_NEW));
- $products_price = $osC_Currencies->displayPrice($Qwhatsnew->valueDecimal('products_price'), $Qwhatsnew->valueInt('products_tax_class_id'));
+ $new_products_price = $osC_Currencies->displayPrice($Qwhatsnew->valueDecimal('products_price'), $Qwhatsnew->valueInt('products_tax_class_id'));
- if (tep_not_null($specials_price)) {
- $products_price = '<s>' . $products_price . '</s> <span class="productSpecialPrice">' . $osC_Currencies->displayPrice($specials_price, $Qwhatsnew->valueInt('products_tax_class_id')) . '</span>';
+ if (tep_not_null($new_products_specials_price)) {
+ $new_products_price = '<s>' . $new_products_price . '</s> <span class="productSpecialPrice">' . $osC_Currencies->displayPrice($new_products_specials_price, $Qwhatsnew->valueInt('products_tax_class_id')) . '</span>';
}
$info_box_contents = array();
$info_box_contents[] = array('align' => 'center',
- 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $Qwhatsnew->valueInt('products_id')) . '">' . tep_image(DIR_WS_IMAGES . $Qwhatsnew->value('products_image'), $products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $Qwhatsnew->valueInt('products_id')) . '">' . $products_name . '</a><br>' . $products_price);
+ 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $Qwhatsnew->valueInt('products_id')) . '">' . tep_image(DIR_WS_IMAGES . $Qwhatsnew->value('products_image'), $new_products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $Qwhatsnew->valueInt('products_id')) . '">' . $new_products_name . '</a><br>' . $new_products_price);
new infoBox($info_box_contents);
?>
CVSspam 0.2.8
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click