Zarathud Posted July 26, 2003 Posted July 26, 2003 1. Is it possible to alternate the row background color in the product listing - the way it looks in the product attributes page of the admin panel? 2. I have a product that has 5 options and each option pull-down has 43 items. Is there a way to alphabetically sort the items in the pull-down menu? Right now they are in no particular order and it makes it a little difficult to find a specific option with that many itmes. Thanks.
Guest Posted July 26, 2003 Posted July 26, 2003 For 2, you could look here. For 1, check out the stylesheet.css definitions for productListing-Even and productListing-Odd. You will want to change one or both of the background colors. Good luck, Matt
joekalis Posted July 27, 2003 Posted July 27, 2003 I'm curious about that as well, but the link you supplied for the pulldown solution doesn't work. Somewhat similarly, I was curious if there is anyway to put a blank line (line break) inbetween Categories Such as at www.myredbarn.com, could I get a blank line inbetween the "Cricket Creations" and "Automotive" categories. thank you my signature was banned. so now i have this.
Zarathud Posted July 27, 2003 Author Posted July 27, 2003 That's odd, the link was working earlier. The solution was to add a line to product_info.php. Search for this function: $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'"); and replace it with: $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "' order by pov.products_options_values_name asc"); Basically you're just adding that "order by..." line at the end. To get a space in the categories box open catalog/includes/boxes/categories.php and search for this line: $categories_string .= '<br>'; Replace it with this: $categories_string .= '<br><img src="x.gif" width="1" height="5"><br>'; It won't be able to find the image, but it isn't going to show up anyway as long as the width is 1. To adjust the space just play with the height value.
joekalis Posted July 27, 2003 Posted July 27, 2003 Well, that definitely worked. However, I was just wanting an extra line break here and there, such as... Category 1 Category 2 Category 3 Category 4 Category 5 Category 6 possible? my signature was banned. so now i have this.
Zarathud Posted July 27, 2003 Author Posted July 27, 2003 Then just replace <br> with <p> or <br><br>.
Zarathud Posted July 27, 2003 Author Posted July 27, 2003 Nevermind, I misunderstood. I don't know how to do it like that.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.