This post was last updated on 5/30/2019
Using WooCommerce’s Up-Sells feature is a good and profitable idea because you can recommend other products instead of the currently viewed one. It’s similar to using Related Posts at the bottom of your blog post.
In this way, you can bring to your customer’s attention to other products that are more profitable, have better quality, or are more expensive; it’s up to you.
The bad news is that this feature comes with the default text “You may also like…”, which will be positioned above the recommended products.
Some of you may be bothered by this, as I were, because that text might not be such a good fit for your products or services. Therefore, you’ll want to change it, and I’ll tell you how!
How to change the WooCommerce Up-Sells text
I’ll point out five different ways to do this. If you know other techniques, please share it by dropping a comment.
Also, you might want to read this guide to find out how to access your WordPress website’s files.
The first two methods are not ideal because the changes will be reversed with every update! Also, I recommend creating a file or site backup first!
Method 1 – Changing the text in the up-sells.php file
1. Ok, what you need to do is to log into your hosting’s control panel (cPanel in this case) and find File Manager:
2. Now, under public_html, go to:
3. Right-click on the
upsells.php file and choose Edit or Code Edit to find the line quick.
4. After that, scroll down to line 39 (it may be a different line for you) and change the “You may also like” text to whatever you want.
5. Click Save Changes and you’re done!
Method 2 – Changing the text in the woocommerce.pot file
That file might seems strange because of that
.pot extension, but don’t worry, the editing process is the same.
1. Just like above, log into cPanel, go to File Manager, and under public_html go to:
2. Now right-click it and select Edit or Code Edit. Since this is a large file, it will be easier to just press Ctrl+F (Command + F on Mac) on your keyboard, then enter “you may also like” in the search box, and click find.
3. Change the text to whatever you like and click Save Changes.
The following three methods are ideal because the changes won’t be reversed with every update.
Method 3 – Copying and editing the up-sells.php file in your child theme
Create these folders in your child theme:
/woocommerce/templates/single-product/ and add/paste the
up-sells.php in the last folder, which is
Then, make the changes from method 1 there.
So, eventually, the file should be found and edited here:
Note that this might not work on all themes!
Method 4 – Performing a function override in your child theme
Add the below code in your child theme’s
functions.php file. Add it at the very bottom or right before the
?> ending tag (if any).
If you don’t have a child theme, use the Code Snippets plugin to add the code there.
// Change "You may also like..." text in WooCommerce
$translated = str_ireplace('You may also like', 'Add your new text here', $translated);
Change the Add your new text here line between the single quotes with your own text.
Method 5 – Using a translation plugin
But I really don’t recommend using a plugin only for changing 4 words unless your site is already in another language and adding a translation plugin would be of help anyway.
That’s a wrap
Hope you found the tutorial useful, and you managed to change the “You may also like…” up-sells text in WooCommerce!
If you have any questions or thoughts, drop a comment or send a message via contact or Facebook page.
Don’t forget to share the post to help out others!