partials
9 months ago
_booking__agents.php
9 months ago
_booking__datepicker.php
9 months ago
_booking__services.php
9 months ago
_confirmation.php
9 months 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
_verify.php
58 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @var $current_step_code string |
| 4 | * @var $booking OsBookingModel |
| 5 | * @var $restrictions array |
| 6 | * @var $cart OsCartModel |
| 7 | * @var $cart_items OsCartItemModel[] |
| 8 | * @var $price_breakdown_rows array |
| 9 | */ |
| 10 | |
| 11 | if ( ! defined( 'ABSPATH' ) ) { |
| 12 | exit; // Exit if accessed directly |
| 13 | } |
| 14 | |
| 15 | |
| 16 | ?> |
| 17 | <div class="step-verify-w latepoint-step-content" data-step-code="<?php echo esc_attr($current_step_code); ?>" |
| 18 | data-next-btn-label="<?php echo esc_attr(OsStepsHelper::get_next_btn_label_for_step($current_step_code)); ?>"> |
| 19 | <?php do_action('latepoint_before_step_content', $current_step_code); ?> |
| 20 | <?php echo OsStepsHelper::get_formatted_extra_step_content($current_step_code, 'before'); ?> |
| 21 | <div class="latepoint-cart-items"> |
| 22 | <div class="confirmation-info-w"> |
| 23 | <?php |
| 24 | if($booking->order_item_id){ |
| 25 | // scheduling a purchased bundle from existing order |
| 26 | $order_item = new OsOrderItemModel($booking->order_item_id); |
| 27 | $order = new OsOrderModel($order_item->order_id); |
| 28 | echo '<div class="scheduling-bundle-booking-summary">'; |
| 29 | // scheduling an already ordered item |
| 30 | echo OsBookingHelper::generate_summary_for_booking($booking); |
| 31 | // translators: %s is confirmation code |
| 32 | echo '<div class="part-of-bundle-message">'.esc_html(sprintf(__('Scheduling this booking will use a slot from a bundle which is part of order #%s.', 'latepoint'), $order->confirmation_code)).'</div>'; |
| 33 | echo '<div class="booking-summary-info-w">'; |
| 34 | echo '<div class="summary-boxes-columns">'; |
| 35 | if (OsAgentHelper::count_agents() > 1) OsAgentHelper::generate_summary_for_agent($booking); |
| 36 | OsLocationHelper::generate_summary_for_location($booking); |
| 37 | OsCustomerHelper::generate_summary_for_customer($booking->customer); |
| 38 | echo '</div>'; |
| 39 | echo '</div>'; |
| 40 | echo '</div>'; |
| 41 | }else{ |
| 42 | // new order |
| 43 | $output_target = 'step_verify'; |
| 44 | include('partials/_cart_summary.php'); |
| 45 | } |
| 46 | ?> |
| 47 | </div> |
| 48 | </div> |
| 49 | <?php echo OsStepsHelper::get_formatted_extra_step_content($current_step_code, 'after'); ?> |
| 50 | <?php do_action('latepoint_after_step_content', $current_step_code); ?> |
| 51 | <?php |
| 52 | if(empty($booking->order_item_id)){ |
| 53 | // regular booking |
| 54 | do_action('latepoint_after_verify_step_content', $current_step_code); |
| 55 | }else{ |
| 56 | // scheduling a purchased bundle |
| 57 | } ?> |
| 58 | </div> |