Accessing Customer Segments via Liquid for Targeted Content?

Is there a native Liquid object or filter that exposes segment membership in storefront and theme app extensions?

I am familiar with using customer.tags for this, but tags are static and require manual updates or automation flows. I’d love to leverage the dynamic nature of the new Customer Segments feature.

Pseudo-code of what I’m hoping for:

{% if customer.segments contains ‘vip_segment_id’ %}
  {% render ‘vip-banner’ %}
{% endif %}

Unfortunately no, not at the moment.
You’d have to use Flow to assign tags to that particular segment

1 Like

I thought about that but unfortunately it wouldn’t work as well with negative conditions such as “Customers who never placed an order”, since you can’t tag customers who have not been created yet.

Yes you can check if the customer doesn’t exist with liquid, but imagine some complex case.