Share barcodes via bulk messaging services
Shopify Email app, Mailchimp, Klaviyo and other tools can be used to bulk send barcodes
Other apps or emailing services usually don't have access to Shopify customer IDs. However, such services can still distribute barcodes as long as they support custom templates with customer email variables.
The app queries the email addresses provided via the link and embeds Shopify customer IDs into the barcodes. In order for this to work, the email addresses must be associated with Shopify customers.
Depending on the service used, email template variables may not be replaced with valid Shopify customer email addresses in preview or test emails, resulting in errors. To view the final result, please send an actual (non-test) email to an existing Shopify customer (can be fake) email address. This is a known issue in Shopify Email affecting preview/test emails.
Shopify Email app
To send barcodes and mobile wallet download buttons, include the following snippets into a custom Liquid section of your selected Shopify Email template.
1D barcode image
<img src="https://select-customer-barcode-prod.herokuapp.com/public-api/v1/barcodes/code128/{{shop.permanent_domain}}/emails/{{data.customer.email}}" />
2D QR code
<img src="https://select-customer-barcode-prod.herokuapp.com/public-api/v1/barcodes/qr/{{shop.permanent_domain}}/emails/{{data.customer.email}}" />
"Add to Apple Wallet" button
<a download href="https://select-customer-barcode-prod.herokuapp.com/public-api/v1/wallet/apple/{{shop.permanent_domain}}/emails/{{data.customer.email}}"> <img src="https://barcodify-prod.s3.amazonaws.com/public/add-to-apple-wallet/Add_to_Apple_Wallet_rgb_US-UK.png" /> </a>
To localise the text of the "Add to Apple Wallet" button, simply replace Add_to_Apple_Wallet_rgb_US-UK.png
with the selected language's file name in the snippet above. To see available localisations, download localised images. For more information, check Add to Apple Wallet Guidelines.
"Add to Google Wallet" button
<a href="https://select-customer-barcode-prod.herokuapp.com/public-api/v1/wallet/google/{{shop.permanent_domain}}/emails/{{data.customer.email}}"> <img src="https://barcodify-prod.s3.amazonaws.com/public/add-to-google-wallet/enGB_add_to_google_wallet_wallet-button.png" /> </a>
To localise the text of the "Add to Google Wallet" button, simply replace enGB_add_to_google_wallet_wallet-button.png
with the selected language's file name in the snippet above. To see available localisations, download localised images. For more information, check Add to Google Wallet Guidelines.
Please don't confuse Shopify Notifications with Shopify Email. To send barcodes via automated notifications such as order confirmation, check out the instructions.
Troubleshooting
If you notice the "Expected a valid shop query parameter", when trying to download mobile passes as in the example below
you may need to replace {{shop.permanent_domain}} with your store's myshopify.com domain name, e.g. my-store-name.myshopify.com as it appears in your store's settings.
For example, instead of
<a download href="https://select-customer-barcode-prod.herokuapp.com/public-api/v1/wallet/apple/{{shop.permanent_domain}}/emails/{{data.customer.email}}"> <img src="https://barcodify-prod.s3.amazonaws.com/public/add-to-apple-wallet/Add_to_Apple_Wallet_rgb_US-UK.png" /> </a>
use
<a download href="https://select-customer-barcode-prod.herokuapp.com/public-api/v1/wallet/apple/my-store-name.myshopify.com/emails/{{data.customer.email}}"> <img src="https://barcodify-prod.s3.amazonaws.com/public/add-to-apple-wallet/Add_to_Apple_Wallet_rgb_US-UK.png" /> </a>
Other providers
Usually, email providers do not have access to Shopify customer IDs or other data. If the email provider supports customisable templates with email variables, you can send the barcodes to your customers.
Below are a few commonly requested services.
Mailchimp
Mailchimp supports email variables called Merge Tags. The merge tags are replaced with the underlying value (email in this case) the same way Liquid variables are. To send barcodes to your customers, replace {{data.customer.email}} with *|EMAIL|* and {{shop.permanent_domain}} with your store's myshopify.com domain name, e.g. my-store-name.myshopify.com
Klaviyo
Klaviyo supports personalization tags. To send barcodes to your customers, replace {{data.customer.email}} with {{email}} and {{shop.permanent_domain}} with your store's myshopify.com domain name, e.g. my-store-name.myshopify.com.
Last updated