marksalvadore

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • marksalvadore
    Participant

    Thanks for the quick follow up AndrĂ¡s. Just wanted touch base with you and keep this ticket active.

    I’ve been busy trying to finish up some other projects so I haven’t had the time to dump the database or grab the system information yet. I most likely won’t get the chance until next week sometime.

    I went ahead and disabled PDT through the Paypal account so that it would only use IPN notifications trigger the issuing of tickets…so far so good.

    The deadline for selling tickets is 2018-08-24 so instead of sending you the database and system info…how about I just clone the whole site to my production sever, wipe the customer personal info and just give you guys access to that?

    marksalvadore
    Participant

    Just a quick follow up, I think I’ve solved the problem on my own.

    I hooked into the event_tickets_woocommerce_ticket_created action and modified the post meta that sets the ticket number.

    function modify_ticket_after_created($attendee_id){
    	$ticket_id = get_post_meta($attendee_id, '_unique_id', true);
    	$ticket_id = substr($ticket_id, 0, strrpos($ticket_id, '-'));
    	update_post_meta($attendee_id,'_unique_id', $ticket_id);
    }
    add_action('event_tickets_woocommerce_ticket_created', 'modify_ticket_after_created', 10, 1);
Viewing 2 posts - 1 through 2 (of 2 total)