On our site people can only buy one ticket for themselves so I’ve renamed the add tickets button to “Buy ticket” but haven’t found a way to change where it goes after adding it to the basket.
In the template it triggers this
<button type=”submit” name=”wootickets_process” value=”1″
class=”button alt”><?php esc_html_e( ‘Buy ticket’, ‘event-tickets-plus’ );?></button>
Wootickets process and I just need to find a way to change where it goes after adding them.
Any ideas?
p.s I tried adding
add_filter (‘add_to_cart_redirect’, ‘redirect_to_checkout’);
function redirect_to_checkout() {
global $woocommerce;
$checkout_url = $woocommerce->cart->get_checkout_url();
return $checkout_url;
}
To my functions file as per a few posts but wootickets ignores it.
Thanks