-
Notifications
You must be signed in to change notification settings - Fork 219
[Product Query] Fix filter block data counter #7257
Conversation
…ocks into fix/product-query-update
…ocks into add/price_filter_support
Product Query - Add support for the Filter By Price Block
Product Query - Add support for the Filter By Attributes block
…erce/woocommerce-blocks into add/price_filter_support
…erce/woocommerce-blocks into add/attribute_filter_support
…commerce/woocommerce-blocks into add/attribute_filter_support
…ocks into add/attribute_filter_support
…ocks into add/attribute_filter_support
Product Query - Add support for the Filter By Stock Block
…e variation #7245 fix filter blocks: the data (e.g: max price or stock-status) match the variation
The release ZIP for this PR is accessible via:
|
Size Change: +580 B (0%) Total Size: 1000 kB
ℹ️ 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 - otherwise it will automatically be closed after 10 days. |
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.
I left a comment in the commit you linked. Otherwise, code looks good, but I didn't test functionality yet.
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. |
@gigitux Please let me know when the feedback on this is also addressed. |
…ocks into add/stock_filter_support
…erce/woocommerce-blocks into add/stock_filter_support
…erce/woocommerce-blocks into fix/filter_display_data
064d814
to
c4a46c3
Compare
Script Dependencies ReportThere is no changed script dependency between this branch and trunk. This comment was automatically generated by the |
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.
Thanks for addressing the feedback. I am ok with you leaving the function as is: I have my own opinion, but it boils down to personal preference at this point, I'm ok with this.
…ocks into fix/filter_display_data
* Product Query: Fix pagination issue * Product Query - Add support for the Filter By Price Block woocommerce#6790 Product Query - Add support for the Filter By Price Block * fix query relation * fix on sale query * Product Query - Add support for the Filter By Attributes block woocommerce#6790 Product Query - Add support for the Filter By Attributes block * fix bugged pagination and on-sale filter after refactor * address feedback * Product Query - Add support for the Filter By Stock Block woocommerce#6790 Product Query - Add support for the Filter By Stock Block * Fix filter blocks: the data (e.g: max price or stock-status) match the variation woocommerce#7245 fix filter blocks: the data (e.g: max price or stock-status) match the variation * disable phcs rules on top of the file * replace parameter name * fix eslint error
This PR is blocked by #7251 #7186.
If you want to see only the code related to this PR, please check the commit b8bf17e
This PR is an attempt to allow the filter blocks to render the right data when a variation is used.
For example when on the page there is the On Sale Products variation:
Technical details
The backend does a query to the database to retrieve all the product ids reading the attributes used by the specific variation. The function is:
get_products_ids_by_attributes
.Technical issue
With this implementation, we can't support different Product Query blocks on the same page. Also, not sure how it works with hydration :(
Fixes #7245
Accessibility
prefers-reduced-motion
Other Checks
Screenshots
The data in the first image are wrong because:
Testing
Automated Tests
User Facing Testing
WooCommerce Visibility
Performance Impact
Changelog