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) »
  • Discounts based on number of registrations
Pages: [1]

Author Topic: Discounts based on number of registrations  (Read 469 times)

sussdorff

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 4
  • CiviCRM version: 3.4
  • CMS version: Drupal 6
Discounts based on number of registrations
July 18, 2011, 08:36:10 am
Sorry if this has already been covered and I was unable to find it.....

We need to provide discounts to our events (dancing workshops) not based on time but based on number of participants. Here is the use case:

The event costs 160 EUR. The first 20 participants to signup get a 80 EUR discount. The next 20 participants get 60 EUR discount and so on...

To make things easy, discount applies to number of registrations, though it would be nice to have the option to say the discount applies when a user confirms his/her participation in the workshop (this is important as most of our workshops are approval only, which means the user still has to confirm they want to participate).

Is this part of CiviEvent already? If not, is it planned?

Best wishes
  Malte

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Discounts based on number of registrations
July 18, 2011, 10:47:40 am
There is not built-in support yet for discounts based on number of registrations purchased. You could talk to the folks at dharmatech who've built a comprehensive Drupal module for doing various types of event discounts:

http://drupal.org/project/civievent_discount

It doesn't support your exact requirement yet as far as I know, but they might be up for working w/ you to add that option.

Alternatively, if you have some programming resources available, you can implement this feature by writing a small supplemental module which uses CiviCRM "hooks" to modify the standard pricing on the registration form after checking participant count.

This blog implements a discount using discount coupons - but should get you started (you just skip the discount coupon field insert part and modify the logic used in the civicrm_buildAmount hook to check participant counts.

http://civicrm.org/node/566

If you get something working, please share your solution with the community via blog post / sharing the code.
Protect your investment in CiviCRM by  becoming a Member!

sussdorff

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 4
  • CiviCRM version: 3.4
  • CMS version: Drupal 6
Re: Discounts based on number of registrations
July 22, 2011, 05:48:47 am
This looks interesting.

We have a major list of things we need as extensions for the CiviEvent module so it allows us to effectively run our dance events and I will put this on the list of things we need and give guidance to look into this module if it makes its way into 4.1 (of which our enhancements most likely will be based)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Discounts based on number of registrations

This forum was archived on 2017-11-26.