-
Notifications
You must be signed in to change notification settings - Fork 218
Experiment: Simple price filter block using the Interactivity API #9926
base: trunk
Are you sure you want to change the base?
Conversation
get this value from DB.get this value from DB.
woocommerce-blocks/src/BlockTypes/SimplePriceFilter.php Lines 29 to 40 in 98c6bf4
🚀 This comment was generated by the automations bot based on a
|
The release ZIP for this PR is accessible via:
Script Dependencies ReportThe
This comment was automatically generated by the TypeScript Errors Report
assets/js/blocks/simple-price-filter/frontend.js
assets/js/blocks/simple-price-filter/index.js |
Size Change: +1.6 kB (0%) Total Size: 1.42 MB
ℹ️ View Unchanged
|
This PR has been marked as If deemed still relevant, the pr can be kept active by ensuring it's up to date with the main branch and removing the stale label. |
Note: we also need to do this with `/page/x`
What?
This is a simple reimplementation of the Price Filter block using the Interactivity API to filter a list of products by price.
Supersedes #8221
Tracking issue: woocommerce/woocommerce#42486
Why?
Showcases how a block to filter a list of products would be implemented using the Interactivity API. Also, to ease a future transition to this new API once it is included in WordPress.
How?
This PR branch splits from #8026 and implements a new block called Simple Price Filter. Minimum changes were made. The most interesting parts are in: