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.
You can place PHP snippets at the bottom of your child theme functions.php file (delete "?>" if you have it there). 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.3.
Check out these free video tutorials. You can learn how to customize WooCommerce without unnecessary plugins, how to properly configure the WooCommerce plugin settings and even how to master WooCommerce troubleshooting in case of a bug!
Business Bloomer Founder
Author, WooCommerce expert and WordCamp speaker, Rodolfo has worked as an independent 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.
24 thoughts on “WooCommerce: Edit “Returning Customer?” Message @ Checkout”
Hi there, thanks again for this code!
I am trying to simply remove this message (return an empty field), but that seems to throw some error message.
See my code below. Is there a better way to return an empty field?
and the error is:
[Fri Jan 08 00:50:17.343559 2021] [Backend log: PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘bbloomer_return_customer_message’ not found or invalid function name in /home/website/domains/…
Hi Sander, the conditional check goes inside the function, not outside. Try that and let me know
Hi Rodolfo, so sorry for the delay! I never realized you replied here.
Is the code below as you suggested?
I figured the issue was related to the empty field being returned.
Almost. You also need to target the “else”, and return the original string (which you need to pass to the function):
Hello, when clicked on “returning customer” there is this message “If you have shopped with us before, please enter your details below. If you are a new customer, please proceed to the Billing & Shipping section.” Is it possible to change this message?
Sure, try with https://www.businessbloomer.com/translate-single-string-woocommerce-wordpress/
Your link method also not working for this….
Share your code please
Hello, what php code snippet can I use to remove the automatic “returning customer” notice on my checkout page? Thanks!
Hi Annaliese, thanks so much for your comment! Yes, this is definitely possible, but I’m afraid it’s custom work. If you’d like to get a quote, feel free to contact me here. Thanks a lot for your understanding!
Is there any option to keep the “Returning Customer? Click Here to Login” form in expanded state, so that user can directly view the login id and password boxes without clicking on the link?
Hey there, thanks so much for your comment! Yes, this is definitely possible, but I’m afraid it’s custom work. If you’d like to get a quote, feel free to contact me here. Thanks a lot for your understanding!
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.
Stills work on 01/23/19. Thanks!
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 “#”.
Any idea on how to get the right link there?
All the best,
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
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?
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!
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
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