Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-19032

Event Registration Confirm and ThankYou tpls assume one can only pay by Credit Card (and not ACHEFT - Direct Debit)

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.7.8
    • Fix Version/s: Unscheduled
    • Component/s: CiviEvent
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      To reproduce:

      • demo/buildkit: event registration Rain-forest Cup
      • iATS ACHEFT processor (direct debit)
      • Confirm and ThankYou pages both have Credit Card Information heading - which is empty as this was a direct debit payment
      • see:

      Code:
      templates/CRM/Event/Form/Registration/ThankYou.tpl:

      {if $contributeMode eq 'direct' and $paidEvent and ! $is_pay_later and !$isAmountzero and !$isOnWaitlist and !$isRequireApproval}
              <div class="crm-group credit_card-group">
                  <div class="header-dark">
                      {ts}Credit Card Information{/ts}
                  </div>
                  <div class="crm-section no-label credit_card_details-section">
                      <div class="content">{$credit_card_type}</div>
                  <div class="content">{$credit_card_number}</div>
                  <div class="content">{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}</div>
                  <div class="clear"></div>
                </div>
              </div>
          {/if}

      Whereas for Contributions we do find out what type it is and display this section accordingly:
      templates/CRM/Contribute/Form/Contribution/ThankYou.tpl:

        {if $contributeMode eq 'direct' and ! $is_pay_later and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 )}
          {crmRegion name="contribution-thankyou-billing-block"}
            <div class="crm-group credit_card-group">
              <div class="header-dark">
                {if $paymentProcessor.payment_type & 2}
                  {ts}Direct Debit Information{/ts}
                {else}
                  {ts}Credit Card Information{/ts}
                {/if}
              </div>
              {if $paymentProcessor.payment_type & 2}
                <div class="display-block">
                  {ts}Account Holder{/ts}: {$account_holder}<br />
                  {ts}Bank Identification Number{/ts}: {$bank_identification_number}<br />
                  {ts}Bank Name{/ts}: {$bank_name}<br />
                  {ts}Bank Account Number{/ts}: {$bank_account_number}<br />
                </div>
              {else}
                <div class="crm-section no-label credit_card_details-section">
                  <div class="content">{$credit_card_type}</div>
                  <div class="content">{$credit_card_number}</div>
                  <div class="content">{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}</div>
                  <div class="clear"></div>
                </div>
              {/if}
            </div>
          {/crmRegion}
        {/if}

        Attachments

          Activity

            People

            • Assignee:
              KarinG KarinG
              Reporter:
              KarinG KarinG
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: