3. Creating product tables
There are 3 ways to create product tables:
- Automatically use the product table layout on the shop and/or category pages
- Create product tables individually using a Gutenberg block
- Create tables individually by adding a shortcode to any page, post or text area
Enable product tables on the shop and product category pages
If you want the product table layout to be used automatically on your main WooCommerce shop page, product categories etc., then you can do this using the options on the plugin settings page. This will replace the standard layouts in your theme.
You can read more about this option in our separate article.
Create product tables using Gutenberg blocks
If you use the Gutenberg editor on your site, then our free Gutenberg Block for WooCommerce Product Table plugin provides a visual interface for building your product tables. Simply click the + icon in Gutenberg to add a block, search for the ‘WooCommerce Product Table’ block, and click to install the plugin.
Learn more about using the WordPress Gutenberg Block plugin.
Create product tables using a shortcode
WooCommerce Product Table comes with a
[product_table] shortcode which you can use to add product tables to any page, product, post or text area on your site. You can use it in any text area on your site, including:
- Pages or posts built using any page builder plugin (e.g. Divi Builder or Elementor), the Classic WordPress editor or the Gutenberg editor – just add the shortcode to a ‘Shortcode’, ‘Text’ or ‘Paragraph’ block.
- Pages or posts built using the Classic WordPress editor – simply click the ‘Insert Product Table’ toolbar button (circled in the second image, below).
- The short or long description on the single product page.
- Template files in your theme, e.g. archive-product.php or single-product.php.
Each product table will inherit the defaults from the plugin settings page. You can override these by setting the shortcode options in each individual product table – for example, to create different tables listing products from different categories.
To continue configuring your product tables, see the complete list of shortcode options.