WooCommerce: Hide “Thanks for shopping with us” @ Emails

WooCommerce emails come with the following hard-coded (argh!) greetings: ‘Thanks for shopping with us.‘, ‘Thanks for reading.‘, ‘We look forward to seeing you soon.‘, ‘We look forward to fulfilling your order soon.‘, ‘Thanks!‘, ‘We hope to see you again soon.‘ based on the specific email.

While having these greetings in the WooCommerce customer email footer may look nice and friendly, you should have the freedom to remove or edit them.

So, you have two choices: doing that via the email settings, or by “translating” those strings via PHP. Enjoy!

WooCommerce Customer Completed Email: hiding the “Thanks for shopping with us.” greeting

WooCommerce Options: Edit or Remove “Thanks for shopping with us.” and other greetings @ WooCommerce Customer Order Emails

Just go to WooCommerce > Settings > Emails and open a given email, then delete or change the “Additional Content” input field value:

PHP Snippet: Hide “Thanks for shopping with us.” and other greetings @ WooCommerce Customer Order Emails

 * @snippet       Hide Greetings @ WooCommerce Emails
 * @how-to        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli
 * @compatible    WooCommerce 4.6
 * @community     https://businessbloomer.com/club/

add_filter( 'gettext', 'bbloomer_translate_woocommerce_strings_emails', 999 );

function bbloomer_translate_woocommerce_strings_emails( $translated ) {
   // Get strings and translate them into empty strings
   $translated = str_ireplace( 'Thanks for shopping with us.', '', $translated );
   $translated = str_ireplace( 'We hope to see you again soon.', '', $translated );
   return $translated;

Where to add custom code?

You should place custom PHP in functions.php and custom CSS in style.css of your child theme: where to place WooCommerce customization?

This code still works, unless you report otherwise. To exclude conflicts, temporarily switch to the Storefront theme, disable all plugins except WooCommerce, and test the snippet again: WooCommerce troubleshooting 101

Related content

  • WooCommerce: Add Content to a Specific Order Email
    Customizing WooCommerce emails via the WordPress dashboard is not easy and – sometimes – not possible. For example, you can’t edit or add content to them unless you’re familiar with code. Well, here’s a quick example to learn how to add content to any WooCommerce default order email. In this case study, our goal is […]
  • WooCommerce: How to Add a Custom Checkout Field
    Let’s imagine you want to add a custom checkout field (and not an additional billing or shipping field) on the WooCommerce Checkout page. For example, it might be a customer licence number – this has got nothing to do with billing and nothing to do with shipping. Ideally, this custom field could show above the […]
  • WooCommerce Visual Hook Guide: Emails
    WooCommerce customizers: the Visual Hook Guide is back! Here’s a visual HTML hook guide for the WooCommerce Emails. This visual guide belongs to my “Visual Hook Guide Series“, that I’ve put together so that you can find WooCommerce hooks quickly and easily by seeing their actual locations. Let me know in the comments if this […]
  • WooCommerce: Add To: Cc: Bcc: Email Recipients
    The WooCommerce Email Settings allow you to add custom recipients only for New Order, Cancelled Order, Failed Order and all admin-only emails. But what if you want to add an email recipient to a customer email e.g. the Completed Order one? For example, you need to send it to your dropshipper. Also, you might want […]
  • WooCommerce: Remove Link to Product @ Order Table
    There is a slightly annoying thing on the WooCommerce Thank-You Page and WooCommerce emails. Users looking at the order table can actually click on the Products they just purchased and abandon the page before taking the action you want them to take (see image below). So, I coded a simple PHP snippet to remove such […]

Rodolfo Melogli

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. Follow @rmelogli

8 thoughts on “WooCommerce: Hide “Thanks for shopping with us” @ Emails

  1. Hi, I’m just curious. Are your instructions to to EITHER remove “Thanks for shopping with us.” from the Additional Content section of the dashboard or use the snippet, or is it necessary to do both? The reason I ask is because I removed it from the Additional Content field in the dashboard and it still appears in my emails and I’m perplexed as to why Woocommerce would hard code this in our emails if that field is blank. A quick and dirty method that should also work is just to add   to the Additional Content field.

    1. Maybe a bug? Not fully sure. I tend to use code for everything, even changing the settings!

  2. Hi there,

    Does anyone know how do I hide the supplier name from my customer’s email? I’ve purchased the dropshipping paid plug-in from Woo a few months ago however every time I send emails to my customers either notes or purchasing completed via Woo the information of my supplier is on the body of that email as part of the description of that order.

    I will appreciate it if somebody can help me with that.

    I can’t provide a link, but I can show you a screenshot of what the customers seeing on their emails.

    Thanks for your time!


    1. Hey Felipe, did you ask the plugin developer?

  3. I just tested this snippet, and it’s not working for me. Does it need updating?

    1. Not really, as gettext is a WordPress function. Are you translating the correct, full, complete strings?

  4. Hi Rodolfo,

    Thanks for this. Couple of queries.

    1. I read somewhere that gettext is very resource intensive. Please share some thoughts on this. Will the above code make everything slow?
    2. This code seems to look for the phrase everywhere. Is there something that can be added to restrict this translation to specific emails?


    1. It’s fine if not used too much 🙂 Also, you can pass the “textdomain” to the gettext function and e.g. only look for “woocommerce” strings. Hope this helps

Questions? Feedback? Customization? Leave your comment now!

If you are writing code, please wrap it like so: [php]code_here[/php]. Failure to complying with this, as well as going off topic or not using the English language will result in comment disapproval. You should expect a reply in about 2 weeks - this is a popular blog but I need to get paid work done first. Please consider joining the Business Bloomer Club to get quick WooCommerce support. Thank you!

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