📐SizeMind
DocsCollection Badges

Collection Badges

Show personalized size recommendations directly on collection pages and product listings — so customers see their size before they even click into a product.

📝 Plan Requirement

Collection badges are available on the Professional plan only. Badges require saved measurements — they only appear after a customer has entered their measurements in the widget at least once.

How Badges Work

When a customer enters their measurements on any product page, SizeMind saves them locally in the browser. On subsequent visits to collection pages, SizeMind automatically shows a small badge on each product card with the recommended size (e.g., "Your size: M").

Badges only appear when all three conditions are met:

  1. The customer has saved measurements in their browser
  2. The store is on the Professional plan
  3. The product has a matching size chart (via product mapping)

If any condition is not met, no badge is shown — the product card looks completely normal with no empty or loading states.

Badge Types

SizeMind includes two badge blocks, each for a different use case:

Collection Badges

Designed for collection pages (e.g., /collections/dresses). Add this block to your collection template in the Theme Editor.

Global Badges

Designed for product listings anywhere on the site — featured products on the homepage, related products on product pages, recently viewed sections, etc. Add this block to the templates where you want badges to appear.

Setup

1

Open Theme Editor

Go to Online Store → Themes → Customize.

2

Navigate to the Correct Template

For collection badges: select Collections → Default collection.
For global badges: select the template where you want them (e.g., Home page, Product page for related products).

3

Add the Badge Block

Click "+ Add block" or "+ Add section" and look for "SizeMind Collection Badges" or "SizeMind Global Badges" under the Apps section.

4

Configure Settings

Click the badge block to configure language, colors, icons, and badge style (see settings below).

5

Save Changes

Click "Save". Badges will appear for customers who have saved measurements.

Badge Settings

Language

Select the same language as your main widget. The badge text (e.g., "Your size:") will match.

Result Text

The text shown before the size on the badge. Default is "Your size:" but you can customize it (e.g., "Size:", "Your fit:").

Result Icon

Choose an emoji icon shown on the badge. Options include 👗, 👕, ✅, 🎯, ⭐, ✨, 💯, 🏷️, or no icon. You can also enter a custom emoji.

Badge Colors

  • Badge Background: Background color of the size badge (default: dark navy)
  • Badge Text: Text color of the size badge (default: white)

Badge Roundness

Control the border radius of the badge (0–20px). Default is 8px for slightly rounded corners.

How It Works Technically

When a collection page loads, the badge script:

  1. Checks if the customer has saved measurements in localStorage
  2. If not, does nothing (no badges shown)
  3. Finds all product cards on the page and extracts product handles
  4. Sends a single batch API request to get recommendations for all products
  5. Displays a badge on each product that has a matching size chart and recommendation
  6. Products without a size chart or recommendation show no badge
💡 Performance

Badges use a single batch API call for all visible products, so they load quickly even on pages with many products. The API request only happens once per page load.

Theme Compatibility

Badges automatically detect product cards across most Shopify themes by looking for common CSS classes and data attributes. Supported themes include Dawn, Refresh, Studio, and most third-party OS 2.0 themes.

If badges don't appear on your theme's product cards, contact support with your theme name and we'll add compatibility.

Troubleshooting

Badges Not Showing

  1. Check your plan: Badges require the Professional plan. Verify in SizeMind → Billing.
  2. Enter measurements first: Visit a product page and enter measurements in the widget. Badges only appear after measurements are saved.
  3. Check product mappings: Products need a size chart mapping to show a badge.
  4. Hard refresh: Clear browser cache with Ctrl/Cmd + Shift + R.

Badges Show on Wrong Position

Badge positioning depends on your theme's product card structure. By default, badges appear at the bottom-left of the product image. If positioning looks off, contact support for theme-specific adjustments.