Forum Replies Created
-
AuthorPosts
-
Nico
MemberThanks for the follow-up Sarah!
Sorry if I wasn’t clear enough, Event Tickets Plus works as an add-on for Event Tickets. Just like Events Calendar PRO and The Events Calendar. So yes, you’ll need to install Event Tickets which you can find here → wordpress.org/plugins/event-tickets/
Best,
NicoJuly 18, 2016 at 3:37 pm in reply to: Javascript Error causes customizer issue after theme update and wordpress update #1141239Nico
MemberThis reply is private.
July 18, 2016 at 3:29 pm in reply to: Fatal error: Class 'Tribe__Events__Tickets__Woo__Main' not found in… #1141230Nico
MemberHi there Cintia,
Thanks for getting in touch!
What Florent suggests seems to be the correct answer, the class name was change along the way!
Please give this a try and let us know if it works.
@Florent, thanks so much for jumping in 🙂
Best,
NicoNico
MemberHey Guglielmo,
Thanks for reaching out to us! I can help you here…
Not sure of what you are trying to display past events, per default the calendar has a ‘past events’ link (http://www.festivalitaca.net/eventi/ – Eventi precedente) but maybe you are referring to events widgets? In which case which one are you using? Via shortcode?
From what I see in the code it appears to be a custom module, maybe from the theme itself?
Please let me know about it,
Best,
NicoNico
MemberHowdy Roger,
Welcome to our support forums and thanks for reaching out to us. I’ll help you here 🙂
Can you please check the Google Calendar timezone? Also review the timezone set in your WordPress install (WP-Admin > Settings > General > Timezone) and finally your event timezone settings in WP-Admin > Events > Settings > General > Timezone Settings. Once you have all settings in place, try importing a sample event or a small ics to test if it works for you.
Best,
NicoJuly 18, 2016 at 3:12 pm in reply to: Customize customer-processing-order email if order contains ticket product type? #1141219Nico
MemberHey Jarrod,
Thanks for getting in touch! I can hlp you getting started with this, take a look at the following snippet:
/* Tribe, only add "you'll receive your tickets in another email" message for given order statuses */
if ( class_exists('Tribe__Tickets_Plus__Commerce__WooCommerce__Main') ) {// unhook default msg function
// $tickets = Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance();
// remove_action( 'woocommerce_email_after_order_table', array( $tickets, 'add_tickets_msg_to_email' ), 10 );// hook a custom action to check for order status before printing any msg
add_action( 'woocommerce_email_after_order_table', 'maybe_add_tickets_msg_to_email' );function maybe_add_tickets_msg_to_email ( $order ) {
$order_status = $order->post_status;
// Bail if the status is not processing
if ( $order_status != 'wc-processing' ) return;$order_items = $order->get_items();
// Bail if the order is empty
if ( empty( $order_items ) ) {
return;
}$has_tickets = false;
// Iterate over each product
foreach ( (array) $order_items as $item ) {$product_id = isset( $item['product_id'] ) ? $item['product_id'] : $item['id'];
// Get the event this tickets is for
$event_id = get_post_meta( $product_id, $this->event_key, true );// if you are looking for specific event ID check for it here
if ( ! empty( $event_id ) ) {
$has_tickets = true;
break;
}
}if ( ! $has_tickets ) {
return;
}echo '<br/>Your custom msg';
}
}
Please let me know if this sets you on track,
Best,
NicoJuly 18, 2016 at 3:06 pm in reply to: Remove "you'll receive your tickets in another email" from only some emails #1141216Nico
MemberHi there Tim,
Thanks for reaching out! Interesting question, let’s see how to do this…
Paste the following snippet in your theme (or child theme) functions.php file:
/* Tribe, only add "you'll receive your tickets in another email" message for given order statuses */
if ( class_exists('Tribe__Tickets_Plus__Commerce__WooCommerce__Main') ) {// unhook default msg function
$tickets = Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance();
remove_action( 'woocommerce_email_after_order_table', array( $tickets, 'add_tickets_msg_to_email' ), 10 );// hook a custom action to check for order status before printing any msg
add_action( 'woocommerce_email_after_order_table', 'maybe_add_tickets_msg_to_email' );function maybe_add_tickets_msg_to_email ( $order ) {
$status = $order->post_status;
// sample status check: bail if the status is not processing
if ( $status != 'wc-processing' ) return;$tickets = Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance();
$tickets->add_tickets_msg_to_email( $order );
}
}
That should do the trick for you, be sure to change the status check for whatever fits your project!
Best,
NicoJuly 18, 2016 at 12:20 pm in reply to: Recurring events don't show in list and calendar view #1141164Nico
MemberHi Chris,
Thanks for reaching out to us! And sorry to hear about this issue 🙁
Personally I’m not aware of it and couldn’t find any related bugs logged in our product backlog. Can you please point me to a thread related to this issue?
Also, Can you please describe the issue? Is this related to the show only first upcoming event in list type views setting?
Please let me know about it,
Best,
NicoNico
MemberHowdy Feroz,
Welcome to our support forums and thanks for reaching out to us. I’ll help you here…
First please give this article a read → The events calendar performance considerations.
Are those 12k recurring events instances created by you or were they created by mistake or by a possible bug in our product? Those recurring instances come from multiple events? Do you recall how many different events you have in the site aprox?
Thanks,
NicoNico
MemberHi there Hugues,
Thanks for getting in touch! I can help you here…
Please take a look to this previous answer by Cliff in which he shares two snippets to re-order recurring and all-day events. These snippets go inside your theme (or child theme).
What is this filter? And where does it live?
to get a grasp on filters and actions, I recommend reading the Definitive guide to WordPress hooks.
Please let me know if the above helps,
Best,
NicoNico
MemberHi Sheldon,
Thanks for reaching out to us! Interesting question, as you already know we cannot provide much support on the Woo side of things but we can give this a try 😉
Try pasting this snippet in your functions.php file:
/* Add event date to Woo Cart */
function tribe_show_event_date_cart ( $item_data, $cart_item ) {if ( ! class_exists('Tribe__Tickets_Plus__Commerce__WooCommerce__Main') ) return $item_data;
$tickets = Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance();
$event_id = get_post_meta( $cart_item['product_id'], $tickets->event_key, true );
if ( ! empty( $event_id ) ) {
$item_data[] = array(
'key' => 'Date',
'value' => tribe_get_start_time ( $event_id, tribe_get_date_format() )
);
}return $item_data;
}add_filter ( 'woocommerce_get_item_data', 'tribe_show_event_date_cart', 10, 2 );
Also, please note that tickets still don’t support recurring events!
Please let me know if the snippet works as expected,
Best,
NicoNico
MemberHi Thomas,
Thanks for reaching out to us!
Once the ticket fieldset is applied to an actual ticket for an event further changes made to it (adding or removing fields) won’t be updated in all ticket instances. Tickets fieldsets are like templates that apply to a ticket but are not linked to them so further updates on the actual fieldset won’t impact existing tickets.
Do you follow? Is this what you were describing?
Please let me know about it,
Best,
NicoNico
MemberThanks for the follow-up Omar!
Can yo please let me know what’s the goal of this customization? If you don’t want the single event, single organizer and single venue pages to be indexed by search engines, then it’s a better practice (and simpler to implement in this case) to add a meta tag in the head of the html that indicates search engines not to crawl the page. I’m not talking about adding a robots.txt just the tag in the html head.
Please let me know about it,
Best,
NicoNico
MemberThanks for following up!
There’s something I noticed in your recurrence settings: the event is set to recur on Wednesdays, and the exclusion is set on Tuesdays. Can you check on it?
Best,
NicoNico
MemberThanks for the follow-up Dylan! No quite sure what’s the final goal of this customization but check this updated version of the snippet:
/* Return all attendees for events in a WooCommerce order */
function tribe_order_extract_attendees ( $order_id ) {$order = new WC_Order ( $order_id );
$line_items = $order->get_items( apply_filters( 'woocommerce_admin_order_item_types', 'line_item' ) );
$product_ids = array();
$event_objects = array();
$attendees = array();if ( ! is_array( $line_items ) || empty( $line_items ) ) {
return $attendees;
}foreach ( $line_items as $line_item ) {
$product_id = absint( $line_item['item_meta']['_product_id'][0] );if ( ! $product_id || in_array( $product_id, $product_ids ) ) {
continue;
}$event_object = tribe_events_get_ticket_event( $product_id );
if ( ! empty( $event_object ) ) {
$event_objects[] = $event_object;
}
}foreach ( $event_objects as $event_object ) {
$tickets = Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance();
$event_attendees = $tickets->get_event_attendees( $event_object->ID );
foreach ( $event_attendees as $attendee ) {
//echo ' --- ' . $attendee['order_id'] . ' *** ' . $order_id;
if ( intval($attendee['order_id']) != $order_id ) continue;
$attendees[] = $attendee;
// use the code below to just get attenddee ids
// $attendees[] = $attendee['attendee_id'];
}
}return $attendees;
}
Now it will return the attendee info for the order. If you only needs the attendees IDs use the commented line in the function instead.
Best,
Nico -
AuthorPosts
