Linux 软件免费装
Banner图

Add to Cart Text

开发者 keyvahardani
更新时间 2026年11月27日 19:33
PHP版本: 8.3 及以上
WordPress版本: 7.1
版权: GPLv3 or later
版权网址: 版权信息

标签

shop woocommerce add to cart add to cart text button text

下载

2.0.0

详情介绍:

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 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 Documentation and support: hardani.de/add-to-cart-text

安装:

  1. Install and activate WooCommerce.
  2. Install the plugin via Plugins › Add New (search for "Add to Cart Text") or upload the ZIP file.
  3. Activate the plugin.
  4. Go to WooCommerce › Settings › Products › Add to cart text and enter your texts.
  5. Optional: set texts on product categories (Products › Categories) or on single products (tab "Button text").

屏幕截图:

  • "Button text" tab in the product editor.
  • Button texts on a product category.

升级注意事项:

2.0.0 Complete rebuild. Requires PHP 8.3 or newer and WordPress 7.0 or newer – please check your PHP version before updating. Your existing texts are migrated automatically.

常见问题:

Which pages are affected?

"Product page" changes the button on single product pages. "Shop & archives" changes the buttons in the shop, on category and tag pages, in product blocks and wherever WooCommerce uses the loop button text.

My text does not show up.

Check the priority list above: a text on the product or its category wins over the product type. If the product is out of stock, the out of stock text is used. Also clear your page cache after changing texts.

Can I use HTML in the button text?

No. Button texts are plain text for security reasons. Emojis and all Unicode characters work.

Does it work with variable products?

Yes. Variable products have their own row ("Select options" in the shop, "Add to cart" on the product page).

Which PHP and WordPress versions are required?

PHP 8.3 or newer (tested with PHP 8.3, 8.4 and 8.5) and WordPress 7.0 or newer. On older PHP versions WordPress will not activate the plugin.

What happens to my settings from version 1.0?

They are moved to the new settings automatically on the first page load after the update.

Does the plugin store personal data?

No. It only stores your button texts.

更新日志:

2.0.0 1.0