Barcodify - Customer Selector
  • Getting started
    • Introduction
    • Design mobile wallet passes
    • Share "app-generated" barcodes with customers
      • Share barcodes in person
      • Share barcodes via Shopify notifications
      • Share barcodes via bulk messaging services
      • Place barcodes on the customer page
    • Synchronise "merchant-issued" custom barcodes with the app
      • Enter barcodes individually
      • Import barcodes
      • Populate barcodes from customer metafield
    • Bulk-export customers
    • Analytics
    • Add customers to the POS cart
    • Legacy (slower) ways to add customers
      • Shopify POS "Add customer" Smart Grid action
      • The app's Smart Grid actions
  • Troubleshooting
    • FAQs
      • Can I use one scanner to add products and customers?
      • What scanner should I get for customer barcodes?
    • Known issues & workarounds
      • "Add customer" POS extension no longer works
      • Expected a valid shop query parameter
      • Something went wrong. Please check your cart or try again.
  • Legal
    • Terms of Service
    • Privacy Policy
    • Sub-processors
Powered by GitBook
On this page
  • Identify the metafield namespace and key
  • Save the namespace and key in the app's settings
  • Test
  1. Getting started
  2. Synchronise "merchant-issued" custom barcodes with the app

Populate barcodes from customer metafield

PreviousImport barcodesNextBulk-export customers

Last updated 3 months ago

When enabled, customer barcodes will be updated when a customer is created/updated. Deleted metafield will result in a deleted barcode.

Only single value non-list and not deprecated types such as "number_integer" or "single_line_text_field" are supported. Learn more about and .

Identify the metafield namespace and key

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.

Save the namespace and key in the app's settings

  1. Go to the app's "Settings" page.

  2. Check the "Sync metafield with barcode" checkbox.

  3. Enter the previously identified namespace and key, e.g. dummy_namespace and dummy_key.

  4. Uncheck the "Skip the update in the barcode is already assigned to a different customer" checkbox (Optional).

  5. Save.

Currently, only one unique custom barcode per customer is supported. If the created/updated customer's metafield contains a barcode already assigned to another customer, the sync will be skipped by default.

This behaviour can be changed by unchecking the "Skip the update in the barcode is already assigned to a different customer" checkbox. If unchecked, the app will delete the barcode from the other customer's profile and assign the barcode to the new customer.

Test

  1. Create or update a customer.

  2. 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.

webhook
metafields
metafield types
added the required metafield
"Metafield to barcode sync" settings