joekilo Posted June 30, 2003 Posted June 30, 2003 can anyone help ive posted this a couple of times and no response in my whats new product listing sectionmy pictures all line up evenly to left also evenly spaced apart (products-new.php i think) this looks great In my catagories product listings this isnt the case(default.php i think), how can i get the same effect in my product listings under catagories... if you know a code, can you tell me where exactly to place it? you can look at joekilo.com if needed ....thanks a lot jk
gevans Posted June 30, 2003 Posted June 30, 2003 Look in catalog/includes/modules/product_listing.php and look for this line of code: case 'PRODUCT_LIST_IMAGE': $lc_align = 'center'; if ($HTTP_GET_VARS['manufacturers_id']) { $lc_text = '<SPAN CLASS="regText"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing_values['products_id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $listing_values['products_image'], $listing_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><SPAN CLASS="regText">'; } else { $lc_text = ' <SPAN CLASS="regText"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing_values['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing_values['products_image'], $listing_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><SPAN CLASS="regText"> '; } Change that second line from $lc_align = 'center'; to $lc_align= 'left'; That should work for ya.
mdfst13 Posted June 30, 2003 Posted June 30, 2003 I think that you want to add an entry like height: 200px; to your stylesheet.css under TABLE.productListing (between the {}). You might have to change 200 to a different number to get the effect that you want. Hth, Matt I love deadlines. I like the whooshing sound they make as they fly by. ---Douglas Adams
joekilo Posted June 30, 2003 Author Posted June 30, 2003 fantastic that worked ..theyve aligned left is there a code that will space them out also? thanks for response as for tableproductlisting i do not have this on stylesheet i tried under product listing data no joy.. jk
mdfst13 Posted June 30, 2003 Posted June 30, 2003 http://www.digital-web.com/tutorials/tutor...l_2002-06.shtml is a link that I found while troubleshooting some CSS issues. Looking at your site (with view source in the browser), I think that you might want to try productListing-odd and -even. It makes sense to me that the row would control the height, but maybe I'm missing something. Good luck, Matt I love deadlines. I like the whooshing sound they make as they fly by. ---Douglas Adams
joekilo Posted June 30, 2003 Author Posted June 30, 2003 also at the top of each catagories product list it says (PRODUCTS) can i get it to say the catagory title? jk
mdfst13 Posted June 30, 2003 Posted June 30, 2003 Well, you *can*. However, it is non-trivial (i.e. you have to make php coding changes). First, you need to find out from where Products is coming. There is probably a part of a line that says <?php echo TEXT_PRODUCTS ?> or something like that. You will need to change it to say something like <?php echo $current_category_name ?>. Unfortunately, nothing populates a variable with the name of the category, so you will have to do database queries using $current_category_id to determine it prior to the echo statement. Hth, Matt I love deadlines. I like the whooshing sound they make as they fly by. ---Douglas Adams
Recommended Posts
Archived
This topic is now archived and is closed to further replies.