Home › Forums › Calendar Products › Community Events › Customize Submit Event form fields, thank you email notice
- This topic has 16 replies, 2 voices, and was last updated 9 years, 9 months ago by Casey.
-
AuthorPosts
-
July 9, 2014 at 11:03 pm #329662kellymarie2001Participant
Hi there,
Ideally, I would like to customize the Submit Event form to include a yes/no radial question, an html link and only have that shown on the back end (not necessary to be part of the event information). But that seems to be quite an endeavor from the other forums, so I have a couple of other options I’m trying to figure out:1) Customizing the Thank You text that appears after the event is submitted to include a small amount of text and a link/button.
2) Auto email confirmation sent to the user submitting the event that includes some information/text and links we need to relay.Are these things possible?
Thanks!
July 10, 2014 at 8:28 am #335375CaseyParticipantkellymarie2001,
Thanks for getting in touch! If you have Events Calendar PRO, it’s actually quite easy to add additional fields to the Community Event Submission form, since any custom fields you create with PRO will automatically display on the form (screenshot #1 screenshot #2).Now, regarding your questions above:
1) Customizing the Thank You text that appears after the event is submitted to include a small amount of text and a link/button.
You should be able to customize this message, by pasting the following snippet into your theme’s functions.php file: https://gist.github.com/ckpicker/8aa1390da48520f88149 You’ll want to customize the message text to display what you’d like, but that should hopefully work for you.
2) Auto email confirmation sent to the user submitting the event that includes some information/text and links we need to relay.
User email notifications are not currently a feature of the Community add-on (only admin notifications are currently supported), but this is a great idea! I would suggest submitting it as an idea on our UserVoice page. Our team periodically reviews the most popular ideas for possible inclusion in a future release of the plugin.
Hopefully my responses above help to answer your questions, but let me know if I can assist further. Thanks! 🙂
-Casey-
July 12, 2014 at 3:25 pm #363745kellymarie2001ParticipantUnfortunately I do not have The Event Calendar Pro version, just the regular version with the Community Events add-on. But my workaround could be that thank you message if I could customize that thank you message, but after adding it to my functions.php file I see this at the top of my site and in the dashboard:
add_filter(‘tribe_community_events_form_errors’, ‘customize_thank_you_message’, 10, 2); function customize_thank_you_message( $messages ) { if ( is_array( $messages ) ) { foreach ( $messages as $key => $message ) { if( $message[‘type’] === ‘updated’ ) { $messages[$key][‘message’] = ‘Thanks for submitting your event! You can add other helpful information or HTML here also.’; } } } return $messages; }July 12, 2014 at 7:18 pm #364631CaseyParticipantkellymarie2001,
Make sure you’re including the code snippet within the PHP opening and closing tags (<?php ?>) and let me know if that fixes the issue. Thanks! 🙂-Casey-
July 14, 2014 at 10:11 am #380561kellymarie2001ParticipantThis reply is private.
July 15, 2014 at 6:11 am #393790CaseyParticipantHmmmm, that’s strange, as the code snippet works perfectly in my test environment (screenshot). Could you copy/paste the entire contents of your theme’s functions.php file into a site like pastebin, and then share the link here, so I can investigate further? Thanks! 🙂
-Casey-
July 16, 2014 at 11:54 am #414102kellymarie2001ParticipantThis reply is private.
July 16, 2014 at 12:31 pm #414357CaseyParticipantEverything seems to be in order with your code there. Could you try moving that code block to the top of the file, right below the ‘<?php’ opening tag and see if that fixes it? If not, could you try temporarily reverting to the default 2013 theme, and add the code to that theme’s functions.php file to see if this issue persists? It’s possible that this is an issue with your theme, but just want to narrow it down a bit before troubleshooting further.
Thanks! 🙂
-Casey-
July 16, 2014 at 12:33 pm #414373CaseyParticipantEverything seems to be in order with your code there. Could you try moving that code block to the top of the file, right below the ‘<?php’ opening tag and see if that fixes it? If not, could you try temporarily reverting to the default 2013 theme, and add the code to that theme’s functions.php file to see if this issue persists? It’s possible that this is an issue with your theme, but just want to narrow it down a bit before troubleshooting further.
Thanks! 🙂
-Casey-
July 17, 2014 at 8:28 am #429664kellymarie2001ParticipantStill not showing 🙁
Is it an issue that this is a multi site?July 17, 2014 at 8:58 am #429902CaseyParticipantThat’s possible. Did you include this code in your parent theme or child theme (if you have one)?
July 17, 2014 at 9:24 am #430103kellymarie2001ParticipantCasey! How did you know! I missed that step. It works fine with the 2013 theme.
Question then is… how to get it working with my current theme, or is there a workaround? Just to reiterate, the goal for this is to some how communicate a message to the individual submitting the event that they then need to go pay for the listing on our calendar. We already have the payment system/page set up. Can I change the redirect URL after the submission maybe?Thanks!
July 17, 2014 at 11:19 am #430969CaseyParticipantTry using this code snippet in your theme’s functions.php to redirect to a different URL after a submission: https://gist.github.com/jbrinley/6693934
Let me know if that works for you! Thanks! 🙂
-Casey-
July 17, 2014 at 11:30 am #431064kellymarie2001ParticipantThis reply is private.
July 17, 2014 at 11:39 am #431143CaseyParticipantSorry for not being a bit clearer on that, you could just change that line to this:
wp_safe_redirect( 'http://labeerweek.com/2014/product/venue-events/' );
Give that try and see if it works. 😀
-
AuthorPosts
- The topic ‘Customize Submit Event form fields, thank you email notice’ is closed to new replies.