get_items( apply_filters( 'woocommerce_admin_order_item_types', 'line_item' ) ); $line_items_fee = $order->get_items( 'fee' ); $line_items_shipping = $order->get_items( 'shipping' ); if ( 'yes' == get_option( 'woocommerce_calc_taxes' ) ) { $order_taxes = $order->get_taxes(); $tax_classes = array_filter( array_map( 'trim', explode( "\n", get_option( 'woocommerce_tax_classes' ) ) ) ); $classes_options = array(); $classes_options[''] = __( 'Standard', 'woocommerce' ); if ( $tax_classes ) { foreach ( $tax_classes as $class ) { $classes_options[ sanitize_title( $class ) ] = $class; } } // Older orders won't have line taxes so we need to handle them differently :( $tax_data = ''; if ( $line_items ) { $check_item = current( $line_items ); $tax_data = maybe_unserialize( isset( $check_item['line_tax_data'] ) ? $check_item['line_tax_data'] : '' ); } elseif ( $line_items_shipping ) { $check_item = current( $line_items_shipping ); $tax_data = maybe_unserialize( isset( $check_item['taxes'] ) ? $check_item['taxes'] : '' ); } elseif ( $line_items_fee ) { $check_item = current( $line_items_fee ); $tax_data = maybe_unserialize( isset( $check_item['line_tax_data'] ) ? $check_item['line_tax_data'] : '' ); } $legacy_order = ! empty( $order_taxes ) && empty( $tax_data ) && ! is_array( $tax_data ); $show_tax_columns = ! $legacy_order || sizeof( $order_taxes ) === 1; } ?>
[?]: | get_total_shipping() ); ?> | |
label; ?>: | formatted_amount; ?> | |
[?]: |
get_total_discount() ); ?>
|
is_editable() ) : ?> |
: |
get_total() ); ?>
|
is_editable() ) : ?> |
: | -get_total_refunded() ); ?> |
is_editable() ) : ?> "> is_editable() ) : ?> get_total() - $order->get_total_refunded() ) > 0 ) : ?> is_editable() ) : ?>