Quote:
|
Originally Posted by Squirrel My store is almost done, but there are still some things i don't like but i can't seem to figure out myself. So i'll hope someone will gimme a little hand on these ones
1 ) I wanna get rid of the product image on the top ( The one with the circle around it )
2 ) The number 8 just under the image is the quantity, but why doesn't is say quatity ? It's very unclear for the moment. who knows that that's the quantity ? I wanna add text to it like "8 On Stock" or something like that.
Thanks in advance |
For the upper right image (I removed this, too), go to catalog/templates/your_template_folder/contents/index_products.tpl.php and look for this code:
Code:
// Get the right image for the top-right
$image = DIR_WS_IMAGES . 'table_background_list.gif';
if (isset($HTTP_GET_VARS['manufacturers_id'])) {
$image = tep_db_query("select manufacturers_image from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'");
$image = tep_db_fetch_array($image);
$image = $image['manufacturers_image'];
} elseif ($current_category_id) {
$image = tep_db_query("select categories_image from " . TABLE_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");
$image = tep_db_fetch_array($image);
$image = $image['categories_image'];
}
?>
<td align="right"><?php echo tep_image(DIR_WS_IMAGES . $image, HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
</tr>
And change it to this:
Code:
// Get the right image for the top-right
/* Don't do the query
$image = DIR_WS_IMAGES . 'table_background_list.gif';
if (isset($HTTP_GET_VARS['manufacturers_id'])) {
$image = tep_db_query("select manufacturers_image from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'");
$image = tep_db_fetch_array($image);
$image = $image['manufacturers_image'];
} elseif ($current_category_id) {
$image = tep_db_query("select categories_image from " . TABLE_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");
$image = tep_db_fetch_array($image);
$image = $image['categories_image'];
}
*/
?>
<!-- removed image <td align="right"><?php echo tep_image(DIR_WS_IMAGES . $image, HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> -->
</tr>
As for the quantity, look in either catalog/modules/product_listing_col.php or product_listing.php (looks like you're using listing by columns). You should find this code:
Code:
case 'PRODUCT_LIST_QUANTITY':
$lc_align = 'right';
$lc_text = '&nbsp;' . $listing[$x]['products_quantity'] . '&nbsp;<br>';
break;
You could modify it like this:
Code:
case 'PRODUCT_LIST_QUANTITY':
$lc_align = 'right';
$lc_text = '&nbsp;' . $listing[$x]['products_quantity'] . '&nbsp;in stock<br>';
break;