Name and number printing

On this page

Floodlit lets shoppers add a name and number to a shirt. The choice is a normal Shopify product option, usually called Printing. Each print choice is a variant with its own price, so the print fee is simply the price difference between variants. The shopper's name and number travel with the order as line item properties.

There is no app and no extra checkout step. You set up the option on the product, point the theme at it once, and add the Name and number block to the product template.

How it works

  1. The product has a Printing option with values such as None, Player and Custom.

  2. Each value is a variant. Plain, player and custom variants have different prices, for example S / None 65, S / Player 80, S / Custom 85.

  3. The theme finds the option by its name and decides what each value means: no print, a squad player, or a custom name and number.

  4. The shopper picks a value. For Player, they choose from your squad. For Custom, they type a name and a number.

  5. The name and number are added to the cart line as properties and show on the order.

The fee is never typed into the theme. It is always the difference between variant prices, so the price the shopper sees is the price Shopify charges.

Set up a product

1. Create the Printing option and the variants

  1. In the Shopify admin, open Products and open the shirt (or add a new product).

  2. In the Variants card, add your size option if the product does not have one yet, for example Size with S, M, L and XL.

  3. Add a second option. Name it exactly Printing (or the name you set in the theme, see below).

  4. Add the values in this order: the plain value first, then the player value, then the custom value. For example: None, Player, Custom.

  5. Save. Shopify creates one variant for every combination, for example S / None, S / Player, S / Custom, M / None and so on.

Put the plain value first. The theme measures every fee against the first value of the option, and the cart does not list the first value as a print choice.

A product can have up to three options in Shopify. Size plus Printing leaves one more option, for example a league patch (see Product page).

2. Set the prices

Give every variant its price. Within one size the difference between values is the fee.

VariantPriceFee shown to the shopper
S / None65.00none
S / Player80.00+ 15.00
S / Custom85.00+ 20.00

Do this for every size. Fees can differ by size: the theme reads the price of the selected size. A fee can also be negative, and then it is shown with a minus sign.

You can enter prices in the variant list of the product page, or use Shopify's bulk editor for many variants at once.

3. Set the inventory

Each printed variant has its own inventory. If you track inventory, a size can run out as a printed variant while it is still in stock as a plain shirt, and the shopper then cannot order it printed.

For printed shirts, which are usually made to order, do one of the following on the Player and Custom variants:

  • Turn on Continue selling when out of stock (recommended), or
  • Turn off Track quantity.

Then set the stock only on the plain variants. See Inventory advice.

4. Tell the theme the option and value names

Open Theme settings > Personalization.

SettingWhat it doesDefault
Printing option nameThe name of the product option that holds the print choice. A comma separated list, so you can add translated names, for example Printing, Impresión. Case and spaces around the names are ignored.Printing
Values for no printComma separated value names that mean no print.None
Values for a squad playerComma separated value names that open the squad list.Player
Values for a custom name and numberComma separated value names that open the name and number fields.Custom
Size option namesComma separated names of the options that are sizes.Size
Name length limit (letters)The longest name a shopper can type, 8 to 16.12
Allowed name charactersLetters A to Z, or Any letter (includes accents and other alphabets). Space, hyphen and apostrophe are always allowed.Any letter

If your values are named differently, for example Plain, Squad and Own name, enter those names in the three value settings. If you keep the default names, you change nothing.

5. Add the block to the product template

  1. In the theme editor, open a product page (Product pages > Default product).

  2. In the Product section, select Add block > Name and number.

  3. Drag it below the Variant picker block and above the Buy buttons block.

  4. Set the options described in The Name and number block.

The block shows only on products that have the Printing option. On other products it shows nothing. In the theme editor it shows a note when the current product has no Printing option.

The Printing option never appears in the normal Variant picker block: the Name and number block shows it instead.

Value names and roles

Each value of the Printing option has a role: none, player or custom.

  1. The theme compares the value with the three lists in Theme settings. Matching ignores case and spaces around the names. The first list that contains the value decides.

  2. A value that matches no list takes a role from its position:

    With three or more values
    The first is none, the second is player and the third is custom.
    With exactly two values
    The first is none. The second is custom when the squad is empty (or empty for the block's team), and player when the squad has players.

A fourth or later value that matches none of the lists has no role: it is listed as a choice but opens no squad list or name and number fields.

The positional rule is a fallback. If a product has two values, for example None and Custom, and your squad is filled in, a value named differently from the lists would be read as Player. Keep the three value lists in Theme settings up to date, and the roles always follow the names.

A Player value is hidden from the shopper when there are no squad players to offer (for the block's team), unless it is the value already selected.

Translated option names

If you sell in more than one language, translate the option name and its values in Shopify (Translate & Adapt app or Settings > Languages). The theme sees the translated names on the storefront, so add them to the lists:

  • Printing option name: Printing, Impresión, Flocage
  • Values for no print: None, Ninguno, Sans flocage
  • Values for a squad player: Player, Jugador, Joueur
  • Values for a custom name and number: Custom, Personalizado, Personnalisé

The theme's own labels (Name, Number, Plain back and so on) are translated in the five shipped languages without any work from you.

The Name and number block

SettingWhat it doesDefault
StyleHow the print choices look. Cards shows one card per value with its description and fee. Pills shows a segmented control with one fee in the header. Theme default follows Layout style: Framed gives Cards, Open gives Pills.Theme default
PreviewWhere the lettering preview sits. See Preview placement.Theme default
Title for no printReplaces the value name on the no print choice. Leave blank to show the option value name.Blank
Description for no printShort text under the title. Blank shows Plain back.Blank
Title for a squad playerReplaces the value name on the player choice.Blank
Description for a squad playerBlank shows Choose from the squad.Blank
Title for a custom printReplaces the value name on the custom choice.Blank
Description for a custom printBlank shows Your name and number.Blank
Lead time textShown next to the print choice, for example how many working days printing adds. Blank shows nothing.Blank
Return policy noteShown above the Add to cart button while a print is selected, for example that printed shirts cannot be returned. Blank shows nothing.Blank
Required fieldsName and number requires both for a custom print. Name or number accepts either one.Name and number
Show player positionsShows each player's position under the name on the Player tiles.On
TeamOffers only the squad players of this team. Matching ignores case. Blank offers every player.Blank

Descriptions appear in the Cards style. In the Pills style the choice shows only the title.

Two more settings next to it use the same print state:

  • Pickup availability block > Text for printed items shows under the pickup line while a print is selected.
  • Buy buttons block > Price breakdown can list the fee as a line (see Product page).

Preview placement

The preview is lettering only: the name above the number in the theme's print lettering. There is no shirt drawing. Without a name and number it shows a placeholder (Name and 00). It updates as the shopper types.

Preview settingResult
Theme defaultIn the gallery when Layout style is Framed, in the buy area when it is Open.
In the galleryA Your print tile after the first image of the gallery. Without a print it reads that the back is plain.
In the buy areaA strip below the print choice.
OffNo preview.

On phones the buy area always shows a small preview, even when the gallery holds the main one. A product with no images shows the preview in the buy area instead of the gallery. The preview is hidden while no print is selected.

What the shopper can type

Name

  • Letters, space, hyphen and apostrophe. Everything else (digits, punctuation, emoji) is removed as the shopper types.
  • Upper-cased automatically, following the store language. Accents are kept with the Any letter setting. With Letters A to Z, accents and other letters are removed.
  • A curly apostrophe becomes a straight one. Leading spaces are removed and repeated spaces become one.
  • A counter shows the length, for example 7/12. The field stops at the limit and announces it to screen readers.

Number

  • Digits only, at most two (0 to 99). Letters are removed. Leading zeros are kept, so 07 and 00 stay as typed.

Player

The shopper picks a player tile. The printed name is the player's shirt name and the number is the player's number. They cannot edit it. The first player is selected by default. With more than one team, tabs switch between the teams. See Squad and players.

Validation

Name and number are checked when the shopper presses Add to cart (also on the docked buy bar).

  • For a custom print with Required fields set to Name and number, both must be filled. With Name or number, one is enough.
  • When a field is missing the add is blocked, a message appears under the field (Enter a name. Enter a number. or Enter a name or a number.), the field is marked invalid, focus moves to the first invalid field and the message is announced.
  • For a player print, a player must be chosen: otherwise the message reads Choose a player to print, or pick another printing option.
  • Accelerated checkout buttons (Shop Pay, Apple Pay and others) skip this check, so they are hidden while a print is selected. The shopper uses Add to cart.

What the cart and the order show

For a printed shirt:

  • The cart line shows the options (for example Size: S and Printing: Custom) and the personalisation lines Name: ÇAĞLAR and Number: 07. The Printing option is listed only when it is not the first value, so a plain shirt shows no print line.
  • The line price is the price of the printed variant, so it already includes the fee.
  • The same variant with a different name or number becomes a separate cart line.
  • In the Shopify admin the order line shows the variant (S / Custom) and the properties Name and Number. Both properties are only sent when they have a value.

Property names follow the shopper's language

The properties are labelled in the language the shopper used:

LanguageName propertyNumber property
EnglishNameNumber
FrenchNomNuméro
GermanNameNummer
ItalianNomeNumero
SpanishNombreDorsal

An order from a Spanish storefront shows Nombre and Dorsal. Tell whoever prepares the printing about the five names. The values are always the plain name and number.

The docked buy bar summarises the choice as Name: X · Number: 9, or No print.

The Print studio section (a name and number call to action, usually on the home page) previews a name and number and links to a product. In its settings:

  • Product is the product the button opens. Link is used when no product is chosen.
  • Button label is the button text. Blank shows Put it on a shirt.
  • Offer a choice of squad players adds a Choose a player mode that reads the squad.
  • Heading, Text and the layout settings are yours. The section does not read fees or lead times from the product; write them in Text if you want them mentioned.

The button link carries the choice:

Own print
/products/home-shirt?name=ROSS&number=9
Squad player
/products/home-shirt?player=10-amara-diallo

When the product page opens, it selects the matching print choice and fills the fields. A player is matched by its identifier (number and name, as in the example), by its number, or by the start of its identifier. A name or number selects the custom value, and this needs a Custom value on the product. The prefill works only on the main product page, not in the quick view.

The section's own name field uses the same name rules and limit as the product page.

Quick view

The quick view (the dialog opened from a product card) supports printing too. It uses the three value lists from Theme settings, so the roles are the same. It does not use the settings of the Name and number block: it always offers the Pills style, shows no preview, offers every squad player regardless of Team, requires both name and number, and uses the value names as titles. The Price breakdown is off. A link in the quick view opens the full product page, but does not carry the typed name or number with it.

Inventory advice

  • Turn on Continue selling when out of stock for the Player and Custom variants, or stop tracking their quantity. Keep tracking on plain variants if you hold stock for them.
  • If you do track printed variants, keep their stock in step with the plain ones. A size that sells out printed while in stock plain will show as sold out when the shopper chooses a print.
  • When a print value is sold out, its card stays visible and selectable, and is marked as unavailable for screen readers. The Add to cart button shows Sold out for that variant.

Limits

  • One Printing option per product. If two options match the name, the first counts.
  • Products with more than 250 variants show no fee labels or price breakdown. The price still includes the fee.
  • The number is limited to two digits and the name to 8 to 16 letters (Name length limit).
  • The fee of a print value is measured against the option's first value, within the same size. If a combination does not exist as a variant, its fee is not shown.
  • In the Pills style the header shows one fee (the first non-zero fee while no print is selected). Only the fee of the selected print is exact. Use Cards when Player and Custom have different fees.
  • With a selling plan selected, the breakdown shows only the total.
  • In the Featured product section the fee labels and the breakdown are hidden after a variant change. The total stays right.
  • The properties' names depend on the shopper's language (see above).
  • A link from the cart line to the product and the quick view's View full details link do not carry the typed name or number or the chosen player.

Troubleshooting

ProblemCheck
The block shows nothing on a productThe product has no option with the name in Printing option name. In the editor a note tells you.
Fees are missingThe variants for the print values do not exist, or the product has more than 250 variants.
Player does not appearThe squad is empty, or no squad player matches the block's Team.
Player shows as Custom or the other way roundThe value names do not match the lists in Theme settings. Add them.
Translated storefront has no print choiceAdd the translated option name to Printing option name.
A size cannot be ordered printedThe printed variant is out of stock. Turn on Continue selling when out of stock.