Skip to content
Public Ticket #26652

Changing the page after adding a product to the cart

Conversation thread

LillaGreen replied

Customer Reply

Thank you!!

PenciDesign Supporter replied

Staff Reply

Hi,

You should insert this code either into the functions.php file of the child theme or by using the CodeSnippet plugin available here: https://wordpress.org/plugins/code-snippets/

add_filter( 'woocommerce_continue_shopping_redirect', 'wc_custom_redirect_continue_shopping' );
function wc_custom_redirect_continue_shopping() {
  //return your desired link here.
  return 'http://www.yourwebsite.com/location';
}

Regards,
PenciDesign.


LillaGreen started the conversation

Conversation Start

Hi, after adding a product to the cart, there is a button called "continue shopping" - when clicking on the button, I'm automatically sent to the page of the product that I already have added to the cart. Can I change where customers are going after clicking on the "continue shopping" button?Thank you

Want to join this conversation or access attachments? Sign in first.