I've been trying to display products in catalog different way than Grid or table. I managed to override uc_catalog_products in template.php function like this.
<?php
function zen_uc_catalog_products($products) {
if (!$products) {
$output .= '<div class="no-products">'. t('No products are available in this category.') .'</div>';
return $output;
}
else {
if (variable_get('uc_catalog_grid_display', false)) {
return theme('uc_catalog_product_grid', $products);
}
else {
//$table_args = array('nids' => $products, 'attributes' => array('class' => 'category-products'));
//return tapir_get_table('uc_product_table', $table_args);
foreach($products as $product) {
$node = node_load($product);
$output .= node_view($node, TRUE)."\n";
}
return $output;
}
}
}
?>Rename zen_uc_catalog_products to yourthemename_uc_catalog_products. It replaces the table view with teasers, which can be modified by contemplates. This way I am able to display all CCK fields the way I want.
Hope it helps.



Joined: 03/14/2008