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 / terms.php

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

40 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Checkout terms and conditions area.
4 *
5 * @package WooCommerce\Templates
6 * @version 3.4.0
7 */
8
9 defined( 'ABSPATH' ) || exit;
10
11 if ( apply_filters( 'woocommerce_checkout_show_terms', true ) && function_exists( 'wc_terms_and_conditions_checkbox_enabled' ) ) {
12 do_action( 'woocommerce_checkout_before_terms_and_conditions' );
13
14 ?>
15 <div class="woocommerce-terms-and-conditions-wrapper sellkit-checkout-terms">
16 <?php
17 /**
18 * Terms and conditions hook used to inject content.
19 *
20 * @since 3.4.0.
21 * @hooked wc_checkout_privacy_policy_text() Shows custom privacy policy text. Priority 20.
22 * @hooked wc_terms_and_conditions_page_content() Shows t&c page content. Priority 30.
23 */
24 do_action( 'woocommerce_checkout_terms_and_conditions' );
25 ?>
26
27 <?php if ( wc_terms_and_conditions_checkbox_enabled() ) : ?>
28 <p class="form-row validate-required">
29 <label class="woocommerce-form__label woocommerce-form__label-for-checkbox checkbox">
30 <input type="checkbox" class="woocommerce-form__input woocommerce-form__input-checkbox input-checkbox" name="terms" <?php checked( apply_filters( 'woocommerce_terms_is_checked_default', isset( $_POST['terms'] ) ), true ); // phpcs:ignore WordPress.Security.NonceVerification.Missing -- WooCommerce checkout template; WC validates checkout. ?> id="terms" />
31 <span class="woocommerce-terms-and-conditions-checkbox-text"><?php wc_terms_and_conditions_checkbox_text(); ?></span>&nbsp;<abbr class="required" title="<?php esc_attr_e( 'required', 'sellkit' ); ?>">*</abbr>
32 </label>
33 <input type="hidden" name="terms-field" value="1" />
34 </p>
35 <?php endif; ?>
36 </div>
37 <?php
38 do_action( 'woocommerce_checkout_after_terms_and_conditions' );
39 }
40