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
| {% comment %} | |
| Renders a product feed | |
| Accepts: | |
| - section: {Object} Section object used for default, title and button settings | |
| - section_classes: {String} Classes to be added to the section element | |
| - element?: {String} Custom element, default is 'card-product-slider' | |
| - attr?: {String} Data attributes | |
| - products_array: {Array[Objects]} Product objects array | |
| - url: {String} URL, if there are recommendations |
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
| {% comment %} | |
| Renders a product card | |
| Accepts: | |
| - product_ref: {Object} Product Liquid object | |
| - section_id: {String} Section id | |
| - block_index: {Number} Block index for unique id | |
| - show_second_image: {Boolean} Show second image instead of first | |
| Usage: | |
| {%- render 'card-product', product_ref: product_ref, section_id: section.id, block_index: block_index, show_second_image: block.settings.show_second_image -%} | |
| {% endcomment %} |