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) »
  • Discount for multiple registrants?
Pages: [1]

Author Topic: Discount for multiple registrants?  (Read 391 times)

jsimonis

  • I post frequently
  • ***
  • Posts: 316
  • Karma: 4
    • Forward Support, Inc.
  • CiviCRM version: 4.4-4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5.37-cll
  • PHP version: 5.3.29
Discount for multiple registrants?
January 23, 2015, 08:12:34 am
We have an event where you get a discount if you register multiple people at once ($50 off all registrations except the first one). However, I haven't found any way to allow this to happen other than putting up the two prices (First Registrant, Additional Registrant) and hoping people are honest. Is there a way to do this?

KilakwaBT

  • I post occasionally
  • **
  • Posts: 101
  • Karma: 11
  • CiviCRM version: 4.5.5
  • CMS version: WordPress 4.1
  • MySQL version: 5.1.68
  • PHP version: 5.3
Re: Discount for multiple registrants?
January 23, 2015, 08:27:34 am
On approach would be to setup registration to allow one person to register multiple participants. Since the original participant form uses a different template then the additional participants you could write a little jquery for each to hide the price option you don't want visible. That way the first registrant will only see the primary price and the additional form will only have the discounted price. This will only work if they are registering all participants at once.

You should make these changes as custom templates to avoid overwrite when upgrading. The templates you need to edit are:

/civicrm/templates/CRM/Event/Form/Registration/Register.tpl
/civicrm/templates/CRM/Event/Form/Registration/AdditionalParticipant.tpl

If you add a .extra.tpl (ie Register.extra.tpl) and save them in your custom templates directory you only need to have the additional code in the file.

Hope this helps,

BT

jsimonis

  • I post frequently
  • ***
  • Posts: 316
  • Karma: 4
    • Forward Support, Inc.
  • CiviCRM version: 4.4-4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5.37-cll
  • PHP version: 5.3.29
Re: Discount for multiple registrants?
January 23, 2015, 09:44:57 am
Thanks. I don't know jquery, so I wouldn't know how to do that. Wonder if there is a way to hide a certain price via css or something and only have one show on the one page and the other show all the other times.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Discount for multiple registrants?

This forum was archived on 2017-11-26.