Hi,

I've been trying to make my product listing something like this:

Group 1
---------
Product 1
Product 2

Group 2
---------
Product 3
Product 4

I added a new field in the products table and named that 'products_group'. In modules/product_listing.php I made this change to test that I could get the value of my new field.
Code:
case 'PRODUCT_LIST_PRICE':
        $lc_price = '<div class="list-price">' . zen_get_products_display_price($listing->fields['products_id']) . $listing->fields['products_group']. '</div>';
        $lc_align = 'right';
        $lc_text =  $lc_price;
It works, I get the value next to the product price. I've been trying to customize tabular_display.php, but I get nowhere.

If $listing->fields['products_group'] = 0
Show default product listing

If $listing->fields['products_group'] = 1
echo a new header row with a custom name
list products belonging to this group

If $listing->fields['products_group'] = 2
echo a new header row with a custom name2
list products belonging to this group