Yes, redirect to product page with custom text (either defined by specific upsell, or product or product category)
This is useful for variable products when customer need to choose options (T-shirt size for example) prior to add to cart.
See live example
https://www.staging9.thefunguywa.com.au/
On all pages I removed the “add to cart” buttom/function and replaced to “customeze” & linking to product page with this on my functions.php
add_action( 'woocommerce_is_purchasable', 'hide_add_to_cart_function', 10, 2 );
function hide_add_to_cart_function( $return_value, $product )
{
// Remove only if Cards category and is not on single product page (removes from shop, home, categories, etc)
if ( has_term( 'Cards', 'product_cat' ) AND !is_product() ) {
return false; //will replace badd to cart to "rad more" linking to single product page
}
return $return_value;
}
//replace text on "Add to cart button" to "Customize"
add_filter( 'woocommerce_product_add_to_cart_text', 'custom_replace_read_more' );
function custom_replace_read_more( $text ) {
global $product;
// if ( $product && ! $product->is_in_stock() ) {
if ( has_term( 'Cards', 'product_cat' ) ) {
return 'Customize';
}
return $text;
}