# Show points earned on product pages

Add the Points Earned Badge to your product pages so customers see the points a purchase earns — with live promotion rates and a logged-out login prompt.

![](https://cdn.sanity.io/images/qnhxgxnh/production/1123368390926fad235fdb04664bdef369cff58f-872x740.png?w=1600&fit=max&auto=format)

The **Points Earned Badge** puts your loyalty program at the moment of decision: a strip on the product page telling the customer exactly how many points this purchase earns — _Earn 50 points with this purchase_.

The number is calculated live from your earning rules, so it does the right thing without upkeep:

- **Promotions are reflected automatically.** During a [double-points promotion](https://www.roadmap.so/docs/loyalty-and-rewards/points-and-ways-to-earn/run-a-double-points-promotion), the badge shows the promotional number.
- **Non-earning products show nothing.** If a product is excluded by your [earning rules](https://www.roadmap.so/docs/loyalty-and-rewards/points-and-ways-to-earn/award-points-for-placing-an-order), the badge hides itself rather than promising points the order won't earn.

### Add the badge to your product pages

![](https://cdn.sanity.io/images/qnhxgxnh/production/e528b1842ae857fc9813054d645e8b79465019b9-3206x1214.png?w=1600&fit=max&auto=format)

The badge is a standard Shopify app block:

1. In Shopify admin, go to **Online Store → Themes → Customize** and open a **product page** template.
2. In the **Product information → Details** section, click **Add block** and choose **Points Earned Badge** under Apps.
3. Drag it where you want it — directly under the **Buy buttons** is the natural home.
4. **Save**.

### Configure the content

![](https://cdn.sanity.io/images/qnhxgxnh/production/a2d2c06a5783fbaa456534d2651aef1249e9671e-3332x1434.png?w=1600&fit=max&auto=format)

Style and word the badge from **Edit Loyalty Widgets → Product Page → Points Earned** (not the theme editor):

- **Label Text** — supports the `{points}` placeholder: _Earn {points} points with this purchase_.
- **Show info tooltip** + **Tooltip Text** — an ⓘ explainer, e.g. _Points are added to your account when your order is placed._
- **Logged-out Label Text** — what visitors see before logging in, e.g. _Log in to redeem your points for rewards._ Leave blank to reuse the Label Text (also supports `{points}`).
- **Logged-out Tooltip Text** — the tooltip for that state.

### Styling

- **Typography & Colors** — font size, text color, tooltip background, and tooltip text color. Fields tagged **Styler** inherit from the [Universal Styler](https://www.roadmap.so/docs/getting-started/how-the-universal-styler-works) until you edit them.
- **Container** — background color, border radius, text alignment, and top & bottom padding.

Use the preview's **Logged out / Logged in** toggle and desktop/mobile switch to check both states as you style.

### Related guides

- [Customize the loyalty widgets](https://www.roadmap.so/docs/loyalty-and-rewards/getting-started/customize-the-loyalty-widgets)
- [Award points for placing an order](https://www.roadmap.so/docs/loyalty-and-rewards/points-and-ways-to-earn/award-points-for-placing-an-order)
- [Run a double-points promotion](https://www.roadmap.so/docs/loyalty-and-rewards/points-and-ways-to-earn/run-a-double-points-promotion)
