Hi,
Could you tell me the hook / function to create and cancel tickets please? One of our venues requires us to confirm / cancel tickets on their server using a SOAP request when we sell or cancel tickets.
I was planning to use this:
global $wpdb;
$sql = "select post_id from wp_postmeta where meta_key = '_tribe_wooticket_order' and meta_value = '".$order_id."'";
$gettickets = $wpdb->get_results($sql);
with this action:
woocommerce_order_status_completed
However, it appears that this order_status_completed is being called before the tickets are generated, so it’s unable to get any results until I change the status after the order has gone through. This isn’t ideal, so we need to hook into when the ticket is generated or cancelled.
I’ve looked through the codex but can’t find anything that would be suitable, so if you could let me know that’d be perfect,
Cehers
Russ