How do I add star ratings to my cart page?

  1. Go to your Shopify Themes menu
  2. Click the "Actions" menu and then select "Edit code"
  3. 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)
  4. 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>
  5. Paste it where you want the star ratings to appear
  6. 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!