Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save quasel/0e9e5aeb179ef0c308af to your computer and use it in GitHub Desktop.
Save quasel/0e9e5aeb179ef0c308af to your computer and use it in GitHub Desktop.
Bump the Proceed to Checkout button right next to the Update Cart button (this looks AWESOME on mobile devices!!)
add_action( 'woocommerce_cart_actions', 'move_proceed_button' );
function move_proceed_button( $checkout ) {
echo '<a href="' . esc_url( WC()->cart->get_checkout_url() ) . '" class="checkout-button button alt wc-forward" >' . __( 'Proceed to Checkout', 'woocommerce' ) . '</a>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment