Install, set your defaults and put your first table on a page. This guide covers the three ways to add a table, every column and shortcode attribute, filters, the cart and variations, quick view, designs, lazy load, the optional product page and shop layouts, the developer filters and what to check when something looks wrong.
Upload demfilz-product-table-for-woocommerce.zip under Plugins → Add New Plugin → Upload Plugin and activate it. WooCommerce must be installed and active; without it the plugin stays idle and says so under its row on the Plugins screen. A Product Tables menu appears in the admin with the table builder and Settings.
| Way | How |
|---|---|
| Shortcode | Put [dptw_product_table] on any page. It uses the defaults from Settings; add attributes (section 4) to change one table. The shorter [product_table] works too, unless another plugin on the site already uses that name. |
| Saved table | Under Product Tables → Add New Product Table, give the table a name and set it up on the Content, Columns, Behaviour, Cart and Design tabs. Publish, then copy the [dptw_product_table id="123"] shortcode from the box on the right. Change the saved table and every page using it follows. |
| Block | In the block editor, insert the Product Table block and choose a saved table. The editor shows a live preview. |
Set the columns as a comma separated list, or click the column buttons in Settings or the builder. Click a column heading to sort by it (every column except image, add to cart, buy, quick view and wishlist).
| Column key | Shows |
|---|---|
image | The product image, opening a lightbox or the quick view on click. |
name, name-sku, name-summary | The product name, with the SKU or the short description on a second line. |
sku, id | The SKU or the product ID. |
description, summary | The full or the short description. |
date, categories, tags | Publish date, categories and tags (linked to their archives). |
price, stock, reviews | Price (a range for variable products), stock status and star rating. |
weight, dimensions | Shipping weight and dimensions. |
add-to-cart, buy | Quantity box and add to cart, or a plain buy button. |
quick-view, wishlist | A quick view button and a wishlist heart. |
att:pa_colour | Any product attribute. |
cf:my_field | Any custom field. |
tax:brand | Any taxonomy. |
Photo:image | Any column with your own heading (Heading:key). |
Example: [dptw_product_table columns="Photo:image,name-sku,att:pa_colour,price,stock,add-to-cart"]
The builder sets the same options; an attribute on the shortcode always wins.
| Attribute | What it does |
|---|---|
columns | The columns, comma separated, in order. |
category, exclude_category, tag, term | Which products: category and tag slugs, or custom terms as taxonomy:term1+term2. |
include, exclude, product | Specific product IDs or SKUs to show or leave out. |
sort_by, sort_order | Starting order: menu_order, name, sku, price, date, popularity, rating, id or rand; asc or desc. |
page_length, lengths | Rows per page and the choices in the "Show N" menu. Add paging="false" to show every product on one page. |
search_box | top, bottom, both or false. |
filters | false, true (automatic) or a list such as categories,tags,att:pa_colour,price. |
filters_position | top, or left for a sidebar. |
lazy_load | true to load one page at a time from the server. |
variations | dropdown (options in the row) or separate (one row per variation). |
quantities, add_selected | Quantity boxes, and the checkboxes with "Add selected to cart". |
style | default, minimal, bordered, striped, dark, navy, midnight or aqua. |
accent, header_bg, row_hover, border | Colours as hex codes, for example accent="#2563eb". |
container, container_width | full or boxed, and an optional maximum width in pixels. |
quick_view_click | off, name, image or both: what opens the quick view. |
price_toggle | true to show the Hide prices button. |
id | Load a saved table. Any other attribute you add overrides the saved value. |
Example: [dptw_product_table category="tiles" filters="categories,att:pa_colour,price" variations="dropdown" lazy_load="true" style="navy"]
The search box matches product names and SKUs as the customer types, with an optional suggestions list. Filter dropdowns can be automatic (filters="true") or a list. With Filter options set to "Only options that have matching products", each dropdown lists only terms used by the products in that table, and Linked filters narrows the other dropdowns as choices are made. Searchable filters turns each dropdown into a type-to-search box. Put the filters above the table or in a left sidebar, and optionally add a keyword box beside them.
The quantity box follows each product's minimum, maximum and step (from WooCommerce or a quantity plugin), and sold-individually products get no box. Add to cart works without leaving the page and refreshes the mini cart. With "Add selected to cart" on, each row gets a checkbox and one button adds every ticked row with its quantity. Variable products show their options as dropdowns in the row (the price updates as options are chosen), or with variations="separate" each variation is its own row. External products get a button to the shop that sells them, and grouped products a View products link.
Add the quick-view column, or set Open quick view on click to the product name or image. The panel slides in from the right or left with the gallery (with hover zoom), title, SKU, categories, price, stock, the short and full description, quantity and add to cart. Choose what it shows, its width on desktop and on phones, and the label before the stock figure. An enquiry button shortcode from another plugin (for example an enquiry button) can be shown after the add to cart area.
Eight designs: default, minimal, bordered, striped, dark, navy, midnight and aqua. Set the accent, header background, row hover and border colours in Settings or per table, and choose full width or a boxed card with an optional maximum width. On phones each row becomes a stacked card; with Mobile column labels on, each value has its column name beside it.
By default a table loads all its products into the page and searches, sorts and filters them in the browser, which is instant up to a few hundred products. With lazy load on, only the current page is queried and search, sorting, filters and paging run on the server. Use it from about 100 products up.
Turn on Wishlist in Settings and add the wishlist column for a heart on every row; a heart also appears in the quick view and, optionally, on product pages. Put [dptw_wishlist] on any page to list the saved products. The list is kept in the visitor's browser, so no account is needed. The Hide prices button setting adds a Hide prices button that hides every price column, remembered across pages (handy when a trade customer shows the screen to their own client). The cart and checkout always show prices.
Under Product pages, the detail layout lays product pages out like the quick view, with the gallery on the left or right and the title, SKU, price, stock, quantity and add to cart beside it; your theme's tabs, upsells and related products still show underneath. Under Archive pages, replace the Shop page and/or the product category and tag archives with a table (the current category or tag is applied automatically), add attributes for those tables, and list theme elements to hide, such as the ordering box. Both work with block themes and classic themes.
| Tab | Settings |
|---|---|
| Table | Default columns (with clickable column buttons), product sort, rows per page and the rows per page menu, lazy load for large catalogues, image size, image lightbox, mobile column labels, text to hide in descriptions and table captions. |
| Search and filters | Search box, search suggestions, filters (with clickable buttons; "none" or "auto" also work), filter position, filter options, linked filters, searchable filters and a keyword search with the filters. |
| Cart and wishlist | How variable products show, quantity boxes, row checkboxes with "Add selected to cart", the Hide prices button and the wishlist. |
| Quick view | Panel side and widths, what opens it, what it shows, the stock label and an enquiry button shortcode. |
| Design | Design, accent colour, header background, row hover, border colour, container and maximum width. |
| Product pages | The detail layout on or off, gallery side, maximum width and whether the usual tabs, upsells and related products show below. |
| Archive pages | Show a product table on the Shop page and/or the category and tag pages, the page title, extra attributes for those tables, and CSS selectors of theme elements to hide. |
| Filter | Use |
|---|---|
dptw_resolved_atts | Change any table's final attributes, for example to force a column or a design on certain pages. |
dptw_query_args | Adjust the WP_Query arguments behind a table. |
dptw_render_custom_column | Output for a column key of your own (the result is passed through WordPress's HTML filter). |
dptw_quick_view_content | Change the quick view panel's markup. |
dptw_cascade_max_products | How many products linked filters inspect when narrowing the options. |
Saved tables are the dptw_table post type with their settings in the _dptw_config meta; the defaults live in the dptw_settings option. Uninstalling the plugin removes both.
The table shows "No products found": check the category or tag slugs (slugs, not names), and that the products are published, visible in the catalogue and not excluded.
Add to cart does nothing on a cached page: the plugin refreshes an expired security token by itself. If it still fails, check that your caching or security plugin does not block requests to admin-ajax.php.
A filter dropdown is missing: with "Only options that have matching products", a dropdown with no terms among the table's products is left out. Check the attribute is a global attribute (pa_) and assigned to the products.
The page is slow with many products: turn on lazy load for that table, and lower the image size.
Something from my theme appears beside the table: add its CSS selector to Hide page elements under Archive pages.
What happens if I deactivate or delete the plugin: deactivating leaves the shortcodes on your pages as plain text until you reactivate it. Deleting the plugin removes its settings and saved tables.
We build and customise WooCommerce plugins for a living. If your store needs customer price lists, reorder lists, ERP stock or a quote request from the table, tell us what and we'll quote it.