This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 219
Product Rating block: Fix reviews count not showing on Single Product page #9995
Merged
thealexandrelara
merged 3 commits into
trunk
from
fix/9994-reviews-count-not-showing-on-single-product-page
Jun 27, 2023
Merged
Product Rating block: Fix reviews count not showing on Single Product page #9995
thealexandrelara
merged 3 commits into
trunk
from
fix/9994-reviews-count-not-showing-on-single-product-page
Jun 27, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The release ZIP for this PR is accessible via:
Script Dependencies ReportThe
This comment was automatically generated by the TypeScript Errors Report
🎉 🎉 This PR does not introduce new TS errors. |
Size Change: -1 B (0%) Total Size: 1.17 MB
ℹ️ View Unchanged
|
thealexandrelara
added
type: bug
The issue/PR concerns a confirmed bug.
block: product rating
Issues related to the Product Rating block
labels
Jun 26, 2023
Merged
3 tasks
gigitux
approved these changes
Jun 27, 2023
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 working on the fix! LGTM!
thealexandrelara
deleted the
fix/9994-reviews-count-not-showing-on-single-product-page
branch
June 27, 2023 10:50
gigitux
pushed a commit
that referenced
this pull request
Jun 29, 2023
… page (#9995) * Fix reviews count not showing on Single Product page * Fix css style
gigitux
added a commit
that referenced
this pull request
Jun 30, 2023
* Product Rating block > Ensure the customer reviews text is linked to the relevant reviews (#9998) * Fix reviews count not showing on Single Product page * Fix css style * Product Rating block: Ensure the Customer reviews text is linked to the relevant reviews when used within the Single Product Template. When used within the Single Product Block, the link directs the user to the product template. Additionally, clear out\ PHPCS warnings. * remove unnecessary call to wc_get_star_rating_html --------- Co-authored-by: Alexandre Lara <allexandrelara@gmail.com> * Product Rating block: Fix reviews count not showing on Single Product page (#9995) * Fix reviews count not showing on Single Product page * Fix css style * Single Product: Fix Product SKU not loading for different variations (#9990) * Single Product: Fix incorrect add to cart form markup (#9986) * Product Image Gallery block: Fix overflow when multiple images are used (#10013) * Fix Product Image Gallery block overflow when multiple images are used * Increase css specificity for the Product Image Gallery images * Fix whitespace * Fix style issue when using smaller images in the product image gallery * Empty commit for release pull request * update version * add testing instructions * update zip link * Product Rating: append #reviews on the Single Product Block (#10040) * Product Rating: append #reviews on the Single Product Block * refactor after feedback * fix version * update zip link * Single Product Block: avoid to register incompatibility blocks with the Single Product Block on the post/page editor (#10044) * update testing instructions * update zip link --------- Co-authored-by: Patricia Hillebrandt <patriciahillebrandt@gmail.com> Co-authored-by: Alexandre Lara <allexandrelara@gmail.com> Co-authored-by: Daniel Dudzic <daniel.dudzic@automattic.com> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Luigi <gigitux@gmail.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
block: product rating
Issues related to the Product Rating block
type: bug
The issue/PR concerns a confirmed bug.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The Product Rating block is currently not showing the reviews count (it should appear after the rating stars). This PR addresses that by checking if the Product Rating block is being used inside the Single Product template, if so, the reviews count is displayed.
Walkthrough
🤖 Generated by Copilot at 1968c86
👨💻 Enhanced by @thealexandrelara
isDescendentOfSingleProductTemplate
to theProductRating
block class, to determine if the block is rendered inside a single product template (link)isDescendentOfSingleProductTemplate
attribute to a local variable for easier access in the class methods (link)use
clause (link)Fixes #9994
Accessibility
prefers-reduced-motion
Other Checks
Screenshots
Testing
Automated Tests
User Facing Testing
WooCommerce Visibility
Performance Impact
Changelog