Removes the "for your state" string from the checkout page if there are no current payment methods available. (#39348)

The for your state element generates confusion for merchants and HEs alike because of the homonym state. There is regularly an assumption that this is referring to a geographical state (e.g., the state of California) instead of a system state.

Removing the for your state string from this message retains the original message but eliminates confusion that may be brought on by using the word state.
This commit is contained in:
Corey McKrill 2023-07-27 16:30:27 -07:00 committed by GitHub
commit 12e5edf032
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -0,0 +1,4 @@
Significance: minor
Type: tweak
Modified the error message shown to customers in the event that no payment gateways are available.

View File

@ -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 '<li>';
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 '</li>';
}
?>