Solved

Auto-Applying Coupons that are shown as Custom Properties?

  • 14 October 2021
  • 1 reply
  • 19 views

Badge

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.

Thanks!

icon

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:

mysite.com/?discount=your_code
 

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

mysite.com/?discount={{ person|lookup:‘Referral_Code’ }}

Alternatively, you can try to use

mysite.com/discount/{{ person|lookup:‘Referral_Code’ }

Reply