# Theme setup

Add the review block to your product pages.

Canonical: https://cartrella.com/docs/reviews/theme-setup

Online Store → **Customize** → open a product page → **Add block → Apps →
Cartrella reviews** (usually below the product description) → **Save**.

The block renders:

- the **star summary** (average + count over published reviews),
- the **review list**, newest first,
- a **Write a review** form (rating stars, name, title, review text).

## Fitting your theme

Fonts inherit from your theme. Block settings cover the heading, button
labels, empty-state text, accent color, and corner radius.

## Headless storefronts

The review data is available from the app proxy on your own domain:

```
GET  /apps/cartrella/reviews?product_id=<numeric id>   → summary + published reviews
POST /apps/cartrella/reviews                            → submit (lands pending)
```

POST body: `{ product_id, rating (1–5), title?, body, author_name }`. Same
proxy-path note as Bundles: if Shopify assigned your store a suffixed path
(e.g. `/apps/cartrella-1`), set it in the block's **App proxy path** setting.
