How can i display Star ratings on Product Detail Page?

To display star ratings on the product detail page you need to paste the below code to your product-template file in your theme.

<div class="wc_product_review_badge" data-handle="{{ product.handle }}" data-product_id="{{ }}"></div>

On your front-end, it will display as per the given below image.

Still need help? Contact Us Contact Us