| Server IP : 104.21.28.229 / Your IP : 216.73.216.142 Web Server : Apache/2 System : Linux hosting8537.lvs 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : mienphi ( 1014) PHP Version : 8.2.14 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/mienphi/public_html/wp-content/plugins/learnpress/templates/checkout/ |
Upload File : |
<?php
/**
* Template for displaying payment form for checkout page.
*
* Edit by Nhamdv
*
* This template can be overridden by copying it to yourtheme/learnpress/checkout/payment.php.
*
* @author ThimPress
* @package Learnpress/Templates
* @version 4.0.0
*/
defined( 'ABSPATH' ) || exit();
?>
<div id="checkout-payment" class="lp-checkout-block left">
<?php
do_action( 'learn-press/before-payment-methods' );
// Show payments if cart total > 0 and have at least one payment method.
if ( LearnPress::instance()->cart && LearnPress::instance()->cart->needs_payment() && $available_gateways ) {
?>
<h4>
<?php esc_html_e( 'Payment', 'learnpress' ); ?>
<span class="secure-connection">
<i class="lp-icon-lock"></i>
<?php echo esc_html_x( 'Secure Connection', 'payment method', 'learnpress' ); ?>
</span>
</h4>
<ul class="payment-methods">
<?php
$order = 1;
foreach ( $available_gateways as $gateway ) {
if ( $order == 1 ) {
learn_press_get_template(
'checkout/payment-method.php',
array(
'gateway' => $gateway,
'selected' => $gateway->id,
)
);
} else {
learn_press_get_template(
'checkout/payment-method.php',
array(
'gateway' => $gateway,
'selected' => '',
)
);
}
$order ++;
}
?>
</ul>
<?php
}
do_action( 'learn-press/payment-form' );
?>
<div id="checkout-order-action" class="place-order-action">
<?php do_action( 'learn-press/before-checkout-submit-button' ); ?>
<button type="submit" class="lp-button button alt" name="learn_press_checkout_place_order" id="learn-press-checkout-place-order">
<?php echo apply_filters( 'learn-press/checkout-proceed-button-text', esc_html__( 'Place order', 'learnpress' ) ); ?>
</button>
<?php
/*if ( is_user_logged_in() ) {
wp_nonce_field( 'learn-press-user-logged', 'learn-press-checkout-nonce' );
}*/
do_action( 'learn-press/after-checkout-submit-button' );
?>
</div>
<?php do_action( 'learn-press/after-payment-form' ); ?>
</div>