Forked from BurlesonBrad/move-proceed-to-checkout.php
Created
November 7, 2015 09:41
-
-
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!!)
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>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment