[#5] Add a setting for differentiating membership types depending on donation rhythm
This commit is contained in:
parent
cd7c7e7d12
commit
bc9baea6f2
5 changed files with 38 additions and 17 deletions
|
@ -325,6 +325,14 @@ class CRM_Twingle_Form_Profile extends CRM_Core_Form {
|
|||
FALSE, // is not required
|
||||
array('class' => 'crm-select2 huge')
|
||||
);
|
||||
$this->add(
|
||||
'select', // field type
|
||||
'membership_type_id_recur', // field name
|
||||
E::ts('Create membership of type (recurring)'), // field label
|
||||
array('' => E::ts('- none -')) + static::getMembershipTypes(), // list of options
|
||||
FALSE, // is not required
|
||||
array('class' => 'crm-select2 huge')
|
||||
);
|
||||
|
||||
$this->add(
|
||||
'text', // field type
|
||||
|
|
|
@ -214,6 +214,7 @@ class CRM_Twingle_Profile {
|
|||
'contribution_source',
|
||||
'custom_field_mapping',
|
||||
'membership_type_id',
|
||||
'membership_type_id_recur',
|
||||
),
|
||||
// Add payment methods.
|
||||
array_keys(static::paymentInstruments()),
|
||||
|
@ -283,6 +284,7 @@ class CRM_Twingle_Profile {
|
|||
'contribution_source' => NULL,
|
||||
'custom_field_mapping' => NULL,
|
||||
'membership_type_id' => NULL,
|
||||
'membership_type_id_recur' => NULL,
|
||||
)
|
||||
// Add contribution status for all payment methods.
|
||||
+ array_fill_keys(array_map(function($attribute) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue