Ready to get started?Download WordPress


WooCommerce - excelling eCommerce
Continue Shopping Redirects to Wrong Page? (10 posts)

  1. Waup
    Posted 1 year ago #


    On my site, hitting 'Continue Shopping' after adding an item to cart, redirects back to the single product already added to the cart. How can I redirect this button back to the shop page?



  2. Erling
    Posted 1 year ago #

    Exactly what I'm also trying to solve - did you get any ideas?

  3. blogjunkie
    Posted 1 year ago #

    In your WordPress admin → WooCommerce → Settings → Catalog, there is the option Redirect to the cart page after successful addition.

    If you select that it will send the user to the cart page. If not, the user will be redirected back to the product.

    There is no option to redirect customers back to the shop page. Stores like Amazon.com also don't do this.

  4. joannay
    Posted 1 year ago #

    I have the same problem! Blogjunkie, the issue is AFTER redirecting to the cart page, there is an option to "continue shopping". If a product is added to the cart directly from the shopping page, this link to continue shopping redirects back to the shop. If a product is added from a single product page, the continue shopping redirects back to the single product which is really annoying.

    Continue shopping should always redirect back to the shop.

  5. ask2
    Posted 1 year ago #

    I have the same problem. Anyone found out how to fix this?

  6. minkender
    Posted 9 months ago #

    OK - the way I've fixed this is as follows:

    In woocommerce-functions.php change the function woocommerce_add_to_cart_message and replace the variable $return_to with the following:

    $shop_page_url = get_permalink( woocommerce_get_page_id( 'shop' ) );
    		$return_to 	= apply_filters( 'woocommerce_continue_shopping_redirect', $shop_page_url );

    This works with woocommerce / WPML

  7. Erling
    Posted 9 months ago #

    Dear minkender.
    Thank you SO much. It worked very fine with your fix on my page.

  8. Robert
    Posted 9 months ago #

    Editing woocommerce-functions.php is not a best practice. Any edits will be overwritten by Woocommerce updates. Here is a method for changing the Continue Shopping button behavior that works by adding code to your theme's function.php:


  9. joha5033
    Posted 6 months ago #

    Does anyone know how to rename the "Continue shopping" button?

    Best regards

  10. factorysketcher
    Posted 3 months ago #

    joha5033 to rename the "Continue shopping" button. You need to firstly open the file cart-empty.php, then save it in your theme directory in a directory (folder) called Woocommerce (this will ensure that any over writing is done in your theme and not the Woo plugin).

    Within cart-empty.php - look to the following line:

    <p class="return-to-shop">"><?php _e( 'Return To Shop', 'woocommerce' ) ?></p>

    Where it says, 'Return to shop', change this text and it will be all fixed for you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic