{% comment %} Fit Confidence — JAUS product-page block. Save as sections/fit-confidence.liquid (or paste the markup into a product-information block). Renders: fit badges from jaus.* metafields, live per-size stock with counts, an arrives-by line computed by event-ready.js, a boutique hold link, and the return policy before checkout. Requires event-ready.css / event-ready.js in /assets. {% endcomment %} {{ 'event-ready.css' | asset_url | stylesheet_tag }} {%- assign mf = product.metafields.jaus -%} {%- assign is_final = false -%} {%- if product.tags contains 'sale' or product.tags contains 'SALE' or product.compare_at_price > product.price -%}{%- assign is_final = true -%}{%- endif -%}
{%- if mf.fit_note != blank or mf.model_wears != blank or mf.stretch != blank or mf.lining != blank or mf.length != blank -%}
{%- if mf.fit_note != blank -%}Fit{{ mf.fit_note.value | capitalize }}{%- endif -%} {%- if mf.model_wears != blank -%}Model{% if mf.model_height != blank %}{{ mf.model_height.value }} {% endif %}wears {{ mf.model_wears.value }}{%- endif -%} {%- if mf.stretch.value == true -%}Stretchyes{% if mf.lining != blank %} · {{ mf.lining.value }}{% endif %} {%- elsif mf.stretch.value == false -%}Stretchno{% if mf.lining != blank %} · {{ mf.lining.value }}{% endif %} {%- elsif mf.lining != blank -%}Lining{{ mf.lining.value }}{%- endif -%} {%- if mf.length != blank -%}Length{{ mf.length.value }}{%- endif -%} {%- if mf.fabric != blank -%}Fabric{{ mf.fabric.value }}{%- endif -%}
{%- else -%}

Fit notes for this style are being added. Call the boutique at 248-283-3994 for sizing help.

{%- endif -%} {%- comment -%} Per-size stock. Counts show only when inventory is tracked; "1 left"/"2 left" appear under 3. {%- endcomment -%}
{%- for v in product.variants -%} {%- assign q = v.inventory_quantity -%} {{ v.option1 | upcase | replace: 'XXSMALL', 'XXS' | replace: 'XSMALL', 'XS' | replace: 'XLARGE', 'XL' | replace: 'XXLARGE', 'XXL' | replace: 'SMALL', 'S' | replace: 'MEDIUM', 'M' | replace: 'LARGE', 'L' }} {%- if v.available and v.inventory_management != blank and q > 0 and q < 3 %}{{ q }} left{% elsif v.available == false %}notify me{% endif -%} {%- endfor -%}
{%- assign store = section.settings.store_name | default: 'Birmingham' -%} {%- assign hold_base = section.settings.hold_url -%} Hold my size in {{ store }} for 48 h

{%- if is_final -%}Final sale — no returns{%- else -%}Returns for store credit within 30 daysNot final sale{%- endif -%} Free shipping over $70

{% schema %} { "name": "Fit Confidence", "tag": "div", "settings": [ { "type": "text", "id": "store_name", "label": "Boutique name", "default": "Birmingham" }, { "type": "url", "id": "hold_url", "label": "Hold request form URL (Shopify Forms). Blank = email" }, { "type": "range", "id": "cutoff_hour", "label": "Same-day cutoff (ET, 24h)", "min": 8, "max": 18, "step": 1, "default": 14 }, { "type": "range", "id": "std_days", "label": "Standard business days after ship", "min": 1, "max": 7, "step": 1, "default": 4 }, { "type": "range", "id": "exp_days", "label": "Express business days", "min": 1, "max": 4, "step": 1, "default": 2 }, { "type": "range", "id": "ovn_days", "label": "Overnight business days", "min": 1, "max": 2, "step": 1, "default": 1 } ], "presets": [ { "name": "Fit Confidence" } ] } {% endschema %}