I have some views set up that get item prices. I have it set to show 0 as empty and to hide empty rows or to display alternate text. I cannot for the life of me figure out how to make it show "Call for Quote" or what have you on items that are using the price quote module. I have it set up to work properly in my custom product node but I can't make the views work. Help please!

Comments

trothwell’s picture

Just going to bump this although i Know it's old, it's certainly a feature request if anything. The main way to do this would be through use of Ubercarts TAPIr's hook_table_alter() function.

This would require a contib module if you don't want to hack Ubercart Price Quotes.

A fast and dirty way I've added below, this will remove anything relating to total or price but you could certainly customize this the way you need.

function module_name_tapir_table_alter(&$table, $table_id) {
  if ($table_id == 'uc_cart_view_table') {
    unset($table[0]['#total']);
    unset($table[0]['total']);
    unset($table['#columns']['total']);
    unset($table[1]['total']);
    unset($table['#parameters']['#total']);
    unset($table['#parameters']['total']);
    unset($table[2]['total']);
  }
}