Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi All,
We have a requirement to hide/show some product variants based on the customer segments. But somehow customer segments are not available in in liquid objects (or may be I overlooked). Can someone help me how to access segments in liquid?
Hi @atulgarg22
Yes, customer segment is not available in liquid scope but you can use customer tags or metafield on liquid to accomplish the same.
Thanks @gr_trading . But this looks like a limitation in implementing many things at server side.
Yes, but paid applications don't expose everything to end user.
But tags and metafield will work.