Product table links
WooCommerce Product Table will automatically link certain columns to the relevant single product page or product category archive. Use the Link option to disable them, or to have more fine-grained control over which columns are formatted as links or where they link to.
Please note: links within the short or long description, excerpt or custom field columns are not controlled by the Links option. Please see our article on adding custom links for more information.
By default, the product table will create the following links:
- The SKU, ID, and Name columns will link to the single product page.
- The Image column will link to a lightbox for that image.
- Clicking on the Categories, Attributes, Tags or Taxonomy columns will filter the table by that value. You can change this behavior to link to the relevant category/attribute/tag/taxonomy archive instead. (Note: This option will only work correctly if your theme includes archive pages for categories/tags/attributes/custom taxonomy terms.)
Setting the links option
This option is available on the 'Edit table' screen (not the initial table builder) and appears when you edit a column and enable the 'Advanced' toggle:
The exact options differ depending on the column:
- SKU, ID and Name - The only option is to either enable or disable the link to the single product page.
- Image - You can enable or disable the link, and choose whether clicking the image opens it in a lightbox (the default) or links to the single product page.
- Categories, tags, attribute and taxonomy columns - You can enable or disable the link, and also choose whether clicking it will filter the table by the selected term or take the customer to the relevant archive page.
Links for custom fields
You cannot control custom field links or clickable buttons using the Links option. Please see our article on custom buttons and links for more information.
Can I link to an external URL or affiliate site?
The Links option described above controls the links to the single product page which are added automatically. There are a couple of options for linking to other URL's:
- Follow the instructions on this page to create custom links to any URL you choose, add buttons, and much more.
- Add your products using the External/Affiliate product type that comes with WooCommerce. This lets you reword the add to cart button and link it to a third party URL of your choice.
- Use WooCommerce Product Table with the free Redirection WordPress plugin. This plugin lets you redirect a URL to any product (e.g. to an affiliate link on a third party website such as Amazon). When someone clicks on a link to the product in the table, they will be taken to this URL instead.
Can I link to a quick view lightbox?
You can replace the links to the single product page with 'quick view' links that open extra product information in a popup window. To do this, you need to use WooCommerce Product Table with our other plugin, WooCommerce Quick View Pro.
Please see our separate article on how to use the two plugins together.