WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Waup
    Member
    Posted 11 months ago #

    Hi,

    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?

    thks!

    http://wordpress.org/plugins/woocommerce/

  2. Erling
    Member
    Posted 11 months ago #

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

  3. blogjunkie
    Member
    Posted 11 months 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
    Member
    Posted 11 months 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
    Member
    Posted 10 months ago #

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

  6. minkender
    Member
    Posted 8 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
    Member
    Posted 8 months ago #

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

  8. Robert
    Member
    Posted 8 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:

    http://pinakibisi.wordpress.com/2013/07/08/woocommerce-add-custom-add-to-cart-message-custom-continue-shopping-link/

  9. joha5033
    Member
    Posted 5 months ago #

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

    Best regards

  10. factorysketcher
    Member
    Posted 2 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.

Reply

You must log in to post.

About this Plugin

About this Topic