full_label = esc_html( $method->label );
if ( $method->cost > 0 ) {
$method->full_label .= ' — ';
// Append price to label using the correct tax settings
if ( $woocommerce->cart->display_totals_ex_tax || ! $woocommerce->cart->prices_include_tax ) {
$method->full_label .= woocommerce_price( $method->cost );
if ( $method->get_shipping_tax() > 0 && $woocommerce->cart->prices_include_tax ) {
$method->full_label .= ' '.$woocommerce->countries->ex_tax_or_vat();
}
} else {
$method->full_label .= woocommerce_price( $method->cost + $method->get_shipping_tax() );
if ( $method->get_shipping_tax() > 0 && ! $woocommerce->cart->prices_include_tax ) {
$method->full_label .= ' '.$woocommerce->countries->inc_tax_or_vat();
}
}
}
}
// Print a single available shipping method as plain text
if ( 1 === count( $available_methods ) ) {
echo $method->full_label;
echo '';
// Show multiple shipping methods in a select list
} else {
echo '';
}
// No shipping methods are available
} else {
if ( ! $woocommerce->customer->get_shipping_country() || ! $woocommerce->customer->get_shipping_state() || ! $woocommerce->customer->get_shipping_postcode() ) {
echo '
'.__('Please fill in your details to see available shipping methods.', 'woocommerce').'
';
} else {
echo '
'.__('Sorry, it seems that there are no available shipping methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce').'
';
}
}
?>
cart->get_cart_tax()) :
$taxes = $woocommerce->cart->get_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; endif;
if ($tax==0) continue;
?>
cart->tax->get_rate_label( $key ); ?>
cart->prices_include_tax) :
?>
cart->get_cart_subtotal( true ); ?>
$tax) :
if (!$woocommerce->cart->tax->is_compound( $key )) continue;
if ($tax==0) continue;
?>
customer->is_customer_outside_base()) :
$estimated_text = ' ' . sprintf(__('(taxes estimated for %s)', 'woocommerce'), $woocommerce->countries->estimated_for_prefix() . __($woocommerce->countries->countries[ $woocommerce->countries->get_base_country() ], 'woocommerce') );
else :
$estimated_text = '';
endif;
echo sprintf(__('Note: Shipping and taxes are estimated%s and will be updated during checkout based on your billing and shipping information.', 'woocommerce'), $estimated_text );
?>