On Wed, Nov 4, 2009 at 8:42 AM, Joseph Lacey <josephlacey@…> wrote:
Mark, I've done a first pass at the prototype, and everything looks relatively promising. http://community.sandbox.ussf2010.org/civicrm/event/register?id=4&reset=1 The first thing to note is the Price Set I've setup. This means we need only one event. Right now, everything is listed out, but I imagine what we add a drop down box with the four options and then with a little javascript, display the payment options below depending on the selection. This doesn't get around the issue of Organization or University / Business registration with multiple attendees. You'll see that I've setup a crude solution based on our conversation Sunday. I imagine we would be able to see from the template whether the user was on page one or the subsequent pages or had added more than 3 attendees, and then offer the choices accordingly. I don't think we'll come to a decision about the pricing yet, but this one possibility that I'm going to chase int he interim. I've setup a specific USSF Attendee profile that includes the New individual information, zipcode and the volunteer question. We can add whatever requesite information is needed for every attendee. I've also added in a Custom Data field of type Contact Reference. This is an autocomplete field of all the Contacts in the DB, but I'm not sure if this is a solution to get around hooking that field into the profile. I see two immediate problems with this Contact Reference. It gives access to all the orgs and individuals in the database, a security hole. And I'm not sure exactly what a Contact Reference is in terms of the how it's stored, i.e. I'm not sure if this will suffice for an Organizational Registration from an administartive point of view. I'll need to go through the registration process to see exactly. Related, I realized there is a way to set a CiviCRM message. It's not as simple as dsm() but it should work. I'll need to check the syntax and that it works from the Drupal module side as I've usually used it within CiviCRM php files. If I get that sorted, I'll send over the way to use it. There may be some idiosynacracies as you'd be passing information into a template to be rendered. I setup a Dummy Payment Processor. It renders within the form. Its untested, but my assumption is the PayPal_Standard payment processor will always have that redirect. Having non-pro or "low level" e-commerce accounts may cause that. We would need a payment processor that did not redirect, but I could have just overlooked exactly how the other two have been setup. I'll look more into this, and find out what exactly the specifications we'll need. It's raw, but it's a start. More later. Joseph
On Wed, Nov 4, 2009 at 1:09 PM, Ross Glover <ross@…> wrote:
This looks great. I tried to register, but it seems as if you cannot enter an organization that isn't already in the database. Is there an easy fix for this using the standard event organizational registration?
I think that's the big question. Mark asked Lobo, I believe, if registering an organization was in the spec without customization. I believe the answer is no, so a hook would be required.
I don't think this feature will work; I was just seeing what how this functioned.
ya, addign the organization was my plan through the hook
so i would like to see organization details added to the bottom of the top profile
when that form is submitted I will grab the organization details from the submitted form, create a new org contact, set the relationships between the org and the registering attendee, then, set the relationships between the org contact and the remaining attendees as each subsequent form gets submitted.
Joseph, could you add those org fields to the profile so i know what the field names should be? i might not have time to finish my hook until this weekend
once again, great work joseph.
cheers, mark
(For clarity's sake, I've used Captialization for CiviCRM's nomenclature and lowercase for USSF's, as there's some overlap.)
I've added the organization registration at the bottom of the form. This has been added to the Participant data section.
Since this form also includes individual registration, I'm assuming we'd only show this part of the form if someone selects to register for either an organization or a university / business. We could use the same drop down to determine this as we do the price. But I think this brings up a vocabulary issue, what's the difference between an organization and a university / business? I think I know, but we'll need an umbrella term for Organization registration.
I've also added an additional donation price in the Price Set. Does this pertain to only registering individuals? If so, it could be included with the individual price. But I'm not sure how the data is stored. I assuming, if its like a donation, it will be connected to the Individual's contact record, but from an accountants' point of view would these need to be summed and stored together or would separate storage of the base price and the donation suffice? I'm going to assume the latter for now.
We'll be able to have the "Register additional people for this event" fieldset open automatically with some simple javascript (or the removal of some; I'll need to look at how its coded). Can individual's do this as well, or only organizations, universities and businesses?
We should do a test run of the registration before you start coding the hooks, Mark. I'll review what's on the wiki to make sure there's a match at this preliminary stage. I can get to all this before the weekend.
Joseph
