|
|
cart->get_coupons() as $code => $coupon ) : ?>
|
|
cart->needs_shipping() && WC()->cart->show_shipping() ) : ?>
cart->get_fees() as $fee ) : ?>
| name ); ?> |
|
cart->display_prices_including_tax() ) {
$taxable_address = WC()->customer->get_taxable_address();
$estimated_text = '';
if ( WC()->customer->is_customer_outside_base() && ! WC()->customer->has_calculated_shipping() ) {
/* translators: %s location. */
$estimated_text = sprintf( ' ' . esc_html__( '(estimated for %s)', 'alanah-free' ) . '', WC()->countries->estimated_for_prefix( $taxable_address[0] ) . WC()->countries->countries[ $taxable_address[0] ] );
}
if ( 'itemized' === get_option( 'woocommerce_tax_total_display' ) ) {
foreach ( WC()->cart->get_tax_totals() as $code => $tax ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
?>
| label ) . $estimated_text; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
formatted_amount ); ?> |
| countries->tax_or_vat() ) . $estimated_text; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
|
|
|
cart->get_cart_tax() ) : ?>
customer->is_customer_outside_base() && ! WC()->customer->has_calculated_shipping()
? sprintf( ' ' . __( ' (taxes estimated for %s)', 'alanah-free' ), WC()->countries->estimated_for_prefix() . WC()->countries->countries[ WC()->countries->get_base_country() ] )
: '';
printf( __( 'Note: Shipping and taxes are estimated%s and will be updated during checkout based on your billing and shipping information.', 'alanah-free' ), $estimated_text );
?>
', 'alanah-free' );
else :
_e( 'Proceed to Checkout ', 'alanah-free' );
endif;
?>