* @access public
*
* @return void
- */
+ */
function setDefaultValues() {
//parent::setDefaultValues();
$defaults = array();
$errors = array();
if (CRM_Utils_Array::value('member_price_set_id', $params)) {
- //check if this price set has membership type both auto-renew and non-auto-renew memberships.
+ //check if this price set has membership type both auto-renew and non-auto-renew memberships.
$bothTypes = CRM_Price_BAO_Set::checkMembershipPriceSet($params['member_price_set_id']);
//check for supporting payment processors
}
}
- }
+ }
}
if (CRM_Utils_Array::value('member_is_active', $params)) {
}
}
- if ($contributionPageId && CRM_Utils_Array::value('member_price_set_id', $params) &&
+ if ($contributionPageId && CRM_Utils_Array::value('member_price_set_id', $params) &&
CRM_Core_DAO::getFieldValue('CRM_Contribute_DAO_ContributionPage', $contributionPageId, 'amount_block_is_active')) {
$errors['member_price_set_id'] = ts('You cannot use Membership Price Sets with the Contribution Amounts section. However, a membership price set may include additional fields for non-membership options that requires an additional fee (e.g. magazine subscription) or an additional voluntary contribution.');
}
$errors['is_separate_payment'] = ts('Please enable the contribution amount section to use this option.');
}
}
-
+
}
return empty($errors) ? TRUE : $errors;
}
elseif ($usedPriceSetId) {
$setParams['extends'] = CRM_Core_Component::getComponentID('CiviMember');
- $setParams['financial_type_id'] = CRM_Utils_Array::value( 'financial_type_id', $this->_values );
+ $setParams['financial_type_id'] = CRM_Utils_Array::value( 'financial_type_id', $this->_values );
$setParams['id'] = $usedPriceSetId;
$priceSet = CRM_Price_BAO_Set::create($setParams);
$priceSetID = $priceSet->id;
CRM_Price_BAO_Field::retrieve($editedFieldParams, $editedResults);
if (!CRM_Utils_Array::value('id', $editedResults)) {
$fieldParams['name'] = strtolower(CRM_Utils_String::munge('Membership Amount', '_', 245));
- $fieldParams['label'] = CRM_Utils_Array::value('new_title', $params) ? $params['new_title'] : 'Membership';
+ $fieldParams['label'] = CRM_Utils_Array::value('new_title', $params) ? $params['new_title'] : ts('Membership Amount');
if (!CRM_Utils_Array::value('mem_price_field_id', $params)) {
CRM_Utils_Weight::updateOtherWeights('CRM_Price_DAO_Field', 0, 1, array('price_set_id' => $priceSetID));
}
function showRuleFields( ruleFields )
{
- var msg1 = '{/literal}{ts 1="' + ruleFields + '"}Primary participants will be able to register additional participants using the same e-email address. The default "Fuzzy" Dedupe Rule will use the following fields to prevent duplicate registrations: %1. First and Last Name will be used to check for matches among multiple participants.{/ts}{literal}';
+ var msg1 = '{/literal}{ts 1="' + ruleFields + '"}Primary participants will be able to register additional participants using the same e-email address. The default "Unsupervised" Dedupe Rule will use the following fields to prevent duplicate registrations: %1. First and Last Name will be used to check for matches among multiple participants.{/ts}{literal}';
var msg2 = '{/literal}{ts escape='js'}Primary participants will be allowed to register for this event multiple times. No duplicate registration checking will be performed.{/ts}{literal}';
var msg3 = '{/literal}{ts escape='js'}Primary participants will be able to register additional participants during registration.{/ts}{literal}';