Home › Forums › Ticket Products › Event Tickets Plus › Add event date/time and venue to cart order
- This topic has 7 replies, 4 voices, and was last updated 9 years, 8 months ago by
anywherefest.
-
AuthorPosts
-
July 28, 2016 at 7:41 pm #1145416
anywherefest
ParticipantHi TEC team
I am using the snippet below from another forum post and I’d like to add the event date, time and venue in the cart view as well. Each of my tickets are General Admission but I have hundreds of events at various locations so its important it is clear throughout the booking process….what am I doing wrong?
/**
* Example for adding event data to WooCommerce checkout for Events Calendar tickets.
* @link http://theeventscalendar.com/support/forums/topic/event-title-and-date-in-cart/
*/
add_filter( ‘woocommerce_cart_item_name’, ‘woocommerce_cart_item_name_event_title’, 10, 3 );function woocommerce_cart_item_name_event_title( $title, $values, $cart_item_key ) {
$ticket_meta = get_post_meta( $values[‘product_id’] );
$event_id = absint( $ticket_meta[‘_tribe_wooticket_for_event’][0] );
$event_date = tribe_get_start_date($event_id,true,””,null);
if ( $event_id ) {$title = sprintf( ‘%s for %s‘, $title, get_permalink( $event_id ), get_the_title( $event_id ) );
}
return $title;
}Thanks!
July 28, 2016 at 11:03 pm #1145436Brook
ParticipantHowdy Alex,
I would love to help you with this.
I do not actually see a snippet in the link you’ve shared, so I am not sure what you’re basing your code on. However it sounds like you might be interested in this prebuilt snippet:
https://gist.github.com/ggwicz/2a87b71e08c584341ef2809f2ea9cb27
It adds an area above the order page that looks like this. That area includes the date, time and venue in a nicely formatted way. Did that do the trick?
Cheers!
– Brook
July 29, 2016 at 12:35 pm #1145661anywherefest
ParticipantIt is indeed a beautiful piece of code and a prettier way of doing what I had done to the WooCommerce email!
But I am after code that advises customers of the date/time/venue of the tickets they have in their Cart…with hundreds of events people often book to the same event on multiple dates but they’d never be able to know what dates when it just says “General Admission” (or similar) and the show name.
I would like to have a generic ticket like “General Admission” rather than painstakingly adding each event date to ticket title as I did last year, especially given that Event Tickets & Event Ticket Plus is so buggy right now.
Can you also advise when I fix might be coming for Event Tickets Plus when it won’t wipe Organizer and Venue details- and reset capacity to zero!!- when you make alterations to recurrences/edit in WooCommerce or simply make a small edit to the ticket details? It is driving me bananas! I see it is definitely in the Known Issues…
Many thanks.
August 1, 2016 at 3:42 pm #1146293Brook
ParticipantHowdy Alex,
I would like to have a generic ticket like “General Admission” rather than painstakingly adding each event date to ticket title as I did last year, especially given that Event Tickets & Event Ticket Plus is so buggy right now.
Oh my! That does sound like a pain. I do have a separate snippet, should run fine along the other one, that will add the event dates to the ticket titles when checking out/sending Woo emails:
https://gist.github.com/elimn/9352efba6accd9dc21a1
Buuut it has the same caveat as the rest of our Tickets, it does not support recurring events very well. In this case it can only show the date for the first recurrence of the series. So if someone is looking at the August 1st recurrence, but it’s part of a series that began two years ago, the dates you will see will be two years old. This is because our tickets are not yet able to distinguish between different events in a series, and they see the entire series as sharing a ticket. This might not affect you, but if it does I wanted to forewarn you about it.
Can you also advise when I fix might be coming for Event Tickets Plus when it won’t wipe Organizer and Venue details- and reset capacity to zero!!- when you make alterations to recurrences/edit in WooCommerce or simply make a small edit to the ticket details? It is driving me bananas! I see it is definitely in the Known Issues…
It looks like that is scheduled to be released in version 4.2.4, which will likely be ready within the week. 🙂
You are very welcome Alex. As ever, please let me know if you have any questions or followups. Cheers!
– Brook
August 1, 2016 at 5:48 pm #1146344anywherefest
ParticipantHi Brook
Thanks for trying, always appreciated.
I’ve added a little bit to order-items that adds venue and date to the email and will continue to add show name – date and time to the ticket name until recurring events get some attention (will it ever??)…
I think I shall also wait and hope for a fix to Tickets Plus in the next release…it is basically unuseable at the moment as any edits wipe stock/organizer and venue from the event. If you edit in WooCommerce to return stock then organizer and venue disappear. If you add venue and organizer then stock disappears!! So, as I said, not useable at the present time.
Has anyone els eon the forum found a work around?
August 2, 2016 at 6:59 am #1146498Brook
ParticipantI’ve added a little bit to order-items that adds venue and date to the email and will continue to add show name – date and time to the ticket name until recurring events get some attention (will it ever??)…
I completely understand why anyone on the outside looking in would think we are just ignoring that feature request. 🙂 But the truth is we have spend hundreds of hours building this already, and still have many more to go. Starting in version 3.3 of our plugin work began in earnest to build this, and if you look back through our changelogs at the time and since then you will notice mentions of overhauls in preparation for recurring tickets. It’s just a massive feature request, and we’re steadily chugging away at it.
This next feature release, 4.3, includes another ~50 hours of behind the scenes development in final preparation for recurring tickets. If everything goes according to plan 4.4 will see the release of recurring tickets, along with a lot of polish to recurring events.
I think I shall also wait and hope for a fix to Tickets Plus in the next release…it is basically unuseable at the moment as any edits wipe stock/organizer and venue from the event. If you edit in WooCommerce to return stock then organizer and venue disappear. If you add venue and organizer then stock disappears!! So, as I said, not useable at the present time.
I am truly sorry it’s such a pain. 🙁 The only work around available right now is to downgrade, and that’s going to be quite a bit of work given that 4.2.4 is just around the corner. 4.2.4 is actually scheduled to be released later tomorrow, but sometimes reality happens and it runs a bit behind hence why I said within the week.
- Brook
August 24, 2016 at 9:35 am #1155374Support 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 ‘Add event date/time and venue to cart order’ is closed to new replies.
