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
| saveProducts = (arr) => { | |
| const products = new Array() | |
| console.log("Received products:", arr) | |
| arr.products.map((product) => | |
| products.push({ | |
| 'id': product.id, | |
| 'options': product.options, | |
| 'type': product.product_type, | |
| 'handle': product.handle, |
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
| {% paginate collection.products by 3 %} | |
| <!-- Start the pagination and tells Ajaxify how many items to load at once --> | |
| <div class="EndlessScroll"> | |
| <!-- Ajaxify will insert the items in this element --> | |
| {% for product in collection.products %} | |
| {% include 'product-grid-item' %} | |
| {% endfor %} | |
| <!-- Regular data collection loop --> |