diff --git a/plugins/woocommerce/changelog/payment-methods-for-your-state b/plugins/woocommerce/changelog/payment-methods-for-your-state new file mode 100644 index 00000000000..28fd77a4228 --- /dev/null +++ b/plugins/woocommerce/changelog/payment-methods-for-your-state @@ -0,0 +1,4 @@ +Significance: minor +Type: tweak + +Modified the error message shown to customers in the event that no payment gateways are available. diff --git a/plugins/woocommerce/templates/checkout/payment.php b/plugins/woocommerce/templates/checkout/payment.php index d817a439307..df777dcffde 100644 --- a/plugins/woocommerce/templates/checkout/payment.php +++ b/plugins/woocommerce/templates/checkout/payment.php @@ -12,7 +12,7 @@ * * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce\Templates - * @version 7.8.0 + * @version 8.1.0 */ defined( 'ABSPATH' ) || exit; @@ -31,7 +31,7 @@ if ( ! wp_doing_ajax() ) { } } else { echo '
  • '; - wc_print_notice( apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'woocommerce' ) ), 'notice' ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment + wc_print_notice( apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'woocommerce' ) ), 'notice' ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment echo '
  • '; } ?>