How do I set up the Price and Color filters?

Created on 23 May 2024, 6 months ago

Drupal 10
Commerce
Search API
Facets

Facets for parameters from Product variation do not work in Views displaying the search index. The Product variation contains the Price and Color. The filters for Product are working.
When Views is configured to display fields, applying filters results in the following. The output is not displayed on the page, but if you look at the code, you can see that filtering has occurred, but Views has displayed empty fields.
If Views is configured to output Entity Reference, then both Product and Product variation are displayed. Applying filters based on the parameters in the Product variation leaves only the Product variation. There is a feeling that there is no connection between Product and Product variation. How do I set up the Price and Color filters?

๐Ÿ’ฌ Support request
Status

Closed: outdated

Version

1.34

Component

General code

Created by

๐Ÿ‡ท๐Ÿ‡บRussia DD 85

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @DD 85
  • ๐Ÿ‡ท๐Ÿ‡บRussia DD 85

    Drupal\search_api\SearchApiException while computing Views data for index Default content index: Could not retrieve data definition for field 'Node access information' on index 'Default content index'. in Drupal\search_api\Item\Field->getDataDefinition() (line 487 of \modules\search_api\src\Item\Field.php).

    Drupal\facets\Exception\InvalidQueryTypeException: No available query types were found for facet ะฆะฒะตั‚ in Drupal\facets\Plugin\facets\facet_source\SearchApiDisplay->getQueryTypesForFacet() (line 353 of \modules\facets\src\Plugin\facets\facet_source\SearchApiDisplay.php).

  • Status changed to Closed: outdated 6 months ago
  • ๐Ÿ‡ท๐Ÿ‡บRussia DD 85

    It's been decided.
    On the fields page in the Search API, I added them for Product variation instead of Product.

Production build 0.71.5 2024