ID; $requested_event_id = $event->requested_id ?? $event_id; $gateways = $this->main->get_gateways(); $date_ex = explode(':', $date); $occurrence = $date_ex[0]; $booking_options = get_post_meta($event_id, 'mec_booking', true); if(!is_array($booking_options)) $booking_options = []; $gateway_settings = $this->main->get_gateways_options(); $active_gateways = []; foreach($gateways as $gateway) { if(!$gateway->enabled()) continue; // Gateway is disabled per event if(isset($gateway_settings['gateways_per_event']) and $gateway_settings['gateways_per_event']) { if(isset($booking_options['gateways_'.$gateway->id().'_disabled']) and $booking_options['gateways_'.$gateway->id().'_disabled']) continue; } $active_gateways[] = $gateway; // When Stripe Connect is enabled and organizer is connected then skip other gateways if($gateway->id() == 7 and get_user_meta(get_post_field('post_author', $event_id), 'mec_stripe_id', true)) // Stripe Connect { $active_gateways = array($gateway); break; } } $mecFluentEnable = class_exists('MEC_Fluent\Core\pluginBase\MecFluent') && (isset($this->settings['single_single_style']) and $this->settings['single_single_style'] == 'fluent'); if($mecFluentEnable) { $ticketsDetails = []; foreach($raw_tickets as $ticket_id => $count) { if(!isset($event_tickets[$ticket_id])) continue; $ticketPrice = isset($event_tickets[$ticket_id]['price']) ? $this->book->get_ticket_price($event_tickets[$ticket_id], current_time('Y-m-d'), $event_id, $occurrence) : 0; $ticketsDetails[$ticket_id]['name'] = $event_tickets[$ticket_id]['name']; $ticketsDetails[$ticket_id]['count'] = $count; $ticketsDetails[$ticket_id]['price'] = ($ticketPrice*$count); } } $first_gateway_id = NULL; $free_booking = isset($price_details['total']) && $price_details['total'] == 0; $paid_booking = !$free_booking; ?>

main->svg('form/subtotal-icon'); ?>
main->render_price($detail['amount'], $requested_event_id)); ?>
main->render_price($price_details['total'], $requested_event_id)); ?>
settings['coupons_status']) and $this->settings['coupons_status']): ?>
main->svg('form/discount-icon'); ?>
    settings['coupons_status']) and $this->settings['coupons_status']): ?>
  • main->render_price(($price_details['discount'] ?? 0), $requested_event_id, false)); ?>
  • main->render_price($price_details['total'], $requested_event_id)); ?>
  • getPartialPayment()->is_enabled()): ?>
  • main->render_price($price_details['payable'], $requested_event_id)); ?>

id(); ?>
comment()); ?> checkout_form($transaction_id); ?>

main->svg('form/lock-icon').' '.esc_html__('Your transaction is secured with SSL encryption.', 'modern-events-calendar-lite'); ?>