'.esc_html__('You have no tickets in your basket.','ticketdrum').'
'; return; } $basket_data = ticketdrum_calculate_basket_totals(); $fee_data = ticketdrum_calculate_fees($basket_data); $buyer_pays_fee = ($fee_data['fee_paid_by']=='buyer' && $fee_data['fee']>0); #echo '
'.print_r($basket_data,true).'
'; //Same nonce action as every other frontend request, verified once in ticketdrum_ajax() $nonce = wp_create_nonce('ticketdrum_frontend'); //Stripe.js prints in the footer; the checkout init below runs on DOM-ready, //which fires after all footer scripts have executed wp_enqueue_script('ticketdrum-stripe-js','https://js.stripe.com/v3/',array(),null,true); // phpcs:ignore WordPress.WP.EnqueuedResourceParameters.MissingVersion -- Stripe.js is evergreen, must not be version-pinned wp_add_inline_script('ticketdrum-showerror-script','jQuery(function(){ ticketdrumInitCheckout('.wp_json_encode([ 'hasPayment' => $basket_data['total']>0, 'publishableKey' => $basket_data['total']>0?($ticketdrum_payment_data[$ticketdrum_stripe_mode.'_stripe_publishable_key']??''):'', 'thanks' => ticketdrum_label('order_thanks'), ]).'); });'); ?>
$ticket) { if ($ticket['quantity']==0) continue; ?> $event) { if (count($event['custom_fields'])==0) continue; ?> 0): ?>
() 0) : ?>
×-
*
*
0): ?>