Published

How to Add Badges Like “New” or “Sale” to Product Photos in AI Search

Two Shoply AI Search product cards, a long-sleeve top with a NEW ARRIVAL badge and a running jacket with a STAFF PICK badge, both badges outlined in orange

Product badges are short labels, such as “New Arrival”, “Staff Pick” or “Sale”, on product photos in Shoply AI Search results. They help shoppers spot new and discounted products while they scroll. Shoply adds them from information you already have in Shopify: product tags, the custom.product_type field, and compare-at prices.

What do shoppers see?

  • A label on the product photo, in the colors you choose.
  • On AI Search results only. Product cards in AI Chat answers show no badges.
  • The badges that matter most, first. If a product matches more badges than you allow on one product, it shows the ones highest in your list.

Which products get a badge?

You decide, one badge at a time. Each badge goes on one of these groups:

  • Products with a tag, such as “new” or “vegan”.
  • Products with a custom.product_type value, such as “Ready To Ship”. This is a custom field (namespace custom, key product_type) that some stores use for labels. It is not Shopify’s built-in Product type.
  • Products on sale by at least a percent you choose, such as 20% off. Shoply counts a product as on sale when its price is below the compare-at price you set in Shopify. Shoply compares only those two prices, so discount codes and automatic discounts, which Shopify applies in the cart, don’t put a product on sale.

Before you start

  • A Shopify store. Badges use Shopify’s product tags, metafields and compare-at prices.
  • Any Shoply plan. Product badges are part of every plan, including the free plan.

Step 1: Add a badge

  1. In the Shoply AI app, open Customize AI Search.
  2. Choose AI Search: product cards and scroll to Product badges.
  3. Add a badge. Choose which products get it: a tag, a custom.product_type value, or a minimum discount.
  4. Type the Badge text, then pick the Badge color and Text color. Presets include Dark, Light, Red, Green, Blue and Gold, or choose Custom.
The Product badges settings: Max number of badges shown per product set to 1, Badge position set to Top left, and two badges, NEW ARRIVAL for products tagged New Arrival (15) and STAFF PICK for products tagged Staff Pick (10)
The Product badges settings in Customize AI Search, with two tag badges.

Step 2: Choose where badges sit and how many show

These two settings apply to all your badges:

  • Badge position: Top left, Top right, or Above title.
  • Max number of badges shown per product: from 1 to 10. If a product matches more badges than this, it shows the ones highest in your list. Drag badges to change their order.

Step 3: Check the preview and save

The results preview on the same page shows your badges in the position you chose. When they look right, click Save.

Then search your store for a product that should get a badge, and check its photo. Shoply reads tags and prices from its copy of your products. A tag you have just added in Shopify shows after Shoply’s next product update. To update now, open App status in the Shoply AI app and click Recrawl now.

How do I remove a badge?

Delete the badge in Product badges and click Save.

Can I change how badges look with CSS?

Yes. If you add your own styles to AI Search (CSS, the code that sets colors and sizes), use these names:

  • .shoply-product-badges styles the row of badges on each card.
  • .shoply-product-badge styles every badge.
  • .shoply-product-badge-<text> styles one badge. The name ends with the badge text in lowercase, with spaces and other symbols turned into dashes: “New Arrival” becomes .shoply-product-badge-new-arrival. Badge text in letters other than A to Z, such as “新着”, gets no name of its own; style it with .shoply-product-badge.

To find where to add styles, see how to customize AI Search with CSS.