In my use-case, I’ve used the snippets to make the Price field unrequired and hidden (unset), while also making the Tiers field enabled/required. However, when I perform a search, in the filters section, the price range slider option only uses the first tier option from a listing as the max price range for the entire listing. Even, if the other tiers have a higher price.
E.g.
This listing has 2 tiers:
Something nice - 50
Something better - 100
I search and see the above listing’s view block.
The filter for the max price range only shows: (min) 0 - 50 (max)
I think this should be enough information to recreate the bug, but just let me know if you need any more details.
After a brief review, there’s unfortunately no simple temporary fix for this, as it would require modifying the number range calculation logic in the HivePress core: hivepress/includes/components/class-attribute.php at master · hivepress/hivepress · GitHub Calculating the range values based on tiers is more complex in this case because tiers are stored within an array rather than a separate meta value (like price).