Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 34
  1. #11
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Grid Layout Assistance Needed

    Yes, that will happen. You need more detailed class tags to be able to specify distinctions between top/left/other elements in the grid. That would involve some recoding. I did some work on it, but ran into the brick wall of div height making it impossible to have a fully automatic flexible height divider system without using table layout. If you are willing to specify a fixed height to the elements, the divider layout you want can be done. I shelved development before doing the detailed coding, but it is not difficult in concept.

    To get this layout immediately, you would be best off using Column Divider Pro from Free Addons. It uses lots of table/spacer elements in what seems a clumsy fashion, but it does the job. From what I have seen, it only puts divider lines between the elements, but if it does not have an option to put them around the outside as well, you could add a border to the whole wrapper of listings.


    If you want a fully gridded box around the listings, you could make a wrapper div for the listing elements and give that a border-left and border-bottom.
    Last edited by gjh42; 8 Dec 2008 at 06:19 AM.

  2. #12
    Join Date
    Jul 2008
    Posts
    362
    Plugin Contributions
    0

    Default Re: Grid Layout Assistance Needed

    Quote Originally Posted by gjh42 View Post
    Yes, that will happen. You need more detailed class tags to be able to specify distinctions between top/left/other elements in the grid. That would involve some recoding. I did some work on it, but ran into the brick wall of div height making it impossible to have a fully automatic flexible height divider system without using table layout. If you are willing to specify a fixed height to the elements, the divider layout you want can be done. I shelved development before doing the detailed coding, but it is not difficult in concept.

    To get this layout immediately, you would be best off using Column Divider Pro from Free Addons. It uses lots of table/spacer elements in what seems a clumsy fashion, but it does the job. From what I have seen, it only puts divider lines between the elements, but if it does not have an option to put them around the outside as well, you could add a border to the whole wrapper of listings.


    If you want a fully gridded box around the listings, you could make a wrapper div for the listing elements and give that a border-left and border-bottom.
    Ok i have just installed the column deivider pro that you recommended and it seems that its squishd my products please have a look at my new products and category products...

    Thanks

  3. #13
    Join Date
    Jul 2008
    Posts
    362
    Plugin Contributions
    0

    Default Re: Grid Layout Assistance Needed

    Ok i have fixed the squished products, now back to what i wanted to make it look like...

    How do i add a box around the item and center it both vertically and horizontally?

    Thanks for your patience

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

    Default Re: Grid Layout Assistance Needed

    .centerBoxWrapperContents table {border: 1px dotted #555555;}

    Adjust as required.

    You appear to have gotten the listing elements nicely centered already.

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

    Default Re: Grid Layout Assistance Needed

    Quote Originally Posted by gjh42 View Post
    .centerBoxWrapperContents table {border: 1px dotted #555555;}

    Adjust as required.

    You appear to have gotten the listing elements nicely centered already.
    Ok i added that to the stylesheet but all that does is add a box around the entire products page not the individual products?
    Last edited by gee38l; 8 Dec 2008 at 07:16 AM. Reason: edit

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

    Default Re: Grid Layout Assistance Needed

    OK... a really close look at the Dealsdirect site (faint lines!) shows that what you are after is not a solid grid, but separate boxes around each product, with space between them.

    Sorry for all the running around; all you need for this is to specify the border on .centerBoxContentsProducts, as well as height and a margin:

    .centerBoxContentsProducts {border: 1px solid #999999; margin: 3px; height: 260px;}

    Since this will make the products add up to wider than the space available, you will need to edit a file to reduce the assigned width of products. I'll have to go look that up and get back.
    Last edited by gjh42; 8 Dec 2008 at 07:38 AM.

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

    Default Re: Grid Layout Assistance Needed

    In your Column Grid version of /includes/modules/your_template/product_listing.php, find this section:
    PHP Code:
    // Used for Column Layout (Grid Layout) add on module
      
    $column 0;    
      if (
    PRODUCT_LISTING_LAYOUT_STYLE == 'columns') {
        if (
    $num_products_count PRODUCT_LISTING_COLUMNS_PER_ROW || PRODUCT_LISTING_COLUMNS_PER_ROW == ) {
          
    $col_width floor(100/$num_products_count) - 0.5;
        } else {
          
    $col_width floor(100/PRODUCT_LISTING_COLUMNS_PER_ROW) - 0.5;
        }
      } 
    and change both instances of
    floor(100/...) - 0.5
    to
    floor(100/...) - 1.5
    PHP Code:
    // Used for Column Layout (Grid Layout) add on module
      
    $column 0;    
      if (
    PRODUCT_LISTING_LAYOUT_STYLE == 'columns') {
        if (
    $num_products_count PRODUCT_LISTING_COLUMNS_PER_ROW || PRODUCT_LISTING_COLUMNS_PER_ROW == ) {
          
    $col_width floor(100/$num_products_count) - 1.5;
        } else {
          
    $col_width floor(100/PRODUCT_LISTING_COLUMNS_PER_ROW) - 1.5;
        }
      } 
    Adjust the 1.5 as required to work with the margin you want.

    There are several ways you can tweak this calculation; experiment if you wish once you understand the logic.

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

    Default Re: Grid Layout Assistance Needed

    Quote Originally Posted by gjh42 View Post
    In your Column Grid version of /includes/modules/your_template/product_listing.php, find this section:
    PHP Code:
    // Used for Column Layout (Grid Layout) add on module
      
    $column 0;    
      if (
    PRODUCT_LISTING_LAYOUT_STYLE == 'columns') {
        if (
    $num_products_count PRODUCT_LISTING_COLUMNS_PER_ROW || PRODUCT_LISTING_COLUMNS_PER_ROW == ) {
          
    $col_width floor(100/$num_products_count) - 0.5;
        } else {
          
    $col_width floor(100/PRODUCT_LISTING_COLUMNS_PER_ROW) - 0.5;
        }
      } 
    and change both instances of
    floor(100/...) - 0.5
    to
    floor(100/...) - 1.5
    PHP Code:
    // Used for Column Layout (Grid Layout) add on module
      
    $column 0;    
      if (
    PRODUCT_LISTING_LAYOUT_STYLE == 'columns') {
        if (
    $num_products_count PRODUCT_LISTING_COLUMNS_PER_ROW || PRODUCT_LISTING_COLUMNS_PER_ROW == ) {
          
    $col_width floor(100/$num_products_count) - 1.5;
        } else {
          
    $col_width floor(100/PRODUCT_LISTING_COLUMNS_PER_ROW) - 1.5;
        }
      } 
    Adjust the 1.5 as required to work with the margin you want.

    There are several ways you can tweak this calculation; experiment if you wish once you understand the logic.
    Thanks for the advise can i just ask what exactly does the above do? I have been playing around with it for the past hour and i have not seen any changes :S

    Also i have any question if you have a look at the picture a have attached of the new products you will see that they dont size properly how can i get them to stay the same size all the time evenly spread vertically and horizontally like the products in my categories and dealsdirect?
    Attached Images Attached Images  

  9. #19
    Join Date
    Jul 2008
    Posts
    362
    Plugin Contributions
    0

    Default Re: Grid Layout Assistance Needed

    It seems that doing the mod to product listing you mentioned above has made the products go to the left in ie7 and not firefox

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

    Default Re: Grid Layout Assistance Needed

    The calculation sets the percent width for the individual products. Changing from 0.5 to 1.5 means only a 1% change (about 5px) per item, so you might not notice it. It will probably make no difference anyway with the Column Divider Pro mod still installed; that change is needed when using the plain Column Layout Grid mod.

    The product varying width issue may be due to modifying the CDP code. I don't know how that code works in detail, so can't advise on it. If you still want to use that mod, I suggest you post in its support thread for help; otherwise, uninstall it and install just Column Grid, and see if that clears up the problem. It will give you smaller gutters between the products, at any rate.

 

 
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Replies: 5
    Last Post: 17 Feb 2010, 05:13 PM
  2. Banner Assistance Needed...please!
    By Hamilbone13 in forum Basic Configuration
    Replies: 4
    Last Post: 2 Jun 2009, 11:50 AM
  3. urgent assistance needed
    By lucianman in forum General Questions
    Replies: 5
    Last Post: 17 Mar 2008, 01:35 AM
  4. Shipping Configuration Assistance Needed
    By MagicMan in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 18 Dec 2007, 01:49 PM
  5. Layout Spacing Help Needed, Grid Mod
    By Erilyn in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 3 Sep 2007, 11:30 AM

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