Skip to content

Instantly share code, notes, and snippets.

@sinak
Created March 3, 2015 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sinak/4ab4a0f5e79d01e5d139 to your computer and use it in GitHub Desktop.
Save sinak/4ab4a0f5e79d01e5d139 to your computer and use it in GitHub Desktop.
{% paginate collections.all.products by 1000 %}
{% if pass_product_handle and collections["all"] %}
{% assign the_collection = collections["all"] %}
{% for product in the_collection.products offset: 0 %}
{% if pass_product_handle == product.handle %}
{% assign return = product %}
{% endif %}
{% endfor %}
{% endif %}
{% endpaginate %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment