• Hi,

    How to translate this custom fields? I use this custom code for functions:

    /**
     * Add the field to the checkout
     */
    add_action( 'woocommerce_after_order_notes', 'my_custom_checkout_field' );
    
    function my_custom_checkout_field( $checkout ) {
    
        echo '<div id="my_custom_checkout_field"><h2>' . __('My Field') . '</h2>';
    
        woocommerce_form_field( 'my_field_name', array(
            'type'          => 'text',
            'class'         => array('my-field-class form-row-wide'),
            'label'         => __('Fill in this field'),
            'placeholder'   => __('Enter something'),
            ), $checkout->get_value( 'my_field_name' ));
    
        echo '</div>';
    
    }

    https://docs.woothemes.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/

    I have 4 different language in my website, and I use qTranslate plugin for multilanguage.

    Thanx

    https://www.ads-software.com/plugins/woocommerce/

  • The topic ‘Translate customizing checkout fields’ is closed to new replies.