Skip to content

Instantly share code, notes, and snippets.

@cameroncowden
Created September 28, 2022 18:01
Show Gist options
  • Select an option

  • Save cameroncowden/3062203950f30b542a2893a6c7647512 to your computer and use it in GitHub Desktop.

Select an option

Save cameroncowden/3062203950f30b542a2893a6c7647512 to your computer and use it in GitHub Desktop.

Revisions

  1. cameroncowden created this gist Sep 28, 2022.
    8 changes: 8 additions & 0 deletions specific-products.liquid
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    <!-- the collection handle we are pulling from is 'new'--->
    {% assign collection = collections['new'] %}

    {% for product in collection.products | limit: 4 %}
    <!-- the 'product-block' is specific to your theme, it is html for a grid item of a product, could be called product-grid-item, grid-product, etc --->
    {% render 'product-block', product: product %}
    <!-- product --->
    {% endfor %}