Log in Sign up
Discussion WordPress

WooCommerce: How to change 'Add to Cart' text conditionally?

Frank Start
Frank Start
0 reputation
3 weeks ago 57 views 3 replies
Hey folks, running into this issue and could use some guidance.

Question: WooCommerce: How to change 'Add to Cart' text conditionally?

3 Replies

Mark Entrepreneur
Mark Entrepreneur · 3 weeks ago
For archive pages, use `woocommerce_product_add_to_cart_text` filter.
Jake Project
Jake Project · 3 weeks ago
Check `$product->is_type('variable')` to return different text.
Tom Security
Tom Security · 3 weeks ago
Use filter: `woocommerce_product_single_add_to_cart_text`.

You must be logged in to reply.

Log In to Reply