Skip to content

Commit

Permalink
Fix help text for variations of contribution button texts
Browse files Browse the repository at this point in the history
  • Loading branch information
artfulrobot committed Apr 18, 2024
1 parent 2d23553 commit 73b3c6b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CRM/Core/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,12 @@ public function getText($context, $params) {
return '';

case 'contributionPageContinueText':
if ($params['amount'] <= 0.0 || (int) $this->_paymentProcessor['billing_mode'] === 4) {
return ts('Click the <strong>Continue</strong> button to proceed with the payment.');
}
if ($params['is_payment_to_existing']) {
return ts('Click the <strong>Make Payment</strong> button to proceed with the payment.');
}
return ts('Click the <strong>Make Contribution</strong> button to proceed with the payment.');

case 'contributionPageConfirmText':
Expand Down

0 comments on commit 73b3c6b

Please sign in to comment.