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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Contribute forms - getting individual & member profile details
Pages: [1]

Author Topic: Contribute forms - getting individual & member profile details  (Read 1899 times)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Contribute forms - getting individual & member profile details
June 19, 2009, 03:35:46 am
Hello all,

We've had a brief chat about this on the IRC and we *all* think this would be useful but currently missing.

When creating a membership signup form for a membership linked to an organisation we'd like to add a profile to gather information relating to the individual doing the signup and about the company they are signing up.

At the moment the company signup profile can't be added. However, there is a a tpl called (onBehalfOf.tpl) that contains company related information so the form is collecting information related to both the company and the individual.

How would we go about enabling (hacking the code) to allow us to add an organisation related profile to a membership signup form?
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Contribute forms - getting individual & member profile details
June 19, 2009, 03:44:18 am
Yes - this would be very useful (me being one of the original IRC posse),

At wwoof we "solved" this problem by telling users that they had to fill in their individual information and organisation name on the org form, then wait until they received their log on details, log on, navigate to the the update my organsiational profile page where they can then update their organisational information.

That's a pretty unexpected workflow, I think.

I know dharmatech had a better solution but it still involved multiple screens.

Maybe it's (another!) thing we can think about at UK dev camp.

Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

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: Contribute forms - getting individual & member profile details
June 19, 2009, 06:26:17 am
Quote from: Eileen on June 19, 2009, 03:35:46 am
We've had a brief chat about this on the IRC and we *all* think this would be useful but currently missing.

i think a lot of us also think the same. question is, who will step up and contribute the code and/or sponsor the feature?

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

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Contribute forms - getting individual & member profile details
June 19, 2009, 01:19:05 pm
Hi Lobo, The request wasn't for you to do this for us but to point us in the right direction to look into it further. Obviously civiCRM in general has difficulty gathering info about two related entities on the same form but in the membership form it is already doing this so presumably there are some underlying smarts in generating that form that enables it to gather org info & individual inf o on the same page - I was wondering if that could be leveraged to gather extra org info on that form -
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Re: Contribute forms - getting individual & member profile details
June 19, 2009, 02:37:20 pm
Quote from: michaelmcandrew on June 19, 2009, 03:44:18 am
I know dharmatech had a better solution but it still involved multiple screens.


Hey Michael and everyone. All we did was make it a three step process where step 1 is a profile with individual fields that redirects to a profile of organization fields (step 2) which then redirects to a contribution page with joining on behalf of an organization enabled (step 3)

A few more details here: http://forum.civicrm.org/index.php/topic,8270.msg35853.html#msg35853

Not sure if it helps but it worked for our client.

tony
http://dharmatech.org
oss@dharmatech.org
801.541.8671

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Contribute forms - getting individual & member profile details
June 19, 2009, 03:48:26 pm
Quote from: Eileen on June 19, 2009, 01:19:05 pm
Hi Lobo, The request wasn't for you to do this for us but to point us in the right direction to look into it further. Obviously civiCRM in general has difficulty gathering info about two related entities on the same form but in the membership form it is already doing this so presumably there are some underlying smarts in generating that form that enables it to gather org info & individual inf o on the same page - I was wondering if that could be leveraged to gather extra org info on that form -

Replacing the hard-coded OnBehalf.tpl with a profile is the preferred approach here IMO. This could be a "fixed-purpose" reserved profile -  similar to the new code in 2.3 for "New Contribution/Membership/etc. for new contact". Would be cool if someone could take this on :-)
Protect your investment in CiviCRM by  becoming a Member!

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Contribute forms - getting individual & member profile details
June 19, 2009, 06:38:58 pm
I don't know how much is involved but if you can point to where in the code you'd start looking I'll have a look and see if I can make any sense of it
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

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: Contribute forms - getting individual & member profile details
June 19, 2009, 09:42:51 pm

CRM/Contact/BAO/Contact/Utils.php, buildOnBehalfForm

is your starting point. however the issue is a bit non-trivial, since if you move it intro a profile, u'll need to also remember which fields are associated with the organization and which are associated with the individual submitting the contribution/membership. Ideally the new org should be created using an ajax widget similar to what we've done for new contribution etc in 2.3.

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

EdP

  • I post frequently
  • ***
  • Posts: 260
  • Karma: 7
  • CiviCRM version: 4.4
  • CMS version: Joomla 2.5.x
Re: Contribute forms - getting individual & member profile details
July 01, 2009, 02:12:28 pm
From the sounds of it, this is related to this:
http://forum.civicrm.org/index.php/topic,8590.0.html
If someone is fixing this one about details of an organisation, can they also fix the details of an individual/household option at the same time - I don't have enough expertise I think.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Contribute forms - getting individual & member profile details

This forum was archived on 2017-11-26.