Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save danest/88e16c323a5708c42e787eec379c875f to your computer and use it in GitHub Desktop.
Save danest/88e16c323a5708c42e787eec379c875f to your computer and use it in GitHub Desktop.
Put Checkout button next to the Update Cart button (AWESOME on mobile!!) https://bradgriffin.me/proceed-to-checkout/
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