How to collect a PO number and other cart fields

Cart fields let wholesale buyers give you details such as a PO number before they check out. The answers are saved on the order as cart attributes, so you see them in Shopify on the order. This guide shows how to add a field and put it in your cart.

Before you start

Add a field

  1. Open Cart fields

    Open Bulk Orders › Order Rules and scroll to Cart fields. The table shows each Field, its Type, Shown to (all wholesale groups or the groups you chose) and Answer (Required or Optional).

    Cart fields table

  2. Click Add field

    Click Add field (or Edit on a row) and fill in the window.

    Field What it does
    Label buyers see The name of the field, for example "Purchase order number". Up to 60 characters.
    Type See the table below.
    Shown to All wholesale groups or Specific groups (pick at least one).
    Options For dropdown, checkboxes and radio buttons. Type an option, press Enter or click Add. At least two options.
    Required before checkout The buyer must fill it in. Not available for headings.
    Help text (optional) Small text under the field. Up to 200 characters.

    The window also shows the cart attribute name the answer is saved under. It is made from the label when you create the field and does not change later.

  3. Add the block to your cart

    In the theme editor, add the Wholesale cart fields block to your cart page. Place it inside your theme's cart form, for example in the cart footer, so the answers go with the Checkout button. The block has Show field labels and Spacing (Tight, Normal, Loose) settings.

    Cart blocks in the theme editor, from the mockup

Field types

Type What the buyer sees
Text One line.
Multi-line text A larger box.
Number A number box.
Date A date picker.
Dropdown A list; they choose one.
Checkboxes Several can be ticked.
Radio buttons Choose one.
Heading A title to separate fields. No answer.
Phone A phone number box.
Email An email box.
Address A larger text box.
Tax ID A single-line text box.

File upload fields are not supported. If you have an older one, choose a text type to keep it.

Cart with Pay later and cart fields, from the storefront mockup

Required fields

For a Required field, the cart shows a small message when it is empty, but it does not stop the cart form. Checkout is what blocks the order, with your Required cart field message (see What buyers see in the cart and at checkout). A buyer who already filled a field in the cart sees their earlier answer again.

Delete a field

Open the field and click Delete field, then Yes, delete this field. Buyers stop seeing it. Answers already saved on orders stay.

Stores can have up to 7 cart fields. The Add field button is disabled at the limit. Delete one you no longer need.

Not in the cart. File upload cart fields are not supported. Use the sign-up form for documents; see Spam protection and file uploads.

Related articles