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 > 0 ? '" 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 > 0 ? '" 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.
Bookmarks