_booking_form_params.php
1 year ago
_booking_form_summary_panel.php
1 year ago
_booking_summary.php
1 year ago
_cart_clear.php
1 year ago
_cart_summary.php
1 year ago
_contact_form.php
1 year ago
_limit_reached.php
1 year ago
_monthly_calendar_days.php
1 year ago
_order_summary.php
1 year ago
_booking_form_summary_panel.php
64 lines
| 1 | <?php |
| 2 | /* @var $booking OsBookingModel */ |
| 3 | /* @var $cart OsCartModel */ |
| 4 | /* @var $logged_in_customer OsCustomerModel */ |
| 5 | /* @var $active_cart_item OsCartItemModel */ |
| 6 | ?> |
| 7 | <?php |
| 8 | if ( ! defined( 'ABSPATH' ) ) { |
| 9 | exit; // Exit if accessed directly |
| 10 | } |
| 11 | ?> |
| 12 | <div class="summary-header <?php echo OsCartsHelper::can_checkout() ? 'can-checkout' :''; ?>"> |
| 13 | <div class="summary-header-inner"> |
| 14 | <span class="summary-header-label"><?php esc_html_e('Summary', 'latepoint'); ?></span> |
| 15 | <?php |
| 16 | if(OsCartsHelper::can_checkout() && OsCartsHelper::can_checkout_multiple_items()){ |
| 17 | echo '<div class="checkout-from-summary-panel-btn-wrapper">'; |
| 18 | echo '<div class="checkout-from-summary-panel-btn" role="button" data-step="verify" tabindex="0"><span>'.esc_html__('Checkout', 'latepoint').'</span><i class="latepoint-icon latepoint-icon-arrow-2-right"></i></div>'; |
| 19 | echo '</div>'; |
| 20 | } |
| 21 | ?> |
| 22 | <a href="#" class="latepoint-lightbox-summary-trigger"><i class="latepoint-icon-common-01"></i></a> |
| 23 | </div> |
| 24 | </div> |
| 25 | <?php |
| 26 | if(OsCartsHelper::can_checkout() && OsCartsHelper::can_checkout_multiple_items()){ |
| 27 | echo '<div class="checkout-from-summary-panel-btn-wrapper os-mobile-only">'; |
| 28 | echo '<div class="checkout-from-summary-panel-btn" data-step="verify"><span>'.esc_html__('Checkout', 'latepoint').'</span><i class="latepoint-icon latepoint-icon-arrow-2-right"></i></div>'; |
| 29 | echo '</div>'; |
| 30 | } |
| 31 | ?> |
| 32 | <div class="os-summary-contents-inner <?php echo OsCartsHelper::can_checkout() ? 'can-checkout' :''; ?> <?php echo (count($cart->get_items()) > 1) ? 'has-multiple-cart-items' : '' ?>"> |
| 33 | <div class="os-summary-contents-inner-top"> |
| 34 | <?php |
| 35 | $customer = $logged_in_customer; |
| 36 | if($booking->is_ready_for_summary() && $active_cart_item->is_new_record()){ |
| 37 | // if(!$cart->is_empty()){ |
| 38 | // echo '<div class="pb-heading"> |
| 39 | // <div class="pbh-label">' . __('To be added', 'latepoint') . '</div> |
| 40 | // <div class="pbh-line"></div> |
| 41 | // </div>'; |
| 42 | // } |
| 43 | echo '<div class="summary-panel-items-wrapper">'; |
| 44 | $cart_item_id = $active_cart_item->id; |
| 45 | echo '<div class="active-cart-item-wrapper '.($cart->is_empty() ? '' : 'is-separated') .'">'; |
| 46 | echo OsBookingHelper::generate_summary_for_booking($booking, $cart_item_id); |
| 47 | if (OsAgentHelper::count_agents() > 1) OsAgentHelper::generate_summary_for_agent($booking); |
| 48 | echo '</div>'; |
| 49 | echo '</div>'; |
| 50 | } |
| 51 | if($booking->is_ready_for_summary() && !$cart->is_empty() && $active_cart_item->is_new_record()){ |
| 52 | echo '<div class="pb-heading"> |
| 53 | <div class="pbh-label">' . esc_html__('In cart', 'latepoint') . '</div> |
| 54 | <div class="pbh-line"></div> |
| 55 | </div>'; |
| 56 | |
| 57 | }?> |
| 58 | </div> |
| 59 | <?php |
| 60 | $customer = $logged_in_customer; |
| 61 | $output_target = 'summary_panel'; |
| 62 | include '_cart_summary.php'; |
| 63 | ?> |
| 64 | </div> |