How can I allow customers to fill in metafield info during account creation?

Topic summary

Goal: let customers enter a custom customer metafield (e.g., Siret) during account signup so it appears in the admin customer record. A direct edit to main-register.liquid with a new input field did not work.

Constraints: Shopify’s default registration form has strict limitations and does not support adding arbitrary fields/metafields via theme code alone. Collecting extra data at signup requires APIs or apps.

Proposed solutions:

  • Use Shopify Admin API to create customers and set metafields at signup.
  • Use external apps:
    • Customer Fields: collects custom fields, saves them to customer metafields, auto-creates metafield definitions (pinning recommended), supports standard fields (company_name, default_address, tax_exempt), and can add an “edit account” form for logged-in users.
    • FieldsRaven: enables theme developers to create/update metafields at any step of the customer journey; includes a quick start guide.

Outcome: No native theme-only solution. Recommended paths are API-based implementation or specialized apps. The code snippet shared illustrates the attempted approach but isn’t sufficient within Shopify’s built-in registration constraints. The thread is effectively resolved with app/API recommendations.

Summarized with AI on January 30. AI used: gpt-5.

Hello @Mati7777777

Unfortunately, we have strong limitations in Shopify’s default registration form
Proof: https://heliumdev.com/blog/shopify-create-custom-registration-form)

We can avoid these restrictions only with API calls or external apps usages:
Create customer by API (https://shopify.dev/api/admin-rest/2022-04/resources/customer#post-customers))
External app example (https://apps.shopify.com/advanced-registration)

2 Likes