Page 5 of 22 FirstFirst ... 3456715 ... LastLast
Results 41 to 50 of 220
  1. #41
    Join Date
    Jul 2008
    Posts
    362
    Plugin Contributions
    0

    Default Re: styling product listing pages with column layout grid

    I also have an issue with firefox where if there are less than 3 products in a category the images move to the left please see attached pic. Anyone know what the problem could be it seems fine in internet explorer 6 and 7.
    Attached Images Attached Images  

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

    Default Re: styling product listing pages with column layout grid

    Adding these two rules to your stylesheet will get the spacing you are looking for. Adjust the numbers to taste.
    Code:
    .centerBoxContentsNew img {margin: 1.0em 0;}
    
    .centerBoxContentsNew .smalltext1 {
        line-height: 2.0em;
        position: relative;
        top: 0.4em;
        }

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

    Default Re: styling product listing pages with column layout grid

    Change
    Code:
    .listingimg{
    	text-align:center;
    	margin-top:10px;
    }
    to
    Code:
    .listingimg{
    	text-align:center;
    	margin:10px auto 0;
    }

  4. #44
    Join Date
    Jul 2008
    Posts
    362
    Plugin Contributions
    0

    Default Re: styling product listing pages with column layout grid

    Quote Originally Posted by gjh42 View Post
    Adding these two rules to your stylesheet will get the spacing you are looking for. Adjust the numbers to taste.
    Code:
    .centerBoxContentsNew img {margin: 1.0em 0;}
    
    .centerBoxContentsNew .smalltext1 {
        line-height: 2.0em;
        position: relative;
        top: 0.4em;
        }
    Hey Glen, this worked perfectly thank you very much!

  5. #45
    Join Date
    Jul 2008
    Posts
    362
    Plugin Contributions
    0

    Default Re: styling product listing pages with column layout grid

    Quote Originally Posted by gjh42 View Post
    Change
    Code:
    .listingimg{
    	text-align:center;
    	margin-top:10px;
    }
    to
    Code:
    .listingimg{
    	text-align:center;
    	margin:10px auto 0;
    }
    Glen, This change didnt really do anything but move the listing up and the pic stayed to the left......

    Any other ideas?

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

    Default Re: styling product listing pages with column layout grid

    It worked when I tested it on your site. I don't know what else to say, except to be sure you change in the right place.

    What browser are you using? Maybe IE doesn't handle the CSS right...

  7. #47
    Join Date
    Jul 2008
    Posts
    362
    Plugin Contributions
    0

    Default Re: styling product listing pages with column layout grid

    Quote Originally Posted by gjh42 View Post
    It worked when I tested it on your site. I don't know what else to say, except to be sure you change in the right place.

    What browser are you using? Maybe IE doesn't handle the CSS right...
    Ok i didnt completely do what u said i didnt remove top from margin and now its working....

    Thanks Glen
    Last edited by gee38l; 15 Jan 2009 at 12:28 PM. Reason: text

  8. #48
    Join Date
    Jul 2008
    Posts
    362
    Plugin Contributions
    0

    Default Re: styling product listing pages with column layout grid

    Glen, do you know why the bottom gap btween new products and footer are different in ie and ff?
    Posted via Mobile Device

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

    Default Re: styling product listing pages with column layout grid

    I have found and fixed the bug that was preventing the "rows" setting and the CSS-only alternative from working. It was very simple, and anyone who has downloaded the second version of the mod can fix it by finding this section around line 86 in /includes/modules/your_template/product_listing.php (flex version; CSS-only version will have different line numbers):
    PHP Code:
        case 'PRODUCT_LIST_PRICE':
        if (
    $skip_price) {
          
    $flex_skip_now 1;
          
    $flex_skips++;
        } else {
        
    $lc_text TABLE_HEADING_PRICE;
        
    $lc_class 'listingPrice' . (PRODUCTS_LIST_PRICE_WIDTH '" width="' PRODUCTS_LIST_PRICE_WIDTH '');
        
    $zc_col_count_description++;
        break; 
    and change it to this:
    PHP Code:
        case 'PRODUCT_LIST_PRICE':
        if (
    $skip_price) {
          
    $flex_skip_now 1;
          
    $flex_skips++;
        } else {
        
    $lc_text TABLE_HEADING_PRICE;
        
    $lc_class 'listingPrice';
        
    $lc_align = (PRODUCTS_LIST_PRICE_WIDTH '" width="' PRODUCTS_LIST_PRICE_WIDTH '');
        
    //$zc_col_count_description++;
        
    }// skip
        
    break; 
    You will also need to find this around line 52:
    PHP Code:
    $lc_align '';//align settings moved to stylesheet
    for ($col=0$n=sizeof($column_list); $col<$n$col++) { 
    and switch the statements like this:
    PHP Code:
    for ($col=0$n=sizeof($column_list); $col<$n$col++) {
    $lc_align '';//align settings moved to stylesheet 
    I haven't tested this, but the way it was would definitely break the output in the way observed, and this fixes that problem.

    However, I have also come up with a superior method of performing the "flexible listing" functions which will be much easier to use, so I have withdrawn the download until I finish the new version. It will require no user code changes at all, merely setting the sort order of the elements in admin in a certain way.
    Last edited by gjh42; 3 Feb 2009 at 06:31 PM.

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

    Default Re: styling product listing pages with column layout grid

    Per request, I am posting a preliminary copy of Flexible Product Listing v1.0. It is fully functional, but still needs more readme text and files cleaned up before final release.

 

 
Page 5 of 22 FirstFirst ... 3456715 ... LastLast

Similar Threads

  1. Problem with column layout grid for product listing 1.3.8
    By ivanc in forum Templates, Stylesheets, Page Layout
    Replies: 19
    Last Post: 22 Jul 2010, 11:00 AM
  2. Replies: 5
    Last Post: 17 Feb 2010, 05:13 PM
  3. Problem with Column Layout Grid for Product Listing
    By maeve100 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 17 Aug 2009, 04:02 PM
  4. Column Grid Layout - trouble with product listing/layout
    By mellonade in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 4 May 2007, 11:18 AM
  5. Problem with Column Layout Grid for Product Listing 1.3.0.2
    By mmmfruit in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 12 Aug 2006, 04:15 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR