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 CiviEvent (Moderator: Yashodha Chaku) »
  • profile feld influence a price set field?
Pages: [1]

Author Topic: profile feld influence a price set field?  (Read 641 times)

akasman

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 2
  • CiviCRM version: 3.4.5
  • CMS version: Drupal
profile feld influence a price set field?
April 04, 2010, 11:16:32 am
I'm wondering if anyone has any ideas as to how I can use the value of a profile field to influence the value in a price set field on the registration page for an event.

I have an event with online registration.  
And there are two examples where I would like to use field data to preselect price set options:

a) I would like the profile field "birthday" to influence an age-bracket based price (tot, child, adult) in a price set.  
b) If someone selects that they would like to take the chartered bus to our event within the profile, I would like the price set to reflect this automatically. For this example, I want to have the transportation options as profile fields in addition to price set fields so that our event administrators can make changes to transportation options for specific participants as required following initial registration. (I understand that price set participant data can't be changed administratively after a registration takes place as the price set data is transactional and represents payment at a point in time).
 
Any suggestions are greatly appreciated!

I'm thinking I could use some javascript to change the price set field based on profile field selection, but I'm a newbie to civi customization, and I'm trying to understand where I would hook that in.

  
« Last Edit: April 18, 2010, 08:25:41 pm by akasman »

akasman

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 2
  • CiviCRM version: 3.4.5
  • CMS version: Drupal
Re: profile feld influene a price set field?
April 04, 2010, 12:41:01 pm
I think I found an answer in another thread: 
http://forum.civicrm.org/index.php/topic,10583.0.html

Use jquery to bind javascript to a field on the page. I'll give that a shot!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • profile feld influence a price set field?

This forum was archived on 2017-11-26.