Ecco il contenuto del file new products... ancora non riesco a capire quel'è la parte di codice che devo eliminare per non far vedere più la piccola descrizione sull'anteprima dei prodotti....
mi date una mano ?
Codice: Seleziona tutto
<!-- new_products //-->
<table border="0" cellpadding="0" cellspacing="0" width="300">
<tr>
<td width="1" background="images/vpoint.gif" align="left" valign="top" rowspan="5"><img src="images/vpoint.gif" width="1" height="3" alt=""></td>
<td height="1" background="images/hpoint.gif" align="left"><img src="images/hpoint.gif" width="3" height="1" alt=""></td>
<td width="1" background="images/vpoint.gif" align="left" valign="top" rowspan="5"><img src="images/vpoint.gif" width="1" height="3" alt=""></td>
</tr>
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => "<div style='height:20px; padding-right:10px;color:#E80377; font-weight:bold; font-size:14px; text-align:right;'><img src='images/sign_what_new.gif' width='21' height='17' style='margin-top:1px;'> WHAT'S NEW</div>");
new contentBoxHeading($info_box_contents);?>
</td>
</tr>
<tr>
<td height="1" background="images/hpoint.gif" align="left"><img src="images/hpoint.gif" width="3" height="1" alt=""></td>
</tr>
<tr>
<td>
<?php if ( (!isset($new_products_category_id)) || ($new_products_category_id == '0') ) {
$new_products_query = tep_db_query("select p.products_id, p.products_image, p.products_tax_class_id, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where products_status = '1' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS);
} else {
$new_products_query = tep_db_query("select distinct p.products_id, p.products_image, p.products_tax_class_id, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c where p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.parent_id = '" . (int)$new_products_category_id . "' and p.products_status = '1' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS);
}
$row = 0;
$col = 0;
$info_box_contents = array();
$strbegin='';
$strend='';
while ($new_products = tep_db_fetch_array($new_products_query)) {
$new_products['products_name'] = tep_get_products_name($new_products['products_id']);
$sql = 'SELECT `products_description` FROM `products_description` WHERE products_id ='.$new_products['products_id'].' && language_id='.(int)$languages_id;
$description_query = tep_db_query($sql);
$description = mysql_fetch_array($description_query, MYSQL_ASSOC);
$description['products_description'] = substr($description['products_description'], 0, 65);
$desc_len = strlen($description['products_description']);
$description['products_description'][$desc_len-1] = '.';
$description['products_description'][$desc_len-2] = '.';
$description['products_description'][$desc_len-3] = '.';
if (($col == 0 && $row == 1) || ($col == 2 && $row == 1)) {
$info_box_contents[$row][$col] = array('align' => 'center',
'params' => '',
'text' => '');
}
elseif ($col == 1 && $row == 1) {
$info_box_contents[$row][$col] = array('align' => '',
'params' => '',
'text' => '');
}
else {
$info_box_contents[$row][$col] = array('align' => 'center',
'params' => ' width="50%" height="166" style=" "',
'text' => '<div><div class="image"><a href="'. tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) .'">'. tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="left"') . '</a></div><div class="buy">'.tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')).'
<span class="gray">Product: </span><span class="lil">'.$currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])).'</span><br/>
<a class="more" href="'.tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']).'">more</a> <span style="color:#E80377; font-weight:bold;">|</span>
'. tep_draw_hidden_field('products_id', $new_products['products_id']) . tep_image_submit('add.gif', IMAGE_BUTTON_IN_CART) .'</form></div></div>'); }
$col ++;
if ($col > 1) {
$col = 0;
// $row ++;
}
}
new contentBox($info_box_contents, 0);
?>
</td>
</tr>
<tr>
<td height="1" background="images/hpoint.gif" align="left"><img src="images/hpoint.gif" width="3" height="1" alt=""></td>
</tr>
</table>
<!-- new_products_eof //-->