Setup guide · 5 minutes

Setting up Demfilz Product Table

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.

1. Install and activate

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.

2. Add a table

WayHow
ShortcodePut [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 tableUnder 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.
BlockIn the block editor, insert the Product Table block and choose a saved table. The editor shows a live preview.

3. Columns

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 keyShows
imageThe product image, opening a lightbox or the quick view on click.
name, name-sku, name-summaryThe product name, with the SKU or the short description on a second line.
sku, idThe SKU or the product ID.
description, summaryThe full or the short description.
date, categories, tagsPublish date, categories and tags (linked to their archives).
price, stock, reviewsPrice (a range for variable products), stock status and star rating.
weight, dimensionsShipping weight and dimensions.
add-to-cart, buyQuantity box and add to cart, or a plain buy button.
quick-view, wishlistA quick view button and a wishlist heart.
att:pa_colourAny product attribute.
cf:my_fieldAny custom field.
tax:brandAny taxonomy.
Photo:imageAny column with your own heading (Heading:key).

Example: [dptw_product_table columns="Photo:image,name-sku,att:pa_colour,price,stock,add-to-cart"]

4. Shortcode attributes

The builder sets the same options; an attribute on the shortcode always wins.

AttributeWhat it does
columnsThe columns, comma separated, in order.
category, exclude_category, tag, termWhich products: category and tag slugs, or custom terms as taxonomy:term1+term2.
include, exclude, productSpecific product IDs or SKUs to show or leave out.
sort_by, sort_orderStarting order: menu_order, name, sku, price, date, popularity, rating, id or rand; asc or desc.
page_length, lengthsRows per page and the choices in the "Show N" menu. Add paging="false" to show every product on one page.
search_boxtop, bottom, both or false.
filtersfalse, true (automatic) or a list such as categories,tags,att:pa_colour,price.
filters_positiontop, or left for a sidebar.
lazy_loadtrue to load one page at a time from the server.
variationsdropdown (options in the row) or separate (one row per variation).
quantities, add_selectedQuantity boxes, and the checkboxes with "Add selected to cart".
styledefault, minimal, bordered, striped, dark, navy, midnight or aqua.
accent, header_bg, row_hover, borderColours as hex codes, for example accent="#2563eb".
container, container_widthfull or boxed, and an optional maximum width in pixels.
quick_view_clickoff, name, image or both: what opens the quick view.
price_toggletrue to show the Hide prices button.
idLoad 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"]

5. Search and filters

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.

6. Cart, quantities and variations

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.

7. Quick view

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.

8. Designs and colours

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.

9. Large catalogues: lazy load

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.

10. Wishlist and hide prices

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.

11. Product pages and shop archives

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.

12. Settings reference

TabSettings
TableDefault 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 filtersSearch 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 wishlistHow variable products show, quantity boxes, row checkboxes with "Add selected to cart", the Hide prices button and the wishlist.
Quick viewPanel side and widths, what opens it, what it shows, the stock label and an enquiry button shortcode.
DesignDesign, accent colour, header background, row hover, border colour, container and maximum width.
Product pagesThe detail layout on or off, gallery side, maximum width and whether the usual tabs, upsells and related products show below.
Archive pagesShow 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.

13. For developers

FilterUse
dptw_resolved_attsChange any table's final attributes, for example to force a column or a design on certain pages.
dptw_query_argsAdjust the WP_Query arguments behind a table.
dptw_render_custom_columnOutput for a column key of your own (the result is passed through WordPress's HTML filter).
dptw_quick_view_contentChange the quick view panel's markup.
dptw_cascade_max_productsHow 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.

Troubleshooting

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.

Stuck, or want it customised?

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.