→ Using FacetWP with WooCommerce

FacetWP includes built-in support for WooCommerce. Facets can be added using:

  • Price
  • Sale Price
  • Regular Price
  • Average Rating
  • Stock Status (in stock / out of stock)
  • On Sale
  • Product Categories
  • Product tags
  • Product attributes (custom)

Create your facet

After you’ve added some new products, go to Settings > FacetWP, click the Facets tab, then click the Add New button.

For the facet’s Data source, scroll down until you see the WooCommerce header, then select the appropriate choice.

WooCommerce data source

Variable products

FacetWP also supports product variations. It’s disabled by default (due to a slight performance hit), but can be enabled by adding the following to your theme’s functions.php:

add_filter( 'facetwp_enable_product_variations', '__return_true' );

Make sure to re-index afterwards.

Display facets on your shop

Please see our screencast on adding facets to WooCommerce shop pages. The screencast uses the Storefront theme, but the same approach works with most themes.