Skip to content

Single Product Details Block > Duplicated star ratings #42475

Open
woocommerce/woocommerce-blocks
#8431
@nefeline

Description

@nefeline

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:

Screenshot 2023-01-31 at 20 39 50

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

  1. 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);
  2. Once the theme is enabled, go to Appearance > Editor (Beta);
  3. On the left side menu, click on Templates;
  4. Select the Single Product template, and click Edit;
  5. 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.
  6. Save the changes. Access your website and click on a product;
  7. 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).
  8. On the product reviews tab, notice the star ratings are duplicated (as demonstrated on the screenshot on this issue).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions