Skip to content
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
1 change: 1 addition & 0 deletions packages/join-block/src/Blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ function ($o) {
"REQUIRE_ADDRESS" => $fields["require_address"] ?? true,
"HIDE_ADDRESS" => $fields["hide_address"] ?? false,
"REQUIRE_PHONE_NUMBER" => $fields["require_phone_number"] ?? true,
"ENABLE_INTERNATIONAL_PHONE_NUMBERS" => Settings::get("ENABLE_INTERNATIONAL_PHONE_NUMBERS"),
"SENTRY_DSN" => Settings::get("SENTRY_DSN"),
"STRIPE_DIRECT_DEBIT" => Settings::get("STRIPE_DIRECT_DEBIT"),
"STRIPE_DIRECT_DEBIT_ONLY" => !empty($fields['allow_cards_override'])
Expand Down
6 changes: 6 additions & 0 deletions packages/join-block/src/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ public static function init()
->set_help_text('When collecting email contact consent, require the user to check the box.'),
Field::make('checkbox', 'require_phone_consent', 'Phone consent required')
->set_help_text('When collecting phone contact consent, require the user to check the box.'),
Field::make('checkbox', 'enable_international_phone_numbers', 'Enable international phone numbers')
->set_help_text(
'When enabled, phone numbers are validated against the country selected in the address. ' .
'If the address section is hidden, members must enter a number in international format ' .
'(e.g. +44...). When disabled, only UK numbers are accepted.'
),
Field::make('checkbox', 'hide_zero_price_display', 'Hide price display for zero-price items')
->set_help_text('When enabled, membership tiers with a price of zero will not show a price label'),
Field::make('checkbox', 'create_auth0_account'),
Expand Down
Loading
Loading