PluginProbe
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster / trunk
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster vtrunk
2.6.0 trunk 1.1.0 1.1.4 1.2.1 1.2.2 1.2.3 1.2.5 1.2.9 1.3.1 1.3.2 1.5.0 1.5.1 1.5.4 1.5.7 1.5.8 1.5.9 1.6.2 1.6.5 1.6.8 1.7.2 1.7.4 1.7.5 1.7.9 1.8.1 All 42 releases
sellkit / includes / elementor / modules / checkout / templates / payment.php

payment.php in SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster trunk, at includes/elementor/modules/checkout/templates/payment.php

81 lines 3.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Checkout Payment Section
4 *
5 * This template can be overridden by copying it to yourtheme/woocommerce/checkout/payment.php.
6 *
7 * HOWEVER, on occasion WooCommerce will need to update template files and you
8 * (the theme developer) will need to copy the new files to your theme to
9 * maintain compatibility. We try to do this as little as possible, but it does
10 * happen. When this occurs the version of the template file will be bumped and
11 * the readme will list any important changes.
12 *
13 * @see https://docs.woocommerce.com/document/template-structure/
14 * @package WooCommerce\Templates
15 * @version 3.5.3
16 */
17
18 defined( 'ABSPATH' ) || exit;
19 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals -- WooCommerce/Elementor template; variables mirror core docs.
20
21
22 use Elementor\Plugin as Elementor;
23 $is_editor = Elementor::$instance->editor->is_edit_mode();
24
25 if ( ! wp_doing_ajax() ) {
26 do_action( 'woocommerce_review_order_before_payment' );
27 echo '<section>';
28 }
29
30 if ( ! wp_doing_ajax() ) {
31 ?>
32 <h4 id="payment_method_title" class="sellkit-one-page-checkout-payment-heading heading"><?php echo esc_html__( 'Payment', 'sellkit' ); ?></h4>
33 <p class="sellkit-one-page-checkout-payment-desc sub-heading">
34 <?php echo wp_kses_post( apply_filters( 'sellkit_core/widgets/checkout/custom_message/secure_transaction_text', esc_html__( 'All transactions are secure and encrypted.', 'sellkit' ) ) ); ?>
35 </p>
36 <?php
37 }
38 if ( $is_editor ) {
39 ?>
40 <h4 id="payment_method_title" class="sellkit-one-page-checkout-payment-heading heading"><?php echo esc_html__( 'Payment', 'sellkit' ); ?></h4>
41 <p class="sellkit-one-page-checkout-payment-desc sub-heading">
42 <?php echo wp_kses_post( apply_filters( 'sellkit_core/widgets/checkout/custom_message/secure_transaction_text', esc_html__( 'All transactions are secure and encrypted.', 'sellkit' ) ) ); ?>
43 </p>
44 <?php
45 }
46 ?>
47 <div id="payment" class="woocommerce-checkout-payment sellkit-one-page-checkout-payment-methods sellkit-checkout-widget-divider">
48 <?php if ( WC()->cart->needs_payment() ) : ?>
49 <ul class="wc_payment_methods payment_methods methods">
50 <?php
51 if ( ! empty( $available_gateways ) ) {
52 foreach ( $available_gateways as $gateway ) {
53 wc_get_template( 'checkout/payment-method.php', array( 'gateway' => $gateway ) );
54 echo '<hr class="sellkit-checkout-widget-divider">';
55 }
56 } else {
57 echo '<li class="woocommerce-notice woocommerce-notice--info woocommerce-info">' . apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'sellkit' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'sellkit' ) ) . '</li>'; // @codingStandardsIgnoreLine
58 }
59 ?>
60 </ul>
61 <?php endif; ?>
62 </div>
63 <?php
64 if ( $is_editor ) {
65 ?>
66 <div class="sellkit-one-page-checkout-payment-desc sub-heading">
67 <?php wc_get_template( 'checkout/terms.php' ); ?>
68 </div>
69 <?php
70 }
71
72 if ( ! wp_doing_ajax() ) {
73 ?>
74 <div class="sellkit-one-page-checkout-payment-desc sub-heading">
75 <?php wc_get_template( 'checkout/terms.php' ); ?>
76 </div>
77 <?php
78 echo '</section>';
79 do_action( 'woocommerce_review_order_after_payment' );
80 }
81