Auto-Applying Coupons that are shown as Custom Properties?

  • 14 October 2021
  • 1 reply


Hi there,

We’re currently working on a flow that begins with a Justuno modal. When a customer completes the modal, they receive a coupon code via email that’s triggered by being added to a list in Klaviyo but this coupon code comes in as a custom property requiring the {{ person | lookup: ‘Referral_Code’ }} variable syntax. 

We would like to auto-apply this coupon to a customer’s cart upon clicking the “shop now” button in the email that follows the completion of the form - is there a way to do this? The code technically comes from Shopify as a dynamic code.


Also for context - we are using a Justuno pop-up instead of a Klaviyo form because of Justuno’s ability to auto-display codes in a user’s session. I know Klaviyo would be an easy set-up for us, but Justuno’s auto-display feature allows for a seamless customer journey.



Best answer by Dov 15 October 2021, 17:09

View original

1 reply

Userlevel 6
Badge +5

Hi @Kelly,

Thank you for sharing this question with our Klaviyo community.

I recommend replicating the format we describe in our help center documentation on applying a coupon code at checkout. The format looks like the following:

I would try updating “” with your website and replace “your_code” with the person look-up tag: {{ person | lookup: ‘Referral_Code’ }}.{{ person|lookup:‘Referral_Code’ }}

Alternatively, you can try to use{{ person|lookup:‘Referral_Code’ }