If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Strange new products display on all pages.

Strange new products display on all pages.

Locked

Started by awhfy99 on 11 Sep 2007, 1:46 PM · Views: 1,077

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
11 Sep 2007, 1:46 PM
#1
awhfy99 avatar

awhfy99

Zen Follower

Join Date:
Feb 2007
Location:
Burleson. Texas
Posts:
196
Plugin Contributions:
0

Post #1 by awhfy99

new products module = 16
new products listing - number per page = 16
random new products per box = 16
new products columns per row = 4

The above are the only settings that I can find that should effect the layout of my new products listing (see below). I guess that I missed one somewhere but the only options with 3 entered all pertain to sort order.

There are 16 new products shown on 8 rows.

After you get done laughing, please give me hint as to what I need to change!

Dennis
www.stampdays.com
Over 80,000 stamps and still growing!

11 Sep 2007, 2:44 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #2 by gjh42

Your problem is most likely extra margins or padding on the product items.
Zen Cart calculates the width to assign to each as 100%/qty, so four items get 25% each. Any margin makes it take up more than 25%, so the last one wraps. Three items rounds off to 33%, so that often works when other numbers don't.
You can change the calculation so it allows 99%/qty or whatever, giving a bit of wiggle room.
I'll have to go look up the location where you can make that change.

11 Sep 2007, 3:12 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #3 by gjh42

/includes/modules/your_template/new_products.php:

// show only when 1 or more
if ($num_products_count > 0) {
  if ($num_products_count < SHOW_PRODUCT_INFO_COLUMNS_NEW_PRODUCTS || SHOW_PRODUCT_INFO_COLUMNS_NEW_PRODUCTS == 0 ) {
    $col_width = floor(100/$num_products_count);
  } else {
    $col_width = floor(100/SHOW_PRODUCT_INFO_COLUMNS_NEW_PRODUCTS);
  }

Change the 100 to 99, 98, or whatever works for you.

11 Sep 2007, 3:36 PM
#4
awhfy99 avatar

awhfy99

Zen Follower

Join Date:
Feb 2007
Location:
Burleson. Texas
Posts:
196
Plugin Contributions:
0

Post #4 by awhfy99

Thanks, went with 96 and it looks great!

Dennis
www.stampdays.com
Over 80,000 stamps and still growing!