WooCommerce: Edit “Returning Customer?” Message @ Checkout

When it comes to “editing” stuff, chances are WooCommerce gives us a “filter” we can use without overriding core. The more filters, the more customization we can do. In this case, I wanted to change the “Returning Customer?” message on my own checkout.

Editing the “Returning Customer” message @ WooCommerce checkout

PHP Snippet: Rename “Returning Customer?” @ WooCommerce Checkout


/**
 * @snippet       Rename "Returning Customer?" @ Checkout Page - WooCommerce
 * @how-to        Watch tutorial @ https://businessbloomer.com/?p=19055
 * @sourcecode    https://businessbloomer.com/?p=21719
 * @author        Rodolfo Melogli
 * @compatible    WC 3.5.4
 * @donate $9     https://businessbloomer.com/bloomer-armada/
 */

add_filter( 'woocommerce_checkout_login_message', 'bbloomer_return_customer_message' );

function bbloomer_return_customer_message() {
return 'Have you shopped with us before?';
}

Where to add this snippet?

You can place PHP snippets at the bottom of your child theme functions.php file (before "?>" if you have it). CSS, on the other hand, goes in your child theme style.css file. Make sure you know what you are doing when editing such files - if you need more guidance, please take a look at my free video tutorial "Where to Place WooCommerce Customization?"

Does this snippet (still) work?

Please let me know in the comments if everything worked as expected. I would be happy to revise the snippet if you report otherwise (please provide screenshots). I have tested this code with Storefront theme, the WooCommerce version listed above and a WordPress-friendly hosting on PHP 7+.

If you think this code saved you time & money, please join other Business Bloomer supporters and avail of 365 days of WooCommerce benefits. Thank you in advance :)

Need Help with WooCommerce Customization?

Check out these free video tutorials!

  • how-to-edit-woocommerce-with-php-snippets
  • woocommerce-hooks-add_action-list-visual
  • woocommerce-customize-single-product-page-PHP

Rodolfo Melogli

Author, WooCommerce expert and WordCamp speaker, Rodolfo has worked as a WooCommerce freelancer since 2011. His goal is to help entrepreneurs and developers overcome their WooCommerce nightmares. Rodolfo loves travelling, chasing tennis & soccer balls and, of course, wood fired oven pizza.

12 thoughts on “WooCommerce: Edit “Returning Customer?” Message @ Checkout

  1. Useful info. Fortunate me I found yolur web site by chance, and I am stunned why this twist of fate did not came about in advance!

    I bookmarked it.

    1. Thank you!

  2. Stills work on 01/23/19. Thanks!

    1. Excellent!

  3. Hi,
    Thanks for your insights.
    Like Ankur clicking on the link “click here to login” doesn’t do anything than go to the top of the page (Same for the link for the coupon code).
    Have you ever encountered that?

    When I inspect the code the url is only “#”.

    <a href="#" rel="nofollow">Klik hier om in te loggen</a>
    <a href="#" rel="nofollow">Klik hier om je code in te vullen</a>

    Any idea on how to get the right link there?

    All the best,
    Luc

    1. Hello Luc, thanks so much for your comment! I just retested this on the latest version of WooCommerce and it still works. Unfortunately this looks like custom troubleshooting work and I cannot help here via the blog comments. Thanks a lot for your understanding! ~R

  4. Hello, I am using Woocommerce 3.4.2 on my website eddyteddy.in and tried using this on Chrome ver 67 (in standard mode and incognito mode) but the login snippet isn’t working. I tried using it on Firefox and it worked perfectly. By not working, I meant that nothing happens when I click on it (in Chrome). I am working with php 7.2. Did you encounter this at your end? Can you help?

    1. Hey Ankur, thanks for your comment! PHP is browser-independent so maybe try to clear your Chrome cookies/cache ๐Ÿ™‚ I retested this on Woo 3.4.3 and still works. Let me know!

  5. Is there a way to edit the “If you have shopped with us before, please enter your details in the boxes below. If you are a new customer, please proceed to the Billing & Shipping section.” message

    1. Hey Dheeraj, thanks so much for your comment! Yes, this is possible – but unfortunately this is custom work and I cannot provide a complementary solution here via the blog comments. Thanks a lot for your understanding! ~R

  6. Thank you!

Questions? Feedback? Support? Leave your Comment Now!
_____

If you are writing code, please wrap it between: [php]code_here[/php]. Failure to complying with this (as well as going off topic) will result in comment deletion. You should expect a reply in about a week - this is a popular blog but I need to get paid work done first. Please consider joining #BloomerArmada to ask me 1-to-1 WooCommerce questions. Thank you :)

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.