• I added the title “Livraison” to the 2nd step of the multistep checkout plugin, by including this in the checkout template :

    <h3 id=”shipping_heading”>Livraison</h3>

    But I would like to add “shipping” instead of “livraison” as all the template is in English, but writing “shipping”, it stays in English on my website in the checkout, whereas it is well translated in the French multistep checkout plugin… I don’t understand why ?

    (you must add a product to the cart, then go to the checkout : here is the multistep checkout)

    • This topic was modified 6 years, 9 months ago by fannyls.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi there,

    for this you can use this code :

    add_action( 'woocommerce_before_checkout_shipping_form', 'yith_woocommerce_before_checkout_shipping_form' );
    
    if( ! function_exists( 'yith_woocommerce_before_checkout_shipping_form' ) ){
    	function yith_woocommerce_before_checkout_shipping_form(){
    		printf( '<h3 id=”shipping_heading”>%s</h3>', __( 'Shipping', 'YOUR TEXT DOMAIN HERE' ) );
    	}
    }

    Open the file functions.php file, located in the main root of your theme folder, and add this code. After that, replace the string YOUR TEXT DOMAIN HERE with the text domain of your theme.

    Download the French .po file of your theme and update it, if you make all fine the new “Shipping” string will appear in the language file and you can translate it to French.

    For more details about WordPress theme translation please visit this URL: https://make.www.ads-software.com/polyglots/handbook/

    To update the .po file, you can use a software called poEdit, you can download it for FREE here: https://poedit.net/

Viewing 1 replies (of 1 total)
  • The topic ‘Adding a “Livraison” title to the checkout multistep’ is closed to new replies.