What data is returned by the "terms" property of the "collection" object?

Solved
sleepislife
New Member
3 0 0

I see, in the new Dawn theme, the collection object is passed to "facets" snippet as "results" property.

Later, a "terms" property is used.

So, there appears to be a "terms" property on the "collection" object, but I don't see it referenced any where in the developer docs.

Any help would be greatly appreciated!!!

Thanks!!!

Accepted Solution (1)

Accepted Solutions
LitExtension
Shopify Partner
3802 752 792

This is an accepted solution.

Hi @sleepislife,

You can check the code, at main-collection-product-grid.liquid file, results are assigned by collection. https://i.imgur.com/cNH9Z9L.png

And at main-search.liquid file, results are assigned by search. https://i.imgur.com/54UPwlj.png 

=> the terms variable only works when on the search page, and it will be search.terms , refer https://i.imgur.com/tTLvMFM.png

https://shopify.dev/api/liquid/objects/search#search-terms

Hope it is clear to you.

LitExtension - #1 Shopping Cart Migration Expert
If our answer is helpful then please accept as solution!
Have not had your Shopify store yet? Start the 14-day free trial HERE
Are you looking for a solution to migrate to Shopify? Try our FREE DEMO now!

View solution in original post

Replies 2 (2)
LitExtension
Shopify Partner
3802 752 792

This is an accepted solution.

Hi @sleepislife,

You can check the code, at main-collection-product-grid.liquid file, results are assigned by collection. https://i.imgur.com/cNH9Z9L.png

And at main-search.liquid file, results are assigned by search. https://i.imgur.com/54UPwlj.png 

=> the terms variable only works when on the search page, and it will be search.terms , refer https://i.imgur.com/tTLvMFM.png

https://shopify.dev/api/liquid/objects/search#search-terms

Hope it is clear to you.

LitExtension - #1 Shopping Cart Migration Expert
If our answer is helpful then please accept as solution!
Have not had your Shopify store yet? Start the 14-day free trial HERE
Are you looking for a solution to migrate to Shopify? Try our FREE DEMO now!
sleepislife
New Member
3 0 0

Ayyyyyy!!! Thank you!!! Makes perfect sense!!!