How to check "Is product available on Sales Channel" ?

Solved
Highlighted
Shopify Partner
9 1 0

Hi! Is it possible to get info about a product availability on Sales Channel via product.liquid template?

Is it any Template Object or whatever to detect availability?

0 Likes

Success.

Shopify Partner
246 9 49

I don't think so. Reason being, that information is 'outside' of the Online Store sales channel, and liquid code ONLY applies inside the online store sales channel. So the liquid there doesn't really have access to this "outside the website" information, relating to other channels.

1 Like
Shopify Partner
246 9 49

You'd have to e.g. duplicate the hide/show status of products into a metafield which liquid could read to find out if it's on the channel or not. but you'd have to maintain that manually.

0 Likes