Forum Replies Created
Viewing 4 posts - 1 through 4 (of 4 total)
-
AuthorPosts
-
Josh KernParticipant
I don’t think you shared the right snippet. I found the solution I was looking for on this thread: https://theeventscalendar.com/support/forums/topic/duplicate-ticket-emails/
/** * Add event title to order line item. */ add_filter( 'woocommerce_order_item_name', 'sq_woocommerce_order_item_name', 10, 2 ); function sq_woocommerce_order_item_name( $name, $item ) { $event = tribe_events_get_ticket_event( $item['product_id'] ); if ( $event ) { $link = get_permalink( $event->ID ); $event_date = tribe_get_start_date( $event->ID, $display_time = true, 'M j \a\t g:ia' ); $name = $name . ' for <a href="' . $link . '">' . $event->post_title . '</a> - ' . $event_date; } return $name; }
Josh KernParticipantSeems like this isn’t applicable to my situation. Please see attached screenshot. I’m trying to add the event name to the product name using the woocommerce_order_item_name hook.
Josh KernParticipantThis reply is private.
Josh KernParticipantHi Cliff,
Thanks for updating me on the console warning.
I believe clearing the browser cache fixed the other Safari issue.
– Josh
-
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)