[REF] Migrate Event Cart Setting into the Extension
authorSeamus Lee <seamuslee001@gmail.com>
Tue, 14 Jul 2020 23:05:43 +0000 (09:05 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Tue, 14 Jul 2020 23:05:43 +0000 (09:05 +1000)
ext/eventcart/settings/Eventcart.setting.php [new file with mode: 0644]
settings/Event.setting.php

diff --git a/ext/eventcart/settings/Eventcart.setting.php b/ext/eventcart/settings/Eventcart.setting.php
new file mode 100644 (file)
index 0000000..d52892d
--- /dev/null
@@ -0,0 +1,38 @@
+<?php
+/*
+ +--------------------------------------------------------------------+
+ | Copyright CiviCRM LLC. All rights reserved.                        |
+ |                                                                    |
+ | This work is published under the GNU AGPLv3 license with some      |
+ | permitted exceptions and without any warranty. For full license    |
+ | and copyright information, see https://civicrm.org/licensing       |
+ +--------------------------------------------------------------------+
+ */
+
+/**
+ *
+ * @package CRM
+ * @copyright CiviCRM LLC https://civicrm.org/licensing
+ */
+
+/**
+ * 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'],
+  ],
+];
index 50477d91369d3b9dfc15996af57c8826e353cf52..c7481cb2f2c0c5497fe92b046dc75264c3680844 100644 (file)
  * 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',