Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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!!!
Solved! Go to the solution
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.
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.
Ayyyyyy!!! Thank you!!! Makes perfect sense!!!
We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024A big shout out to all of the merchants who participated in our AMA with 2H Media: Holi...
By Jacqui Oct 21, 2024We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024