How to Add a Price Range Filter to ERPNext Webshop

Hi everyone,

I’m currently customizing the ERPNext Webshop and looking to implement a price range filter so that users can filter products based on their prices.

From what I’ve seen, this feature doesn’t exist by default, and I couldn’t find clear documentation on how to go about it.

Here are a few things I’d appreciate some guidance on:

  1. Which files should I modify or extend to add a custom price filter on the Webshop?
  2. Where and how can I access product prices on the product listing page to apply the filtering logic?
  3. Is there any recommended method, hook, or approach in Frappe/ERPNext for extending Webshop filtering functionality?

Any help, pointers, or examples would be greatly appreciated. Thanks in advance!