Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 43
  1. #21
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Column Layout grid Mod

    The version in styling product listing pages with column layout grid, post 6, is wrong. I deleted it from my saved attachments, but it still seems to be active. The version in post 26 is the latest, and should work in columns mode.

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

    Default Re: Column Layout grid Mod

    Just checked, and I had deleted the very first version in post 3 of that thread, but not the second (buggy) version in post 6. It looks like 131 people downloaded that bad copy while only 29 found the right copy in post 23.

  3. #23
    Join Date
    Jan 2009
    Posts
    31
    Plugin Contributions
    0

    Default Re: Column Layout grid Mod

    Hi Again. I have just uploaded quite a few products and notice that one of the products on a 4 column layout is dropping down. Take a look here; http://mirrors4home.co.uk/index.php?...=index&cPath=1

    This is set up as a 4 column layout. If I change it to 5 columns I get 4 columns and one drops down. Any ideas?

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

    Default Re: Column Layout grid Mod

    That problem is generally due to too much border/margin/padding on the product boxes.
    In /includes/modules/your_template/category_row.php, find this
    PHP Code:
    if ($num_categories 0) {
      if (
    $num_categories MAX_DISPLAY_CATEGORIES_PER_ROW || MAX_DISPLAY_CATEGORIES_PER_ROW == 0) {
        
    $col_width floor(100/$num_categories);
      } else {
        
    $col_width floor(100/MAX_DISPLAY_CATEGORIES_PER_ROW);
      } 
    and rework the calculation to yield a smaller $col_width (change 100 to 98, or subtract 1, or whatever works for you).

  5. #25
    Join Date
    Jan 2009
    Posts
    31
    Plugin Contributions
    0

    Default Re: Column Layout grid Mod

    I tried it. Nothing happened. The weird thing is if I change the columns to 3 instead of 4 I get 2 columns and one drops down and the width of the product boxes expands. See here http://mirrors4home.co.uk/index.php?...index&cPath=11

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

    Default Re: Column Layout grid Mod

    Did you try different numbers? Change 100 to 90, to be sure it will be effective. Then adjust to fit properly.

    The boxes calculate their width based on how many are specified per row.

  7. #27
    Join Date
    Jan 2009
    Posts
    31
    Plugin Contributions
    0

    Default Re: Column Layout grid Mod

    I tried different numbers from 98 to 40 but nothing changes. When I change these numbers do i change them bothe or just one of them and what other file should i be adjusting to make them fit. CSS?, PHP ?

  8. #28
    Join Date
    Apr 2006
    Location
    CA, USA
    Posts
    18
    Plugin Contributions
    0

    Default Re: Column Layout grid Mod

    Quote Originally Posted by gjh42 View Post
    The version in styling product listing pages with column layout grid, post 6, is wrong. I deleted it from my saved attachments, but it still seems to be active. The version in post 26 is the latest, and should work in columns mode.
    Hi,
    THanks for the post can you please post the link to right one right here as well. Thanks a bunch.

    Dave Junior

  9. #29
    Join Date
    Jan 2009
    Posts
    31
    Plugin Contributions
    0

    Default Re: Column Layout grid Mod

    OK i sused it guys.

    I edited the "product_info file" with the following;
    product_listing.php:

    if (PRODUCT_LISTING_LAYOUT_STYLE == 'columns') {
    if ($num_products_count < PRODUCT_LISTING_COLUMNS_PER_ROW || PRODUCT_LISTING_COLUMNS_PER_ROW == 0 ) {
    $col_width = floor(90/$num_products_count);
    } else {
    $col_width = floor(90/PRODUCT_LISTING_COLUMNS_PER_ROW);

    This works fine if you have 4 or more products in a category (or more than the specified columns in "Admin > Product Listings" but if you have 3 or less columns (or less than the specified columns on "product Layout", the product boxes expand to fit the width of the DIV.

    Is there a way of fixing the width of the product boxes?

  10. #30
    Join Date
    Apr 2006
    Location
    CA, USA
    Posts
    18
    Plugin Contributions
    0

    Default Re: Column Layout grid Mod

    Quote Originally Posted by Dave2006 View Post
    Hi,
    THanks for the post can you please post the link to right one right here as well. Thanks a bunch.

    Dave Junior
    Hi Glen,

    Yes, it was fault I used the older version that you have 0_9 and after i got the right version now it works like charms!!! thank you for you great help!!!

    Dave jr.

    --------------- I'll be zenner like you!!! -----------------

 

 
Page 3 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. Column Grid Layout MOD
    By redlightshoppe in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 3 Jun 2011, 09:34 AM
  2. column layout grid mod & 1.3.9g
    By mipavluk in forum Addon Templates
    Replies: 5
    Last Post: 21 Oct 2010, 08:52 PM
  3. Column Layout Grid Mod Issue
    By mw4kids in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 24 Apr 2010, 08:01 PM
  4. Editing layout of Column Grid Layout mod
    By digitalhalo in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 3 Jul 2007, 02:14 AM
  5. make column-layout-grid mod to look like special listing layout
    By gems14k in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Oct 2006, 02:18 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