Accessing collections in app proxy

BoxUp
Shopify Partner
33 1 11

Hi,

Is there any restrictions on what you can access using an app proxy?

Filters etc seem to work fine and we can access product data if we have the handle but {% for collection in collections %} always returns nothing. We have collections in the store so not sure what the issue is.

Thanks

0 Likes
_JCC_
Shopify Staff
Shopify Staff
65 9 9

Hey @BoxUp,

The collections should be accessible from the app proxy, provided the collection is available on the online store channel. 

Iterating over a known product collection.
{% for product in collections.mens-clothes.products %}{{ product.title }}<br/>{% endfor %}
Iteration over the collections
{% for collection in collections %}{{collection.title}}<br/>{% endfor %}

John C | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes