Home › Forums › Ticket Products › Event Tickets Plus › Is there a way not to send out tickets?
- This topic has 5 replies, 2 voices, and was last updated 9 years ago by Barry.
-
AuthorPosts
-
March 18, 2015 at 9:30 am #949153RupertParticipant
Hi I have got a site running with shopp tickets at http://www.aldboroughfestival.co.uk. We print our own tickets at the moment so dont want them to be sent out in an email. Is this possible?
Thanks
Rupert
March 18, 2015 at 12:47 pm #949224BarryMemberHi Rupert,
Do either of these existing answers help?
March 20, 2015 at 6:23 am #949657RupertParticipantIt looks similar but those issues seem to refer to Woocommerce tickets, I am using Shopp tickets
Rupert
March 20, 2015 at 7:31 am #949686BarryMemberI do apologize, Rupert, you are of course absolutely correct.
The same kind of mechanisms that exist in WooCommerce Tickets and EDD Tickets aren’t actually present in the case of Shopp Tickets – but we can probably do something to help even so. Can you try adding this snippet (for instance, to your theme’s functions.php file)?
add_filter( 'wp_mail', 'stop_shopptickets_emails' ); function stop_shopptickets_emails( $atts ) { // Safety check if ( ! function_exists( 'shopp_setting' ) ) return $atts; // This is the email we're looking for $expected_subject = apply_filters( 'shopptickets_ticket_email_subject', sprintf( __( 'Your tickets from %s', 'tribe-shopptickets' ), shopp_setting( 'business_name' ) ) ); // If it's not the one, let it go out if ( $expected_subject !== $atts['subject'] ) return $atts; // Cludge to stop the email from sending $atts['to'] = ''; return $atts; }
Does that help?
March 25, 2015 at 12:53 pm #950889RupertParticipantyes that has done the job. Many thanks
March 25, 2015 at 4:16 pm #950930BarryMemberFantastic 🙂
-
AuthorPosts
- The topic ‘Is there a way not to send out tickets?’ is closed to new replies.