2015-10-06 11:33:45 +00:00
< ? php
/**
* Checkout terms and conditions checkbox
*
* @ author WooThemes
* @ package WooCommerce / Templates
* @ version 2.5 . 0
*/
if ( ! defined ( 'ABSPATH' ) ) {
exit ;
}
if ( wc_get_page_id ( 'terms' ) > 0 && apply_filters ( 'woocommerce_checkout_show_terms' , true ) ) : ?>
2016-02-02 21:53:14 +00:00
< ? php do_action ( 'woocommerce_checkout_before_terms_and_conditions' ); ?>
2015-12-03 09:49:36 +00:00
< p class = " form-row terms wc-terms-and-conditions " >
< input type = " checkbox " class = " input-checkbox " name = " terms " < ? php checked ( apply_filters ( 'woocommerce_terms_is_checked_default' , isset ( $_POST [ 'terms' ] ) ), true ); ?> id="terms" />
< label for = " terms " class = " checkbox " >< ? php printf ( __ ( 'I’ve read and accept the <a href="%s" target="_blank">terms & conditions</a>' , 'woocommerce' ), esc_url ( wc_get_page_permalink ( 'terms' ) ) ); ?> <span class="required">*</span></label>
2015-10-06 11:33:45 +00:00
< input type = " hidden " name = " terms-field " value = " 1 " />
</ p >
2016-02-02 21:53:14 +00:00
< ? php do_action ( 'woocommerce_checkout_after_terms_and_conditions' ); ?>
2015-10-06 11:33:45 +00:00
< ? php endif ; ?>