From 2fcfeeb8ae71b08da25056c87f57fb70c9f3f81e Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Wed, 15 Jul 2020 09:05:43 +1000 Subject: [PATCH] [REF] Migrate Event Cart Setting into the Extension --- ext/eventcart/settings/Eventcart.setting.php | 38 ++++++++++++++++++++ settings/Event.setting.php | 16 --------- 2 files changed, 38 insertions(+), 16 deletions(-) create mode 100644 ext/eventcart/settings/Eventcart.setting.php diff --git a/ext/eventcart/settings/Eventcart.setting.php b/ext/eventcart/settings/Eventcart.setting.php new file mode 100644 index 0000000000..d52892d25c --- /dev/null +++ b/ext/eventcart/settings/Eventcart.setting.php @@ -0,0 +1,38 @@ + [ + 'name' => 'enable_cart', + 'group_name' => 'Event Preferences', + 'settings_pages' => ['event' => ['weight' => 10]], + 'group' => 'event', + 'type' => 'Boolean', + 'quick_form_type' => 'CheckBox', + 'default' => '0', + 'add' => '4.1', + 'title' => ts('Use Shopping Cart Style Event Registration'), + 'is_domain' => 1, + 'is_contact' => 0, + 'description' => ts('This feature allows users to register for more than one event at a time. When enabled, users will add event(s) to a "cart" and then pay for them all at once. Enabling this setting will affect online registration for all active events. The code is an alpha state, and you will potentially need to have developer resources to debug and fix sections of the codebase while testing and deploying it'), + 'help_text' => '', + 'documentation_link' => ['page' => 'CiviEvent Cart Checkout', 'resource' => 'wiki'], + ], +]; diff --git a/settings/Event.setting.php b/settings/Event.setting.php index 50477d9136..c7481cb2f2 100644 --- a/settings/Event.setting.php +++ b/settings/Event.setting.php @@ -19,22 +19,6 @@ * Settings metadata file */ return [ - 'enable_cart' => [ - 'name' => 'enable_cart', - 'group_name' => 'Event Preferences', - 'settings_pages' => ['event' => ['weight' => 10]], - 'group' => 'event', - 'type' => 'Boolean', - 'quick_form_type' => 'CheckBox', - 'default' => '0', - 'add' => '4.1', - 'title' => ts('Use Shopping Cart Style Event Registration'), - 'is_domain' => 1, - 'is_contact' => 0, - 'description' => ts('This feature allows users to register for more than one event at a time. When enabled, users will add event(s) to a "cart" and then pay for them all at once. Enabling this setting will affect online registration for all active events. The code is an alpha state, and you will potentially need to have developer resources to debug and fix sections of the codebase while testing and deploying it'), - 'help_text' => '', - 'documentation_link' => ['page' => 'CiviEvent Cart Checkout', 'resource' => 'wiki'], - ], 'show_events' => [ 'name' => 'show_events', 'group_name' => 'Event Preferences', -- 2.25.1