This guide walks through all three, shows which other button labels change along with it, and fixes the mistake most copy-paste snippets make with variable products.
- Where the Add to Cart text comes from
- Method 1: Click the button and type the new text
- Method 2: Change the text with a PHP filter
- Method 3: Use a string replacement or translation plugin
- Which method fits your store
- Change Add to Cart to Buy Now
- Why the new text is not showing
- Questions store owners ask
Where the Add to Cart text comes from
The button text is a translatable string inside WooCommerce, with the text domain woocommerce. Each product type returns its own label, which is why one store can show four different buttons:
| Product type | Shop and category pages | Single product page |
|---|---|---|
| Simple, in stock | Add to cart | Add to cart |
| Simple, out of stock or not for sale | Read more | No button |
| Variable | Select options | Add to cart |
| Grouped | View products | Add to cart |
External/affiliate products are the exception: their button text is a field on the product itself (Product data, General, Button text), so you change it in the product editor.
This matters for the method you pick. A string change replaces one label everywhere it appears. A PHP filter replaces whatever you tell it to replace, including "Select options" if you are not careful.
Method 1: Click the button and type the new text
The no-code route is Inpage Translate, the free plugin we make, which lets you change any plugin or theme text on the page where you see it. You click the button, type the new words and save. No code, no .po file, and the change survives WooCommerce updates because it is stored in your database, not in WooCommerce's files.
Before you start, check the current WordPress and PHP requirements on the plugin's WordPress.org page, and sign in as an administrator.
- 1Install Inpage Translate.
In wp-admin open Plugins, Add New Plugin, search for "Inpage Translate", then click Install Now and Activate.
- 2Open your shop page.
Visit the shop while signed in. The WordPress toolbar now has an Inpage Translate item.
- 3Turn on translate mode.
Click Inpage Translate in the toolbar. The page reloads, and every text you can change gets a dashed outline.
- 4Click the Add to cart button.
The translation editor opens next to it and shows the original text and its text domain. On our block-theme test store (Twenty Twenty-Five), a click on the button either ran the button or opened its screen-reader label,
Add to cart: “%s”. If that happens, open All strings in the bottom bar and search forAdd to cartinstead. - 5Choose the language under Translate into.
To reword the English button, pick English (US) (or the language your store runs in). To translate it, pick that language.
- 6Type the new text and click Save.
For example "Buy now", "Add to basket" or "In den Warenkorb". The button changes on the page at once.

The single product page uses the same "Add to cart" string, so it changes too. Variable products keep "Select options" and out-of-stock products keep "Read more", because those are different strings. Click them separately if you want to change them as well.

The editor itself has four controls: Translate into, the Translation box, Generate for a machine draft, and Save.

Every saved change keeps the earlier wording, so if "Buy now" tests worse than "Add to cart", you can restore the old text from the History screen in one click. To leave translate mode, press Exit in the bar at the bottom of the page.
Method 2: Change the text with a PHP filter
WooCommerce passes the button text through two filters you can hook into from your child theme's functions.php or a snippets plugin such as Code Snippets:
woocommerce_product_add_to_cart_textfor shop, category and related-product buttonswoocommerce_product_single_add_to_cart_textfor the button on the single product page
Most published snippets return a fixed string from both filters. That has a side effect: the archive filter runs for every product type, so "Select options", "View products" and "Read more" all turn into your new text. A shopper then clicks "Buy now" on a variable product and lands on a page that still asks them to choose a size.
This version only changes the label on products that can go straight into the cart:
// Shop and category pages: rename only the real "add to cart" buttons.
add_filter( 'woocommerce_product_add_to_cart_text', function ( $text, $product ) {
if ( $product->is_type( 'simple' ) && $product->is_purchasable() && $product->is_in_stock() ) {
return 'Buy now';
}
return $text;
}, 10, 2 );
// Single product page.
add_filter( 'woocommerce_product_single_add_to_cart_text', function ( $text, $product ) {
return 'Buy now';
}, 10, 2 );To use different text for one category, check the category inside the filter:
add_filter( 'woocommerce_product_single_add_to_cart_text', function ( $text, $product ) {
return has_term( 'pre-order', 'product_cat', $product->get_id() ) ? 'Pre-order now' : $text;
}, 10, 2 );Two cautions. Never put the code in the parent theme's functions.php, because a theme update deletes it. And a typo in PHP can take the site down, so test on a staging copy first.
Method 3: Use a string replacement or translation plugin
Plugins that replace strings work without code, but you have to know the exact original text and its text domain.
- Say What? replaces a string you type in a settings table. Enter
Add to cartas the original,woocommerceas the text domain, and your new text as the replacement. It does not show you where a string appears, so you type the exact text from memory or from the source. On our test store (WordPress 7.1.5, WooCommerce 11.3.1, the Twenty Twenty-Five block theme), that one row changed the shop and single product buttons and left "Select options" alone, because it replaces only the exact string. - Loco Translate edits WooCommerce's language file for your site language. It suits stores that already run in another language. Save the file in Loco's Custom location, or a WooCommerce update can overwrite it.

Both work well for a known label. They get slower when you want to change several texts at once, because each one is a separate lookup by its exact wording.
Which method fits your store
| Method | Needs code | How you find the text | Best for |
|---|---|---|---|
| Inpage Translate | No | Click it on the page | Changing several shop texts by sight |
| PHP filter | Yes | Hook name in code | Rules by product type or category |
| Say What? | No | Type the exact string | One or two known strings |
| Loco Translate | No | Search the string list | Stores already using .po files |
If you only need conditional logic, such as a different label per category, use the PHP filter. If you want to change the button and then fix "Proceed to checkout", "View cart" and "Place order" in the same sitting, editing them on the page is quicker.
Change Add to Cart to Buy Now
Changing the label to "Buy now" changes only the words. The button still adds the product to the cart and keeps the shopper on the page. If you want the label to match what happens next, open WooCommerce, Settings, Products and tick Redirect to the cart page after successful addition, so shoppers go to the cart right after clicking. To send them straight to checkout instead, add this filter next to the label snippet:
// After a product is added to the cart, go to checkout.
add_filter( 'woocommerce_add_to_cart_redirect', function () {
return wc_get_checkout_url();
} );It runs when the add-to-cart form reloads the page, as on the single product page. Shop buttons that add to the cart without reloading skip it, so untick Enable AJAX add to cart buttons on archives in the same settings screen if you want those to redirect as well.
Why the new text is not showing
- The page is cached. Clear your caching plugin and any server or CDN cache, then reload in a private window.
- Only the shop changed, not the product page. The PHP method needs both filters. The on-page method changes both, because both buttons use the same string.
- A variable product now says "Buy now". Your filter returns a fixed string for every type. Use the type check from Method 2.
- Your theme sets its own label. Some themes add a button text option in the Customizer, which can override the WooCommerce string. Check the theme's WooCommerce settings first.
- The button is built by a page builder. A page builder widget can print its own text field instead of the WooCommerce string. Change it in the widget settings.
Questions store owners ask
Will my new button text survive a WooCommerce update?
Yes for all three methods, as long as the change lives outside WooCommerce's folder: a child theme or snippets plugin for code, Loco's Custom location for files, or the database for Inpage Translate.
Can I use a different Add to Cart text for one product?
Yes, with the PHP filter: compare $product->get_id() with the product's ID, or check its category as in the example above. String plugins change the label for every product that uses it.
Can I change the "Read more" and "Select options" buttons too?
Yes. They are separate strings in the woocommerce text domain, so you can click them in translate mode or add them to a string plugin.
Does changing the text affect SEO or tracking?
The button label is not a ranking factor. Check your analytics, though: some tracking setups match clicks by button text and need the new label.
Try it on your own shop
Inpage Translate is free on WordPress.org. Install it, open your shop, and click the Add to cart button to change it. The same click-and-type method works for the cart, checkout and account pages, and for any other plugin on your site.
Did it work for you? An honest review on WordPress.org helps other people find the plugin.



