Skip to content

Commit

Permalink
Fix MultiCurrency onboarding settings page on Woo Express (#7361)
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoumpierre authored Oct 5, 2023
1 parent b57f91b commit a2d7454
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions changelog/fix-6466-mc-errors
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

Fix onboarding section on MultiCurrency settings page.
8 changes: 8 additions & 0 deletions includes/multi-currency/SettingsOnboardCta.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ),
Expand All @@ -97,6 +101,10 @@ public function get_settings( $current_section = '' ) {
[
'type' => 'wcpay_currencies_settings_onboarding_cta',
],
[
'type' => 'sectionend',
'id' => $this->id . '_enabled_currencies',
],
];
}
}

0 comments on commit a2d7454

Please sign in to comment.