row; $rooms = $this->rooms; $customer = $this->customer; $dbo = JFactory::getDbo(); $vbo_app = VikBooking::getVboApplication(); /** * This view is usually rendered within a modal window, and with WordPress * the modal window is loaded through AJAX by the "editorder" View. For this * reason, with WP we should not load the JS assets for the contextual menu, * or we would reset the default setup of the library. We load the assets in * the parent View "editorder" to avoid issues of any kind. * * @since 1.16.0 (J) - 1.6.0 (WP) */ if ((VBOPlatformDetection::isJoomla()) || (VBOPlatformDetection::isWordPress() && !wp_doing_ajax())) { $vbo_app->loadContextMenuAssets(); JText::script('VBRENTALORD'); JText::script('VBPVIEWORDERSPEOPLE'); } $currencysymb = VikBooking::getCurrencySymb(); $nowdf = VikBooking::getDateFormat(true); if ($nowdf == "%d/%m/%Y") { $df = 'd/m/Y'; } elseif ($nowdf == "%m/%d/%Y") { $df = 'm/d/Y'; } else { $df = 'Y/m/d'; } $datesep = VikBooking::getDateSeparator(true); $pchanged = VikRequest::getInt('changed', '', 'request'); $tmpl = VikRequest::getVar('tmpl'); $set_parent_status = ''; $now_info = getdate(); $today_midnight = mktime(0, 0, 0, $now_info['mon'], $now_info['mday'], $now_info['year']); $colortags = VikBooking::loadBookingsColorTags(); $otachannel = ''; $otachannel_name = ''; $otachannel_bid = ''; $otacurrency = ''; if (!empty($order['channel'])) { $channelparts = explode('_', $order['channel']); $otachannel = array_key_exists(1, $channelparts) && strlen($channelparts[1]) > 0 ? $channelparts[1] : ucwords($channelparts[0]); $otachannel_name = $otachannel; $otachannel_bid = $order['idorderota']; if (strstr($otachannel, '.') !== false) { $otaccparts = explode('.', $otachannel); $otachannel = $otaccparts[0]; } $otacurrency = strlen($order['chcurrency']) > 0 ? $order['chcurrency'] : ''; } $sensible_k = array('first_name', 'last_name', 'country', 'gender', 'bdate', 'pbirth'); $missing_customer_det = false; foreach ($customer as $ck => $cv) { if ((!isset($customer[$ck]) || empty($customer[$ck])) && in_array($ck, $sensible_k)) { $missing_customer_det = true; } } /** * Back-end guests registration now relies on dynamic drivers within Vik Booking. * * @since 1.15.0 (J) - 1.5.0 (WP) */ // get the list of back-end pax fields according to settings list($pax_fields, $pax_fields_attributes) = VikBooking::getPaxFields(); // grab also the fields for front-end pre check-in list($pre_pax_fields, $pre_pax_fields_attributes) = VikBooking::getPaxFields(true); // once the pax fields have been prepared, get the active driver instance $pax_fields_obj = VBOCheckinPax::getInstance(); // load any previous checkin information from this customer $previous_checkins = VBOCheckinPax::getCustomerAllPaxData($order['id']); ?>