Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Product Details Block > Fix the review form rating #8431

Open
wants to merge 28 commits into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
d46e480
Add minimum structure for Single Product Details block
thealexandrelara Jan 17, 2023
e743ebe
Add tests for Single Product Details block
thealexandrelara Jan 20, 2023
f87de21
wip: create block structure and add initial styles
thealexandrelara Jan 25, 2023
561f6f8
Add block details to the SingleProductDetails.php file
thealexandrelara Jan 26, 2023
d07b9b5
Render tabs title with empty content
thealexandrelara Jan 27, 2023
9c90f71
Use woocommerce_output_product_data_tabs function to retrieve tabs data
thealexandrelara Jan 27, 2023
eb0ce4a
Remove customizations for the Single Product Details block
thealexandrelara Jan 30, 2023
22be4e9
Merge branch 'trunk' into feat/add-single-product-details-block
thealexandrelara Jan 30, 2023
2a4baad
Remove unnecessary console.log from the Edit.tsx file
thealexandrelara Jan 31, 2023
8e05b71
Remove block classname from block wrapper
thealexandrelara Jan 31, 2023
f70ab0c
Remove unnecessary WooCommerce tabs filter from the BlockTemplatesCon…
thealexandrelara Jan 31, 2023
4ea37cb
Merge branch 'trunk' into feat/add-single-product-details-block
thealexandrelara Jan 31, 2023
ad70695
Remove attributes property from the block registration
thealexandrelara Jan 31, 2023
fd83c09
Remove isExperimental flag for the Single Product Details block
thealexandrelara Jan 31, 2023
3661133
Remove get_classes_and_styles_by_attributes method from SingleProduct…
thealexandrelara Jan 31, 2023
8a9196e
Prevent Single Product Details block from apppearing in Pages or Posts
thealexandrelara Jan 31, 2023
edcac21
Fix PHP Coding Standards warnings
thealexandrelara Feb 1, 2023
528b9ce
Merge branch 'trunk' into feat/add-single-product-details-block
gigitux Feb 13, 2023
0ba35e1
update block name
gigitux Feb 13, 2023
af09b77
Merge branch 'feat/add-single-product-details-block' of https://githu…
gigitux Feb 13, 2023
93bcb28
fix SCSS linter error
gigitux Feb 13, 2023
7742ffe
Merge branch 'trunk' of https://github.com/woocommerce/woocommerce-bl…
gigitux Feb 14, 2023
96fab80
move blocks into product-elements folder and rename to product-details
gigitux Feb 14, 2023
001031c
Ensure the review form is properly rendered when the Product Details …
nefeline Feb 15, 2023
dfe1e17
Merge branch 'trunk' into fix/duplicated-star-ratings
nefeline Feb 16, 2023
5aa5d50
Merge branch 'trunk' into fix/duplicated-star-ratings
nefeline Feb 16, 2023
d8acb43
Hide extra review stars via CSS
nefeline Feb 16, 2023
96617ea
udpate doc
nefeline Feb 16, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,9 @@
}
}
}
// Ensures the stars review form is properly rendered when the Product Details block is used alongside
// the Classic Single Product Block. This can be removed as soon as the Classic Single Product Block is deprecated.
.woocommerce-Reviews .comment-form-rating p.stars:nth-child(2) {
display: none;
}
}
4 changes: 1 addition & 3 deletions src/BlockTypes/ProductDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ protected function render_tabs() {
woocommerce_output_product_data_tabs();
}

$tabs = ob_get_clean();

return $tabs;
return ob_get_clean();
}
}