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) »
  • changing what happens on event registration
Pages: [1]

Author Topic: changing what happens on event registration  (Read 737 times)

trevorwood

  • I post occasionally
  • **
  • Posts: 119
  • Karma: 4
  • CiviCRM version: 4.0.2
  • CMS version: Joomla 1.6
  • MySQL version: 5.0.51a
  • PHP version: 5.2.6-1+lenny8
changing what happens on event registration
September 21, 2011, 07:50:35 am
I'm trying to set up an event as follows

Members are allowed to book on to the event immediately
Non members need to have some additional registration information captured and then their registration needs to be approved/declined

What I'd like to be able to do is to interrupt the registration process when someone clicks on the "continue" button on the Event Registration page (after they have entered their email address. This is the point that I can check whether the email address entered is associated with a member or not, and either continue to the Thank You for Registering (if they are a member) or send them to another page if they are not.

I'm quite capable of writing the code for this, I just need to know whether there is a facility built in already or where I need to go to hack the "continue" button code

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: changing what happens on event registration
September 21, 2011, 09:18:51 am

u'll need to add this functionality, not present by default :(

Might make sense to just create a simple: "Enter your email address" as the first form and based on that check send them to either event registration if member OR another page if not a member. I suspect a lot less code involved this way

Alternatively, if they are logged in, you can check for membership status and display the event registration link conditionally

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

trevorwood

  • I post occasionally
  • **
  • Posts: 119
  • Karma: 4
  • CiviCRM version: 4.0.2
  • CMS version: Joomla 1.6
  • MySQL version: 5.0.51a
  • PHP version: 5.2.6-1+lenny8
Re: changing what happens on event registration
September 23, 2011, 01:51:35 am
That's my plan if it couldn't be done any other way

Thanks

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: changing what happens on event registration
September 23, 2011, 02:37:48 am
Privacy concern: it means that an anonymous user can know if john@doe.com is or isn't a member of your org. Not sure it's an issue for you.

Using checksum token, you can test if the user is existing or not and based on that probably play in the buildform to assign or not the profile (beware, that's probably not so simple, the way the profiles pre and post are assigned are a bit different than the normal fields if I recall properly).

Might be easier to redirect to something different indeed as per lobo's suggestion

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • changing what happens on event registration

This forum was archived on 2017-11-26.