WooCommerce Open External Product Links In A New Tab

WooCommerce Open External Product Links In A New Tab

The functionality to open WooCommerce external product / affiliate links in a new tab is not something that is currently possible from within the core WooCommerce plugin. This functionality is useful if you’re an affiliate marketer for example that requires the external product buy now button links to open in a new tab when clicked.

After and installing the WooCommerce External Product New Tab plugin all external product links on your WooCommerce site will then automatically open in a new tab. This includes external products on product categories, single product pages and also those added via the WooCommerce short-codes etc.

The plugin does not include any settings or similar to specify only certain external products to open on a new tab and instead sets all product links to open in a new tab.

Install WooCommerce External Product New Tab

  • Download the plugin from the WordPress plugin directory.
  • Goto WordPress > Appearance > Plugins > Add New.
  • Click Upload Plugin and Choose File, then select the plugin’s .zip file. Click Install Now.
  • Click Activate to use your new plugin right away.

If you would like to contribute to the plugin, provide feedback or alert me to any issues you can do so from the Github repo referenced below.

11 thoughts on “WooCommerce Open External Product Links In A New Tab

    1. Hey Lori,

      Looking at the screenshots it seems you theme that you are using is applying custom styling to the WooCommerce buttons but not inline with the standard WooCommerce button css classes.

      The plugin itself uses the standard WooCommerce css class of button, your theme developer may not have used this to style the buttons within their theme though and have potentially added their own css classes instead.

  1. Hi Stuart,

    First of all, thank you for this plug-in its works perfectly but i have a small problem:
    It works if i am on a single product page but not if i view a product in quickview (woocommerce products quick view), when i click on the link it opens in the same tab instead of opening a new one.
    Any suggentions/solutions?
    Thank you in advance!

    Regards,

    Nick

      1. Hi Stuart,

        where you able to find out why it does not work?
        I looked at github but no information there so thats why i reply here as well.

        regards

        1. The reason it’s not opening in a new tab for you is due to the quick view plugin overriding the add to cart buttons with it’s own custom HTML code.

  2. Dear along with greet I need your help, I am trying to show the table of price variations but I want to put next to the discount percentage the price of the variable product that has chosen the customer. example
    If I have a product that costs 100 and has a 60% discount show
    60% – ($ 40)
    From infinite thanks

Leave a Reply

Your email address will not be published. Required fields are marked *