-
Notifications
You must be signed in to change notification settings - Fork 219
Make Filters Products by Price
work with Active Filters
block
#6245
Conversation
Size Change: +123 B (0%) Total Size: 863 kB
ℹ️ View Unchanged
|
This tests well for me but will leave the final review for @tomasztunik seeing as I also worked on this PR 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks/works good 👌
Noticed differences as to how filtering is handled on /shop page vs custom built shop page with All Products block and filters added on the side. On /shop page there is full page reload and if user has scrolled view it would jump back to top and sometimes it would have the blocks reload asynchronously (or data fetch would cause placeholder to show up) while on the custom built page it works nice without any reloads or scroll jumps.
Active filters also works on All Products approach. It's not perfect there though as the URL params are not updated for the All Products variant.
Just sharing observations, not part of the issue!
(ps fixed conflicting file)
When we render the PHP Classic template with the Filter Products by Price block we need to make sure the Active Filters block is also updated with the
min_price
andmax_price
values from the URL.Note: clicking on Clear All on the
Active Filters
block won't actually clear the price on the slider. That's a known limitation of theActive Filters
block and will be addressed on here: #6138Fixes #6243
Testing
Filter Products by Price
block &Active Filters
block to the Shop PageFilter Products by Price
block, the page should reload with the filter params now being in the URL too.Active Filters
block shows the active price filter.Changelog