In V3 Template, products are fetched using GraphQL. While default product data is automatically included, accessing additional metafields requires three steps:
Adding metafields to the getProductDetailsQuery function
Including metafields in the transformProductData function
Accessing the metafields in your template’s theme.liquid
Go to Settings >> Integrations >> Product Review Apps
Enable the Judge.me app integration
After completing the setup, the rating metafields will be available in your GraphQL queries. You can query these metafields using the reviews namespace wherever needed.To display product ratings in your template, simply use the Judge.me liquid tag:
Copy
{% raw %}{% product_ratings product_id: product.id %}{% endraw %}