Skip to content

Instantly share code, notes, and snippets.

@svaustin66
Created June 13, 2017 19:49
Show Gist options
  • Save svaustin66/21bc97c9638e29c8f84d499063a2a47c to your computer and use it in GitHub Desktop.
Save svaustin66/21bc97c9638e29c8f84d499063a2a47c to your computer and use it in GitHub Desktop.
This liquid code will list all of the products in a store with links to the product admin page and show all product photos under each product
<h2>All Product Images</h2>
{% for product in collections['all'].products %}
<p><a href="/admin/products/{{product.id}}" target="_blank">{{product.title}}</a></p>
{% for image in product.images %}
<p><img src="{{ image.src | product_img_url: "large" }}"></p>
{% endfor %}
{% endfor %}
@ramizibrahimovic
Copy link

thanks a lot! helped me :)

@savandholu
Copy link

Hello,
I need the selected collection of product lists in the dropdown
For Ex: In one custom template Show all collections in a checkbox like that: https://prnt.sc/_j4zUJjW1m6F
That selected collection shows all product in a dropdown list like: https://prnt.sc/1IKLIW16IOm6

How can I do this?

@PaulooMartin
Copy link

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment