From 2b08d1b31bbeff21e06f4056f67ce02251a6ea77 Mon Sep 17 00:00:00 2001
From: Chris McNeill <82999806+csmcneill@users.noreply.github.com>
Date: Thu, 20 Jul 2023 13:53:07 -0500
Subject: [PATCH 1/3] Removes the "for your state" string from the checkout
page if there are no current payment methods available.
---
plugins/woocommerce/templates/checkout/payment.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/woocommerce/templates/checkout/payment.php b/plugins/woocommerce/templates/checkout/payment.php
index d817a439307..2527ede8651 100644
--- a/plugins/woocommerce/templates/checkout/payment.php
+++ b/plugins/woocommerce/templates/checkout/payment.php
@@ -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 '';
}
?>
From 9584ba1f590deccfb7a55433e6f899412a141961 Mon Sep 17 00:00:00 2001
From: github-actions
Date: Thu, 20 Jul 2023 19:12:38 +0000
Subject: [PATCH 2/3] Add changefile(s) from automation for the following
project(s): woocommerce
---
plugins/woocommerce/changelog/payment-methods-for-your-state | 4 ++++
1 file changed, 4 insertions(+)
create mode 100644 plugins/woocommerce/changelog/payment-methods-for-your-state
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.
From 3e8c8624642f55f43889cbe28104ba62db5fa67f Mon Sep 17 00:00:00 2001
From: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
Date: Thu, 27 Jul 2023 15:18:10 -0700
Subject: [PATCH 3/3] Update template version
---
plugins/woocommerce/templates/checkout/payment.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/woocommerce/templates/checkout/payment.php b/plugins/woocommerce/templates/checkout/payment.php
index 2527ede8651..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;