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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Event fees based on member roles
Pages: [1]

Author Topic: Event fees based on member roles  (Read 1480 times)

andromeda00

  • Guest
Event fees based on member roles
January 13, 2010, 10:26:38 am
Hello, I usually have success googling most of my issues and finding a resolution. however this time I am not having any luck.  I would think this would be something that could be easily fixed, but for some reason I just can't seem to figure it out or find any options for this in CiviCRM.

Let me explain how I am using CiviCRM:
I am using CiviCRM on a site that allows people to register for classes that are throughout the year, and if they pre-register early they get a discount, which the discount by sign up date works perfectly for.  There are also two event costs, a default cost that is available to the authenticated class(in drupal), but I also need a second cost that should only be available to a "member" class with drupal. 

I tried adding a second cost to the event fees, which seems to work if I want to manually add the participants and as long as the early sign-up dates at still in affect.  Once the current date is no longer discounted, it gives the end user the option to choose either two of the classes.  If I were able to hide the second displayed cost from the end user, I could even use this as a temporary solution and register the "member" class manually, since there are not too many of them as it is.

So now that I have described what I am trying to achieve, my question is:

Is there a easy way to set up event fees to discount event costs based on a role that is defined in drupal, as well as discounting by signup dates?

Thanks for your time in reading this post, any advice will be greatly appreciated!


Drupal Version: 6.15
CiviCRM Version: 3.0.3



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: Event fees based on member roles
January 13, 2010, 12:27:52 pm

you can do this using the buildAmount hook

using something similar to the technique here: http://civicrm.org/node/566

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

andromeda00

  • Guest
Re: Event fees based on member roles
January 15, 2010, 10:28:27 pm


It seems that using hooks may be the only way to get civiCrm to do what I need.  I am still pretty new to Drupal and my coding experience is fairly limited.  I will give this a try, Thanks Lobo!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Event fees based on member roles

This forum was archived on 2017-11-26.