Support Forums

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro How to Show Different Post Meta Filters for Different Product Types?

Viewing 2 posts - 1 through 2 (of 2 total)
  • ken
    #271829

    Hi,

    I have a woocommerce store with two categories of products: (1) snack, (2) beverages

    Each have different populated ACF fields.

    I know Search can use Post Meta filter to filter ACF fields.
    Snack category has ACF fields: Flavor, Size
    Beverages category has ACF fields: Alcohol, Volume

    I would like to know what is the proper way to set up search & filter to show only the correct filters for each product category:
    -When user is on snack category page, I want Search & Filter to only show Flavor , Size filters (do not want to see filter for alcohol, volume)
    -When user is on Beverages category page, I want Search & Filter to only show Alcohol, Volume filters

    Should I create different filter in for each category? Or is there another way?

    Thank you in advance

    Trevor Moderator
    #271847

    In the first instance, try this:

    In the General Setting tab, set Auto Count (both settings) to ON

    And then in the Form UI:

    In each field set Hide Empty set to ON

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.