From 5ff1e1d166b8db034b490677926f4734ee8c6e2b Mon Sep 17 00:00:00 2001 From: Eduardo Umpierre Date: Tue, 3 Oct 2023 17:30:51 -0300 Subject: [PATCH 1/3] Fix MC onboarding section on settings page --- includes/multi-currency/SettingsOnboardCta.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/multi-currency/SettingsOnboardCta.php b/includes/multi-currency/SettingsOnboardCta.php index 835bcdc7f01..1390e0f3816 100644 --- a/includes/multi-currency/SettingsOnboardCta.php +++ b/includes/multi-currency/SettingsOnboardCta.php @@ -97,6 +97,10 @@ public function get_settings( $current_section = '' ) { [ 'type' => 'wcpay_currencies_settings_onboarding_cta', ], + [ + 'type' => 'sectionend', + 'id' => $this->id . '_enabled_currencies', + ], ]; } } From 51fb26778348c4f1bc53ea66d26ec8594936ceef Mon Sep 17 00:00:00 2001 From: Eduardo Umpierre Date: Tue, 3 Oct 2023 17:31:14 -0300 Subject: [PATCH 2/3] Hide save button on MC onboarding settings page --- includes/multi-currency/SettingsOnboardCta.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/multi-currency/SettingsOnboardCta.php b/includes/multi-currency/SettingsOnboardCta.php index 1390e0f3816..574cd8fdd7e 100644 --- a/includes/multi-currency/SettingsOnboardCta.php +++ b/includes/multi-currency/SettingsOnboardCta.php @@ -83,6 +83,10 @@ public function currencies_settings_onboarding_cta() { * @return array */ public function get_settings( $current_section = '' ) { + // Hide the save button because there are no settings to save. + global $hide_save_button; + $hide_save_button = true; + return [ [ 'title' => __( 'Enabled currencies', 'woocommerce-payments' ), From faf72edc743ff4d26a00e7f8782ff5aa6cfdf78e Mon Sep 17 00:00:00 2001 From: Eduardo Umpierre Date: Tue, 3 Oct 2023 17:32:57 -0300 Subject: [PATCH 3/3] Add changelog entry --- changelog/fix-6466-mc-errors | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 changelog/fix-6466-mc-errors diff --git a/changelog/fix-6466-mc-errors b/changelog/fix-6466-mc-errors new file mode 100644 index 00000000000..a0f78a106ca --- /dev/null +++ b/changelog/fix-6466-mc-errors @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Fix onboarding section on MultiCurrency settings page.