Skip to content

Instantly share code, notes, and snippets.

@bentasm1
Forked from BurlesonBrad/move-proceed-to-checkout
Created February 18, 2016 05:17
Show Gist options
  • Save bentasm1/6781481b54d95b42971d to your computer and use it in GitHub Desktop.
Save bentasm1/6781481b54d95b42971d to your computer and use it in GitHub Desktop.
Get the friggin' Proceed To Checkout button to the TOP of the page (not the bottom!!)
add_action( 'woocommerce_before_cart', '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