CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Contribution Page "in memory of" section error/bug
Pages: [1]

Author Topic: Contribution Page "in memory of" section error/bug  (Read 4602 times)

letapjar

  • Guest
Contribution Page "in memory of" section error/bug
October 16, 2010, 01:49:54 pm
Hello all,
new to CiviCRM -

In putting together a contribution/campaign page I noticed that there is no way to control the honoree section (except on or off).

The problem is that if a donor selects "in memory of"  the form still asks for an email address of the honoree.

This is very bad from a user experience point of view.  If I am giving in memory of someone - I should not be asked for their email address.

Is there an easy fix for this issue?

TIA

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Contribution Page "in memory of" section error/bug
October 16, 2010, 02:38:37 pm

u can customize the template (CRM/Contribute/Form/Contribution/Main.tpl) and suppress the email field for the in memory of case

http://wiki.civicrm.org/confluence/display/CRMDOC32/Customize+Built-in,+Profile,+Contribution+and+Event+Registration+Screens

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

letapjar

  • Guest
Re: Contribution Page "in memory of" section error/bug
October 16, 2010, 03:47:40 pm
Thanks for the speedy reply!

Just for clarity - there is an honoree.tpl template file as well - where is that used ?

Thanks again

letapjar

  • Guest
Re: Contribution Page "in memory of" section error/bug
October 17, 2010, 10:40:31 am
In case anyone else wants to use this - here is my modified verion of the function :

function enableHonorType( ) {
    var element = document.getElementsByName("honor_type_id");
    for (var i = 0; i < element.length; i++ ) {
   var isHonor = false;   
        var showemail = true;  //added this to hide the email address field if donation is in memory of somone
   if ( element.checked == true ) {
        isHonor = true;
            if (element.value==2){
               showemail = false;
              }
       break;
   }
    }
    if ( isHonor ) {
   show('honorType', 'block');
      if (showemail){
   show('honorTypeEmail', 'block');
       }
      else{
       document.getElementById('honor_email').value      = '';
       hide('honorTypeEmail', 'block');
      }
    } else {
   document.getElementById('honor_first_name').value = '';
   document.getElementById('honor_last_name').value  = '';
   document.getElementById('honor_email').value      = '';
   document.getElementById('honor_prefix_id').value  = '';
   hide('honorType', 'block');   
   hide('honorTypeEmail', 'block');
    }
}

smallbiz

  • I post occasionally
  • **
  • Posts: 43
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Joomla 2.5, 3.3
  • MySQL version: 5
  • PHP version: 5.2
UPDATED Re: Contribution Page "in memory of" section error/bug
June 25, 2013, 08:40:50 am
Still looks like civiCRM is expecting email address for In Memory of block...

Can someone advise where this function should be inserted? I'm running civiCRM 4.3.4 on Joomla 2.5.11

UPDATED:
Looks like these two files:
./civicrm/templates/CRM/Contribute/Form/AdditionalInfo/Honoree.tpl
./civicrm/templates/CRM/Contribute/Form/Contribution/Main.tpl

And then need to refer to http://wiki.civicrm.org/confluence/display/CRMDOC32/Customize+Built-in,+Profile,+Contribution+and+Event+Registration+Screens

« Last Edit: June 25, 2013, 08:55:23 am by smallbiz »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Contribution Page "in memory of" section error/bug

This forum was archived on 2017-11-26.