how to remove add to cart change to enquire in woocommerce code example
Example: woocommerce remove add to cart
// functions.php
add_filter( 'woocommerce_loop_add_to_cart_link', '__return_false' );
// functions.php
add_filter( 'woocommerce_loop_add_to_cart_link', '__return_false' );