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.
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.
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 copywhile only 29 found the right copy in post 23.
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?
That problem is generally due to too much border/margin/padding on the product boxes.
In /includes/modules/your_template/category_row.php, find thisand rework the calculation to yield a smaller $col_width (change 100 to 98, or subtract 1, or whatever works for you).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);
}
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
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.
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 ?
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?