Skip to content
Sign in

Add to Cart Text

Change the WooCommerce "Add to cart" button text per product type, category or product – separately for product pages and the shop.

Not scanned yet WordPress plugin

Install in

No install steps yet

Follow the steps on the source page.

Add to Cart Text lets you replace the WooCommerce button texts such as “Add to cart”, “Select options” or “Read more” with your own wording – without touching templates or code.

Features

  • Per product type: simple, variable, grouped and external products (plus subscriptions and bookings when those extensions are active).
  • Two contexts: one text for the single product page, another one for the shop, category pages and product blocks.
  • Per category: set a text on a product category – it is inherited by its subcategories. The most specific category wins.
  • Per product: a “Button text” tab in the product editor overrides everything else.
  • Out of stock text: replaces “Read more” on products that are out of stock or cannot be bought.
  • Placeholders: {name} (product name) and {price} (current price), e.g. “Buy {name} for {price}”.
  • “Added to cart” message: optional own wording with {products} and {count}; the “View cart” button is kept.
  • Master switch to return to the WooCommerce defaults at any time without losing your texts.
  • Works with classic themes, block themes, the Product Button block and the Store API.
  • Compatible with High-Performance Order Storage (HPOS) and the Cart & Checkout blocks.
  • Abilities API: read-only ability add-to-cart-text/get-button-text for AI agents and automations (WordPress 7.x).
  • Unicode and emojis are supported. All input is sanitized, all output is escaped.

Priority

  1. Product (tab “Button text” in the product editor)
  2. Product category (or its parent category)
  3. Product type (WooCommerce › Settings › Products › Add to cart text)
  4. WooCommerce default

If a product cannot be bought, the out of stock text is used – or the WooCommerce default “Read more” if you left it empty.

Developers

  • adtct_button_text – filter the resolved text: ( string $text, WC_Product $product, string $context ), context is single or archive.
  • adtct_product_types – add your own product type slugs to the settings screen.
  • Ability add-to-cart-text/get-button-text – input { product_id, context }, output { text, source, source_id, … }. Requires the edit_products or manage_woocommerce capability. Example: wp_get_ability( 'add-to-cart-text/get-button-text' )->execute( array( 'product_id' => 42, 'context' => 'archive' ) ).

Documentation and support: hardani.de/add-to-cart-text

Written by Joobi from the project's own listing. See the source page

add to cartadd to cart textButton Textshopwoocommerce
27 Nov 2026
Version 2.0.0 released. Not scanned yet.

2.0.0

  • Rebuilt from scratch for WordPress 7.1, WooCommerce 11 and modern PHP (8.3 – 8.5): strict types, enums, readonly classes.
  • New requirements: PHP 8.3+ and WordPress 7.0+.
  • New: separate texts for product pages and shop/archives.
  • New: variable, external, subscription and booking products.
  • New: texts per product category (inherited by subcategories) and per product.
  • New: out of stock text, placeholders {name} and {price}, custom “added to cart” message.
  • New: modern settings screen and master switch.
  • New: read-only ability add-to-cart-text/get-button-text (Abilities API).
  • New: HPOS and Cart & Checkout blocks compatibility, “Requires Plugins: woocommerce”.
  • Security: all input sanitized, all output escaped, nonces and capability checks everywhere.
  • Settings of version 1.0 are migrated automatically; all data is removed when the plugin is deleted.

1.0

  • First release.
26 Jan 2021Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)