Created
November 14, 2019 12:26
-
-
Save andreibabor/2f90958520fd2096511fe816514602a4 to your computer and use it in GitHub Desktop.
BigCommerce Stencil: show first 3 products and then a new section using the last products
This file contains 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
<ul class="productGrid"> | |
{{#each products }} | |
{{#if @index '<=' 2 }} | |
<li class="product"> | |
{{>components/products/card show_compare=../show_compare show_rating=../settings.show_product_rating theme_settings=../theme_settings customer=../customer setting_show = ../settings}} | |
</li> | |
{{/if}} | |
{{/each}} | |
</ul> | |
<p>section1</p> | |
<ul class="productGrid"> | |
{{#each products }} | |
{{#if @index '>=' 3 }} | |
<li class="product"> | |
{{>components/products/card show_compare=../show_compare show_rating=../settings.show_product_rating theme_settings=../theme_settings customer=../customer setting_show = ../settings}} | |
</li> | |
{{/if}} | |
{{/each}} | |
</ul> | |
<p>section2</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
modify templates/components/products/grid.html