Product Ratings
Zid enables merchants to showcase customer ratings for their products, helping to build trust and increase engagement. As a theme developer, it's essential to implement the product rating display accurately within the theme for a seamless user experience.
Activation Steps for Merchants
Merchants can enable and manage product ratings through their dashboard by visiting Settings > Questions & Ratings
Once enabled, changes made in the product ratings are updated in the product data object, specifically in product.rating.total_count.
These ratings will then appear on product pages, helping attract customer engagement and encouraging more purchases.
Code Snippet Integration for Theme Partners
This snippet checks if a product has ratings. If present, it displays the average rating as stars along with the total number of reviews.
{% if product.rating %}
<div>
{% include 'rating-stars.twig' with {'rating' : product.rating.average } %}
<span class="product-card-rating-count">({{ product.rating.total_count }})</span>
</div>
{% endif %}