Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Set # of Products Per Row on Catagory Pages


Guest

Recommended Posts

Posted

I think I may have finally lost my mind. Normally I can find an answer to just about every question by searching the forum not having much luck with this one.

 

When you click on a Catagory page then select a subcatagory my site displays 3 products per row. I need to change this to display 2 products per row if it's possible. Currently with it showing 3 per row it pushes my table out of whack making my background pictures wider than my table that holds the subcategory products.

 

an example here

I'm still adding products currently this is the only location to see the problem since these are the only products I have up so far. By visiting the link above which leads to Catagories>Record Purses>Country

 

Also would anyone know how after I change it to display 2 per row that I can center the display? Currently when the products are displayed they align left it seems.

 

Any ideas or even suggestions on which page I should look for where the info is set would be a huge help.

I've also tried changing areas in Admin/Configure for Max & Min values but not having much luck figuring out which value to change if it is found there.

 

Thanks so much for any help gang -- Mindy

Posted

Sorry for the double post but lost the edit option guess I waited too long. I should prolly note that I have tried on admin side Configuration/Max Values/Categories To List from 3 to 2 with no change so figured I was in the wrong spot.

Posted

I do apologize for the extra posts but figured more info is better than expecting you guys to guess on what I need help with..

 

Any how was able to make the change I needed for the number of rows and columns to set how the products are displayed on the catagory pages.

 

in includes/modules/product_listing.php

 

Changed

 

 $column ++;
  if ($column >= 4) {
	$rows ++;
	$column = 0;
	echo '

 

To

 $column ++;
  if ($column >= 3) {
	$rows ++;
	$column = 0;
	echo '

 

Now that works great!! Decided 2 didn't look right to me so went with 3 columns.

 

Only thing left to work out is how to center my products held in the 3 columns. I'm still messing around trying to align center or add a center tag in product_listing.php haven't found where I need to stick it yet though. Any ideas on that would be ever so helpful.

 

Thanks -- Mindy

Archived

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

×
×
  • Create New...