Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Join Date
    Oct 2005
    Posts
    97
    Plugin Contributions
    0

    Default Re: 4 products per row problems with explorer

    Quote Originally Posted by Ajeh View Post
    Thanks for the update ... will have to peek around and see if something is different between them ...
    Hey there! I was wondering if a solution had ever come up about this as I'm having the same problem. What's weird is that I'm working on two sites that each have the featured section with four columns and it works flawlessly on one site and not on the other. I'm trying to figure out what's different between the two sites, but haven't found the golden code yet.

    I've WinMerged and can't find any relevant code that's different (there were a few small differences in the stylesheet and english.php, but I changed them, didn't help and changed them back). I've checked the image sizes and that's not it (I went as small as 50x50). All of the featured product settings are the same between the two sites. I'm stumped!

    Works here: http://round.lbdclients.com
    Doesn't work here: http://chictots.lbdclients.com

    Any help would be fantastic. Thanks!!


    Leila

  2. #12
    Join Date
    Aug 2006
    Posts
    110
    Plugin Contributions
    0

    Default Re: 4 products per row problems with explorer

    Add me to the number of people who are having this problem....I'd love a solution too.

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

    Default Re: 4 products per row problems with explorer

    Does it work when set to 3 per row?

    This display calculates the space for each item as a percent of the whole, rounded down, so 33.3333 becomes 33 which will total to 99% of the space occupied. This leaves a little wiggle room for margins or browser rounding. Any number that divides exactly into 100 will have zero wiggle room, and may cause the wrapping observed.

    You can go into the relevant tpl file and edit that calculation to be say a fraction of 99, or a fraction of 100, minus 1... giving some breathing room.

  4. #14
    Join Date
    Aug 2006
    Posts
    110
    Plugin Contributions
    0

    Default Re: 4 products per row problems with explorer

    It works with 3 columns per row, and it works with 5 columns per row :-(

    I couldn't find the relevant code, so I went with 5.

    Thanks for helping though.

  5. #15
    Join Date
    Sep 2007
    Posts
    329
    Plugin Contributions
    0

    red flag Re: 4 products per row problems with explorer

    Quote Originally Posted by raskayu View Post
    HellO:

    I've changed in my store in Index Listing the number of products per row for New, Featured and Special products from 3 to 4.

    It works OK in Firefox, but testing it with Explorer I get good results when showing Specials page (4 per row), but when showing the "New Products For ...." in main page or in every category page when there is more than 4 products, I get every single row of 4 splited in 2 rows:

    The first row with 3 thumbnails and 1 blank space and the fourth thumbnail alone in the next row, and so on.

    Example:
    Friefox:
    X X X X
    X X X X
    ... That's OK

    Explorer

    X X X 0
    X 0 0 0
    X X X 0
    X 0 0 0
    .... That's worse

    How this can be fixed? What the problem is using IExplorer? As I said in Firefox all works OK.

    Greets!!

    Edited to add that the size of every single thumbnail is of 128x128, but I resized to 100x100 to see if this was the prblem, and nope. All continue the same.
    Did anyone ever find a fix for this? I am having the same problem! IE will not work with 4 or 5 columns but will work with 3 or 6.

    I appreciate any help

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

    Default Re: 4 products per row problems with explorer

    4 and 5 divide evenly into 100; 3 and 6 do not. Your problem is with rounding - see my post above.

    For the new products centerbox, in /includes/modules/new_products.php find this
    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);
      } 
    and change the 100 to 99 or whatever you want.
    Save as /includes/modules/your_template/new_products.php.

    Other locations can be changed similarly if needed.

  7. #17
    Join Date
    Sep 2007
    Posts
    329
    Plugin Contributions
    0

    Default Re: 4 products per row problems with explorer

    Quote Originally Posted by gjh42 View Post
    4 and 5 divide evenly into 100; 3 and 6 do not. Your problem is with rounding - see my post above.

    For the new products centerbox, in /includes/modules/new_products.php find this
    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);
      } 
    and change the 100 to 99 or whatever you want.
    Save as /includes/modules/your_template/new_products.php.

    Other locations can be changed similarly if needed.
    THANK YOU - THANK YOU - THANK YOU!!!! I have been trying to find the answer to this problem for a while now. I changed 100 to 99 and everything works great with 5 items per row now!

    I really appreciate your help. Right now I have only changed the "features" php file but I'm going to change the others next.

    Again.... can't thank you enough...

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Multiple products per row
    By hllight in forum General Questions
    Replies: 1
    Last Post: 28 Mar 2009, 06:04 AM
  2. Products Per Row
    By leest003 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 8 Nov 2008, 04:05 PM
  3. 2 products listed per row??
    By canemasters in forum General Questions
    Replies: 2
    Last Post: 2 Feb 2008, 05:15 PM
  4. Products All Listing - How to have 'X' products shown per row
    By tqualizer in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 31 Jan 2008, 05:28 AM
  5. Products Per Row
    By infinium in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 23 Jan 2008, 08:10 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