// 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 using the following code (re-index afterwards):

add_filter( 'facetwp_enable_product_variations', '__return_true' );

Out of stock products

By default, FacetWP only indexes in-stock products. To index all products:

add_filter( 'facetwp_index_all_products', '__return_true' );

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.