Is there a way not to send out tickets?

Home Forums Ticket Products Event Tickets Plus Is there a way not to send out tickets?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #949153
    Rupert
    Participant

    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

    #949224
    Barry
    Member
    #949657
    Rupert
    Participant

    It looks similar but those issues seem to refer to Woocommerce tickets, I am using Shopp tickets

    Rupert

    #949686
    Barry
    Member

    I 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?

    #950889
    Rupert
    Participant

    yes that has done the job. Many thanks

    #950930
    Barry
    Member

    Fantastic 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Is there a way not to send out tickets?’ is closed to new replies.