Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save JayOkey/5f4578cb3aedaa153b86c385713529e6 to your computer and use it in GitHub Desktop.

Select an option

Save JayOkey/5f4578cb3aedaa153b86c385713529e6 to your computer and use it in GitHub Desktop.
How to alter the WooCommerce Proceed to checkout button including the markup, url and text.
function woocommerce_button_proceed_to_checkout() {
$checkout_url = wc_get_checkout_url();
?>
<a href="<?php echo $checkout_url; ?>" class="checkout-button button alt wc-forward"><?php _e( 'Complete Quote Request', 'woocommerce' ); ?></a>
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment