$this->assign('context', $this->_context);
$this->assign('membershipMode', $this->_mode);
+ $this->assign('newCredit', CRM_Core_Config::isEnabledBackOfficeCreditCardPayments());
$this->allMembershipTypeDetails = CRM_Member_BAO_Membership::buildMembershipTypeValues($this, [], TRUE);
foreach ($this->allMembershipTypeDetails as $index => $membershipType) {
if ($membershipType['auto_renew']) {
$this->assign('recurProcessor', json_encode($this->_recurPaymentProcessors));
// Build the form for auto renew. This is displayed when in credit card mode or update mode.
// The reason for showing it in update mode is not that clear.
+ $this->assign('allowAutoRenew', $this->_mode && !empty($this->_recurPaymentProcessors));
if ($this->_mode || ($this->_action & CRM_Core_Action::UPDATE)) {
- if (!empty($this->_recurPaymentProcessors)) {
- $this->assign('allowAutoRenew', TRUE);
- }
$autoRenewElement = $this->addElement('checkbox', 'auto_renew', ts('Membership renewed automatically'),
NULL, ['onclick' => "showHideByValue('auto_renew','','send-receipt','table-row','radio',true); showHideNotice( );"]