Woocommerce: How to Translate “I’ve read and accept the Terms ” . ?

Woocommerce: How to Translate

Woocommerce Translate i’ve read and accept the terms & conditions (to any language)


You can edit

just copy the Code and paste it into to( terms.php ) file. but before you do that make sure that you have a original backup for terms.php like (terms-orig.php) in case something goes wrong.and now save it. and thats all.

and now write whatever you like on your favorite language.(I wrote it in German) i have markup the lines with red-color. so you can adjust (change) it very easily.

very simple.

But dont forget it will remove after a new woocommerce Update. so if you want to have it permanently then you have to copy this file to your Child-theme Folder .


please leave a comment below. let us know what do you think about our artikel.

Best Regards
Ali Akbar



* Checkout terms and conditions checkbox
* @author WooThemes
* @package WooCommerce/Templates
* @version 3.1.1
if ( ! defined( ‘ABSPATH’ ) ) {

$terms_page_id = wc_get_page_id( ‘terms’ );

if ( $terms_page_id > 0 && apply_filters( ‘woocommerce_checkout_show_terms’, true ) ) :
$terms = get_post( $terms_page_id );
$terms_content = has_shortcode( $terms->post_content, ‘woocommerce_checkout’ ) ? ” : wc_format_content( $terms->post_content );

if ( $terms_content ) {
do_action( ‘woocommerce_checkout_before_terms_and_conditions’ );
echo ‘<div class=”woocommerce-terms-and-conditions” style=”display: none; max-height: 200px; overflow: auto;”>’ . $terms_content . ‘</div>’;
<p class=”form-row terms wc-terms-and-conditions”>
<label class=”woocommerce-form__label woocommerce-form__label-for-checkbox checkbox”>
<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 ); ?> id=”terms” /> <span><?php printf( __( ‘Ich habe die <a href=”%s” class=”woocommerce-terms-and-conditions-link”>Allgemeinen Geschäftsbedingungen</a> gelesen und akzeptiert. ‘, ‘woocommerce’ ), esc_url( wc_get_page_permalink( ‘terms’ ) ) ); ?></span> <span class=”required”>*</span>
<input type=”hidden” name=”terms-field” value=”1″ />
<?php do_action( ‘woocommerce_checkout_after_terms_and_conditions’ ); ?>
<?php endif; ?>




Kommentieren Sie den Artikel

Please enter your comment!
Please enter your name here

11 + zwanzig =