Skip to content

How to Get WooCommerce External Product Links to Open in a New Tab


It’s an age-old argument. Should a page open in a new tab in your browser or not?

I’m not here to argue. I’m going to leave that decision to the WooCommerce store owner. But  if someone is on your store and they click on an external link, this might be the option you prefer.

Let’s step back a moment. What are external links in WooCommerce? Well, they are a product type. You can choose to add products that might be affiliate links or products via a site like Amazon.

affiliate external link WooCommerce

This is another way of monetizing your site.

By default, when someone clicks on a product that is created using this product data, it opens in the same window.

But what if you want all WooCommerce external links to automatically open in a new window?

The WooCommerce External Product New Tab is a free plugin that will do that easily.

And when I say easy, I mean easy. All you have to do is install and activate the plugin. And it will do its magic.

How to Open Only Specific External Products

But what if you want this to work only on specific external products and not on every single external product you have set up?

Well, there is a free plugin for that called WooCommerce Improved External Products. And if you need even more control, they have a premium version with the option to not only open external products in new tabs, but also for those product archives, as well as setting it based on a category. So it will just cost you a few bucks to get more control over your links.

This is one of those issues that people usually have strong opinions, on one side or the other. Myself, when I’m browsing, I prefer a new tab rather than clicking that back arrow one, two or several times. But that’s just me. I’m not here to make an argument about opening new tabs, but simply to give you a couple of possible solutions.


  1. Bud Kraus on January 14, 2018 at 3:24 pm


    Do you have any data on whether an Affiliate product is more likely to be purchased if a new window is opened with a plugin like this or not?

  2. BobWP on January 14, 2018 at 3:30 pm

    Good question, and I don’t. Never A/B tested that. My guess, although just that, would be if someone needs to product, the fact of whether it opens in a new tab/page or not, well, I would think that is on the lower end of what would matter. But then again, I am just guessing. Might have to do a little research myself and see if anyone else has tested this. I am guessing if you do, it would need to be a high-traffic affiliate site to get any decent results.

    The only other thing I can think of is if someone wants to return to the site, to finish a post, or to even remember who referred them. But then again we are talking about user habits and what people tend to do habitually to get back to the page.

  3. Martin on January 26, 2018 at 12:15 pm

    Nice little tutorial, thanks!

  4. healthyindianintheusa on November 11, 2018 at 10:01 am

    I installed this plugin, and it works like a charm. I really wanted Amazon to open in a new window, so the person still could continue to stay on my website. Thanks.

  5. ahmed saleh on January 22, 2019 at 1:22 pm

    You Are Ammmmmmmazing ,I love you man

  6. mygenesisunlimited on July 8, 2019 at 5:38 pm

    Any thoughts on getting the image to link to the affiliate page too?

  7. BobWP on July 8, 2019 at 6:34 pm

    I am guessing you mean on the shop or archive page. If that’s the case, I don’t know of a plugin that does just that, at least off the top of my head. One possibility, although might not be the best way to go would be to set a redirect for that single product page link with a redirection plugin. Although that would make any other links on your site also send them to the affiliate URL.

  8. Anonymous on October 28, 2019 at 6:22 am

    Thank you!!

Your thoughts...