This is a setting example for randomly displaying products in Shopify's "Featured Collections". In order to update the content every time it is accessed using liquid with strong cache, I experimentally created this example based on the method using cart attributes adopted in the theme "Prestige".
Sample Codes
Test Theme :Dawn/Rise 15.2.0
Add scheme to "featured-collection.liquid"
{
"type": "checkbox",
"id": "display_at_random",
"label": "t:sections.featured-collection.settings.display_at_random.label",
"default": false
},
Add a label to "ja.schema.json"
"display_at_random": {
"label": "商品をランダムで表示する"
},
Modifying "featured-collection.liquid" (Part 1)
