brazillia Posted March 20, 2006 Posted March 20, 2006 Hi all, I've been fiddling around to try and get several issues sorted but I can't quite get my head around it. I have sort order issues with my products (I don't want them to be alphabetical) so I have assigned them a number in their title and set a class in my stylesheet to make that part of the title text invisible. The problem is that the code, for example "<h3>1.</h3>Name of product", appears as the alt tag for the image on the page where it displays all the items in a category. I have the Header Tags contribution installed and I am wondering if there is a way to use that as the alt tag? If so, where would I find the code to change? If not, is there another way to sort items within a category in a particular order (as you can with the categories themselves)? This one may be a little difficult to follow because I can't figure out the right terminology. I have a category which has other categories within it (nested, I guess). When you click the top level category from the categories info box you get a list of the nested categories with their images shown three across. I would like to have an image there but not the text underneath (I want to use an image of the text in a nice font as opposed to plain text). Is this possible? I'm assuming I just have to remove the relevant code but I couldn't find it. Is it in the catalog/index.php file? When I click that sub-category image I then get a new page with the list of products within that category. It automatically brings up the category image in the top right corner but since I have the header tags contribution installed it already has the text I want at top left. Is there a way to remove the category image from the products list page? Please excuse my very convoluted questions but it's been a long day and I'm beginning to lose my focus. I've managed to figure out quite a lot of things already but these three have me stumped. Any help would be very well appreciated. Cheers
Guest Posted March 20, 2006 Posted March 20, 2006 !. you would do better to add a 'sort_order' filed to your products table and use that :) 2. This is the code to remove in index.php (careful!): '<br>' . $categories['categories_name'] . That and no more, no less :) 3. This code can be removed to remove the category image: // 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> Matti
brazillia Posted March 20, 2006 Author Posted March 20, 2006 Thanks Matti - Is there a reason then that I shouldn't remove the code in number 2 (since you say to be careful)? Will there be a knock on somewhere else or is there only one page that this code isused? Steve
Recommended Posts
Archived
This topic is now archived and is closed to further replies.