Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2007
    Location
    Burleson. Texas
    Posts
    194
    Plugin Contributions
    0

    Default Strange new products display on all pages.

    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!

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Strange new products display on all pages.

    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.

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Strange new products display on all pages.

    /includes/modules/your_template/new_products.php:
    PHP Code:
    // 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 == ) {
        
    $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.

  4. #4
    Join Date
    Feb 2007
    Location
    Burleson. Texas
    Posts
    194
    Plugin Contributions
    0

    Default Re: Strange new products display on all pages.

    Thanks, went with 96 and it looks great!

 

 

Similar Threads

  1. All/New Products Strange Problem
    By AmirGTR in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 30 Mar 2010, 12:08 AM
  2. Hiding New Products/All Products pages...
    By bubblegumgoods in forum General Questions
    Replies: 3
    Last Post: 6 Aug 2009, 03:31 AM
  3. New products display all products
    By arrow in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 12 May 2008, 02:23 PM
  4. Display Featured Products On All Pages.
    By cleverpork in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 8 Jul 2007, 06:32 AM
  5. Removing New Products from ALL pages
    By Joné in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 1 Aug 2006, 07:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg