Display discount codes as text in Shopify Messaging emails
Discounteo displays discount codes as clickable images for email service providers other than Mailchimp. In Shopify Messaging, you can display the discount code as text instead.
To do this, Discounteo must save the discount code in a customer metafield and generate the code immediately.
This feature is available for the following campaign types:
Welcome new subscribers
Follow up on purchases
Create a customer metafield to store the discount code.

Creating a Shopify customer metafield to store Discounteo discount codes In your Discounteo automation, enable the option to save the discount code in the customer metafield.

Enabling Discounteo to save generated discount code in a customer metafield Contact us to enable immediate discount code generation for your account.
Edit your Shopify workflow and add a short delay to give Discounteo time to generate and save the discount code.

Adding a delay to a Shopify Messaging workflow Edit your email template and add a Custom Liquid element.
In the Custom Liquid element, add a reference to the customer metafield instead of the Discounteo code snippet. To retrieve a discount code from the metafield, use the following variable:
{{ customer.metafields.namespace.key }}


Last updated