function custom_replace_add_to_cart_button() {
if ( is_shop() || is_product_category() || is_product_tag() || is_product() ) {
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
add_action( 'woocommerce_after_shop_loop_item', 'custom_contact_button', 10 );
add_action( 'woocommerce_single_product_summary', 'custom_contact_button', 30 );
}
}
add_action( 'woocommerce_init', 'custom_replace_add_to_cart_button' );
function custom_contact_button() {
echo '<a href="' . esc_url( home_url( '/iletisim' ) ) . '" class="button">İletişim</a>';
}tema dosyanızın functions.php dosyasına bu kodu ekler ve uygun şekilde düzenlerseniz sepete ekle butonları yerine iletişim için bir buton koymuş olursunuz