What are custom fields?
Custom fields add account-specific data to products or order items, such as a warehouse location on a product or a fulfillment status on an order item. Custom fields can be searched, exported and updated through bulk uploads and the API.
Where to find them
Custom fields are managed under Settings > Custom Fields, which has two tabs: Products and Order Items. Each tab lists the existing fields with their label, API name and type.
Adding a field
- Open the Products or Order Items tab and click Add field.
- Enter a Label, which is how the field is displayed in SureDone.
- Check the API Name, which fills in automatically from the label. This is the field's header in exports, bulk uploads and the API. It must be lowercase with no spaces and cannot start with a number. Order item field names also cannot end with a number.
- Choose a Type:
- Varchar: text of limited length
- Integer: whole numbers
- Decimal number: numbers with decimals
- Optionally turn on Use default value and enter the value new records start with.
- For more types, turn on Advanced options:
- VARCHAR: text with a maximum length (defaults to 50 if left blank)
- INTEGER: whole numbers
- FLOAT: decimal numbers, with a length such as 10,2 for two decimal places
- DATE: dates
- TEXT and LONGTEXT: longer text. These types cannot have a default value or a list of values.
- BOOL: values of 1 or 0
- Indexed: adds a database index so searches on the field run faster. Leave it off unless the field will be searched often.
- Click Save. The field takes a few minutes to be created.
Note: the label, API name, type, length, default value and index cannot be changed after the field is created.
Setting a list of values (drop-down)
Any field except TEXT and LONGTEXT can have a set list of values:
- Click Edit on the field.
- Enter the values in Product field values or Order field values, separated by commas, for example: Rush,Standard,Hold.
- Click Save.
On orders, the field then shows as a drop-down in the Products section of the order page. On products, the values appear as options to choose from.
Order item fields
Order item fields are stored on each item of an order. They appear in the Products section of the individual order page and can be added as a column on the View All Orders page. They are useful for drop shipping, exporting order details to other systems, and searching orders by information that isn't searchable by default.
The following names are reserved and cannot be used for order item fields: order, ido, items, shipments, refunds, time, count, all, label, shiplabel, billing, shipping, header, data, sold.
Order item mapping
An order item field can copy its value from a product field when orders are imported:
- Click Edit on the order item field.
- Turn on Order item mapping and choose the product field to copy from.
- Click Save.
The product's value then fills the order item field on new orders.
Deleting a field
Click Edit on the field, then Permanently delete, and confirm. This removes the field and all data stored in it, and cannot be undone.