How can I display reviews on the cart page?

To display a reviews widget on your cart page with the reviews of the products in the cart, please follow the instructions below:

  1. Go to your Shopify admin themes page
  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. Add the code below where you'd like this widget to appear:
  5. Show all product reviews when the products in the cart don't have reviews:
  6. <div id="looxReviews" data-loox-aggregate data-or-productIds="{{ cart.items | map: 'product' | map: 'id' | join: ',' }}" data-visibility="hide_when_empty"></div>

Please note that when none of the products in the cart have reviews, the widget does not appear on the cart page.

If you're having trouble editing your Liquid code, please contact us and we'll be happy to assist!