0

I'm working on Algolia initially my category page shows the sub categories through which the user filters the products but when the user click clear all button it removes the filters but start showing products instead of the initial categories it was showing

I have traced it back to instantsearch.js but I'm unable to change it.

        search.addWidget(
          algoliaBundle.instantsearch.widgets.clearAll({
            container: '.clear-all',
            excludeAttributes:'[categories.level1,visibility_catalog,categories.level0]',
            templates: {
              link: 'Clear all'
            },

            autoHideContainer: false,
            clearsQuery: true,
          })
        );

the excludeAttributes is doing something to the filter but i'm unable to change it I've read algolia's document but unable too find any solution.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.