| Current File : /home/digitaw/www/wp-content/plugins/event-tickets/src/views/registration/button-checkout.php |
<?php
/**
* This template renders the attendee registration checkout button
*
* Override this template in your own theme by creating a file at:
* [your-theme]/tribe/tickets/registration/button-checkout.php
*
* @since 4.9
* @since 4.10.1 Update template paths to add the "registration/" prefix
* @since 4.10.2 Remove alignright class from submit button
* @version 4.11.0
*
*/
if ( ! $checkout_url ) {
return;
}
?>
<form
class="tribe-tickets__registration__checkout"
action="<?php echo esc_url( $checkout_url ); ?>"
method="post"
>
<input type="hidden" name="tribe_tickets_checkout" value="1" />
<button
type="submit"
class="button-primary tribe-tickets__registration__checkout__submit"
<?php if ( $cart_has_required_meta && ! $is_meta_up_to_date ) : ?>
disabled
<?php endif; ?>
>
<?php esc_html_e( 'Checkout', 'event-tickets' ); ?>
</button>
</form>