-
Notifications
You must be signed in to change notification settings - Fork 219
Add/attributes filter count display toggle #9833
Conversation
The release ZIP for this PR is accessible via:
Script Dependencies ReportThere is no changed script dependency between this branch and trunk. This comment was automatically generated by the TypeScript Errors Report
🎉 🎉 This PR does not introduce new TS errors. |
Size Change: +107 B (0%) Total Size: 1.1 MB
ℹ️ View Unchanged
|
Thanks for working on this! Also, I noticed that it is necessary to add the deprecation even if we just change the value of an attribute because we still save the block attributes in the I'm unaware of a specific reason why we are doing it, so I think this is an excellent chance to refactor this (maybe in a follow-up PR). What do you think? |
Hi @gigitux I've refactored to remove the attributes being saved to HTML. Please let me know if this is correct and if I need to make any additional changes. |
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.
LGTM! Thanks for working on the feedback 🙇 I noticed that the Product Rating Preview isn't correct in a specific condition: If the store doesn't have any ratings, the block displays a preview with "fake data" and it shows the product counter even if it is set to off:
Should we open an issue and fix it?
Furthermore, could you open another issue about the Active Filters
block that store the attributes in the HTML?
75b47fc
to
ff2deac
Compare
Fixes #9298
This PR changes the default setting for
Display product count
fromtrue
tofalse
per discussion in the issue above.Testing
User Facing Testing
Click "Add New".
Filter by Attributes
,Filter by Stock
,Filter by Rating
, andProducts (beta)
.WooCommerce Visibility
Performance Impact
Changelog