partials
1 year ago
_booking__agents.php
1 year ago
_booking__datepicker.php
1 year ago
_booking__services.php
1 year ago
_confirmation.php
1 year ago
_customer.php
1 year 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
_confirmation.php
99 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 | echo '<div class="booking-summary-info-w">'; |
| 38 | echo '<div class="summary-boxes-columns">'; |
| 39 | if (OsAgentHelper::count_agents() > 1) OsAgentHelper::generate_summary_for_agent($booking); |
| 40 | OsLocationHelper::generate_summary_for_location($booking); |
| 41 | OsCustomerHelper::generate_summary_for_customer($order->customer); |
| 42 | echo '</div>'; |
| 43 | echo '</div>'; |
| 44 | echo '</div>'; |
| 45 | do_action('latepoint_booking_summary_before_price_breakdown', $order); |
| 46 | ?> |
| 47 | </div> |
| 48 | <?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>'; ?> |
| 49 | </div> |
| 50 | </div> |
| 51 | </div> |
| 52 | <?php } else { ?> |
| 53 | <?php do_action('latepoint_step_confirmation_before', $order); ?> |
| 54 | <div class="confirmation-info-w"> |
| 55 | <div class="confirmation-head-info"> |
| 56 | <?php do_action('latepoint_step_confirmation_head_info_before', $order); ?> |
| 57 | <?php echo OsOrdersHelper::generate_confirmation_message($order); ?> |
| 58 | <?php do_action('latepoint_step_confirmation_head_info_after', $order); ?> |
| 59 | </div> |
| 60 | <?php include('partials/_order_summary.php'); ?> |
| 61 | </div> |
| 62 | <?php |
| 63 | // Tracking code |
| 64 | if (!empty(OsSettingsHelper::get_settings_value('confirmation_step_tracking_code', ''))) { |
| 65 | echo '<div style="display: none;">' . OsReplacerHelper::replace_tracking_vars(OsSettingsHelper::get_settings_value('confirmation_step_tracking_code'), $order) . '</div>'; |
| 66 | } |
| 67 | ?> |
| 68 | <?php |
| 69 | // show "create account" prompt where they can set a password for their account |
| 70 | if (!empty($customer) && $customer->is_guest && (OsSettingsHelper::get_settings_value('steps_hide_registration_prompt') != 'on') && !OsSettingsHelper::is_on('steps_hide_login_register_tabs')) { ?> |
| 71 | <div class="step-confirmation-set-password"> |
| 72 | <div class="set-password-fields"> |
| 73 | <?php echo OsFormHelper::password_field('customer[password]', __('Set Your Password', 'latepoint')); ?> |
| 74 | <a href="#" class="latepoint-btn latepoint-btn-primary set-customer-password-btn" |
| 75 | 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> |
| 76 | </div> |
| 77 | <?php echo OsFormHelper::hidden_field('account_nonse', $customer->account_nonse); ?> |
| 78 | </div> |
| 79 | <div class="confirmation-cabinet-info"> |
| 80 | <div |
| 81 | class="confirmation-cabinet-text"><?php esc_html_e('You can now manage your appointments in your personal cabinet', 'latepoint'); ?></div> |
| 82 | <div class="confirmation-cabinet-link-w"> |
| 83 | <a href="<?php echo esc_url(OsSettingsHelper::get_customer_dashboard_url()); ?>" class="confirmation-cabinet-link" |
| 84 | target="_blank"><?php esc_html_e('Open My Cabinet', 'latepoint'); ?></a> |
| 85 | </div> |
| 86 | </div> |
| 87 | <div class="info-box text-center"> |
| 88 | <?php esc_html_e('Did you know that you can create an account to manage your reservations and schedule new appointments?', 'latepoint'); ?> |
| 89 | <div class="info-box-buttons"> |
| 90 | <a href="#" class="show-set-password-fields"><?php esc_html_e('Create Account', 'latepoint'); ?></a> |
| 91 | </div> |
| 92 | </div> |
| 93 | <?php } ?> |
| 94 | <?php } ?> |
| 95 | <?php |
| 96 | echo OsStepsHelper::get_formatted_extra_step_content($current_step_code, 'after'); |
| 97 | do_action('latepoint_after_step_content', $current_step_code); |
| 98 | ?> |
| 99 | </div> |