How to Add Reviews on the Cart Page

By implementing the code below, you can display the reviews widget on your store's cart page.

The widget will display the reviews of the products in the cart. If the product(s) has no reviews, the widget will show your store's aggregated reviews instead.

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

  1. Go to the Themes tab on your Shopify admin.
  2. Click the "Actions" menu and then select "Edit code":
  3. Open the template or section you use for cart pages (usually called cart.liquid or cart-template.liquid, but some themes work differently).
  4. Add the code below where you'd like the widget to appear:
    <div id="looxReviews" data-loox-aggregate data-or-productIds="{{ cart.items | map: 'product' | map: 'id' | join: ',' }}" data-visibility="hide_when_empty" class="loox-reviews-default"></div>

If you're having trouble editing your Liquid code, feel free to contact our Support team at [email protected], and we’d be more than happy to help!