Changing the Continue Shopping link within WooCommerce

The majority of eCommerce sites will redirect you to the basket after you add a product. It is slowly but surely becoming an industry standard. WooCommerce has a setting to allow you to do this on your own eCommerce site very easily.

What is wrong with the Current Continue Shopping Button then?

Well, as of the creation of this plugin, the WooCommerce Continue Shopping button always took the customer back to the homepage of your website. If you were predominantly a blog, with a small shop then this could cause confusion and would interrupt the shopping experience for the customer, which worst case scenario could result in cart abandonment.

More recently however this will now default to taking the customer back to the shop page. This is a lot smoother and will work nicely. However what if you had multiple categories, or even a product with a large amount of Variations. If the customer wanted to buy a Medium T-Shirt in both Green and Blue then they would need to navigate through the categories again.

What can I do to solve this?

Thankfully, there is a handy filter to allow you to easily change this link.

Of course, if you are not a developer, or even if you are, plugins are always a great help. We manage multiple eCommerce sites and have come been asked on many occasions to change where the ‘Continue Shopping’ button went to; this has ranged from a ‘Current Sales’ landing page, to the most recently visited category.

As such we created the Continue Shopping for WooCommerce plugin to easily and quickly change the destination.

What exactly does this plugin do?

Once you have downloaded and installed the Continue Shopping for WooCommerce plugin you will see a new WooCommerce settings page.

Screen Shot 2016-06-21 at 14.58.53

From here you are given 5 choices, to go back to the original WooCommerce default and send the customer back to the home page or send them back to the shop.

We have added three extra options, which are the most recently viewed Product, recently viewed Category and a custom link. The first 2 are fairly self explanatory. The latter allows you to send the customer to any link you want, this can be very handy if you like to emphasise landing pages, or even monthly/daily offers.

Where can I get the plugin?

Continue Shopping for WooCommerce is on the repository. As such you can find it from within the plugins section of wp-admin, you can also download it directly from the Plugin page on

As with the rest of our plugins, we will constantly be updating and improving this plugin too. For the next version we already have a couple of features planned. For instance when the Basket is empty you are greeted with ‘Your cart is currently empty.’ and a Return To Shop button. As with above there is a handy filter for this, although if you can wait we will be adding the ability to change this link with the next release.

If you have used this plugin, or any of our other plugins we would love to hear your thoughts and feedback!

12 thoughts on “Changing the Continue Shopping link within WooCommerce”

  1. Thanks for this plugin. It works very well and makes a webshop more customer friendly.
    However, there’s one function I really miss in order to improve the customer friendliness: if a customer updates the cart there should also be a ‘continue shopping’ button. This would make shopping very smooth!
    Kind regards

    • Hi Carl,

      Thank you for your kinds comments.

      That is a nice idea actually, definitely something we will look to add into the next version release!

      Kind Regards,

  2. Hallo Happykite Team,

    I would like to install your awesome plugin Woocommerce continue shopping , but in my backend, there is a notice called Untested with your version of wordpress.I have the newest WordPress version.
    Is this plugin compatible with the newest version and also compatible with Themes like Flatsome.
    An do I have the choice to select go back to the last viewed product or last viewed category?

    Thanks Paul

    • Hi, Mike! Yes, the help over where to put it in question would be indeed very handy. Im beginner and don’t really see where to put the code in.
      Thanks, Inna

      • Hi there Inna,

        Apologies for the delayed reply.

        You would need to place that code within the functions.php. All you would need to do is change the ‘return’ location to your desired URL

        return ‘’;

        Of course, if you are unsure about that, you can always just download and use our plugin, that will handle everything for you so you do not need to make any code changes.

        I hope this was helpful.

        Kind Regards,

  3. Hi, a have installed the plugin today but have som issues. (Setting is “Jump back to most recently used category)

    When I add an item directly from the categorypage it works fine.

    But if I have an item with variants or otherwise need to read more about the item before buying, the continue shopping button returns to the actual itempage and not the category.

    Am I doing something wrong or is there a bug in the plugin

  4. Your function is improperly formatted. It should be…

    add_filter( ‘woocommerce_continue_shopping_redirect’, ‘wc_custom_redirect_continue_shopping’ );

    function wc_custom_redirect_continue_shopping() {
    //return your desired link here.
    return ‘’;

    • Hi there,

      You’re very welcome.
      A quick solution would be to replace the Continue Shopping text. Something like this;

      add_filter( ‘wc_add_to_cart_message_html’, ‘hpy_wc_add_to_cart_message_html’, 10, 2 );
      function hpy_wc_add_to_cart_message_html($message, $products){
      if (strpos($message, ‘Continue shopping’) !== false) {
      $message = str_replace(“Continue shopping”, “Enter your text here”, $message);

      return $message;

      I hope this was helpful.

      Kind regards,


Leave a comment