Populate barcodes from customer metafield
Last updated
Last updated
First, ensure you've . Then, to enable the "Metafield to barcode sync" feature, identify the namespace and the key of the created metafield.
Go to the customer metafields in Shopify Admin ("Settings" > "Custom data" > "Customers") and copy the namespace and the key. Note that a dot (.) separates them. Hence if your metafield's namespace and key value are "dummy_namespace.dummy_key", then dummy_namespace is the namespace, and dummy_key is the key.
Go to the app's "Settings" page.
Check the "Sync metafield with barcode" checkbox.
Enter the previously identified namespace and key, e.g. dummy_namespace and dummy_key.
Uncheck the "Skip the update in the barcode is already assigned to a different customer" checkbox (Optional).
Save.
Create or update a customer.
Validate that the value in the customer's metafield appears in the "custom barcode" text field in the app's customer profile.
The same principle works in Shopify POS, e.g. you can add the barcode value to the associated metafield when creating/updating a customer.
The app relies on the "CUSTOMERS_UPDATE" . There may be a short delay between the customer being created/updated and the app receiving the notification and updating its database.