Перейти к основному содержимому

Badges, Ratings and Collections

Product badges​

Octane shows badges on product cards. A Sold out or Sale badge appears first when it applies. A second badge comes from the metafield octane.badge if the product has one, otherwise from a product tag:

Product tagBadge
bestseller or best sellerBest seller
staff pick or staff-pickStaff pick
new or new arrivalNew
restocked or back in stockRestocked

To use a custom badge, create a product metafield with the namespace and key octane.badge (type: single line text) and fill it in on each product. In the sections that list products you can switch badges off with Show badges.


Star ratings​

Cards and the product page show a star rating when the product has a rating metafield:

  • reviews.rating - a rating value (the standard Shopify reviews metafield)
  • reviews.rating_count - the number of reviews

Reviews apps that fill these standard metafields work automatically. Turn ratings off in Theme settings > Layout > Show product ratings.


Collections the homepage uses​

The best sellers and new arrivals sections read from collections you choose. Smart collections keep them up to date for you.

  1. Go to Products > Collections > Create collection
  2. Choose Smart and set the condition, for example Product tag is equal to bestseller
  3. Save, then pick the collection in the Featured collection or Product rail section

You can use the same tags for the badges above, so one tag controls both the badge and the collection.