What if my attribute name in Shopify liquid has a space? (Customer.io email system)

StackOverflow https://stackoverflow.com/questions/18839451

  •  28-06-2022
  •  | 
  •  

سؤال

I'm attempting to add some logic in Customer.io, which uses Shopify's Liquid markup language:

{% if customer.Campaigns Participated > 0 %} I also saw that you participated in a campaign, which is awesome!

If you have a second, I'd love it if you could tell me what it was that made you sign up?

{% else %}

I see you haven't had a chance to participate in your first campaign - can I ask what happened?

{% endif %}

The problem is that it doesn't recognize the "Campaigns Participated" property due to the space...

Is there any way I can escape this space or something?

Thank you

هل كانت مفيدة؟

المحلول

customer.['Campaigns Participated'] is your only hope.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top