Created
June 15, 2017 20:23
-
-
Save WPprodigy/0cc8414fb1fb2030e6a59a27e3f53d69 to your computer and use it in GitHub Desktop.
Add "continue shopping" link to the cart page.
This file contains hidden or 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_after_cart_totals', 'wc_ninja_continue_shopping_button' ); | |
function wc_ninja_continue_shopping_button() { | |
$shop_page_url = wc_get_page_permalink( 'shop' ); | |
echo '<a href="' . $shop_page_url . '" class="button">Continue Shopping</a>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment