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
_payment__portions.php
57 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @var $current_step_code string |
| 4 | * @var $cart OsCartModel |
| 5 | * @var $restrictions array |
| 6 | * @var $presets array |
| 7 | */ |
| 8 | |
| 9 | if ( ! defined( 'ABSPATH' ) ) { |
| 10 | exit; // Exit if accessed directly |
| 11 | } |
| 12 | |
| 13 | |
| 14 | ?> |
| 15 | <div class="step-payment-portions-w latepoint-step-content" |
| 16 | data-step-code="<?php echo esc_attr($current_step_code); ?>" |
| 17 | data-next-btn-label="<?php echo esc_attr(OsStepsHelper::get_next_btn_label_for_step($current_step_code)); ?>"> |
| 18 | |
| 19 | <?php |
| 20 | do_action('latepoint_before_step_content', $current_step_code); |
| 21 | echo OsStepsHelper::get_formatted_extra_step_content($current_step_code, 'before'); |
| 22 | ?> |
| 23 | <div class="lp-payment-portions-w"> |
| 24 | <div class="lp-options lp-options-grid lp-options-grid-two"> |
| 25 | <div class="lp-option lp-payment-trigger-payment-portion-selector" |
| 26 | tabindex="0" |
| 27 | data-holder="cart[payment_portion]" |
| 28 | data-value="<?php echo esc_attr(LATEPOINT_PAYMENT_PORTION_FULL); ?>"> |
| 29 | <div class="lp-option-amount-w"> |
| 30 | <div class="lp-option-amount lp-amount-full"> |
| 31 | <div class="lp-amount-value"><?php echo esc_html($cart->get_total_formatted()); ?></div> |
| 32 | </div> |
| 33 | </div> |
| 34 | <div class="lp-option-label"><?php esc_html_e('Full Amount', 'latepoint'); ?></div> |
| 35 | </div> |
| 36 | <div class="lp-option lp-payment-trigger-payment-portion-selector" |
| 37 | tabindex="0" |
| 38 | data-holder="cart[payment_portion]" |
| 39 | data-value="<?php echo esc_attr(LATEPOINT_PAYMENT_PORTION_DEPOSIT); ?>"> |
| 40 | <div class="lp-option-amount-w"> |
| 41 | <div class="lp-option-amount lp-amount-deposit"> |
| 42 | <div class="lp-slice"></div> |
| 43 | <div class="lp-amount-value"><?php echo esc_html($cart->deposit_amount_to_charge_formatted()); ?></div> |
| 44 | </div> |
| 45 | </div> |
| 46 | <div class="lp-option-label"><?php esc_html_e('Deposit Only', 'latepoint'); ?></div> |
| 47 | </div> |
| 48 | </div> |
| 49 | </div> |
| 50 | <?php |
| 51 | echo OsStepsHelper::get_formatted_extra_step_content($current_step_code, 'after'); |
| 52 | do_action('latepoint_after_step_content', $current_step_code); |
| 53 | ?> |
| 54 | <?php |
| 55 | echo OsFormHelper::hidden_field('cart[payment_portion]', '', ['class' => 'latepoint_cart_payment_portion', 'skip_id' => true]); |
| 56 | ?> |
| 57 | </div> |