Description
While working on the new Single Product Details block woocommerce/woocommerce-blocks#8225, we have noticed the star ratings are duplicated when this block is used in the Single Product template alongside the classic template block:
After further discussion, the decision was to ship the block as-is if the fix requires a significant time investment. While there might be an easy workaround path to be explored, opening this issue so we can work on it independently.
Steps to Reproduce
- Enable a block theme in your WordPress installation (go to Appearance > Themes, and select one of the block themes options, such as Twenty-Twenty-Three);
- Once the theme is enabled, go to Appearance > Editor (Beta);
- On the left side menu, click on Templates;
- Select the Single Product template, and click Edit;
- Using the Block Inserter, type: Single Product Details and add it to the Editor while still keeping the pre-existing WooCommerce Single Product Block that comes by default with the template.
- Save the changes. Access your website and click on a product;
- Make sure the Single Product Details block appears and contains the product description (Description tab), product attributes (Additional Information tab), and product reviews (Reviews tab).
- On the product reviews tab, notice the star ratings are duplicated (as demonstrated on the screenshot on this issue).