Posted: August 5, 2013 at 11:08 am
|
I’ve setup an after-school program with event espresso. I’ve been working with Sidney for over a month. This Friday, i must have registration setup. Unfortunately, i’m close but i’m still having issues. Here are the details…. BACKGROUND: If you login to keithportman.com/chesswizards.com using test1 / Test123! as your login, i’ve created a test group of events with a shortcode for those 3 events. When you sign in, you’ll notice a link “Register for these events” which is a shortcode with the 3 events i setup using the multi-date registration plugin. On the first cart page (when registering 2 or more attendees at a time, which is CRUCIAL) i’ve used the following jQuery to hide all but the first event in the series (jQuery(‘#event_espresso_checkout_form div.multi-reg-page:not(:first)’).css(‘display’, ‘none’)). This works well. I setup series of events with a cost of ZERO, and then go into the first event of the series and add a cost to only that event. The following events in the series carry the 0.00 cost. Therefore, the entire program fee can be attributed to the first event, but attendees will still be added to the other event dates in the series. This allows for us to track attendance for every date. Sidney Harrell also helped me add/create custom code changes to better allow Event Espresso to operate as a multi-date after-school class registration service (single-mer-attendee-selector.js, and some custom email reply code). But i’m still having a few limitations/issues….. MAIN ISSUE: A few other issues i’m hoping i can accomplish: 1) Is there any way to hide “email” from the attendee registration page and automatically insert the wp user email for all attendees, hidden in the background? I want parents to be able to register all their children on the multi-registration attendee page, but all attendee’s need to have the parent email (since we will not have a database of the children’s emails). Example: Parent: Jane Doe Jane Doe logs in and signs up using the shortcode link. She selects 2 attendees and proceeds to the next page. Jane then inserts her children’s names: First Name*: Johnny First name*: Billy If this can’t be achieved, i’ll have to add a note that instructs the parents to just use their email for each child attendee. This isn’t a huge deal, but it would be a lot more professional if it was done automatically. 2) Is there any easier php code or shortcode for multi-date events? I can use the shortcode i’m using now where you place each event’s ID in the shortcode, so the parent’s can sign up for all at once, but i’m gonna be adding 400 events, each a series of 13 class dates. It would be AMAZING if there was some shortcode or PHP code where i can use one ID or tag for the entire series, rather than an ID for each date of the series. Not as important, but would be great. Thanks in advance for all your help! 1) When parents register, i currently have them adding their children’s names in the registration process. Is there any way to change the “COPY FROM” dropdown on the attendee info page to pick the names of the kid’s associated with the parent’s wp user account? This would be great, but not essential. If i can’t do this, i’d like to fully disable all instances of “COPY FROM” and “COPY TO ALL.” Any help would really be appreciated. I’m so close, and getting past these steps will allow parent’s to register with ease, and allow our |
Hi Keith, The features that you are requesting here will require custom development. We are not at this time able to take on custom development projects. Please feel free to contact one of our recommended Pros to get a custom development quote: |
|
|
Do you have any idea why the button doesn’t work? I understand the rest is custom, but i really cannot figure out why this button doesn’t work. |
It’s likely that the confirm and go to payment page button doesn’t work on the “edit attendee info” screen because the other forms are being hidden with the custom JavaScript. When you go to change the fields in the visible form it’s not updating the fields in the other forms automatically. So if one of the hidden fields is blank and it’s a required field the form doesn’t validate. This may also be a case where it *is* updating the hidden fields but not correctly. For example if it’s an email address field but it’s not filling out an email address, it will not validate in that case either. |
|
|
Would it be possible to use a throttle/debounce jquery code to the following, so that it only populates the hidden fields upon the page loading? jQuery(‘.event_questions input’).change(function() { That way, all the hidden fields will have something. I don’t want to have the same name for all registration instances, but it seems like this might be my only option. And, at the least, the first date of events will have the correct names. I was able to find the throttle/debounce jquery method, but had no luck implementing it. I have very little jquery experience. Can someone help me use this (or some other method)? |
The jQuery throttle/debounce plugin looks to be for limiting code execution. In this case it sounds like you only need to run a function once (on the page load) so I don’t think using throttling or debouncing is needed or warranted here. I did take a look at the page source on your site for the reg form pages and I can offer some advice on how the scripts are being added. Instead of adding in the custom scripts inline in the templates (which results in the JavaScript firing for each set of registration forms) you could place the custom JS into a file, enqueue it only on the registration page, and call it on the wp_enqueue_script hook. Here is some example code that you can use to move your inline scripts out of the templates and into a custom JS file. A good place to add it would be in the custom_functions.php file in /wp-content/uploads/espresso/ : add_action('wp_enqueue_scripts', 'crmc_custom_scripts'); function crmc_custom_scripts() { global $load_espresso_scripts; if ( ! $load_espresso_scripts ) return; // custom script located in /wp-content/uploads/espresso/ wp_enqueue_script('my-custom-script', content_url('/uploads/espresso/mycustom.js'), array('jquery'), '1.0', true); } |
|
The support post ‘Class Registration Modifications…..Close, but Urgent Help Needed’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.