Manually set the label for Check (pledged)

Created on 18 October 2024, 29 days ago

Problem/Motivation

Currently the label "Check" shows on the donation form as a payment method.

Can the the check payment method label be set manually on each give bundle?

Then users can set the label to "Pledge Cash" or "Pledge Food"

      // Override the default "Check" payment method label .
      'check_label' => [
        '#type' => 'textfield',
        '#title' => $this->t('Check payment method label'),
        '#description' => $this->t("Override the Check payment method default <em>Check</em> text. e,g set the label to "Pledge Cash" or "Pledge Food""),
        '#default_value' => $give_form->getCheckLabel(),
      ],

I am not sure how to do the string override of the check payment method text set in the give.module
=> t('Check',

in below code

function payment_method_names() {
  static $all_methods;
  if (!$all_methods) {
    $all_methods = [
      PaymentMethod::GIVE_VIA_CHECK => t('Check', [], ['context' => 'donation payment method']),

Thanks

✨ Feature request
Status

Active

Version

2.0

Component

User interface

Created by

πŸ‡ΏπŸ‡¦South Africa vlooi vlerke

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024