Customer Segment in Liquid not accessible

Customer Segment in Liquid not accessible

atulgarg22
Shopify Partner
4 0 3

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?

Replies 3 (3)

gr_trading
Shopify Partner
1943 145 203

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.

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee
atulgarg22
Shopify Partner
4 0 3

Thanks @gr_trading . But this looks like a limitation in implementing many things at server side.

gr_trading
Shopify Partner
1943 145 203

Yes, but paid applications don't expose everything to end user.

 

But tags and metafield will work.

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee