1. Home
  2. Knowledge Base
  3. WooCommerce Product Table
  4. Product Table Features
  5. Product table links

Product table links

WooCommerce Product Table lets you choose what happens when someone clicks on an item in the table.

The links option controls which columns in the product table are formatted as hyperlinks or plain text. For example, if you are displaying product images in your table, then you can choose whether or not these can be clicked on to access the single product page.

By default, the following columns are formatted as links: skunamecategoriestags, attributes, any custom taxonomy, and image. Clicking on a category, tag, custom taxonomy term or attribute will filter the table for that value. (You can change this using the search on click option, below.) Clicking on an sku, name or image will take the user to the single product page.

WooCommerce product table default links

Product table with all clickable columns added to the table and formatted as links. (The default.)

You can control which columns are clickable by adding the links option to the product table shortcode:

  • Add links="all" to make all possible links in the table clickable.
  • Use links="none" to disable all links. This is useful if you want to create a one-page order form or product catalog, with no way for customers to access the single product page.
  • To specify exactly which columns are clickable, add a comma separated list in the following format: links="image,name,categories".

Examples:

  • [product_table columns="image,name,att:colour,att:size" links="image,name,attributes"
  • [product_table columns="sku,name,tax:my_taxonomy,price" links="sku,terms"]
  • [product_table columns="sku,image,name,categories,price" links="none"]

Search on click

By default, clicking on the categories and tags columns in the table will search (i.e. filter) the table by that category or tag. This is a quick way of filtering the table if you have lots of products.

You can disable this search_on_click feature so that when someone clicks on a category, tag, attribute or custom taxonomy term, then they will be taken to the relevant category/tag archive instead.

Example:  [product_table columns="name,categories,tags" search_on_click="false"]

Tip: This option will only work correctly if your theme includes archive pages for categories/tags/attributes/custom taxonomy terms.

Was this article helpful?

Related Articles