$order_taxes check

This commit is contained in:
Mike Jolley 2015-01-15 15:19:19 +00:00
parent fef41c149c
commit a52f94fb42
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ if ( wc_tax_enabled() ) {
<th class="line_cost sortable" data-sort="float"><?php _e( 'Total', 'woocommerce' ); ?></th>
<?php
if ( empty( $legacy_order ) && wc_tax_enabled() ) :
if ( empty( $legacy_order ) && ! empty( $order_taxes ) ) :
foreach ( $order_taxes as $tax_id => $tax_item ) :
$tax_class = wc_get_tax_class_by_tax_id( $tax_item['rate_id'] );
$tax_class_name = isset( $classes_options[ $tax_class ] ) ? $classes_options[ $tax_class ] : __( 'Tax', 'woocommerce' );