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) »
  • Multiple Registrations with Price Set - Single Event Fee
Pages: [1]

Author Topic: Multiple Registrations with Price Set - Single Event Fee  (Read 2253 times)

yogibear

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 0
    • Byron Yoga
  • CiviCRM version: 4.1
  • CMS version: 6.2
  • MySQL version: 5.0
  • PHP version: 5.2
Multiple Registrations with Price Set - Single Event Fee
January 13, 2011, 05:53:54 pm
We have a charity paddling / canoe event where we would like a team of people (around 6) to be able to use "register multiple participants" option, and use a price set to cater for various options, but only charge once for the canoe registration as it is shared between the team members. What I have done can be seen here:
https://www.paddleforlife.org.au/civicrm/event/register?id=2&reset=1

With the price set all options are repeated for each registrant but we were hoping to be able to have the  "Registration Fee" show only once.

Does anybody have any suggestions for this?

Thanks.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Multiple Registrations with Price Set - Single Event Fee
January 14, 2011, 10:32:40 am
Only way I can think right now is to use hooks to implement this functionality.

You need to create a 0 amount price set field which is always hidden. So for additional participant you need to remove registration fee price set field and select 0 amount field. This won't charge additional participants.

Hth
Kurund
Found this reply helpful? Support CiviCRM

sgraypgh

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 3.3.5
  • CMS version: Joomla 1.5.22
  • MySQL version: 5.0.91
  • PHP version: 5.2.14
Re: Multiple Registrations with Price Set - Single Event Fee
February 18, 2011, 03:35:29 pm
I am new to CiviCrm and have integrated it with a Joomla site.  This topic is what I need to accomplish, so rather than start a new topic I figured I would just post here.

I have multiple registrations on, so you can select the number of people you are registering.  I have a price set established and in it is a $2500 sponsorship that includes four golfers, a $1750 sponsorship that includes two golfers, as well as numerous other options.  I would like to have a way that when someone selects either of these sponsorship checkboxs, that it selects either four or two registrations, then the next three or one registration pages only have the profile info needed and not any pricing.

It sounds like the hook option is the same thing I need to do to.  I have read how to create the appropriate php file, however, I am having difficulty figuring out what the actual hook language code would be to make this happen.  Any assistance would be greatly appreciated as I need to get this live by March 1st.  Thanks in advance for any advise and examples.

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: Multiple Registrations with Price Set - Single Event Fee
February 18, 2011, 04:35:39 pm

check:

http://en.flossmanuals.net/CiviCRM/DevelopIntro

and also civitest.module.sample in your distribution for lots of code samples

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

sgraypgh

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 3.3.5
  • CMS version: Joomla 1.5.22
  • MySQL version: 5.0.91
  • PHP version: 5.2.14
Re: Multiple Registrations with Price Set - Single Event Fee
February 19, 2011, 12:29:16 pm
Thanks Lobo,

I have printed the book you referenced (all 302 pages), but I am not sure where to find the civitest.module.sample, but did find some examples on the web.  Is the civitest.module.sample included in the CiviCRM-Joomla install zip?

I can't seem to find a similar solution although I think I understand what I need to do with the function:

1. add a $0 amount field.  Do I do this in the price set or do I use something like:
   $form->addElement(
   'hidden', 'Platinum Greens Fee', 0,
   array('id'=>'Platinum Greens Fee')
 );

2. for the main register from, use buildAmount hook to hide the $0 field and set the number of registrations to either four or two depending on which sponsorship they check

3. for the next three or one participants, set the $0 as default and hide the price set

I would most appreciate it is someone could give my the general code layout so I can get an idea where to start.  I am comfortable with php code (it is a hobby not a profession), but I just can't seem to grasp what to do with this hook.

Again, thanks in advance for any assistance.

Scott
« Last Edit: February 19, 2011, 03:33:53 pm by sgraypgh »

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: Multiple Registrations with Price Set - Single Event Fee
February 19, 2011, 04:09:41 pm

check:

http://svn.civicrm.org/civicrm/branches/v3.3/drupal/civitest.module.sample

also:

http://svn.civicrm.org/civicrm/branches/v3.3/drupal/modules/

has a fair number of examples using various hooks

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

sgraypgh

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 3.3.5
  • CMS version: Joomla 1.5.22
  • MySQL version: 5.0.91
  • PHP version: 5.2.14
Re: Multiple Registrations with Price Set - Single Event Fee
February 20, 2011, 08:44:18 am
Lobo, thank again.  I will review this and see what trouble I can get in too.

sgraypgh

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 3.3.5
  • CMS version: Joomla 1.5.22
  • MySQL version: 5.0.91
  • PHP version: 5.2.14
Re: Multiple Registrations with Price Set - Single Event Fee
February 28, 2011, 02:44:52 pm
Well unfortunately this turned out to be much more complicated that originally thought.  While the suggested actions seemed simple enough and I was able to created a priceset with six categories with several options and it looks fine, the numerous multiple hook examples I tried just didn't do what I want.  I had a deadline of tomorrow to get this registration working and I guess I am just not going to make it.  Thanks for the suggestions, just couldn't figure it out. :-\

wrender

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
Re: Multiple Registrations with Price Set - Single Event Fee
March 11, 2012, 10:53:14 am
Hello,

I am trying to do something similar on a website for a golf tournament sign up.  What we need to have is 4 pricing levels:

Level 1 - $400 - 4 participants (signed up by one user who will pay this and enter in the information for the multiple participants).
Level 2 - $300 - 4 participants (signed up by one user who will pay this).
Level 3 - $200 - 4 participants (signed up by one user who will pay this).
Level 4 - $100 - 1 participant (individual)

The problem I see right now, is that you cannot have a "group price" for 1 pricing option.  Is there anyway to have a group price where the person that selects "level 1" has to pay the full group price, regardless if they enter in the information for all participants?  For example for "level 1" I tried pricing each participant as $100, so for 4 participants it would add up to $400 at the end of registration, but the problem is that they can skip a participant and therefor it doesn't total to $400 for them.  We need them to pay the full group price, as they may not know all of their participants at the time of event registration.

Thanks!

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: Multiple Registrations with Price Set - Single Event Fee
March 11, 2012, 11:22:12 am

Pretty sure there is no "UI" based support for this currently. You might be able to accomplish it via hooks and validation. If you do make progress on this please update this topic so others can read and benefit

thanx

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

wrender

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
Re: Multiple Registrations with Price Set - Single Event Fee
March 11, 2012, 11:31:48 am
Ok thanks for the reply.  I don't have the knowledge of Civicrm or time to program this right now, but if I find the time maybe I can setup a project to do this and learn the civicrm API and hooks.  I can see that Civicrm could use a lot of improvement on the price sets.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Multiple Registrations with Price Set - Single Event Fee

This forum was archived on 2017-11-26.