Forum Replies Created
-
AuthorPosts
-
RyanParticipant
Hello,
Debug was set to true. When the calendar is updated it works fine when set to false. I believe it is an incompatibility with the theme. Thanks for your help.
RyanParticipantAttached is a screenshot of the error. I updated the PRO plugin and I did not see the error. When I updated the standard calendar plugin it triggered the error.
RyanParticipantHi Jeremy,
I had to revert the plugins back to their previous versions as this was on our live site. We don’t want customers seeing an error like that.
Enfold is not up-to-date. I have tested it and we are seeing another issue so I am staying at our current version for now.
Like I mentioned, the events calendar update worked fine on the staging site (on bluehost subdomain), but not on the live one (a separate bluehost account). I am trying to figure out what the difference might be.
Thanks,
RyanMarch 3, 2018 at 7:50 pm in reply to: Tickets email needs to send to customer and other email addresses. #1469276RyanParticipantAndrás,
I dropped a variety of checkpoint logs into the function file, to let me know which blocks of code were definitely firing, and I have concluded with what I initially suspected: the RSVP filter is definitely NOT firing.
As I stated before, other filters definitely ARE firing, so I feel like this problem is specific to The Events Calendar.
Here is the snippet you provided as it exists in the functions.php file. Perhaps I am missing something?
function cliff_et_rsvp_bcc_admin_ticket() {
// get site admin's email $bcc = sanitize_email( get_option( 'admin_email' ) ); // set Headers to Event Tickets' default $headers = array( 'Content-type: text/html' ); // add BCC email if it's a valid email address if ( is_email( $bcc ) ) { $headers[] = sprintf( 'Bcc: %s', $bcc ); } return $headers;
}
add_filter( ‘tribe_rsvp_email_headers’, ‘cliff_et_rsvp_bcc_admin_ticket’ );
You said you were going to put some more eyes on this. What have you been able to discover?
David
February 22, 2018 at 12:35 pm in reply to: Tickets email needs to send to customer and other email addresses. #1461355RyanParticipantAndrás,
My name is David Lawson. I am a developer working with Ryan to correct the BCC issue. The
tribe_rsvp_email_headers
filter does not seem to be firing. The file where the filter is defined is definitely being reached, because a separate filter below it works find.I have verified that the site is able to send emails. I have verified that the rsvp email IS being sent. The BCC email is NOT sending.
I have 2 questions:
1. Are there certain conditions that need to be met before that filter will fire? If so, what are they?- Do you have a recommended method for sending off a test email? I can not make a test purchase with my local machine, and this makes testing extremely difficult. If I can just circumvent the purchase and send the email directly, that will make this process go a whole lot faster.
Thank you!
DavidJanuary 13, 2018 at 5:52 pm in reply to: Tickets email needs to send to customer and other email addresses. #1425763RyanParticipantHi András,
I appreciate your help. I’m sorry this isn’t resolved.
I tried deactivating all plugins and using the 2017 default theme and unfortunately it still did not work. I am getting notification emails for orders and tickets without a problem, but am not getting the bcc from this php code.
Thanks,
RyanJanuary 2, 2018 at 10:28 am in reply to: Tickets email needs to send to customer and other email addresses. #1416314RyanParticipantHello,
Unfortunately that code did not work either. Nothing is being sent. I have checked my spam folder.
Thanks,
RyanJanuary 2, 2018 at 10:24 am in reply to: Tickets email needs to send to customer and other email addresses. #1416309RyanParticipantHello,
That code did not work either. My current child functions.php file is below in case you see any errors or conflicts.
Thanks,
Ryan`
have_posts() ) {
if ( $wp_query->get( ‘paged’ ) > 1 ) {
// if we’re on page 1, show the selected tribe-bar-date as the first date in the range
$first_event_date = tribe_get_start_date( $wp_query->posts[0], false );
} else {
//otherwise show the start date of the first event in the results
$first_event_date = tribe_event_format_date( $_REQUEST[‘tribe-bar-date’], false );
}
$last_event_date = tribe_get_end_date( $wp_query->posts[ count( $wp_query->posts ) – 1 ], false );
$title = sprintf( $title_range, $first_event_date, $last_event_date );
} elseif ( tribe_is_past() ) {
$title = $title_past;
}
// Month view title
if ( tribe_is_month() ) {
$title = sprintf(
$title_month,
date_i18n( tribe_get_option( ‘monthAndYearFormat’, ‘F Y’ ), strtotime( tribe_get_month_view_date() ) )
);
}
// Day view title
if ( tribe_is_day() ) {
$title = sprintf(
$title_day,
date_i18n( tribe_get_date_format( true ), strtotime( $wp_query->get( ‘start_date’ ) ) )
);
}
// All recurrences of an event
if ( function_exists(‘tribe_is_showing_all’) && tribe_is_showing_all() ) {
$title = sprintf( $title_all, get_the_title() );
}
// Week view title
if ( function_exists(‘tribe_is_week’) && tribe_is_week() ) {
$title = sprintf(
$title_week,
date_i18n( $date_format, strtotime( tribe_get_first_week_day( $wp_query->get( ‘start_date’ ) ) ) )
);
}
if ( is_tax( $tribe_ecp->get_event_taxonomy() ) && $depth ) {
$cat = get_queried_object();
$title = ‘‘ . $title . ‘‘;
$title .= ‘ › ‘ . $cat->name;
}
return $title;
}
add_filter( ‘tribe_get_events_title’, ‘tribe_alter_event_archive_titles’, 11, 2 );/*
* Remove hover events
*/
function add_custom_script(){
?>jQuery(window).load(function(){
jQuery(‘img’).removeAttr(‘title’);
});single_event_meta, ‘link_venue’ ) );
}
add_action( ‘tribe_events_single_meta_before’, ‘tribe_remove_venue_link’, 100 );/$/
add_filter( ‘tribe_reverse_currency_position’, function(){ return null; } );/*
* Hides QR codes from the Email/Tickets sent to purchasers
*/
function tribe_neuter_qr () {
if ( class_exists( ‘Tribe__Tickets_Plus__Main’ ) ) {
$qr_class = Tribe__Tickets_Plus__Main::instance()->qr();
remove_action( ‘tribe_tickets_ticket_email_ticket_bottom’, array( $qr_class, ‘inject_qr’ ) );
}
}
add_action( ‘init’, ‘tribe_neuter_qr’, 10 );/**
* BCC site admin email on all Event Tickets’ RSVP ticket emails so they get a copy of it too
*
* From https://gist.github.com/cliffordp/4f06f95dbff364242cf54a3b5271b182
*
* Reference: https://developer.wordpress.org/reference/functions/wp_mail/#using-headers-to-set-from-cc-and-bcc-parameters
*
*/
function cliff_et_rsvp_bcc_admin_ticket() {
// get site admin’s email
$bcc = sanitize_email( get_option( ‘admin_email’ ) );// set Headers to Event Tickets' default $headers = array( 'Content-type: text/html' ); // add BCC email if it's a valid email address if ( is_email( $bcc ) ) { $headers[] = sprintf( 'Bcc: %s', $bcc ); } return $headers;
}
add_filter( ‘tribe_rsvp_email_headers’, ‘cliff_et_rsvp_bcc_admin_ticket’ );`
RyanParticipantHi Jamie,
I found this. Will it help?
[18-Dec-2017 11:20:07 UTC] event-tickets/common – Log: Initializing Tribe Events on Dec, 18th at 11:12:07 am
[18-Dec-2017 11:20:07 UTC] PHP Notice: Undefined variable: elements in /home8/anschutz/public_html/wp-content/themes/enfold/config-wordpress-seo/config.php on line 148[18-Dec-2017 12:15:46 UTC] event-tickets/common – Log: Initializing Tribe Events on Dec, 18th at 12:12:46 pm
[18-Dec-2017 12:15:46 UTC] PHP Notice: Trying to get property of non-object in /home8/anschutz/public_html/wp-includes/class-wp-query.php on line 3863Thanks
December 18, 2017 at 8:56 am in reply to: Tickets email needs to send to customer and other email addresses. #1407930RyanParticipantAlso, I did test the code with the get_option( ‘admin_email’ ) line as instructed in the other thread and it still did not work.
RyanParticipantHi Carly,
Thanks for your input but that really won’t work for us. We have 3 different tickets and need separate quantities per day, not per recurring event. For example, 15 tickets on Monday, 15 tickets on Wednesday, and 15 on Friday. Unfortunately that would create a lot of confusion and wouldn’t save any time as we’d probably have 50+ tickets on each event page.
This really seems like an important feature that a lot of people could use and I am having a hard time finding a plugin that achieves it. At the very least, could Events Calendar have ticket templates? This way I could just add a ticket like a custom fieldset? That would save time when building out tickets for the month.
RyanParticipantHi guys,
Mathew’s code work!
Thank you both for all your help.
October 13, 2017 at 10:14 am in reply to: Black line at top and left side of tickets area. Possible css issue. #1363387RyanParticipantHi Victor,
That did not work. It definitely seems the events plugin is conflicting with the theme. I noticed the + and – signs are out of whack and the ticket fieldsets are not styled correctly either when a ticket is selected. In the backend, I noticed another conflict where we can’t update ticket fieldsets. We are using Enfold theme.
The theme works fine with the other woo commerce sections of the website. Just not the Events plugin.
Thanks,
RyanOctober 12, 2017 at 2:28 pm in reply to: Black line at top and left side of tickets area. Possible css issue. #1362915RyanParticipantHi Victor,
I believe that you are correct. I don’t notice the line when switching to the default theme. How can we fix the conflict?
Thanks,
RyanRyanParticipantHi Victor,
Unfortunately, it did not work. That may remove the link but the venue name is still clickable and opens up a page that looks like this: http://American%20Museum%20of%20Western%20Art
The link and the ability to click needs to be removed.
Thanks,
Ryan -
AuthorPosts