Last active
November 28, 2020 17:41
-
-
Save BurlesonBrad/70c102727f5c8dcd5abb 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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>'; | |
} |
Would that be theme related?
Could you possibly add some negative padding to the code? (how much though would be dependent on the site)
Thanks fellow! Was quite handy for adding second Proceed button on the top of the page.
Thanks a million, I have tried so many codes just to do this, and this simple 2 lines code works like a charm.
where put this set of code?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey mate - for some reason the buttons don't align - any thoughts?