Shopify Search and Discovery filter not working

We have Search and Discovery installed on the Impact theme and it correctly filters products by colour and other metafields. However, the filter by price function doesn’t seem to work at all most of the time.

There are two main issues:

On some collections and product groups, the price slider doesn’t appear at all, and whatever you type into the price range min and max boxes just comes up as ‘£0 to £0’ after you hit enter. It then returns all products, irrespective of what has been selected, and the sort by price function has no effect.

On collections and product groups where the price slider does appear, selecting ‘£0’ as the minimum value stops the filter, and the sort by price filter, from working at all. If any value other than ‘£0’ is selected as a minimum, both filters work as they should.

I can’t share the site at the moment, as it’s in a test environment, but can anyone suggest a solution to this issue?

Thanks,

Jonathan

1 Like

The issues with the Shopify Search and Discovery filter in your Impact theme seem to be related to a few potential causes:

  1. Theme compatibility: Ensure your Impact theme is fully compatible with the latest version of the Search and Discovery app. Check if there are any pending theme updates that address filter issues.

  2. Price slider settings: In the filter settings, confirm that the price slider is correctly set up, with proper minimum and maximum ranges defined. A misconfiguration could cause the ‘£0 to £0’ issue.

  3. Metafield conflicts: Conflicting metafields or filtering settings might cause the price filter to malfunction. Review the metafield setup and see if there are any overlaps or issues with the price field formatting.

  4. JavaScript conflicts: Check if any custom JavaScript or third-party apps are conflicting with the price filter functionality. This is especially likely if the slider only appears on certain collections.

  5. Theme customizations: If you’ve customized the Impact theme, it may have inadvertently affected the price filtering. Revert to the default theme settings temporarily to see if the filter works correctly.

Testing in a different theme or reaching out to Shopify support might help pinpoint the issue further.

Thanks.

  1. Tested it with other themes, including Trade, and have the same issues.

  2. Not sure what you mean here - the settings for Search and Discovery have nowhere that you can adjust the slider settings. Do you mean in the code itself?

3, 4 and 5 Tested it with other themes with no customisation and there are the same issues.

Cheers,

Jonathan

1 Like

For future reference, and for anyone experiencing the same issue, the problem was related to the fact that we use B2B catalogues for our pricing. The Search and Discovery app can only filter on prices in the Shopify admin section, which is why were were getting the errors. The permanent solution would be to re-code the app to call prices from the requisite catalogues.