About This Article
Shopify customer data includes standard fields (name, email, address, etc.), but Japanese EC sites often require additional information. This article explains how to manage this using Shopify's metafield functionality.
Additional Information Needed for Japanese EC
Why Standard Fields Are Insufficient
Shopify is a foreign product and doesn't support Japan-specific customer information.
What Are Metafields
Concept Explanation
Metafields allow you to add custom information to Shopify's standard data. You can store custom information for various objects like customers, products, and orders.
Name (first_name, last_name), Email (email), Phone (phone), Address (addresses)
Furigana (custom definition), Birth date (custom definition), Gender (custom definition), Other (freely addable)
Metafield Structure
Metafields are organized by "namespace" and "key".
Design Points
Namespace Design
Namespaces are used to group related information.
Choosing Data Types
Set appropriate data types for metafields.
Operational Benefits
Viewing in Shopify Admin
Metafields can be viewed and edited from the Shopify admin panel.
Customer support can view all information from the admin panel.
API Retrieval and Updates
Metafield retrieval and updates are easy with the GraphQL API.
"Please provide info for customer ID: 12345"
Returns standard fields (first_name, last_name) + metafields (furigana, birth_date, etc.)
"Update birth date for customer ID: 12345"
Saved to Shopify
Implementation Considerations
Validation
Data validation is required before saving to metafields.
Data Migration from Existing Customers
When migrating data from an existing system, the following steps are needed.
Export customer data from existing system
Convert to Shopify metafield format
Verify converted data
Verify operation with small data set
Register all data to Shopify
Benefits of This Feature
For Operations
- No need to build additional database
- Centralized management in Shopify admin
- Automatic integration possible via API
Development Benefits
- Standard feature, no additional cost
- Easy retrieval and update with GraphQL API
- Easy future expansion