Tribe__Tickets_Plus__Commerce__WooCommerce__Orders__Table::column_subtotal( $item )
Handler for the subtotal column
Contents
Parameters
- $item
-
(Required)
Return
(string)
Source
File: src/Tribe/Commerce/WooCommerce/Orders/Table.php
public function column_subtotal( $item ) {
$total = 0;
foreach ( $this->valid_order_items[ $item['id'] ] as $line_item ) {
$total += $line_item['subtotal'];
}
if ( ! self::$pass_fees_to_user ) {
$total -= self::calc_site_fee( $total );
}
return tribe_format_currency( number_format( $total, 2 ) );
}//end column_subtotal