How to Welcome Users by Name to WooCommerce Store

Posted on February 6, 2016

While working on a project recently, a client wanted to personalize the user experience on her site.  Specifically, she wanted a welcome message for returning customers that greeted them by name.  Alternatively, if a user was shopping as a guest or hadn’t yet logged in…it would be nice to ask them to log-in or register before shopping.  This personal touch of course enhances the user experience and helps with conversions as well.  Whether you want to admit it or not…you would be more likely to purchase something on a website that greets you by name.

So how can you achieve this welcome greeting for a visitor to your WooCommerce store?  Realistically, it doesn’t have to be an e-commerce store, it could simply be any site looking to welcome a user.  After Googling around a bit for a code snippet, I couldn’t find a thing.  I couldn’t believe it.  How was it possible that there wasn’t someone else who wanted this type of functionality.  It couldn’t be that difficult.  So I set out to create a shortcode that would offer this functionality.  Why a shortcode?  I figured that there might be several places througout the theme where this might come in handy.  Initially it would reside in the sidebar on the shop pages and contact page but what if down the road it was going to be included in the header?  Better to just create a shortcode so that it could be used where the code was dropped.It’s actually not that difficult and can be achieved with a code snippet added to the functions.php file.

So let’s get to it.  It’s actually not that difficult and can be achieved with minimal code.  Check out below to see how to add this functionality to your theme.

That’s all she wrote!


4 thoughts on “How to Welcome Users by Name to WooCommerce Store

Vedat Taylan says:

Where is code? I can’t see it!

Mike Oberdick says:

It’s actually a plugin that you can download in the WordPress Repository

Vedat Taylan says:

I understand. But in the article you wrote something like this: “Better to just create a shortcode so that it could be used where the code was dropped.It’s actually not that difficult and can be achieved with a code snippet added to the functions.php file.
So let’s get to it. It’s actually not that difficult and can be achieved with minimal code. Check out below to see how to add this functionality to your theme.”

And what is the name of plugin?

Mike Oberdick says:

Sorry…that article was quite some time ago. Here is the link to the plugin:

WC Welcome Message

Leave a Reply

Your email address will not be published.

 

Ready to Get Started? Call 203.516.0359