WooCommerce – Change the link of the “Continue Shopping” button
Below is a quick snippet on how to change link on the “Continue Shopping” button in cart. Hope you will find it helpful.
/**
* Redirect to a specific page when clicking on Continue Shopping button
*
* @return void
*/
function cart_custom_redirect_continue_shopping() {
return 'http://www.yourwebsite.com/yourpage';
}
add_filter( 'woocommerce_continue_shopping_redirect', 'cart_custom_redirect_continue_shopping' );





(
4 votes, average:
4.00 out of 5)

Loading...
Tags: snippet, woocommerce, wordpress
Oopps, sorry. This discussion is closed.
If you are a
paying customer and you are looking for Tech Support please post a ticket on our
Support Tickets page and we will respond promptly.
If you are
not a paying customer and you would like to post a pre-sale question or a quote request please use our
Contact form.
Why did we close the discussion?
Many of the customers started reporting issues as comments instead of the ticketing system and this started delaying our response time.
We are making this change to serve our customers better. We have ramped up our support team and we are trying to get the reply out on the same day.
Thanks for understanding.