A Gen Product Options
Menu
Tutorial · Sportswear

Personalized jersey with name and number

Name and number fields that appear only when the shopper adds them, with a shorter name limit for kids' fits.

UsesSwitchesSingle-line textIntegerPop-up

Sportswear

Name & number

Steps
5 steps
Checks
3 things to try
Docs
3 reference pages

Quick answer

Add a Switches value, Add name & number, priced at 15. Add two required Name fields, 12 characters for the Adult fit and 8 for Kids, each shown by a variant rule, plus a required Number from 0 to 99. They appear only when the shopper turns the switch on, and a Pop-up holds the size chart.

Last updated

You'll sell a jersey whose variants have a Fit option with the values “Adult” and “Kids”. Shoppers can add a name and number for $15. Adult names allow 12 characters and kids' names 8, using a variant rule.

What you’ll build

Live preview: Add name & number switched on (+$15.00) shows required Name (RIVERA, 6/12) and Number fields
Turning on Add name & number adds $15 and shows the Name and Number fields. (The Adult/Kids name limit from step 2 isn't shown in this preview.)
  1. Step 1: Add the switch

    1. Click Add option and choose Switches. Label: “Personalize”.
    2. Name the value “Add name & number” and set its Price to 15.
  2. Step 2: Add a name field per fit

    1. Add a Single-line text: Label “Name”, Max characters 12, Required on.
    2. In its Conditions, add two rules and keep all: “Personalize” is “Add name & number”, and Variant option (e.g. Size)… with name “Fit” is “Adult”.
    3. Click Duplicate on the Name option. In the copy, set Max characters to 8 and change the variant rule's value to “Kids”.

    Note

    Rules in one option all use the same all or any, so this recipe uses two Name options rather than one option with mixed rules.

    Checkout and variant rules

    The product page makes shoppers fill in a required Name before adding to cart. The checkout check can't see variant option names, so it doesn't enforce options shown by a variant rule: a cart filled outside the product page could reach checkout without a name.

  3. Step 3: Add the number

    1. Add an Integer: Label “Number”, Min value 0, Max value 99, Required on.
    2. Conditions: “Personalize” is “Add name & number”.
  4. Step 4: Add a size chart

    1. Add a Pop-up. Link text: “Size chart”.
    2. Add your measurements in Window text, or a picture of the chart in Image (optional).
  5. Step 5: Activate and save

    1. Set Status to Active, apply the set to your jerseys and click Save.

After you save

Check it on your store

  • Name and Number appear only after turning on Add name & number, and the price goes up by $15.00.
  • With Fit = Kids, the name stops at 8 characters; with Adult, at 12.
  • The Size chart link opens a window with your chart.

Stuck on something?

Check Troubleshooting, or email us with your store URL and we’ll help.

Email support
More recipes

Try another recipe.