-
Notifications
You must be signed in to change notification settings - Fork 219
Add Related Products block #8522
Add Related Products block #8522
Conversation
41dc8fd
to
c41829c
Compare
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: +2.2 kB (0%) Total Size: 1.11 MB
ℹ️ View Unchanged
|
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.
Thank you for working on this, I just commented one point that we can discuss if it is worth to spend time on it, so it would be great to know your opinion on this
…lated-products-block
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.
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.
Okay, regarding my last comment, I just tested on trunk
, and the issue also happens there. Since this PR is not introducing the issue, I'm approving it, and I'll be opening an issue regarding the text contrast on the Notice block.
…lated-products-block
This PR introduces:
Related Products Block
This block is visible only in the Single Product Template. This block is a wrapper for the
Related Products Control
variation. This is necessary because, above theRelated Products Control
variation, we want to render a notice that notifies the user that the products visible in the editor preview are just examples.Related Products Control Variation
This variation is visible only inside the
Related Products
block. All the controls regarding the filters are disabled.This variation renders the products related to the main product on the frontend side.
I used the same approach for the
Filter by *
blocks for the naming.Fixes #8481
Screenshots
Testing
User Facing Testing
WooCommerce Single Product Block
, add theRelated Products block
.Related Products block
are the same as the row generated by theWooCommerce Single Product Block
.WooCommerce Visibility
Performance Impact
Changelog