cart-errors.php
5 years ago
form-billing.php
5 years ago
form-checkout.php
5 years ago
form-coupon.php
5 years ago
form-login.php
5 years ago
form-pay.php
5 years ago
form-shipping.php
5 years ago
order-receipt.php
5 years ago
payment-method.php
5 years ago
payment.php
4 years ago
review-order.php
5 years ago
terms.php
5 years ago
thankyou.php
5 years ago
terms.php
41 lines
| 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"> |
| 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 ); // WPCS: input var ok, csrf ok. ?> id="terms" /> |
| 31 | <span class="woocommerce-terms-and-conditions-checkbox-text"><?php wc_terms_and_conditions_checkbox_text(); ?></span> <span class="required">*</span> |
| 32 | </label> |
| 33 | <input type="hidden" name="terms-field" value="1" /> |
| 34 | </p> |
| 35 | <?php endif; ?> |
| 36 | </div> |
| 37 | <?php |
| 38 | |
| 39 | do_action( 'woocommerce_checkout_after_terms_and_conditions' ); |
| 40 | } |
| 41 |