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) »
  • Collecting honoree address information
Pages: [1]

Author Topic: Collecting honoree address information  (Read 664 times)

quackofalltrades

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Collecting honoree address information
May 23, 2011, 07:46:45 pm
Hi,

I know there is already another smilar topic  to this, but it was never fully answered, so I thought I might as well as post again.  Anyway, I'm trying to modify the honorees section of the contribution page to capture address information, and what I was thinking of is using the new contact widget (also used at the top of the contribution page to select the contributor), so that new address data automatically becomes part of a contact record.  Also, users can save time by selecting an existing contact record if one exists. 

Does this approach sound like a good idea?  Anyway ideas about how it can be implemented?

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: Collecting honoree address information
May 24, 2011, 06:57:30 am

Note that a major issue with the below scheme is, you give all your "contributors" the ability to create new contact and hence potentially spam the database without making a contribution.

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

quackofalltrades

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Collecting honoree address information
May 24, 2011, 09:02:35 am
Staff members would actually input all the contributions, so we wouldn't have to worry about that. 


quackofalltrades

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Collecting honoree address information
May 25, 2011, 04:49:42 pm
Okay so I went ahead and added
Code: [Select]
require_once 'CRM/Contact/Form/NewContact.php';
            CRM_Contact_Form_NewContact::buildQuickForm( $form,10, array($profileId));
to my buildhonoree function in the additionalinfo.php file. 

I'm using 10 for my block number because I don't want to run the risk of using an already occupied block.  I also added
Code: [Select]
{include file="CRM/Contact/Form/NewContact.tpl"}
to my honoree.tpl file. 

So far, this thing works great for contributions, but when I'm adding pledges, I can make new contacts, but I can't select existing ones.  The search box that normally gives you a list of contacts that might match your query is not working.  It's weird because this is only a problem when adding pledges, but everything worsk great when adding contributions. 

Does anyone know why the new contact widget might work in contributions but not in pledges? 

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Collecting honoree address information

This forum was archived on 2017-11-26.