Change “Buy Product” Button Text in WooCommerce Product Archive Page

/* Change Buy Product Text in WooCommerce Product Archive Page */
function wpflt_buy_product_button_text_archive( $button_text, $product ) {
    if ( 'external' === $product->get_type() ) {
        return $product->button_text ? $product->button_text : 'Know Price';
    }
    return $button_text;
}
add_filter( 'woocommerce_product_add_to_cart_text', 'wpflt_buy_product_button_text_archive', 10, 2 );

This works only for External Products. The above code changes the “Buy Product” button text to any custom text on WooCommerce Product Archive Page. Replace the “Know Price” text with any custom text.

Also Read,

Change the “Buy Product” Button Text on WooCommerce Single Product Page.

Change Sitewide “Buy Product” Button Text in WooCommerce for External Products.