Created
July 7, 2022 12:45
-
-
Save o-nkar/56676c2e4dfe6d12173afaa7c5fb069b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for collection in collections %} | |
{% if collection.title == "OMBRONE COLLECTION" %} | |
<a href="{{collection.url}}"> | |
<div class="cm_colec_title"><span>{{collection.title}}</span></div> | |
</a> | |
{% assign products = collection['collection_handle'].products %} | |
{% for product in products %} | |
{{ product.image | img_url:'master' | img_tag }} | |
{% endfor %} | |
{% endif %} | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, i would like to thank you so much for you time. I'm still having a problem.
{% assign products = collection['collection_handle'].products %}
For the " ['collection_handle'] " part I'm adding digits of the url. For example collections/400701784308 this is the url of my collection.
So what I'm doing is {% assign products = collection['400701784308'].products %} putting those digits in there. What am i doin wrong ?