Open External/Affiliate Product Links In New Window – WooCommerce

The solutions in these 2 download folders provide 3 different methods which enable you to open external links in new windows without modifying the code in the core WooCommerce files.

Once you have added your external link to your Product Data > External/Affiliate product > General > Product URL, you can follow the installation guide and your single & archive product links on all page types will open in new windows as seen in the following demo videos.

Demo Video

Shows both the archive & single product Add To Cart buttons opening in new windows when using Genesis & Twenty Twenty Two in the 2nd video.

Tested using the Twenty Twenty Two default theme for WordPress & the Genesis Sample child theme by StudioPress.

Installation – Method 1

There’s only 1 step :

Download Folder – Method 1

Related WooCommerce Code

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.