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

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.