I just noticed a major problem with my installation of this contribution.
I set my column numbers to 4, displaying 4 products per row.
When there aren't enough products to fill at least 1 row (in my case, less than 4 products for listing), there is a problem.
For example:
For 3 products
Instead of displaying the 3 products each with 25% of the total width + an empty cell of 25% width, I am getting 3 products each occupying 33% of the total width.
For 2 products:
Each product occupying 50% of the total width.
The above problem is making the product listing page very inconsistant. And I been trying to fix this problem without much succuss.
In the product_listing_col.php, there is an IF statement that supposely adds empty cells around Line 236
if ($x == ($no_of_listings -1)) {
//BOF version 2.2 modification
// fill up the remainder of the table row with empty cells, assumes three products per row!
for($column=1; $column < $colnum; $column++) {
$list_box_contents[$row][$column + 1] = array('align' => 'center',
//bof product listing with attributes
'valign' => $lc_valign,
//eof product listing with attributes
//2.2 modification ,add width in td
'params' => 'class="productListing-data" width="'.$tdsize.'%"',
'text' => "");
}
And from what I have learnt so far, the above code can't be working correctly, because the condition will never be met because $x and $no_of_listings are never initialized and don't holds any values.
I would really apprecaited it if someone can help me with this problem.
Thanks in advance