Home › Forums › Calendar Products › Events Calendar PRO › Event Payment Options
- This topic has 14 replies, 3 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
October 25, 2012 at 1:59 pm #27219
Neil Heird
Participanthow do I use paypal to charge admission to an event that I dont need eventbrite for?
October 25, 2012 at 2:09 pm #27221Jonah
ParticipantHi Neil,
You could simply add a PayPal or custom button linking to PayPal to your single event pages… The single event template is in /wp-content/plugins/the-events-calendar/views/single.php – just make a copy and place in an ‘events’ folder to make changes. You could dynamically set the cost with echo tribe_get_cost();
Does that help?
– Jonah
October 28, 2012 at 6:08 pm #27288Neil Heird
ParticipantI;ll give that a try and let you know.
thanks.
October 29, 2012 at 8:41 am #27310Neil Heird
Participantok – a couple of questions:
1. in which directory should I create the new ‘events’ folder for template changes?
2. will this create a new template from the drop down inside of the event settings page?
3. if I add a custom button as you suggested, I will need to pass through more info than just the price. Instead, I can redirect to a general Event Registration page, however, any advice on how I can create a drop down for that form that contains the Event Name and/or ID that is dynamically updated each time I make a new event?I’m not a hard core programmer, and comfortable figuring some things out on my own, but I would appreciate a nudge in the right direction.
thanks.
October 29, 2012 at 4:34 pm #27333Jonah
ParticipantHi Neil, sorry for not being specific enough.
1. The ‘events’ folder goes in your active theme directory.
2. No. Only if you create another page template within your theme. Read more here: http://codex.wordpress.org/Pages#Page_Templates
3. Hmmm, I would suggest taking a look at http://www.advancedcustomfields.com/ – it’s a very powerful custom fields plugin for WordPress that let’s you setup some very cool custom field inputs for events, pages, posts, etc. in a number of different ways. I’m not exactly sure what you need to do for each event but would a simple text input be enough so a link could be pasted in when adding an event that would be the link to the Event Registration page?– Jonah
October 29, 2012 at 6:44 pm #27341Neil Heird
ParticipantI don’t think a text input box will work. there could be mis-spellings and that might goof with our event attendance tracking. Instead, my alternative would be to place a ‘regsiter’ link in your single event template, and have that point to a universal page. on this registration page, the user would select the event they are registering for from a drop down, and pricing would be applied based on the event selected. from here, I can handle payment to Paypal using Gravity Forms. Ideally, the options in the event drop down would be dynamically updated based on the events that are loaded via the Events interface – just like Gravity Forms (and others too I suppose) does with post categories.
I am building a chamber of commerce website that uses s2 member to create paid member options and I have an event plugin to manage both paid and non-paid events. Your plugin works best with my framework – MySiteMyWay – so nice job! But as you know, it is not designed to work directly with Paypal (unless first going through Event Brite – which adds to the transaction costs).
Because the chamber hosts many events throughout the year, I need a way to track event registrations by members as well as non-members. while it is not neccessary for these 2 plugins to integrates with one another, i do need an efficient way to register attendees for events without the ticketing option via Event Brite. Really surprised you haven’t tackled that one yet. Please accept this post an official feature request.
October 30, 2012 at 8:07 am #27347Jonah
ParticipantHi Neil,
Thanks for your thoughts and suggestions. If you have Gravity Forms you should be able to accomplish this pretty easily using this addon for GF: http://wordpress.org/extend/plugins/gravity-forms-custom-post-types/ – that will enable you to populate a form drop down with a custom post type.
Does that help?
– Jonah
October 30, 2012 at 1:46 pm #27362Neil Heird
Participantexcellent news! I’ll give it a try.
thanks!
October 30, 2012 at 2:05 pm #27364Neil Heird
ParticipantGF customer post types works great for the event titles! thanks again for the suggestion.
how could I find the field id info for the event COST? i would like to use GF to logically display pricing based on which event is selected. can i isolate the COST field id and have GF pull that over as well?
October 31, 2012 at 5:24 am #27382Jonah
ParticipantHey Neil,
You can use tribe_get_cost() which by default will get the current posts cost but you can also pass a post ID to it. Does that help?
– Jonah
October 31, 2012 at 2:52 pm #27415Neil Heird
Participantok – last comment (i hope)…
I am having difficulty confirming the custom post id for events. isn’t it just ‘Events’ or do I need to use a template tag? the GF support guys have me editing my ‘functions.php’ file using the code snippet below to dynamically update an event dropdown that also displays applicable event pricing – any thoughts on this?
add_filter(“gform_pre_render”, “populate_dropdown”);
function populate_dropdown($form){//NOTE: replace 221 below with your actual form ID
if($form[“id”] != 1)
return $form;//NOTE: replace your_post_type below with your actual post type name
$posts = get_posts( array(“post_type” => “Events”) );//Creating drop down item array.
$items = array();//Adding initial blank value.
$items[] = array(“text” => “”, “value” => “”, “price” => “”);//Adding post titles to the items array
foreach($posts as $post){
$items[] = array(“value” => $post->post_title, “text” => $post->post_title, “price” => tribe_get_cost());
}//Adding items to field id 1. Replace 1 with your actual product field id.
foreach($form[“fields”] as &$field)
if($field[“id”] == 15){
$field[“choices”] = $items;
}return $form;
}
amazing support… thanks a million!October 31, 2012 at 3:17 pm #27416Jonah
ParticipantHey Neil,
The post type is ‘tribe_events’ – try that!
– Jonah
October 31, 2012 at 6:34 pm #27417Neil Heird
Participantit worked!!!! awesome!
thanks again!
November 1, 2012 at 7:16 am #27442Jonah
ParticipantGlad to hear Neil, let us know if there’s anything we can do.
– Jonah
July 7, 2015 at 6:26 am #978084Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Event Payment Options’ is closed to new replies.
