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) »
  • Membership based Prices for Events
Pages: [1]

Author Topic: Membership based Prices for Events  (Read 1187 times)

noelg

  • Guest
Membership based Prices for Events
December 15, 2009, 05:20:18 pm
I would like to offer different prices for my events based on if they are a member or not. I searched and found that this feature, or something very much like it, was going to be available in 2.0. I've been unsuccessful in figuring out how to do this.

Anyone have any tips?

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: Membership based Prices for Events
December 15, 2009, 06:01:21 pm

check: 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

noelg

  • Guest
Re: Membership based Prices for Events
December 16, 2009, 06:21:49 am
Is there anyway that can be tweaked to check for a valid membership status Vs a coupon code?

If not, I think I could still make this work by using ACL and Menu Per Role then creating two identical nodes. One for non-members with no coupon code in the link, and one for members with a coupon code.  It's just additional overhead to create two pages for each event.

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: Membership based Prices for Events
December 16, 2009, 06:50:40 am

yes it is a hook, so you can put any code / conditional in there for the discount. the coupon code was one example

also check drupal/civitest.module.sample in your codebase, there is an example there: civitest_civicrm_buildAmount with membership status used there

if you are not familiar with php, you might want to hire someone from http://civicrm.org/professional/ to help you with it.

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

noelg

  • Guest
Re: Membership based Prices for Events
December 16, 2009, 09:54:38 am
I think I can make it out. I am quite familiar with other scripting languages, so I’m hoping some of that experience will flow into PHP. If not, I have books and the internet.  ;D

I took a look at the code example and it looks like it is just what I’m looking for. I’ll see what I can do with it tonight and report back.

noelg

  • Guest
Re: Membership based Prices for Events
December 16, 2009, 09:10:05 pm
Apologies for the double post.

I have this solution working. I've already begun working on a very simple settings page to select event ID, percent off, and membership type. I haven't quite figured it out just yet, but I want to be able to use two different membership types for the same discount. Would I use an array for that? 

Once I'm done, I post the package. At the very least, it could be something to work from.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Membership based Prices for Events

This forum was archived on 2017-11-26.