Home › Forums › Calendar Products › Events Calendar PRO › Adding elements/fields of Events to wp-types
- This topic has 10 replies, 2 voices, and was last updated 8 years, 6 months ago by
Martin.
-
AuthorPosts
-
September 20, 2017 at 11:39 am #1352161
Martin
ParticipantGuys,
I have a fairly complicated site where I use WP-Types to manage my views. I currently have my own events types and I want to use your system with it. I have two issues:
1) If I add your tickets to my custom event how do I add the tickets to the view (no I do not get the droptdown for placement). In this case I am NOT using Calander Events, only Tickets.
2) When I am composing a custom page, like https://nkdagility.com/training/scheduled/professional-agile-retreat-with-psm-pal-in-cancun-mexico-on-29th-january-2017/ I need to be able to add individual fields from the Event to specific places so that I can control the view. How do I add “Event Start Date” or “Event End Date” to my view.I am trying to replace my custom Training Event type with your Event type but I am unwilling to compromise on view customisation.
-MrHinsh
September 21, 2017 at 7:14 am #1352579Andras
KeymasterHello MrHinsh,
Welcome to the forums and thanks for giving our plugins a try.
Let me try to help you with your questions. Please note though that we are limited in supporting customizations and custom development. I can give you some pointers but you will need to do the heavy lifting.
I’m not familiar with WP-Types, I guess it helps you create custom post types.
1) If I add your tickets to my custom event how do I add the tickets to the view (no I do not get the droptdown for placement). In this case I am NOT using Calander Events, only Tickets.
If you have Event Tickets / Event Tickets Plus, then you can connect the tickets to any post type. You can do this under Events > Settings > Tickets tab, and you need to select there your post type(s) where you want to enable tickets. This will then include the ticket creation form onto the custom post type editing screen. (You don’t need The Events Calendar for this to work.)
Here’s a screenshot of the settings page, your custom post type should show up in that list.
How do I add “Event Start Date” or “Event End Date” to my view.
You can use tribe_get_start_time and tribe_get_start_date for this.
On this page you can find all the functions that you can use.
I am unwilling to compromise on view customisation.
I fully understand that. We have made it easy to override almost any template in our plugins. Our Themer’s Guide would be a good starting point for that.
Also there a quite a number of premium themes that work well together with our calendar plugins and offer different templates and designs, in case you would be interested to go down that road.
Please, do let me know if there is anything else I can help you with.
Cheers,
AndrasSeptember 21, 2017 at 12:00 pm #1352947Martin
ParticipantOK, Thanks. I have been able to add Tickets to my custom post type. I can then add a physical ticket on that post-type-instance page. However that ticket is never shown on the post display page since I DO NOT use a standard post loop. I need some way to place the display of the tickets on the page where I need them.
As per https://nkdagility.com/training/scheduled/professional-agile-retreat-with-psm-pal-in-cancun-mexico-on-29th-january-2017/ I have the Eventbrite tickets displayed where I need them. I want to be able to replace my Eventbrite bits with your bits.
Is there a shortcode or something that I can use to place that ticket purchase experience on the page?
p.s. I have no PHP knowlage…
September 22, 2017 at 10:18 am #1353580Andras
KeymasterHey Martin,
Happy to hear you succeeded with the first part! Awesome!
As for the shortcode, no there is nothing like that. If you enable tickets for a post and you use the default way to present posts, then the ticket form should automatically show up on the page of the blog post.
Showing it differently, which requires custom coding, is beyond the scope of the support we can provide. I can help you get started but you will need to do the heavy lifting. Thanks for your understanding.
A colleague was kind enough to whip this together to get started.
“If for some reason he’s enabled support for this custom post type and the ticket form still isn’t appearing (if that’s the situation, not 100% sure I’m understanding) then he could create a new function to use as a template tag, along these lines:
function print_ticket_forms() {
foreach ( Tribe__Tickets__Tickets::modules() as $provider_class => $provider_name ) {
/**
* @var Tribe__Tickets__Tickets $provider
*/
$provider = call_user_func( array( $provider_class, 'get_instance' ) );if ( $provider ) {
$provider->front_end_tickets_form( '' );
}
}
}… then he could add that (or trigger via an action, depending on what’s easiest with his theme) at the appropriate point and it should output the appropriate ticket forms.”
If you need further help in customizing, then you can turn to one of the freelancers in this list. They are well known in our community and are not affiliated with us.
Andras
September 22, 2017 at 11:35 am #1353615Martin
ParticipantI’m not sure I understand why you would not provide a shortcode for this. Seams like something that would take you guys 5 minutes to build and ship and it would provide your users with lots of value.
September 25, 2017 at 3:32 am #1354143Andras
KeymasterHi Martin,
So far we haven’t seen any requests for this kind of a scenario, this is likely the reason for the lack of a shortcode for this.
If you think that is something you would like as a feature I encourage you to visit our User Voice Page and either upvote an existing request or make a new request there.
Let me know if there’s anything else.
Cheers,
AndrasSeptember 25, 2017 at 5:41 am #1354194Martin
ParticipantI have added to https://tribe.uservoice.com/forums/195723-feature-ideas/suggestions/4969234-shortcode-for-ticket-purchase-eventbrite-etc which currently has 12 votes.
However I feel that Tribe is missing a bunch of customers that evaluate your product and don’t use it because it does not have this feature. That class of user does not generally provide feedback.
As an experiment you should add the Shortcode and see how many people actually use it.
September 25, 2017 at 9:54 am #1354351Martin
ParticipantI also contacted a vendor from your approved list and was told to use Eventbrite instead.
If you merely added those few lines of code above to your plugin and registered a shortcode you would enable many more senarios…
September 26, 2017 at 3:27 am #1354800Andras
KeymasterThanks for the vote, the feedback and the suggestion. I’ll bring it to manager and see if we will do a test.
Eventbrite Tickets would definitely be a great alternative. Note however that in order to use our Eventbrite Tickets plugin you will also need The Events Calendar. It will not work without that.
Is there anything else I can help you with before we mark this topic closed?
Cheers,
AndrasOctober 18, 2017 at 9:35 am #1365377Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Adding elements/fields of Events to wp-types’ is closed to new replies.
