PluginProbe
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster / 2.7.0
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster v2.7.0
2.7.0 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 All 43 releases
← All changes | includes/elementor/modules/checkout/templates/payment.php +51 -31 1.3.22.7.0 View file →
@@ -15,46 +15,66 @@
15 15 * @version 3.5.3
16 16 */
17 17
18 18 defined( 'ABSPATH' ) || exit;
19 +// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals -- WooCommerce/Elementor template; variables mirror core docs.
19 20
21 +
22 +use Elementor\Plugin as Elementor;
23 +$is_editor = Elementor::$instance->editor->is_edit_mode();
24 +
20 25 if ( ! wp_doing_ajax() ) {
21 26 do_action( 'woocommerce_review_order_before_payment' );
27 + echo '<section>';
22 28 }
23 -?>
24 29
25 -<?php if ( ! wp_doing_ajax() ) : ?>
26 -<section>
27 - <h4 id="payment_method_title" class="sellkit-one-page-checkout-payment-heading heading"><?php echo __( 'Payment', 'sellkit' ); ?></h4>
28 - <p class="sellkit-one-page-checkout-payment-desc sub-heading">
29 - <?php echo apply_filters( 'sellkit_core/widgets/checkout/custom_message/secure_transaction_text', __( 'All transactions are secure and encrypted.', 'sellkit' ) ); ?>
30 - </p>
31 -
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>
32 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 +}
33 71
34 - <div id="payment" class="woocommerce-checkout-payment sellkit-one-page-checkout-payment-methods sellkit-checkout-widget-divider">
35 - <?php if ( WC()->cart->needs_payment() ) : ?>
36 - <ul class="wc_payment_methods payment_methods methods">
37 - <?php
38 - if ( ! empty( $available_gateways ) ) {
39 - $i = 1;
40 - $count = count( $available_gateways );
41 - foreach ( $available_gateways as $gateway ) {
42 - wc_get_template( 'checkout/payment-method.php', array( 'gateway' => $gateway ) );
43 - if ( $i < $count ) {
44 - echo '<hr class="sellkit-checkout-widget-divider">';
45 - }
46 - $i++;
47 - }
48 - } else {
49 - 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.', 'woocommerce' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'woocommerce' ) ) . '</li>'; // @codingStandardsIgnoreLine
50 - }
51 - ?>
52 - </ul>
53 - <?php endif; ?>
54 - </div>
55 -
56 -<?php
57 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
58 78 echo '</section>';
59 79 do_action( 'woocommerce_review_order_after_payment' );
60 80 }