countries->get_formatted_address( $package['destination'], ', ' );
$has_calculated_shipping = ! empty( $has_calculated_shipping );
$show_shipping_calculator = ! empty( $show_shipping_calculator );
$calculator_text = '';
?>
label, $matches)) {
$text_before_comma = trim($matches[1]); // Текст до запятой
$text_in_parentheses = trim($matches[2]); // Текст в скобках
} else {
$text_before_comma = '';
$text_in_parentheses = '';
}
$text_in_parentheses = translate_days($text_in_parentheses);
if ($text_before_comma == 'CDEK: Посылка склад-дверь' || $text_before_comma == 'CDEK: Package warehouse to door'){
$title = pll__('Курьером');
}
else if ($text_before_comma == 'CDEK: Посылка склад-склад' || $text_before_comma == 'CDEK: Package warehouse to warehouse'){
$title = pll__('Пункт выдачи');
}
?>
-
' . esc_html( $formatted_destination ) . '' );
$calculator_text = esc_html__( 'Change address', 'woocommerce' );
} else {
echo wp_kses_post( apply_filters( 'woocommerce_shipping_estimate_html', __( 'Shipping options will be updated during checkout.', 'woocommerce' ) ) );
}
?>
|