shipping->enabled || $available_methods || ! $woocommerce->customer->get_shipping_country() || ! $woocommerce->customer->has_calculated_shipping() ) : ?>
|
cart->get_cart_subtotal(); ?> |
cart->get_discounts_before_tax() ) : ?>
|
-cart->get_discounts_before_tax(); ?> |
cart->needs_shipping() && $woocommerce->cart->show_shipping() && ( $available_methods || get_option( 'woocommerce_enable_shipping_calc' ) == 'yes' ) ) : ?>
|
$available_methods ) ); ?> |
cart->get_fees() as $fee ) : ?>
name ?> |
cart->display_totals_ex_tax || ! $woocommerce->cart->prices_include_tax )
echo woocommerce_price( $fee->amount );
else
echo woocommerce_price( $fee->amount + $fee->tax );
?> |
cart->display_totals_ex_tax || ! $woocommerce->cart->prices_include_tax ) {
if ( $woocommerce->cart->get_cart_tax() ) {
$taxes = $woocommerce->cart->get_formatted_taxes();
if ( sizeof( $taxes ) > 0 ) {
$has_compound_tax = false;
foreach ( $taxes as $key => $tax ) {
if ( $woocommerce->cart->tax->is_compound( $key ) ) {
$has_compound_tax = true;
continue;
}
echo '
' . $woocommerce->cart->tax->get_rate_label( $key ) . ' |
' . $tax . ' |
';
}
if ( $has_compound_tax ) {
echo '
' . __( 'Subtotal', 'woocommerce' ) . ' |
' . $woocommerce->cart->get_cart_subtotal( true ) . ' |
';
}
foreach ( $taxes as $key => $tax ) {
if ( ! $woocommerce->cart->tax->is_compound( $key ) )
continue;
echo '
' . $woocommerce->cart->tax->get_rate_label( $key ) . ' |
' . $tax . ' |
';
}
} else {
echo '
' . __( 'Tax', 'woocommerce' ) . ' |
' . $woocommerce->cart->get_cart_tax() . ' |
';
}
} elseif ( get_option( 'woocommerce_display_cart_taxes_if_zero' ) == 'yes' ) {
echo '
' . __( 'Tax', 'woocommerce' ) . ' |
' . __x( 'N/A', 'Relating to tax', 'woocommerce' ) . ' |
';
}
}
?>
cart->get_discounts_after_tax() ) : ?>
|
-cart->get_discounts_after_tax(); ?> |
|
cart->get_total(); ?>
cart->display_totals_ex_tax && $woocommerce->cart->prices_include_tax ) {
if ( $woocommerce->cart->get_cart_tax() ) {
$tax_string_array = array();
$taxes = $woocommerce->cart->get_formatted_taxes();
if ( sizeof( $taxes ) > 0 )
foreach ( $taxes as $key => $tax )
$tax_string_array[] = sprintf( '%s %s', $tax, $woocommerce->cart->tax->get_rate_label( $key ) );
else
$tax_string_array[] = sprintf( '%s tax', $tax );
if ( ! empty( $tax_string_array ) ) {
echo '' . sprintf( __( '(Includes %s)', 'woocommerce' ), implode( ', ', $tax_string_array ) ) . '';
}
} elseif ( get_option( 'woocommerce_display_cart_taxes_if_zero' ) == 'yes' ) {
echo '' . sprintf( __( '(Includes %s tax)', 'woocommerce' ), woocommerce_price( 0 ) ) . '';
}
}
?>
|
cart->get_cart_tax() ) : ?>
customer->is_customer_outside_base() && ! $woocommerce->customer->has_calculated_shipping() ) ? sprintf( ' ' . __( ' (taxes estimated for %s)', 'woocommerce' ), $woocommerce->countries->estimated_for_prefix() . __( $woocommerce->countries->countries[ $woocommerce->countries->get_base_country() ], 'woocommerce' ) ) : '';
printf( __( 'Note: Shipping and taxes are estimated%s and will be updated during checkout based on your billing and shipping information.', 'woocommerce' ), $estimated_text );
?>
cart->needs_shipping() ) : ?>
customer->get_shipping_state() || ! $woocommerce->customer->get_shipping_postcode() ) : ?>
countries->countries[ $woocommerce->customer->get_shipping_country() ] ); ?>