Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Contents

Table of Contents
stylenone

What is a Reward Category?

Each reward category contains multiple rewards, for example the category for 300 Loyalty points will contain all the rewards that are available to be redeemed for that amount of points. Reward Categories represent the way you want to group rewards in the list view. It could be point categories (as in the example below) or it could be menu categories.

In Sanity:

In the app:

Adding Reward Categories

  • In Sanity go to Reward Categories folder and click on the “pencil” on top of the page

Label

The label represents how the name of that rewards category will show on the app.

Info

Please note the word “Coins” is controlled by the Lokalise string “Points” cartLoyaltyPointsTitle. It can be changed for any other word or have an empty space (“ “) in case you would like to only show the label.

image-20240603-062846.png
image-20240603-064823.png

Validations

Validations represent the range that rewards must have to be in this specific category

Info

If you add a 400 point reward to the category defined as ‘0-250’, Sanity will throw an error and will not let you publish

image-20240603-063155.pngimage-20240603-064421.png
image-20240603-064551.png

Image

Image Description

Note

The fields Image and Image Description were deprecated. Please leave these two fields empty.

image-20240603-064916.png

Rewards

List all the rewards you would like to show in this category. The order in which the rewards are listed within the categories is the order they will appear on screen.

image-20240603-065809.png
image-20240603-065908.png

Publish

Click on “Publish” to have the changes done to the category be saved.

image-20240603-070043.png