eventPrice; $isCustomGrouping = $session->isCustomGrouping; $customGroups = $session->customGroups; $priceNotes = $session->priceNotes; $allvalues = json_decode(json_encode($eventPrices), true); if (!array_filter($allvalues)) { $eventPrice = 0; $paymentMethod = "free"; $hiddenClass = "km_hidden"; } else { $eventPrice = 1; $paymentMethod = "card"; $hiddenClass = "";} $additionalCharges = $session->additionalCharges; $extendedCareDetails = $session->extendedCareDetails; if ($this->getvalue('isPriceForAllKids', $extendedCareDetails, false) != '' && $this->getvalue('isPriceForAllKids', $extendedCareDetails, false) != 'true') {$priceforAllkids = '';} else { $priceforAllkids = '/seat';} $session_type = $this->getvalue('oneDayType', $session, false) ? $this->getvalue('oneDayType', $session, false) : 'weekly'; $SelectedAdditionalcharges = []; $SelectedPaymentOptions = []; $selected_payment_option = null; if ($cartItem) { //echo "
"; print_r($cartItem); echo "
"; $selected_payment_option = $cartItem['selected_payment_option']; $selectedExtendedCare = $cartItem['extendedCareSelected']; $SelectedAdditionalcharges = $cartItem['additionalChargeDetails']; $bookingoption_selection = $cartItem['bookingoption_selection']; $dropindates = $cartItem['dropindates']; if (!$SelectedAdditionalcharges) { $SelectedAdditionalcharges = []; } } $agefrom = $session->ageRange->from ?? $session->activityId->ageRange->from; $ageto = $session->ageRange->to ?? $session->activityId->ageRange->to; $sessionPrice = $session->price; $sessionPriceRange = $session->activityId->priceRange; $sessionPriceRangeFrom = $sessionPriceRange->from; $sessionPriceRangeto = isset($sessionPriceRange->to) ? $sessionPriceRange->to : null; $location = $session->siteLocationId->name; $location_state = $session->siteLocationId->state; $location_country = $session->siteLocationId->country; $location_link = "https://www.google.com/maps/place/" . $location . ",+" . $location_state . ",+" . $location_country; $session_fullday_price = $session->siteLocationId->oneDayDetails->fullDay->price; $eventDates = $session->eventDates; $disableinfants = $disabletodders = $disablechildren = $disableyouth = $disableadults = $disableabove = ''; if ($agefrom >= 2) {$disableinfants = 'disabled';} if ($agefrom >= 4) {$disabletodders = 'disabled';} if ($agefrom >= 12) {$disablechildren = 'disabled';} if ($agefrom >= 18) {$disableyouth = 'disabled';} if ($agefrom >= 65) {$disableadults = 'disabled';} ?>
displaySessionThumb($session);?>
engine->getvalue('hasSeatRestriction', $customGroup, false); if ($hasSeatRestriction) { $totalSeats = fieldday()->engine->getvalue('totalSeats', $customGroup, false); $totalSeats = $totalSeats?$totalSeats:0; $bookedSeats = fieldday()->engine->getvalue('bookedSeats', $customGroup, false);} $bookedSeats = $bookedSeats?$bookedSeats:0; $lparticipant = end($customGroup->included); if ($customGroup->price > 0) { $subline = $this->display_price($customGroup->price) . ' + 6% Processing Fee per ticket'; } else { $subline = 'Free for participant with age ' . $customGroup->ageTo . ' & under'; } ?>

name; ?>

engine->getvalue('inclusionNotes', $customGroup, false); if (!empty($inclusionNotes)): ?>

", "fieldday");?>

Sold Out

';} else { $availableSeats = $totalSeats - $bookedSeats; if ($availableSeats <= 0) { $disabled = 'km_hidden'; $SoldOut = '

Sold Out

'; } else { for ($x = 0; $x <= $availableSeats; $x++) { array_push($arrayValues, $x); } } } } ?> 0) || (!$hasSeatRestriction)){ ?>
-
+

*

  • - name="ATC[infants]" class="km_eparticipants_type" value ="0" type="text">+
  • - name="ATC[toddler]" class="km_eparticipants_type" value="0" type="text">+
  • - name="ATC[children]" class="km_eparticipants_type" value="0" type="text">+
  • - name="ATC[youth]" class="km_eparticipants_type" value="0" type="text">+
  • - name="ATC[adults]" class="km_eparticipants_type" value="0" type="text">+
  • - name="ATC[seniors]" class="km_eparticipants_type" value="0" type="text">+
'; foreach ($priceNotes as $priceNote) { echo '' . $priceNote->text . ''; } echo '
'; //print_r($priceNotes); echo '
'.$priceNotes[0]->text.'
'; } ?>

*
*
*
*
*

api->getSavedCards();?> data as $key => $paymentMethod): ?> data): ?>
*
*
*
*
*
Enjoy Free Event, Please click on checkout button to confirm the Booking.', 'fieldday'); } else {_e('Enjoy Free Event, Fill the details above and click on checkout button to confirm the Booking.', 'fieldday');} }?>