PluginProbe ʕ •ᴥ•ʔ
LatePoint – Calendar Booking Plugin for Appointments and Events / trunk
LatePoint – Calendar Booking Plugin for Appointments and Events vtrunk
5.6.5 5.6.4 5.6.3 5.6.2 5.6.1 5.6.0 5.5.2 5.5.1 5.5.0 5.4.2 trunk 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.1.8 5.1.9 5.1.91 5.1.92 5.1.93 5.1.94 5.2.0 5.2.1 5.2.10 5.2.11 5.2.2 5.2.3 5.2.4 5.2.5 5.2.6 5.2.7 5.2.8 5.2.9 5.3.0 5.3.1 5.3.2 5.4.0 5.4.1
latepoint / lib / views / steps / _confirmation.php
latepoint / lib / views / steps Last commit date
partials 1 day ago _booking__agents.php 9 months ago _booking__datepicker.php 9 months ago _booking__services.php 2 weeks ago _confirmation.php 1 day ago _customer.php 4 months ago _payment__methods.php 1 year ago _payment__pay.php 1 year ago _payment__portions.php 1 year ago _payment__processors.php 1 year ago _payment__times.php 1 year ago _verify.php 1 year ago load_step.php 1 year ago preset_slot_not_available.php 1 year ago start.php 1 year ago start_instant.php 1 year ago
_confirmation.php
112 lines
1 <?php
2 /**
3 * @var $current_step_code string
4 * @var $order OsOrderModel
5 * @var $order_bookings array
6 * @var $order_bundles array
7 * @var $is_bundle_scheduling bool
8 * @var $booking OsBookingModel
9 */
10
11
12 if ( ! defined( 'ABSPATH' ) ) {
13 exit; // Exit if accessed directly
14 }
15
16
17 ?>
18 <div class="step-confirmation-w latepoint-step-content" data-step-code="<?php echo esc_attr($current_step_code); ?>"
19 data-next-btn-label="<?php echo esc_attr(OsStepsHelper::get_next_btn_label_for_step($current_step_code)); ?>">
20 <?php
21 do_action('latepoint_before_step_content', $current_step_code);
22 echo OsStepsHelper::get_formatted_extra_step_content($current_step_code, 'before');
23 ?>
24 <?php if ($is_bundle_scheduling) { ?>
25 <div class="bundle-scheduled-summary-lightbox">
26 <div class="full-summary-wrapper">
27 <div class="confirmation-head-info">
28 <?php do_action('latepoint_step_confirmation_head_info_before', $order); ?>
29 <?php echo OsOrdersHelper::generate_confirmation_message($order); ?>
30 <?php do_action('latepoint_step_confirmation_head_info_after', $order); ?>
31 </div>
32 <div class="full-summary-info-w">
33 <div class="booking-summary-main-section">
34 <?php
35 echo '<div class="summary-box-wrapper">';
36 echo OsBookingHelper::generate_summary_for_booking($booking, false);
37 if(!empty($booking->recurrence_id)){
38 $connected_bookings = $booking->get_connected_recurring_bookings();
39 echo OsFeatureRecurringBookingsHelper::output_recurrent_bookings_summary($connected_bookings, false);
40 }
41 echo '<div class="booking-summary-info-w">';
42 echo '<div class="summary-boxes-columns">';
43 if (OsAgentHelper::count_agents() > 1) OsAgentHelper::generate_summary_for_agent($booking);
44 OsLocationHelper::generate_summary_for_location($booking);
45 OsCustomerHelper::generate_summary_for_customer($order->customer);
46 echo '</div>';
47 echo '</div>';
48 echo '</div>';
49 do_action('latepoint_booking_summary_before_price_breakdown', $order);
50 ?>
51 </div>
52 <?php echo '<div class="part-of-bundle-message">' . esc_html__('This booking is part of a bundle.', 'latepoint') . ' <a href="#" ' . OsCustomerHelper::generate_bundle_scheduling_btn($booking->order_item_id) . '>' . esc_html__('Show Details', 'latepoint') . '</a></div>'; ?>
53 </div>
54 </div>
55 </div>
56 <?php } else { ?>
57 <?php do_action('latepoint_step_confirmation_before', $order); ?>
58 <div class="confirmation-info-w">
59 <div class="confirmation-head-info">
60 <?php do_action('latepoint_step_confirmation_head_info_before', $order); ?>
61 <?php echo OsOrdersHelper::generate_confirmation_message($order); ?>
62 <?php do_action('latepoint_step_confirmation_head_info_after', $order); ?>
63 </div>
64 <?php include('partials/_order_summary.php'); ?>
65 </div>
66 <?php
67 // Tracking code
68 if (!empty(OsSettingsHelper::get_settings_value('confirmation_step_tracking_code', ''))) {
69 echo '<div style="display: none;">' . OsReplacerHelper::replace_tracking_vars(OsSettingsHelper::get_settings_value('confirmation_step_tracking_code'), $order) . '</div>';
70 }
71 ?>
72 <?php
73 // show "create account" prompt where they can set a password for their account
74 if (!empty($customer) && $customer->is_guest && (OsSettingsHelper::is_off('steps_hide_registration_prompt') && OsAuthHelper::is_customer_auth_enabled()) && !OsAuthHelper::is_customer_logged_in()) { ?>
75 <div class="step-confirmation-set-password">
76 <div class="set-password-fields">
77 <?php echo OsFormHelper::password_field('customer[password]', __('Set Your Password', 'latepoint'), '', ['autocomplete' => 'new-password']); ?>
78 <a href="#" class="latepoint-btn latepoint-btn-primary set-customer-password-btn"
79 data-btn-action="<?php echo esc_attr(OsRouterHelper::build_route_name('customer_cabinet', 'set_account_password_on_booking_completion')); ?>"><?php esc_html_e('Save', 'latepoint'); ?></a>
80 </div>
81 <?php wp_nonce_field('set_initial_password_for_customer_'.$customer->get_uuid(), 'new_password_nonce'); ?>
82 </div>
83 <div class="confirmation-cabinet-info">
84 <div
85 class="confirmation-cabinet-text"><?php esc_html_e('You can now manage your appointments in your personal cabinet', 'latepoint'); ?></div>
86 <div class="confirmation-cabinet-link-w">
87 <a href="<?php echo esc_url(OsSettingsHelper::get_customer_dashboard_url()); ?>" class="confirmation-cabinet-link"
88 target="_blank"><?php esc_html_e('Open My Cabinet', 'latepoint'); ?></a>
89 </div>
90 </div>
91 <div class="info-box text-center">
92 <?php esc_html_e('Did you know that you can create an account to manage your reservations and schedule new appointments?', 'latepoint'); ?>
93 <div class="info-box-buttons">
94 <a href="#" class="show-set-password-fields"><?php esc_html_e('Create Account', 'latepoint'); ?></a>
95 </div>
96 </div>
97 <?php } elseif (!empty($customer) && OsAuthHelper::is_customer_logged_in()) { ?>
98 <div class="confirmation-cabinet-info">
99 <div
100 class="confirmation-cabinet-text"><?php esc_html_e('You can now manage your appointments in your personal cabinet', 'latepoint'); ?></div>
101 <div class="confirmation-cabinet-link-w">
102 <a href="<?php echo esc_url(OsSettingsHelper::get_customer_dashboard_url()); ?>" class="confirmation-cabinet-link"
103 target="_blank"><?php esc_html_e('Open My Cabinet', 'latepoint'); ?></a>
104 </div>
105 </div>
106 <?php } ?>
107 <?php } ?>
108 <?php
109 echo OsStepsHelper::get_formatted_extra_step_content($current_step_code, 'after');
110 do_action('latepoint_after_step_content', $current_step_code);
111 ?>
112 </div>