Integer (Whole Number) Field

Overview

Integer fields are ideal for displaying whole numbers inside a defined minimum and maximum range on your Shopify Pages. 

Tip: See also, Basic Field Settings

Default Display

Finish.png

Field Creation Form

Permutations to the integer field are the two options below, Minimum Value & Maximum Value. These dictate a range of integers you can enter into the field on the admin panel.

Creation.png

Content Entry Form

The Integer Custom Field will only save if the user enters an integer or a whole number, it will not save the field if the content entered is in decimal format, or text. Use the Number Custom Field instead.

Content_Entry.png

Default Liquid Code

The Edit Code section allows a user to edit how a field prints or functions. The default code for this type of field is found below. 

Edit_Code.png

For more information about code customization and the code editor itself, visit our Guide to the Snippet Editor.

Additional Resources & Information

Shopify: Liquid Template Language Documentation

Custom Fields: Types of Fields & How to Manage Them

Custom Fields: Liquid Template Fields - This article goes more in-depth on the Edit Code section and also uses the integer field.