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 WooCommerce search 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:
- Install WooCommerce Product Table and create a table via Products → Product Tables. Enable the lazy load option (this is essential because the integration only works with lazy loaded tables).
- 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:
- Install WooCommerce Product Table.
- Enable the following options in your product table:
- Lazy load (this is essential because the integration only works with lazy loaded product tables).
- Set up the table to appear on the product search results template.
- Install SearchWP and make sure you have enabled SearchWP for the 'Products' post type.
- 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.