{%- capture flickity_options -%} { "prevNextButtons": false, "pageDots": false, "draggable": {% if section.blocks.size == 1 %}false{% else %}true{% endif %}, "cellAlign": "center", "wrapAround": false, "percentPosition": false, "dragThreshold": 10, "cellSelector": ".ShopTheLook__Item", "arrowShape": {"x0": 20, "x1": 60, "y1": 40, "x2": 60, "y2": 35, "x3": 25}, "breakpoints": [ { "matches": "lap-and-up", "settings": { "prevNextButtons": true, "draggable": false, "wrapAround": true } } ] } {%- endcapture -%}
{%- if section.settings.subheading != blank or section.settings.title != blank -%}
{%- if section.settings.subheading != blank -%}

{{ section.settings.subheading | escape }}

{%- endif -%} {%- if section.settings.title != blank -%}

{{ section.settings.title | escape }}

{%- endif -%}
{%- endif -%}
{% schema %} { "name": "Shop the look", "class": "shopify-section--bordered", "max_blocks": 4, "settings": [ { "type": "paragraph", "content": "For best results (especially on mobile), we recommend using images with the same dimensions." }, { "type": "text", "id": "subheading", "label": "Sub-heading", "default": "Shop" }, { "type": "text", "id": "title", "label": "Heading", "default": "Our looks" }, { "type": "checkbox", "id": "show_mobile_product_info", "label": "Show product info on mobile", "default": false } ], "blocks": [ { "type": "look", "name": "Look", "settings": [ { "type": "image_picker", "id": "image", "label": "Image", "info": "975 x 1185px jpg recommended (vertical image) or 1200 x 1200px jpg recommended (square image)." }, { "type": "select", "id": "dot_style", "label": "Hotspot style", "options": [ { "value": "light", "label": "Light" }, { "value": "dark", "label": "Dark" } ], "default": "light" }, { "type": "header", "content": "Product 1" }, { "type": "product", "id": "product_1", "label": "Product", "info": "Product not showing correctly? [Learn more](http://support.maestrooo.com/article/153-home-page-shop-the-look-section-is-displaying-incorrect-products)." }, { "type": "range", "id": "product_1_horizontal_position", "label": "Horizontal position", "min": 5, "max": 95, "step": 1, "unit": "%", "default": 15 }, { "type": "range", "id": "product_1_vertical_position", "label": "Vertical position", "min": 5, "max": 95, "step": 1, "unit": "%", "default": 15 }, { "type": "header", "content": "Product 2" }, { "type": "product", "id": "product_2", "label": "Product", "info": "Product not showing correctly? [Learn more](http://support.maestrooo.com/article/153-home-page-shop-the-look-section-is-displaying-incorrect-products)." }, { "type": "range", "id": "product_2_horizontal_position", "label": "Horizontal position", "min": 5, "max": 95, "step": 1, "unit": "%", "default": 50 }, { "type": "range", "id": "product_2_vertical_position", "label": "Vertical position", "min": 5, "max": 95, "step": 1, "unit": "%", "default": 50 }, { "type": "header", "content": "Product 3" }, { "type": "product", "id": "product_3", "label": "Product", "info": "Product not showing correctly? [Learn more](http://support.maestrooo.com/article/153-home-page-shop-the-look-section-is-displaying-incorrect-products)." }, { "type": "range", "id": "product_3_horizontal_position", "label": "Horizontal position", "min": 5, "max": 95, "step": 1, "unit": "%", "default": 85 }, { "type": "range", "id": "product_3_vertical_position", "label": "Vertical position", "min": 10, "max": 90, "step": 1, "unit": "%", "default": 85 } ] } ], "presets": [ { "category": "Product", "name": "Shop the look", "settings": {}, "blocks": [ { "type": "look", "settings": { "product_1_horizontal_position": 30, "product_1_vertical_position": 40, "product_2_horizontal_position": 45, "product_2_vertical_position": 65, "product_3_horizontal_position": 70, "product_3_vertical_position": 50 } } ] } ] } {% endschema %}