Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix value if missing option #987

Merged
merged 2 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/PaymentMethods/Directdebit.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ protected function getConfig(): array
{
return [
'id' => 'directdebit',
'defaultTitle' => 'SEPA Direct Debit', 'mollie-payments-for-woocommerce',
'defaultTitle' => 'SEPA Direct Debit',
'settingsDescription' => "SEPA Direct Debit is used for recurring payments with WooCommerce Subscriptions, and will not be shown in the WooCommerce checkout for regular payments! You also need to enable iDEAL and/or other 'first' payment methods if you want to use SEPA Direct Debit.",
'defaultDescription' => '',
'paymentFields' => false,
Expand Down
2 changes: 1 addition & 1 deletion src/PaymentMethods/Giftcard.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected function getConfig(): array
{
return [
'id' => 'giftcard',
'defaultTitle' => 'Gift cards', 'mollie-payments-for-woocommerce',
'defaultTitle' => 'Gift cards',
'settingsDescription' => '',
'defaultDescription' => 'Select your gift card',
'paymentFields' => true,
Expand Down
2 changes: 1 addition & 1 deletion src/PaymentMethods/Klarnasliceit.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ protected function getConfig(): array
{
return [
'id' => 'klarnasliceit',
'defaultTitle' => 'Klarna Slice it', 'mollie-payments-for-woocommerce',
'defaultTitle' => 'Klarna Slice it',
'settingsDescription' => 'To accept payments via Klarna, all default WooCommerce checkout fields should be enabled and required.',
'defaultDescription' => '',
'paymentFields' => false,
Expand Down
2 changes: 1 addition & 1 deletion src/Settings/SettingsModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function services(): array
return $settingsHelper->isTestModeEnabled();
},
'settings.IsDebugEnabled' => static function (): bool {
$debugEnabled = get_option('mollie-payments-for-woocommerce_debug', true);
$debugEnabled = get_option('mollie-payments-for-woocommerce_debug', 'yes');
return $debugEnabled === 'yes';
},
'settings.advanced_default_options' => static function (ContainerInterface $container) {
Expand Down
Loading