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/form-checkout.php +14 -6 1.2.2 → 2.7.0 View file →
@@ -18,20 +18,28 @@
18 18 if ( ! defined( 'ABSPATH' ) ) {
19 19 exit;
20 20 }
21 21
22 +// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals -- WooCommerce template scope.
23 +
22 24 do_action( 'woocommerce_before_checkout_form', $checkout );
23 25 do_action( 'sellkit_checkout_one_page_express_methods' );
24 26
25 27 // If checkout registration is disabled and not logged in, the user cannot checkout.
26 28 if ( ! $checkout->is_registration_enabled() && $checkout->is_registration_required() && ! is_user_logged_in() ) {
27 - echo esc_html( apply_filters( 'woocommerce_checkout_must_be_logged_in_message', __( 'You must be logged in to checkout.', 'woocommerce' ) ) );
29 + echo esc_html( apply_filters( 'woocommerce_checkout_must_be_logged_in_message', __( 'You must be logged in to checkout.', 'sellkit' ) ) );
28 30 return;
29 31 }
30 32
33 +$extra_class = '';
34 +
35 +if ( ! WC()->cart->needs_shipping() ) {
36 + $extra_class = 'sellkit-checkout-virtual-session';
37 +}
38 +
31 39 ?>
32 40
33 -<form name="checkout" method="post" class="checkout woocommerce-checkout" action="<?php echo esc_url( wc_get_checkout_url() ); ?>" enctype="multipart/form-data">
41 +<form name="checkout" method="post" class="checkout woocommerce-checkout <?php echo esc_attr( $extra_class ); ?>" action="<?php echo esc_url( wc_get_checkout_url() ); ?>" enctype="multipart/form-data">
34 42 <?php do_action( 'sellkit-checkout-widget-breadcrumb-desktop' ); ?>
35 43 <?php
36 44 /* multi step - step 1 */
37 45 do_action( 'sellkit-checkout-step-a-begins' );
@@ -72,11 +80,11 @@
72 80
73 81 <?php /* multi step - step 3 */ ?>
74 82 <?php do_action( 'sellkit-checkout-step-c-begins' ); ?>
75 83
76 - <?php do_action( 'woocommerce_checkout_billing' ); ?>
84 + <?php do_action( 'sellkit_checkout_after_term_and_condition' ); ?>
77 85 <?php
78 - $order_button_text = apply_filters( 'sellkit-checkout-place-order-btn-text', __( 'Place Order', 'woocommerce' ) );
86 + $order_button_text = apply_filters( 'sellkit-checkout-place-order-btn-text', __( 'Place Order', 'sellkit' ) );
79 87 require __DIR__ . '/payment-continue.php';
80 88 ?>
81 89 <?php do_action( 'sellkit-checkout-step-c-ends' ); ?>
82 90
@@ -92,10 +100,10 @@
92 100
93 101 <?php do_action( 'sellkit-bundled-products-position' ); ?>
94 102
95 103 <div id="sellkit-checkout-widget-order-review-wrap" >
96 - <h4 id="order_review_heading" class="sellkit-checkout-order-review-heading header heading">
97 - <?php esc_html_e( 'Your order', 'woocommerce' ); ?>
104 + <h4 class="sellkit-checkout-order-review-heading header heading">
105 + <?php esc_html_e( 'Your order', 'sellkit' ); ?>
98 106 </h4>
99 107 <?php do_action( 'woocommerce_checkout_order_review' ); ?>
100 108 </div>
101 109 </div>