Commerce Facets Not Working

Created on 15 February 2025, about 2 months ago

Problem/Motivation

The Facets to filter Commerce Products by category are broken. They don't filter products, and when "Show the amount of results" is enabled, each product shows with the total store count.

Steps to reproduce

  1. Start with a fresh installation of Droopler.
  2. Follow the modules/custom/d_commerce/README.md instructions to set up a commerce store and products.
  3. Make sure you have selected
    Droopler product list url processor

    under

    /admin/config/search/facets/facet-sources/search_api%3Aviews_page__droopler_commerce_products_list__page_1/edit
  4. Add some category items
  5. Add some products using the categories
  6. Navigate to /shop to see the listed products and the facets

Expected result

  • You should expect to see the facets with the actual number of items.
  • You would expect to click one of the facet terms and see only the products tagged with that term.

Actual result

In reality, you will see a list of terms, all with the same number of items.
When you click one of the terms, nothing will change.

πŸ› Bug report
Status

Active

Version

3.3

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jcmartinez Raleigh, NC, USA

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

Comments & Activities

Production build 0.71.5 2024