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 Profiles (Moderator: Dave Greenberg) »
  • Generate accounting ID for profile
Pages: [1]

Author Topic: Generate accounting ID for profile  (Read 1099 times)

dolfa

  • Guest
Generate accounting ID for profile
June 03, 2009, 01:28:06 pm
Hi
I want provide my users with some accounting id, that will be generated for them automatically, they will see this ID in their profile and they should use this when paying for courses etc. to identify themselves. Is there possibility CiviCRM could generate unique accounting ID for each of the new registered users just when they finish registration process by itself? How to add this to the user's profiles?
Thanks for ideas.

D.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Generate accounting ID for profile
June 03, 2009, 03:27:41 pm
Easies approach would be to use the unique contact ID assigned to each contact by CiviCRM. You can customize the Profile "view" template to display this (using the $cid value that is already assigned to that template).

Or, create a custom field in CiviCRM (Account ID) and check the "View Only" property for the field. You'll then need to implement a "hook" in a small separate module to populate that field value for contacts as they're created. I haven't played with this a lot, but I think if you include the custom field in a profile - it will display as a read-only field with the assigned value.

Check the Develop section of the doc wiki for details on custom templates and hooks.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Generate accounting ID for profile

This forum was archived on 2017-11-26.