Change the wording for the login on the checkout page

Home Forums Payment Gateways by User Roles for WooCommerce Change the wording for the login on the checkout page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #93903
    Johan
    Guest

    Hi!

    Is it possible to change the wording for the login on the checkout page? At the moment it says “Returning customer? Click here to login”

    I would like something more descriptive, such as “Login for registered users – pay with invoice 30 days”

    I.e. something to let users know what to expect on the other side of the gateway.

    I use the Pro version.

    Thanks

    #93904
    Dhruvin
    Participant
    Plugin Author

    Hi Johan,

    The wording is part of WooCommerce template files and cannot be changed from the Payment Gateways by User Role plugin. But I do have a few solutions for you which you could try.

    Solution 1: Add the below code in the functions.php file of the theme/child theme or via the Code Snippets plugin:

    add_filter( 'woocommerce_checkout_login_message', 'imag_change_login_text' );
    
    function imag_change_login_text( $login_message ) {
    	$login_message = esc_html__( 'Login for registered users – pay with invoice 30 days', 'woocommerce' );
    	return $login_message;
    }
    

    Please note that the link text would not be replaced here as it is part of the WooCommerce template.

    Solution 2: Add the following file to your theme/child theme under the path: yourtheme/woocommerce/checkout/form-login.php
    File Download Link: https://www.dropbox.com/s/3kdcu4k5m1gsswc/form-login.php?dl=0
    This would give more flexibility to you but you might need to keep track with future versions of WooCommerce so that the template does not go outdated.

    Let me know how it goes.

    Best Regards,
    Dhruvin

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.