1. WooCommerce Product Table
  2. Advanced Usage

How to open the single product page in a new tab from the product table

The links to the single product page in WooCommerce Product Table are designed to open in the same tab. This article provides two suggestions for anyone who would like links to open in a new tab. These are good ways to ensure that shoppers are not taken away from the product table when they click on a link.

WooCommerce Product Table with quick view functionality

WooCommerce Product Table with quick view buttons

Opening links in a new tab isn’t very good for user-experience because it’s easy to get lost with multiple tabs open, and uses deprecated HTML. However, we understand that you may want your customers to be able to learn more about each product and choose options without being taken away from the product table view.

As an alternative, we recommend using WooCommerce Product Table with our other plugin – WooCommerce Quick View Pro. This lets you add a quick-view column to the product table, which opens up extra information about the product in a lightbox. That way, customers can see more information than is available within the product table, but without being taken away from the product table page.

This is a nice alternative to opening up the single product page in a new tab.

Please note that these instructions are aimed at developers and if you don’t know how to use it then you should ask your developer. If you don’t have one, we recommend posting a job on Codeable. We have partnered with them to provide plugin customizations for our customers.

If you definitely want to open the links in a new tab/window, then we have provided the following filter which you can use to achieve this.

Add this code to your theme or child theme’s functions.php file:

add_filter( 'wc_product_table_open_products_in_new_tab', '__return_true' );
Need professional assistance?
We've partnered with Codeable to provide our customers with expert help if required.
Still need help?
If searching the knowledge base hasn't answered your question, please contact support.

Related Articles