Access collections rules / conditions object through liquid

Highlighted
New Member
3 0 0

When accessing the products object, there's the collections array where it shows all the collections where the product is in. Within each collection object, I see a rules field that has the condition(s) which the collection is using to filter the products. I can't seem to access that 'rules' field through liquid, it returns as null. Anyone with some idea why I can't / what I can do to access the conditions where the collections are using? Thanks!

0 Likes

Hi kevinyeh, could you post some screenshots? I don't see a rules attribute in the collections object. (https://help.shopify.com/en/themes/liquid/objects/collection).

 

 

Making Shopify Tasks Straight Forward. Contact me directly to get help with your Shopify website quickly and painlessly.

Website: https://theshoptinkerers.com/
0 Likes