less than a minute read • Updated 9 minutes ago
Custom checkout fields overview
What custom checkout fields are and how to add them to your checkout.
Custom checkout fields let you collect information beyond Foxy’s standard billing and shipping fields — things like a terms of service agreement, a newsletter opt-in, a referral source, a gift note, or a date of birth.
Two ways to add a field
Some common fields are built into your store’s configuration and can be turned on without writing any code — a terms of service checkbox and a newsletter opt-in both work this way. For anything else, you write the field’s HTML yourself and add it through the “Add custom form fields to your checkout” configuration option, or by editing the checkout template directly for more advanced cases.
Notes
Custom fields you write yourself support text inputs, dropdowns, radio buttons, and checkboxes.
Fields can be required, prepopulated, localized for multilingual stores, and hidden from receipts and emails when they contain sensitive information — each of those is covered in its own article in this section.