For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

  1. Create a customer metafield to store the discount code.

    ALT text: Shopify customer metafield for storing discount codes
    Creating a Shopify customer metafield to store Discounteo discount codes
  2. In your Discounteo automation, enable the option to save the discount code in the customer metafield.

    Discounteo option to save discount code in a customer metafield
    Enabling Discounteo to save generated discount code in a customer metafield
  3. Contact us to enable immediate discount code generation for your account.

  4. Edit your Shopify workflow and add a short delay to give Discounteo time to generate and save the discount code.

    Shopify Messaging flow delay
    Adding a delay to a Shopify Messaging workflow
  5. Edit your email template and add a Custom Liquid element.

  6. 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 }}

Shopify customer metafield namespace and key
Shopify customer metafield namespace and key for storing the discount code
Shopify Messaging email template with Custom Liquid for discount code
Shopify Messaging email template with Custom Liquid to retrieve the discount code from a customer metafield

Last updated