Support » Plugin: WooCommerce » Continue Shopping Redirects to Wrong Page?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Exactly what I’m also trying to solve – did you get any ideas?

    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 also don’t do this.

    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.

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

    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

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



    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:

    WooCommerce: Add custom Add To Cart Message & Custom “Continue Shopping Link”

    Does anyone know how to rename the “Continue shopping” button?

    Best regards

    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.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Continue Shopping Redirects to Wrong Page?’ is closed to new replies.