function uc_product_handler_field_display_price::get_value in Ubercart 7.3
Overrides views_handler_field::get_value().
Overrides views_handler_field::get_value
File
- uc_product/
views/ uc_product_handler_field_display_price.inc, line 27 - Views handler: Product price field.
Class
- uc_product_handler_field_display_price
- Returns a formatted price value to display in the View.
Code
function get_value($values, $field = NULL) {
$nid = parent::get_value($values, $field);
// !TODO Refactor so that all variants are loaded at once in the pre_render hook.
$node = node_view(node_load($nid), 'teaser');
return $node['display_price']['#value'];
}