Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

hello


joekilo

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...