1. WooCommerce Product Table
  2. Advanced Usage

Adding advanced search to your product tables

WooCommerce Product Table comes with an instant AJAX search box which appears above the table. If you require more advanced search options then you can use it with SearchWP.

We have integrated WooCommerce Product Table with SearchWP so that the two plugins will work perfectly together with no special configuration. This allows you to use all of SearchWP's powerful search functionality with your product tables, including:

  • Choose which data is searchable, including data that isn't usually indexed such as attributes and custom fields.
  • Control how search results are ordered and prioritized.
  • Analytics and reporting on how people are using the search.

Setup instructions

This is how to use the two plugins together:

  1. Install WooCommerce Product Table. Enable the lazy load option (this is essential because the integration only works with lazy loaded tables).
  2. Install SearchWP and make sure you have enabled SearchWP for the 'Products' post type.

And that's it! When a customer uses the search box above your product tables, the results will be powered by SearchWP.

Adding search boxes elsewhere on your site

The instructions above will make SearchWP power the search box above your product tables. You can also use SearchWP to add search boxes elsewhere on your site.

This is how to do it:

  1. Install WooCommerce Product Table.
  2. Enable the following options on the WooCommerce Product Table settings page:
    • Lazy load option (this is essential because the integration only works with lazy loaded product tables).
    • Tick the 'Table display' option called 'Show a product table on product category pages'. This will enable the table view on your product search results pages.
  3. Install SearchWP and make sure you have enabled SearchWP for the 'Products' post type.
  4. Finally, add the 'Product Search' widget or Gutenberg block anywhere on your site, e.g. the homepage or a sidebar.

Once you have done this, customers can use the search box (which will be powered by SearchWP) wherever it appears on your site. The results will appear within a product table.

Related Articles

If searching the knowledge base hasn't answered your question, please contact support.