Tax display notice

This commit is contained in:
Mike Jolley 2015-07-16 10:15:45 +01:00
parent b3f1d41974
commit 7285ce74e6
2 changed files with 2 additions and 2 deletions

View File

@ -1903,7 +1903,7 @@ abstract class WC_Abstract_Order {
$total_rows['order_total'] = array(
'label' => __( 'Total:', 'woocommerce' ),
'value' => $this->get_formatted_order_total()
'value' => $this->get_formatted_order_total( $tax_display )
);
return apply_filters( 'woocommerce_get_order_item_totals', $total_rows, $this );

View File

@ -18,7 +18,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @return string
*/
public function get_formatted_order_total() {
public function get_formatted_order_total( $tax_display = '' ) {
$formatted_total = wc_price( $this->get_total(), array( 'currency' => $this->get_order_currency() ) );
$order_total = $this->get_total();
$total_refunded = $this->get_total_refunded();