number
A number field.
Schema
Section titled “Schema”{ "type": "number", "id": "products_to_show", "label": "Products", "default": 4}Value in Liquid
Section titled “Value in Liquid”A number (whole numbers are integers, so they work as loop limits); nil when empty.
{% for p in collection.products limit: section.settings.products_to_show %}…{% endfor %}Compatibility
Section titled “Compatibility”Shopify: Same as Shopify.
Since theme platform 1.0.
Was this page helpful?

