// The URL of your "Get a Quote" page. Replace the example link with your own! $quote_page_url = 'https://yoursite.com/get-a-quote/'; // The code that adds the button to the single product page add_action( 'woocommerce_single_product_summary', 'add_custom_quote_button', 31 ); function add_custom_quote_button() { global $quote_page_url; // This line brings your URL into the function echo '' . esc_html__( 'Get a Quote', 'woocommerce' ) . ''; }
Skip to content