How do I add star ratings to my cart page?
To display the Loox stars on your products in the customer's cart follow the steps below:
- Go to your Shopify Themes menu
- Click the "Actions" menu and then select "Edit code"
- Open the template or section you use for cart pages (usually it's called cart.liquid or cart-template.liquid, but some themes work differently)
- Copy the code below:
<div class="loox-rating" data-id="{{ item.product.id }}" data-rating="{{ item.product.metafields.loox.avg_rating }}" data-raters="{{ item.product.metafields.loox.num_reviews }}"></div>
- Paste it where you want the star ratings to appear
Please note: Star ratings only appear when there's at least one approved review.
If you need help editing your Liquid code, please contact us and we'll be happy to assist!